Skip to content

fix(webapp): retain sidebar active highlight on detail pages (#5094) - #5156

Closed
Aayush-207 wants to merge 2 commits into
triggerdotdev:mainfrom
Aayush-207:fix/sidebar-active-highlight-detail-pages
Closed

Aayush-207 wants to merge 2 commits into
triggerdotdev:mainfrom
Aayush-207:fix/sidebar-active-highlight-detail-pages

Conversation

@Aayush-207

Copy link
Copy Markdown

Closes #5094

? Checklist

  • I have followed every step in the contributing guide
  • The PR title follows the convention.
  • I ran and tested the code works

Testing

  1. Added comprehensive unit test suite in �pps/webapp/test/sideMenuItem.test.ts (13 tests) verifying:
    • Exact route matching.
    • Prefix matching for nested child routes (/runs/:id, /runs/:id/stream).
    • Guard against partial name matches that are sibling routes (e.g. /runs-metrics does not match /runs, /concurrency-limits does not match /concurrency).
    • Custom string and string array prefix matching for Tasks (matching /tasks/standard/, /tasks/scheduled/, /tasks/stream, /tasks/dashboard, and /agents/*, while rejecting sibling routes like /runs, /batches, /settings).
  2. Added unit test in �pps/webapp/test/sideMenuSections.test.ts verifying that detail-bearing section items (prompts, models, errors, queues, dashboards, deployments, �pi-keys, environment-variables, waitpoint-tokens, �atches, �ulk-actions) have matchPrefix: true.
  3. Ran Vitest test suite (23/23 tests passed).
  4. Ran oxlint ( warnings, 0 errors).

Changelog

Retain sidebar active highlight when navigating from section list pages to nested detail pages (Tasks, Runs, Sessions, Webhooks, Errors, Batches, Deployments, Bulk Actions, Waitpoint Tokens, Dashboards, Prompts, Models, API Keys, Environment Variables).


Screenshots

N/A (navigation logic fix)

??

@changeset-bot

changeset-bot Bot commented Nov 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c24d5cf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@github-actions

Copy link
Copy Markdown
Contributor

Hi @Aayush-207, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md for more details.

@github-actions github-actions Bot closed this Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

bug: Bug: Sidebar active highlight disappears on detail pages

1 participant