Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix background mock #6463

Merged
merged 3 commits into from
Jul 30, 2024
Merged

Fix background mock #6463

merged 3 commits into from
Jul 30, 2024

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Jul 30, 2024

Before

Screenshot 2024-07-30 at 18 24 04

After

Screenshot 2024-07-30 at 18 23 57

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

The pull request focuses on updating type definitions and enhancing mock data for the sign-in background module.

  • Updated type property from FieldMetadataType.Link to FieldMetadataType.Links in packages/twenty-front/src/modules/sign-in-background-mock/constants/SignInBackgroundMockColumnDefinitions.ts.
  • Added secondaryLinks and new fields (addressCountry, addressLat, addressLng, __typename) in packages/twenty-front/src/modules/sign-in-background-mock/constants/SignInBackgroundMockCompanies.ts.
  • Ensure all related components and functions handle the new FieldMetadataType.Links type correctly.
  • Verify consistency of mock data updates across all related files and tests.

2 file(s) reviewed, 6 comment(s)
Edit PR Review Bot Settings

@@ -180,7 +180,7 @@ export const SIGN_IN_BACKGROUND_MOCK_COLUMN_DEFINITIONS = (
fieldMetadataId: '20202020-a61d-4b78-b998-3fd88b4f73a1',
label: 'Linkedin',
size: 100,
type: FieldMetadataType.Link,
type: FieldMetadataType.Links,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check: Verify that the change from Link to Links does not affect any existing data or functionality.

@@ -214,7 +214,7 @@ export const SIGN_IN_BACKGROUND_MOCK_COLUMN_DEFINITIONS = (
fieldMetadataId: '20202020-46e3-479a-b8f4-77137c74daa6',
label: 'X',
size: 100,
type: FieldMetadataType.Link,
type: FieldMetadataType.Links,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Check if any logic specifically checks for FieldMetadataType.Link and update it to handle FieldMetadataType.Links.

Comment on lines +5 to +9
domainName: {
primaryLinkUrl: 'qonto.com',
primaryLinkLabel: '',
secondaryLinks: [],
__typename: 'Links',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Ensure secondaryLinks is correctly handled in all related components and queries.

Comment on lines +21 to +27
addressState: null,
addressPostcode: '75009',
addressCountry: 'France',
addressCity: 'Paris',
addressLat: null,
addressLng: null,
__typename: 'Address',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check: Verify that the new address fields (addressCountry, addressLat, addressLng) are correctly populated and used in the application.

Comment on lines 46 to +49
primaryLinkLabel: 'asd',
primaryLinkUrl: 'asd.com',
secondaryLinks: null,
__typename: 'Links',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Check if secondaryLinks being null is handled gracefully in the UI and backend.

Comment on lines 86 to +89
primaryLinkLabel: null,
primaryLinkUrl: null,
secondaryLinks: null,
__typename: 'Links',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Ensure that secondaryLinks being null does not cause any issues in GraphQL queries or mutations.

@ijreilly ijreilly merged commit 3fa758e into main Jul 30, 2024
13 checks passed
@ijreilly ijreilly deleted the c--fix-background-mock branch July 30, 2024 16:33
charlesBochet pushed a commit that referenced this pull request Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants