Skip to content

feat(viewer): add configurable browser tab title to App and Workspace.open_in_browser - #55

Open
ericgozzi wants to merge 3 commits into
feature/toolbar-schemafrom
feature/browser-tab-title
Open

ericgozzi wants to merge 3 commits into
feature/toolbar-schemafrom
feature/browser-tab-title

Conversation

@ericgozzi

@ericgozzi ericgozzi commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

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 title parameter to the App class, 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:

  • Added a title parameter to the App class, 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]
  • Updated the Workspace.open_in_browser() method to accept an optional title argument, 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:

  • Added a new example script examples/tab_title.py that demonstrates how to set the app and workspace tab titles, including launching a detail view with a custom title.

ericgozzi and others added 2 commits September 21, 2026 14:50
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
ericgozzi added this pull request to stack #56 September 21, 2026 13:04
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ericgozzi ericgozzi changed the title Feature/browser tab title feat(viewer): add configurable browser tab title to App and Workspace.open_in_browser Sep 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant