Skip to content

Update dependencies and enhance routing in TrueForge UI - #300

Merged
govindavashishtha merged 4 commits into
mainfrom
chore/gv/router-customisation
Aug 17, 2026
Merged

govindavashishtha merged 4 commits into
mainfrom
chore/gv/router-customisation

Conversation

@govindavashishtha

@govindavashishtha govindavashishtha commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor
  • Added version 7.18.2 to dependencies.
  • Updated to include in frontend and trueforge-ui packages.
  • Implemented functionality in to enable URL routing.
  • Introduced routing utilities and components for managing application state and URL synchronization.
  • Added tests for routing functionality and derived places in the chat shell.

This update improves navigation and state management within the TrueForge UI, allowing for better integration with browser history and deep linking.

Summary

Closes #

Changes

How was this tested?

Checklist

  • pnpm build, pnpm test, pnpm typecheck, pnpm lint:ci, and pnpm format:check pass locally
  • Tests added/updated where it makes sense
  • No hand-edits to generated code (packages/trueforge-sdk, .github/fern/openapi/openapi.json, docs/openapi.json)
  • Docs / .env.example updated if configuration or behavior changed

Note

Medium Risk
Touches shell navigation, URL↔state sync, and server static hosting for deep links; session resolution depends on async getSession, but behavior is well tested and routing remains opt-in.

Overview
Adds opt-in browser URL sync for TrueForgeUI via withRouter, with customizable routes (basename, per-place paths or false to disable). Shell places map to /, /agents/:agentName, /sessions/:sessionId, and /settings; shell state stays authoritative while ShellRouteSync mirrors it bidirectionally (boot favors the URL; query/hash preserved). Router code is lazy-loaded so react-router-dom is an optional peer and stays out of the default bundle.

Shell logic moves into TrueForgeUIShell; RemoteIdRouteBridge lifts the active thread remote id for session URLs. Session deep links call getSession so mutability and agent binding are correct. openLibraryHome supports library-only root navigation. Docs cover routing behavior and SPA hosting requirements.

The frontend app enables withRouter and adds react-router-dom. TrueForge server serves index.html for HTML navigations to client-only paths (after static files), with tests. Routing utilities and integration tests cover paths, derive-place rules, sync, and end-to-end flows.

Reviewed by Cursor Bugbot for commit bf72044. Bugbot is set up for automated code reviews on this repo. Configure here.

- Added  version 7.18.2 to dependencies.
- Updated  to include  in frontend and trueforge-ui packages.
- Implemented  functionality in  to enable URL routing.
- Introduced routing utilities and components for managing application state and URL synchronization.
- Added tests for routing functionality and derived places in the chat shell.

This update improves navigation and state management within the TrueForge UI, allowing for better integration with browser history and deep linking.
@changeset-bot

changeset-bot Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bf72044

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@truefoundry/trueforge-ui Minor
@truefoundry/trueforge Patch
frontend Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment thread packages/trueforge-ui/package.json Resolved
@govindavashishtha
govindavashishtha enabled auto-merge (squash) August 17, 2026 11:33

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 68f2ec6. Configure here.

@govindavashishtha
govindavashishtha merged commit 9a4d1a7 into main Aug 17, 2026
10 checks passed
@govindavashishtha
govindavashishtha deleted the chore/gv/router-customisation branch August 17, 2026 11:48
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.

2 participants