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

Force order in navigation panel for notes and tasks #6557

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

thomtrp
Copy link
Contributor

@thomtrp thomtrp commented Aug 6, 2024

As title. Tasks and Notes order sometimes change

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 pull request introduces a new constant ORDERED_STANDARD_OBJECTS in the ObjectMetadataNavItems component to enforce a consistent order for standard objects in the navigation panel.

  • Added ORDERED_STANDARD_OBJECTS array in packages/twenty-front/src/modules/object-metadata/components/ObjectMetadataNavItems.tsx
  • Updated filtering logic to include 'task' and 'note' in the ordered list of standard objects
  • Modified sorting algorithm to maintain consistent positioning of standard objects, including tasks and notes
  • Ensures consistent order of navigation items, addressing the issue of tasks and notes changing positions

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@Weiko
Copy link
Member

Weiko commented Aug 6, 2024

Not sure why we maintain this list, this should be handled differently imho. LGTM for now!

@Weiko Weiko merged commit 1ed31d9 into main Aug 6, 2024
7 of 13 checks passed
@Weiko Weiko deleted the tt-force-the-order-of-notes-and-tasks branch August 6, 2024 16:24
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