-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Option-menu-switch-table-kanban #11167
Conversation
…-menu-switch-table-kanban
…-menu-switch-table-kanban
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
Enhanced the object options dropdown menu with table/kanban view switching capabilities and improved record grouping functionality.
- Added new
useObjectOptionsForLayout
hook in/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useObjectOptionsForLayout.ts
to manage view type transitions - Implemented automatic field selection for Kanban view in
ObjectOptionsDropdownLayoutContent.tsx
with fallback messaging when no select fields are available - Added conditional rendering for Kanban-specific options (compact view, grouping) in
/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutContent.tsx
- Enhanced group visibility controls and reordering functionality in
ObjectOptionsDropdownRecordGroupsContent.tsx
4 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile
...y-front/src/modules/object-record/object-options-dropdown/hooks/useObjectOptionsForLayout.ts
Outdated
Show resolved
Hide resolved
...ules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutContent.tsx
Outdated
Show resolved
Hide resolved
...y-front/src/modules/object-record/object-options-dropdown/hooks/useObjectOptionsForLayout.ts
Outdated
Show resolved
Hide resolved
...y-front/src/modules/object-record/object-options-dropdown/hooks/useObjectOptionsForLayout.ts
Show resolved
Hide resolved
...y-front/src/modules/object-record/object-options-dropdown/hooks/useObjectOptionsForLayout.ts
Outdated
Show resolved
Hide resolved
...y-front/src/modules/object-record/object-options-dropdown/hooks/useObjectOptionsForLayout.ts
Outdated
Show resolved
Hide resolved
...y-front/src/modules/object-record/object-options-dropdown/hooks/useObjectOptionsForLayout.ts
Outdated
Show resolved
Hide resolved
...ules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutContent.tsx
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.
See comments!
switch (viewType) { | ||
case ViewType.Kanban: { | ||
if (availableFieldsForKanban.length === 0) { | ||
throw new Error('No fields for kanban - should not happen'); |
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.
Not sure that we want to show users a message containing "should not happen", that's not very helpful for them
New options menu feature: table/kanban switching
This feature is the last one of the Optino Menu v2 update. It is designed to enable the possibility to switch from table to kanban and vice-versa.
Only the default tab is not editable for consitency in the UX of the application as designed by our team