Skip to content

Conversation

@rohan-chaturvedi
Copy link
Member

@rohan-chaturvedi rohan-chaturvedi commented Oct 30, 2025

🔍 Overview

Organisation names in page titles and breadcrumbs are formatted using startCase. This can unnecessarily transform them in certain cases, such as FooBar -> Foo Bar

💡 Proposed Changes

Don't apply startCase to org names

🖼️ Screenshots or Demo

Before

image

After

image

💚 Did You...

  • Ensure linting passes (code style checks)?
    - [ ] Update dependencies and lockfiles (if required)
    - [ ] Update migrations (if required)
    - [ ] Regenerate graphql schema and types (if required)
  • Verify the app builds locally?
  • Manually test the changes on different browsers/devices?

Note

Stops applying startCase to the first breadcrumb so org names retain original casing in page titles.

  • Frontend · navigation:
    • Title generation (frontend/utils/navigation.ts): Skip startCase for the first breadcrumb (org name) while keeping it for subsequent crumbs, preserving org casing in page titles.

Written by Cursor Bugbot for commit a51c6c8. Configure here.

Signed-off-by: rohan <rohan.chaturvedi@protonmail.com>
@rohan-chaturvedi rohan-chaturvedi added the frontend Change in frontend code label Oct 30, 2025
@nimish-ks
Copy link
Member

@cursor review

return crumb.label
}
return startCase(crumb.label)
})
Copy link

Choose a reason for hiding this comment

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

Bug: Breadcrumb Title Formatting Issue

The generatePageTitle function's logic to skip startCase for the first breadcrumb assumes it's always an organization name. This causes incorrect title formatting for non-team routes (e.g., "Sign Up") and when earlier breadcrumbs are filtered, leading to app names not being properly startCased.

Fix in Cursor Fix in Web

Signed-off-by: rohan <rohan.chaturvedi@protonmail.com>
…startCase correctly

Signed-off-by: rohan <rohan.chaturvedi@protonmail.com>
@nimish-ks nimish-ks merged commit f93a28d into main Oct 31, 2025
7 checks passed
@nimish-ks nimish-ks deleted the fix--breadcrumb-org-name-formatting branch October 31, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Change in frontend code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants