[WEB-3872]chore: header switcher enhancements#6935
[WEB-3872]chore: header switcher enhancements#6935sriramveeraghanta merged 2 commits intopreviewfrom
Conversation
* fix: switcher close on click
WalkthroughThis set of changes refactors the header components for cycles, modules, pages, and views within the project detail area of the application. The update removes the use of inline link wrappers in dropdown switchers, replacing them with programmatic navigation via router push in the dropdown's onChange handler. Several unused imports, local icon logic, and redundant components are removed. Styling adjustments are made for alignment and sizing. Additionally, a new Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Dropdown
participant Router
User->>Dropdown: Selects an option (cycle/module/page/view)
Dropdown->>Router: Calls router.push(selectedOption.url)
Router-->>User: Navigates to selected page
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
🧰 Additional context used🧬 Code Graph Analysis (4)web/core/components/common/page-access-icon.tsx (1)
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(detail)/header.tsx (2)
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(detail)/[viewId]/header.tsx (2)
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(detail)/header.tsx (2)
🔇 Additional comments (24)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Pull Request Linked with Plane Work Items
Comment Automatically Generated by Plane |
* * chore: alignment and size for header * fix: switcher close on click * chore: moved acces icon component to components
Description
This PR includes - icon alignments and size fixes for header, fix for closing dropdown on switch.
Type of Change
Screenshots and Media (if applicable)
Test Scenarios
References
WEB-3872
Summary by CodeRabbit
New Features
Improvements
Bug Fixes