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

Option-menu-switch-table-kanban #11167

Merged
merged 17 commits into from
Mar 27, 2025
Merged

Conversation

guillim
Copy link
Contributor

@guillim guillim commented Mar 25, 2025

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

@guillim guillim self-assigned this Mar 25, 2025
@guillim guillim marked this pull request as ready for review March 25, 2025 16:36
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

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

Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

See comments!

@guillim guillim requested a review from charlesBochet March 27, 2025 14:10
switch (viewType) {
case ViewType.Kanban: {
if (availableFieldsForKanban.length === 0) {
throw new Error('No fields for kanban - should not happen');
Copy link
Collaborator

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

@charlesBochet charlesBochet merged commit 4eefa45 into main Mar 27, 2025
29 checks passed
@charlesBochet charlesBochet deleted the option-menu-switch-table-kanban branch March 27, 2025 15:49
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.

3 participants