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

Refactored and improved seeds #8695

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open

Refactored and improved seeds #8695

wants to merge 29 commits into from

Conversation

lucasbordeau
Copy link
Contributor

@lucasbordeau lucasbordeau commented Nov 22, 2024

  • Added a new Seeder service to help with custom object seeds
  • Added RichTextFieldInput to edit a rich text field directly on the table, but deactivated it for now.

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

This PR adds comprehensive seeding functionality and rich text field support across the application, including new demo data and field types for testing.

  • Added RichTextFieldInput with BlockNote editor integration for inline rich text editing in tables
  • Introduced new SeederService with support for custom objects, composite fields, and improved data seeding capabilities
  • Added 10 new demo field types to Company seeds (UUID, RichText, Array, Rating, etc.) with corresponding metadata and views
  • Added new seed data files for pets and survey results with 100 records each for testing
  • Fixed color naming consistency from 'grey' to 'gray' across multiple theme and UI files

51 file(s) reviewed, 36 comment(s)
Edit PR Review Bot Settings | Greptile

fieldName,
);

const fieldValueParsed = parseJson<PartialBlock[]>(fieldValue);
Copy link
Contributor

Choose a reason for hiding this comment

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

logic: parseJson could return undefined/null - need to handle this case explicitly to avoid runtime errors when using fieldValueParsed

Comment on lines 334 to 335
@WorkspaceIsNullable()
demoRichText: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

logic: demoRichText should be typed as FieldRichTextValue or string[] instead of string to match the RichText field type

@@ -8,7 +8,7 @@ export const DEMO_SEED_WORKSPACE_MEMBER_IDS = {
TIM: '20202020-1553-45c6-a028-5a9064cce07e',
};

export const workspaceMemberPrefillData = async (
export const seedWorkspaceMemberWithDemoData = async (
Copy link
Member

Choose a reason for hiding this comment

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

we move it out from prefill data, aren't we breaking workspace creation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I need to check

@FelixMalfait
Copy link
Member

Small comment from @Bonapara: the default workspace of Tim Apple should be Apple and not ACME

@Bonapara
Copy link
Member

Maybe we could use a fake logo to make it more fun:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔖 Planned
Development

Successfully merging this pull request may close these issues.

4 participants