Skip to content

chore: allow right-click opening of sidebar links and table entries - #1412

Merged
harshil-2096 merged 12 commits into
mainfrom
chore/hv/allow-right-click-for-sidebar-and-table-items
Dec 3, 2026
Merged

harshil-2096 merged 12 commits into
mainfrom
chore/hv/allow-right-click-for-sidebar-and-table-items

Conversation

@harshil-2096

@harshil-2096 harshil-2096 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes AGE-2768

Changes

How was this tested?

Checklist

  • I have read the contributing guidelines
  • 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, python/trueforge_sdk, .github/fern/openapi/openapi.json, docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge
  • Docs / .env.example updated if configuration or behavior changed

Note

Low Risk
Navigation and URL-building only; in-app click behavior is unchanged aside from added real hrefs for new-tab flows.

Overview
Introduces ShellLink, a primitive that renders a real anchor with a resolved href while plain left-clicks still run the existing shell onNavigate handlers (no full reload). Cmd/Ctrl-click, middle-click, and right-click “open in new tab” use the browser default.

Sidebar and shell chrome (Agents, Sessions, Schedules, Environments, Settings, New Chat, New Agent) and library table actions (agent name, Chat) are switched from buttons to ShellLink where routing is available; missing routes fall back to a button.

Table and list deep links gain shareable URLs: thread list rows, agent session rows (buildAgentSessionShareHref), schedule names on SchedulesPage, and schedule run chips (sessionHrefForRun). New helpers include buildPlaceHref, sessionsBrowserOpenSearch, openScheduleByIdSearch, and a relative buildAgentSessionShareHref.

New-tab URLs start from the current query string so host params (e.g. theme) are preserved on schedule run chips and embedded schedule links; embedded agent schedules tab sanitization now keeps scheduleId. ShellLink is exported from the package; unit and integration tests cover link behavior and host-param preservation.

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

@changeset-bot

changeset-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 76a5b69

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

This PR includes changesets to release 1 package
Name Type
@truefoundry/trueforge-ui 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

@veria-ai

veria-ai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

PR overview

No security issues were found in this pull request.

Reviews

@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.

Stale Bugbot comment from a previous run.

@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.

Stale Bugbot comment from a previous run.

…-for-sidebar-and-table-items

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	packages/trueforge-ui/src/atoms/AgentsLibraryButton.tsx
#	packages/trueforge-ui/src/atoms/EnvironmentsButton.tsx
#	packages/trueforge-ui/src/atoms/SchedulesButton.tsx
#	packages/trueforge-ui/src/atoms/SessionsBrowserButton.tsx
#	packages/trueforge-ui/src/atoms/ShellActions.tsx
#	packages/trueforge-ui/src/atoms/ThreadListRow.tsx
#	packages/trueforge-ui/src/containers/ThreadListContainer.tsx
#	packages/trueforge-ui/src/layouts/SidebarLayout.tsx
#	packages/trueforge-ui/src/utils/sessionShareUrl.ts
@datadog-official

This comment has been minimized.

@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.

Stale Bugbot comment from a previous run.

harshil-2096 and others added 2 commits November 20, 2026 15:42
…-for-sidebar-and-table-items

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	packages/trueforge-ui/src/atoms/schedules/SchedulesPage.tsx
Co-authored-by: Cursor <cursoragent@cursor.com>

@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.

Stale Bugbot comment from a previous run.

…-for-sidebar-and-table-items

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	packages/trueforge-ui/src/atoms/AgentsLibrary.tsx
#	packages/trueforge-ui/src/atoms/EnvironmentsButton.tsx
#	packages/trueforge-ui/src/atoms/SchedulesButton.tsx
#	packages/trueforge-ui/src/atoms/SessionsBrowserButton.tsx
#	packages/trueforge-ui/src/atoms/ThreadListRow.tsx
#	packages/trueforge-ui/src/layouts/SidebarLayout.tsx

@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 139c127. Configure here.

…-for-sidebar-and-table-items

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	packages/trueforge-ui/src/containers/ThreadListContainer.tsx
@harshil-2096
harshil-2096 enabled auto-merge (squash) December 3, 2026 04:09
@harshil-2096
harshil-2096 merged commit 636ba80 into main Dec 3, 2026
13 checks passed
@harshil-2096
harshil-2096 deleted the chore/hv/allow-right-click-for-sidebar-and-table-items branch December 3, 2026 04:14
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