Skip to content

Commit

Permalink
Deprecate address standard field (twentyhq#6087)
Browse files Browse the repository at this point in the history
Closes twentyhq#5916

---------

Co-authored-by: Weiko <corentin@twenty.com>
  • Loading branch information
ijreilly and Weiko authored Jul 10, 2024
1 parent b14918c commit 34d13a7
Show file tree
Hide file tree
Showing 27 changed files with 310 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,16 @@ export const mocks = [
currencyCode
}
createdAt
address
address {
addressStreet1
addressStreet2
addressCity
addressState
addressCountry
addressPostcode
addressLat
addressLng
}
updatedAt
name
accountOwnerId
Expand Down Expand Up @@ -262,7 +271,16 @@ export const mocks = [
currencyCode
}
createdAt
address
address {
addressStreet1
addressStreet2
addressCity
addressState
addressCountry
addressPostcode
addressLat
addressLng
}
updatedAt
name
accountOwnerId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ annualRecurringRevenue
}
createdAt
address
{
addressStreet1
addressStreet2
addressCity
addressState
addressCountry
addressPostcode
addressLat
addressLng
}
updatedAt
name
accountOwnerId
Expand All @@ -86,7 +96,7 @@ idealCustomerProfile
domainName: true,
annualRecurringRevenue: true,
createdAt: true,
address: true,
address: { addressStreet1: true },
updatedAt: true,
name: true,
accountOwnerId: true,
Expand Down Expand Up @@ -129,6 +139,16 @@ annualRecurringRevenue
}
createdAt
address
{
addressStreet1
addressStreet2
addressCity
addressState
addressCountry
addressPostcode
addressLat
addressLng
}
updatedAt
people
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ annualRecurringRevenue
}
createdAt
address
{
addressStreet1
addressStreet2
addressCity
addressState
addressCountry
addressPostcode
addressLat
addressLng
}
updatedAt
name
accountOwnerId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3039,7 +3039,7 @@ export const getObjectMetadataItemsMock = () => {
{
__typename: 'field',
id: '20202020-ad10-4117-a039-3f04b7a5f939',
type: 'TEXT',
type: 'ADDRESS',
name: 'address',
label: 'Address',
description: 'The company address',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,16 @@ export const query = gql`
currencyCode
}
createdAt
address
address {
addressStreet1
addressStreet2
addressCity
addressState
addressCountry
addressPostcode
addressLat
addressLng
}
updatedAt
name
accountOwnerId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,16 @@ const mocks: MockedResponse[] = [
currencyCode
}
createdAt
address
address {
addressStreet1
addressStreet2
addressCity
addressState
addressCountry
addressPostcode
addressLat
addressLng
}
updatedAt
name
accountOwnerId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,9 @@ export const mockPerformance = {
},
employees: null,
accountOwnerId: null,
address: '',
address: {
addressCity: 'San Francisco',
},
idealCustomerProfile: false,
createdAt: '2024-05-01T13:16:29.046Z',
id: '20202020-c21e-4ec2-873b-de4264d89025',
Expand Down Expand Up @@ -844,7 +846,7 @@ export const mockPerformance = {
},
employees: null,
accountOwnerId: null,
address: '',
address: { addressCity: 'San Francisco' },
idealCustomerProfile: false,
createdAt: '2024-05-01T13:16:29.046Z',
id: '20202020-ed89-413a-b31a-962986e67bb4',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,16 @@ const companyMocks = [
currencyCode
}
createdAt
address
address {
addressStreet1
addressStreet2
addressCity
addressState
addressCountry
addressPostcode
addressLat
addressLng
}
updatedAt
name
accountOwnerId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ export const query = gql`
currencyCode
}
createdAt
address
address {
adressCity
}
updatedAt
name
accountOwnerId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const SIGN_IN_BACKGROUND_MOCK_COLUMN_DEFINITIONS = (
fieldMetadataId: '20202020-ad10-4117-a039-3f04b7a5f939',
label: 'Address',
size: 100,
type: FieldMetadataType.Text,
type: FieldMetadataType.Address,
metadata: {
fieldName: 'address',
placeHolder: 'Address',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
__typename: 'FavoriteConnection',
edges: [],
},
address: 'OLINDA SAS. 18 rue de Navarin, 75009 Paris',
address: {
addressStreet1: 'OLINDA SAS',
addressStreet2: '18 rue de Navarin',
addressCity: 'Paris',
addressPostcode: '75009',
},
accountOwner: null,
people: {
__typename: 'PersonConnection',
Expand Down Expand Up @@ -115,7 +120,12 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
__typename: 'FavoriteConnection',
edges: [],
},
address: '1600 Amphitheatre Pkwy, Mountain View, CA 94043',
address: {
addressStreet1: '1600 Amphitheatre Pkwy',
addressStreet2: 'Mountain View',
addressState: 'CA',
addressPostcode: '94043',
},
accountOwner: null,
people: {
__typename: 'PersonConnection',
Expand Down Expand Up @@ -314,7 +324,12 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
__typename: 'FavoriteConnection',
edges: [],
},
address: '1 Hacker Way, Menlo Park, CA 94025',
address: {
addressStreet1: '1 Hacker Way',
addressStreet2: 'Menlo Park',
addressState: 'CA',
addressPostcode: '94025',
},
accountOwner: null,
people: {
__typename: 'PersonConnection',
Expand Down Expand Up @@ -444,7 +459,12 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
__typename: 'FavoriteConnection',
edges: [],
},
address: '121 Albright Way, Los Gatos, CA 95032',
address: {
addressStreet1: '121 Albright Way',
addressStreet2: 'Los Gatos',
addressState: 'CA',
addressPostcode: '95032',
},
accountOwner: null,
people: {
__typename: 'PersonConnection',
Expand Down Expand Up @@ -492,7 +512,12 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
__typename: 'FavoriteConnection',
edges: [],
},
address: '1 Microsoft Way, Redmond, WA 98052',
address: {
addressStreet1: '1 Microsoft Way',
addressStreet2: 'Redmond',
addressState: 'WA',
addressPostcode: '98052',
},
accountOwner: null,
people: {
__typename: 'PersonConnection',
Expand Down Expand Up @@ -672,7 +697,11 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
__typename: 'FavoriteConnection',
edges: [],
},
address: '42 Rue de Paradis, 75010 Paris',
address: {
addressStreet1: '42 rue de paradis',
addressCity: 'Paris',
addressPostcode: '75010',
},
accountOwner: null,
people: {
__typename: 'PersonConnection',
Expand Down Expand Up @@ -720,7 +749,12 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
__typename: 'FavoriteConnection',
edges: [],
},
address: '888 Brannan Street San Francisco, CA 94103',
address: {
addressStreet1: '888 Brannan Street',
addressCity: 'San Francisco',
addressState: 'CA',
addressPostcode: '75010',
},
accountOwner: null,
people: {
__typename: 'PersonConnection',
Expand Down Expand Up @@ -768,7 +802,13 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
__typename: 'FavoriteConnection',
edges: [],
},
address: '901 Fifth Avenue; Suite 1200; Seattle, WA 98164',
address: {
addressStreet1: '901 Fifth Avenue',
addressStreet2: 'Suite 1200',
addressCity: 'Seattle',
addressState: 'WA',
addressPostcode: '98164',
},
accountOwner: null,
people: {
__typename: 'PersonConnection',
Expand Down Expand Up @@ -816,7 +856,13 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
__typename: 'FavoriteConnection',
edges: [],
},
address: '3790 El Camino Real, Unit 518, Palo Alto, CA 94306',
address: {
addressStreet1: '3790 El Camino Real',
addressStreet2: 'Unit 518',
addressCity: 'Palo Alto',
addressState: 'CA',
addressPostcode: '94306',
},
accountOwner: null,
people: {
__typename: 'PersonConnection',
Expand Down Expand Up @@ -895,7 +941,11 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
__typename: 'FavoriteConnection',
edges: [],
},
address: '129, Samsung-ro, Yeongtong-gu, Suwon-si, Gyeonggi-do',
address: {
addressStreet1: '129, Samsung-ro',
addressStreet2: 'Yeongtong-gu, Suwon-si',
addressCity: 'Gyeonggi-do',
},
accountOwner: null,
people: {
__typename: 'PersonConnection',
Expand Down Expand Up @@ -974,7 +1024,13 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
__typename: 'FavoriteConnection',
edges: [],
},
address: '576 Folsom St., Floor 3, San Francisco, CA 94105',
address: {
addressStreet1: '576 Folsom St.',
addressStreet2: 'Floor 3',
addressCity: 'San Francisco',
addressState: 'CA',
addressPostcode: '94105',
},
accountOwner: null,
people: {
__typename: 'PersonConnection',
Expand Down Expand Up @@ -1022,7 +1078,10 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
__typename: 'FavoriteConnection',
edges: [],
},
address: '575 Lexington Ave 16th Floor, New York',
address: {
addressStreet1: '575 Lexington Ave 16th Floor',
addressCity: 'New York',
},
accountOwner: null,
people: {
__typename: 'PersonConnection',
Expand Down Expand Up @@ -1070,7 +1129,13 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [
__typename: 'FavoriteConnection',
edges: [],
},
address: '315 Montgomery St, 13th Fl. San Francisco, CA 94104',
address: {
addressStreet1: '315 Montgomery St',
addressStreet2: '13th Fl.',
addressCity: 'San Francisco',
addressState: 'CA',
addressPostcode: '94104',
},
accountOwner: null,
people: {
__typename: 'PersonConnection',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const SIGN_IN_BACKGROUND_MOCK_FILTER_DEFINITIONS = [
fieldMetadataId: '20202020-ad10-4117-a039-3f04b7a5f939',
label: 'Address',
iconName: 'IconMap',
type: 'TEXT',
type: 'ADDRESS',
},
{
fieldMetadataId: '20202020-0739-495d-8e70-c0807f6b2268',
Expand Down
Loading

0 comments on commit 34d13a7

Please sign in to comment.