-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add opened section #7265
Add opened section #7265
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This pull request introduces an "opened section" in the navigation drawer for objects that are not part of the workspace favorite list. Here's a summary of the key changes:
- Added new
NavigationDrawerOpenedSection
component to display objects not in workspace favorites - Created
useObjectMetadataItemsInWorkspaceFavorites
hook to efficiently manage workspace favorites - Modified data seeding process to exclude certain objects (workflow runs and versions) from workspace favorites
- Introduced new views for workflow runs and versions, making them non-system objects
- Updated
WorkflowRunWorkspaceEntity
andWorkflowVersionWorkspaceEntity
to support the new navigation structure
Key points:
- New
getExcludedObjectMetadataIdsForFavoritesPrefill
function controls which objects appear in workspace favorites WorkspaceFavorites
component simplified to use the new custom hook- Standard field IDs updated to include new fields for workflow runs and versions
- Conditional rendering of the new opened section based on feature flag
15 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings
...ages/twenty-front/src/modules/navigation/hooks/useObjectMetadataItemsInWorkspaceFavorites.ts
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerOpenedSection.tsx
Show resolved
Hide resolved
packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerOpenedSection.tsx
Outdated
Show resolved
Hide resolved
...r/src/engine/workspace-manager/standard-objects-prefill-data/views/workflow-versions.view.ts
Outdated
Show resolved
Hide resolved
81ec221
to
4da2d4f
Compare
...ages/twenty-front/src/modules/navigation/hooks/useObjectMetadataItemsInWorkspaceFavorites.ts
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerOpenedSection.tsx
Show resolved
Hide resolved
packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerOpenedSection.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerOpenedSection.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerOpenedSection.tsx
Outdated
Show resolved
Hide resolved
...es/twenty-server/src/engine/utils/get-excluded-object-metadata-ids-from-favorites-prefill.ts
Outdated
Show resolved
Hide resolved
...r/src/engine/workspace-manager/standard-objects-prefill-data/views/workflow-versions.view.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
539bade
to
386b7bd
Compare
386b7bd
to
a92f84e
Compare
a92f84e
to
d165114
Compare
When object is not part of the workspace favorite list, we want to show it in the "opened section" while its record page is accessed. This PR: - adds a new component `NavigationDrawerOpenedSection` - makes workflow versions and runs not system object + creates a prefilled view index for these - do not create workspace favorites for these so these do not appear in the workspace section <img width="1129" alt="Capture d’écran 2024-09-26 à 11 45 25" src="https://github.com/user-attachments/assets/c84d773c-0bef-4dce-b66a-55d7d00b0fb6">
When object is not part of the workspace favorite list, we want to show it in the "opened section" while its record page is accessed.
This PR:
NavigationDrawerOpenedSection