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

fix: Default View Font Color and Reordering #7940

Merged

Conversation

nganphan123
Copy link
Contributor

This PR fixes issue #6114
I removed the separate check for default item and add it into the draggable list.

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 addresses the default view font color and reordering issue in the ViewPickerListContent component.

  • Removed separate handling for default view (key 'INDEX') and integrated it into the DraggableList
  • Enabled reordering of the default view along with other views
  • Unified font color for all views, including the default view, to primary color
  • Maintained consistent icon display behavior for default and custom views
  • Simplified component structure by removing conditional rendering based on view type

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

Copy link
Member

@Weiko Weiko left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@Weiko Weiko merged commit 45b3992 into twentyhq:main Oct 23, 2024
16 checks passed
Copy link

oss-gg bot commented Oct 23, 2024

Awarding nganphan123: 300 points 🕹️ Well done! Check out your new contribution on oss.gg/nganphan123

@FelixMalfait
Copy link
Member

@Weiko I was just reviewing at the same time, I think it's missing a change so that it also reorders the sidebar

@nganphan123
Copy link
Contributor Author

Hi @FelixMalfait , could you let me know which part of the sidebar you mentioned? I'll make any changes if needed.

@FelixMalfait
Copy link
Member

@nganphan123 thanks a lot! Ping me and we can award 150 more points for the fix

The problem is the order here in the left sidebar which isn't affected in the same way

Screenshot 2024-10-24 at 08 53 56

@nganphan123
Copy link
Contributor Author

Got it! I'll work on that.

@nganphan123
Copy link
Contributor Author

Hi @FelixMalfait , I couldn't reproduce the issue above. When I reorder, the left navigation bar is also updated. Is this the one you were talking about?

Screencast.from.2024-10-24.13-20-52.webm

@FelixMalfait
Copy link
Member

@nganphan123 sorry I missed your reply. Yes that's what I was talking about. Strange I still have the issue on my side! I will check and come back to you

@FelixMalfait
Copy link
Member

Screenshot 2024-10-27 at 16 09 34

@FelixMalfait
Copy link
Member

Oh I think I know why, there's a feature flag with 2 different ways of building the menu. You probably don't have that feature flag enabled (isWorkspaceFavoriteEnabled)

FelixMalfait added a commit that referenced this pull request Oct 27, 2024
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.

4 participants