Skip to content

Enhancement: Improve CollectionItem collapse behaviour and UX #5014

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sanish-bruno
Copy link
Collaborator

@sanish-bruno sanish-bruno commented Jun 30, 2025

Before

Screen.Recording.2025-07-01.at.11.07.55.AM.mov

After

Screen.Recording.2025-06-30.at.6.50.46.PM.mov

Description

Jira - ticket

Fixes #4832

Currently, when a user clicks on the collection or folder name (not the caret icon), two actions are triggered simultaneously:

  • The collection/folder folds or unfolds

  • The settings panel opens

This behavior is inconsistent and unintuitive, particularly when the collection/folder is already unfolded.

Additionally, we didn't have a hover style or active style for collection name unlike in the case for folders and files. This will help us spot the collection which is active within the tab.

Expected Behavior:

  • When folder is folded, clicking on the name should unfold it and open settings (same as current behavior).

  • When folder is unfolded, clicking on the name should only open settings — it should not fold the folder/collection.

  • Hover, Active styles for collection name

Fixes

  • Added useSelector to determine if a collection is focused in the active tab.
  • Updated dispatch logic to collapse collections only when they are already collapsed.
  • Enhanced styling for focused collections in the sidebar to improve user experience.

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

… dispatching

- Added `useSelector` to determine if a collection is focused in the active tab.
- Updated dispatch logic to collapse collections only when they are already collapsed.
- Enhanced styling for focused collections in the sidebar to improve user experience.
@sanish-bruno sanish-bruno changed the title fix collapse behaviour and enhance collection component with focused state Enhancement: Improve CollectionItem collapse behaviour and UX Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Folder folding feature
3 participants