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

Fixes Remove Compact View From Kanban View Sub Options Menu's ( #6116 ) #6453

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

Faisal-imtiyaz123
Copy link
Contributor

@Faisal-imtiyaz123 Faisal-imtiyaz123 commented Jul 30, 2024

fixes #6116

@Faisal-imtiyaz123 Faisal-imtiyaz123 changed the title Fixes Remove Compact View From Kanban View Sub Options Menu's ( Fixes Remove Compact View From Kanban View Sub Options Menu's ( #6116 ) Jul 30, 2024
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

The update ensures that Kanban-specific options are only displayed when no sub-menu is active, enhancing user experience.

  • Added condition to check if currentMenu is undefined before rendering Kanban view options in packages/twenty-front/src/modules/object-record/record-index/options/components/RecordIndexOptionsDropdownContent.tsx.
  • Ensures Kanban-specific options are hidden when a sub-menu is active.
  • No security or performance issues identified.
  • Important to verify currentMenu management throughout the component lifecycle.

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

@@ -198,7 +198,7 @@ export const RecordIndexOptionsDropdownContent = ({
</>
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Ensure currentMenu state is correctly managed to avoid unintended side effects.

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 @Faisal-imtiyaz123!

@Weiko Weiko merged commit 70f9df7 into twentyhq:main Jul 30, 2024
11 checks passed
Copy link

Thanks @Faisal-imtiyaz123 for your contribution!
This marks your 0th PR on the repo. You're top 0% of all our contributors 🎉
See contributor page - Share on LinkedIn - Share on Twitter

Contributions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove "Compact View" Toggle from L2 Kanban Option Menu
2 participants