[WEB-3853] fix: untitled page name issue#6918
Conversation
WalkthroughThe changes modify the way page names are displayed within the header component by introducing a new helper function. The Changes
Sequence Diagram(s)sequenceDiagram
participant H as Header Component
participant G as getPageName Helper
participant S as UI Component (SwitcherLabel/CustomSearchSelect)
H->>G: Call getPageName(_page.name)
G-->>H: Return formatted name
H->>S: Pass formatted name as prop
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code Graph Analysis (1)web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(detail)/header.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (4)
✨ 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 |
Description
This update fixes the page name at switcher when the page title is 'Untitled'
Type of Change
Screenshots and Media (if applicable)
Test Scenarios
References
WEB-3853
Summary by CodeRabbit