Conversation
App now accepts a title parameter (default "COMPAS ThreeJS"), passed to the frontend as a `title` query param on the viewer URL so each App instance/page can show its own tab title. Workspace.open_in_browser accepts an optional title override, falling back to the App's own title, encoded into the opened URL's `title` query param that the frontend's createViewer() already reads (compas_threejs_ts#36fd78a). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Shows App(title=...) for the main workspace and Workspace.open_in_browser(title=...) for a per-workspace override, mirroring compas_threejs_ts's examples/embedded_tab_title.html. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
ericgozzi
added this pull request to stack #56
September 21, 2026 13:04
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 adds support for customizing the browser tab title in the COMPAS ThreeJS viewer, both at the application and per-workspace levels. It introduces a new
titleparameter to theAppclass, ensures this title is propagated to the frontend via the URL, and allows overriding the title for individual workspaces when opening them in a browser. An example script demonstrates this new functionality.Browser Tab Title Customization:
titleparameter to theAppclass, allowing users to set a custom browser tab title for the viewer page (defaults to "COMPAS ThreeJS"). This title is included as a query parameter in URLs generated by the app. (src/compas_threejs/viewer/app.py,CHANGELOG.md) [1] [2] [3] [4] [5]Workspace.open_in_browser()method to accept an optionaltitleargument, enabling per-workspace tab titles that override the app's default. The title is URL-encoded and included in the browser URL. (src/compas_threejs/viewer/workspace.py) [1] [2]Documentation and Examples:
examples/tab_title.pythat demonstrates how to set the app and workspace tab titles, including launching a detail view with a custom title.