You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This pull request introduces a unified mechanism for dynamically updating the browser page title across the Label Studio web application. The main enhancement is the addition and integration of the useUpdatePageTitle hook and supporting utilities, which allow each page to set a contextually appropriate title, often including both the page name and project name. This improves user experience and navigation clarity.
Page Title Management
Added the useUpdatePageTitle hook and supporting utilities (setPageTitle, getPageTitle, createTitleFromSegments) in web/libs/core/src/hooks/usePageTitle.ts, enabling consistent dynamic page title updates throughout the app. [1][2]
Extended page title logic to the account settings section, ensuring the title reflects the current subsection or defaults to "My Account". [1][2]
Backend Support
Added the page_title property to the template context in label_studio/templates/base.html, allowing the frontend to access and use the base title for dynamic updates.
These changes collectively enhance navigation clarity and branding by ensuring the browser tab title always reflects the user's current context in the application.
❌ Patch coverage is 31.57895% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.40%. Comparing base (776448f) to head (3031717). ⚠️ Report is 6 commits behind head on develop.
✅ All tests successful. No failed tests found.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a unified mechanism for dynamically updating the browser page title across the Label Studio web application. The main enhancement is the addition and integration of the
useUpdatePageTitlehook and supporting utilities, which allow each page to set a contextually appropriate title, often including both the page name and project name. This improves user experience and navigation clarity.Page Title Management
useUpdatePageTitlehook and supporting utilities (setPageTitle,getPageTitle,createTitleFromSegments) inweb/libs/core/src/hooks/usePageTitle.ts, enabling consistent dynamic page title updates throughout the app. [1] [2]Integration Across Pages
Integrated
useUpdatePageTitleinto key pages (HomePage,ProjectsPage,ModelsPage,PeoplePage, and all major settings pages) to set descriptive titles, often combining project name and page context. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]Extended page title logic to the account settings section, ensuring the title reflects the current subsection or defaults to "My Account". [1] [2]
Backend Support
page_titleproperty to the template context inlabel_studio/templates/base.html, allowing the frontend to access and use the base title for dynamic updates.These changes collectively enhance navigation clarity and branding by ensuring the browser tab title always reflects the user's current context in the application.