GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bug: Bug: Sidebar active highlight disappears on detail pages · Issue #5094 · triggerdotdev/trigger.dev

bug: Bug: Sidebar active highlight disappears on detail pages #5094

New issue
Copy link
New issue
Copy link
Open
Open
bug: Bug: Sidebar active highlight disappears on detail pages#5094
Copy link

Description

@Ashik9500
Ashik9500
opened on Nov 2, 2026
Issue body actions

Provide environment information

System:

  • OS: macOS 26.6.2
  • CPU: Apple M5 Pro (arm64)
  • Memory: 24 GB
  • Shell: zsh 5.9

Binaries:

  • Node: 22.23.2
  • npm: 10.9.8
  • Bun: 1.3.10
  • Deno: 2.9.6

Web:

  • Trigger.dev Cloud Dashboard

Browser:

  • Google Chrome 156
  • macOS 26.6.2 (arm64)

Describe the bug

The sidebar navigation item loses its active highlight when navigating from a section's main page to its detail page. This happens in sections like Tasks and Runs, making it difficult for users to identify their current location in the dashboard.

Reproduction repo

Not applicable. The issue is reproducible directly in the Trigger.dev Cloud Dashboard.

To reproduce

  1. Open a project environment in the Trigger.dev dashboard.
  2. Click on Tasks in the sidebar.
  3. Verify that Tasks is highlighted.
  4. Open any task from the list.
  5. Observe that the Tasks highlight disappears.
  6. Repeat the same steps with Runs by opening an individual run.

Suggested fix

Investigate the sidebar pathname matching logic and support prefix-based matching for nested detail routes. Ensure that the correct parent menu item remains active without affecting other navigation items.

Additional information

The issue occurs when navigating to detail pages, but not when applying filters on list pages. It appears to be related to exact pathname matching in the sidebar navigation logic.

Affected files may include:

  • apps/webapp/app/components/navigation/SideMenuItem.tsx
  • apps/webapp/app/components/navigation/SideMenu.tsx
  • apps/webapp/app/components/navigation/sideMenuSections.tsx
Reacted by Mohasin K R

Activity

  1. dhruvil-codes commented on Nov 4, 2026

    @dhruvil-codes
    dhruvil-codes
    on Nov 4, 2026
    More actions

    Hi team,

    I investigated this issue and traced the root cause in the sidebar navigation matching logic:

    Root Cause

    1. In SideMenuItem.tsx, route active status is computed as pathName === to || (matchPrefix && pathName.startsWith(${to}/)).
    2. In SideMenu.tsx, main menu items (Runs, Sessions, Webhooks) do not pass matchPrefix, so navigating to any child detail page (e.g. /runs/:id) causes exact pathname matching to fail and drops the active highlight.
    3. For Tasks, to points to the environment root (v3EnvironmentPath). Setting a naive matchPrefix on to would greedily match all sibling routes (/runs, /batches, /settings), whereas task detail pages live specifically under ${v3EnvironmentPath}/tasks/ (e.g. /tasks/standard/:id, /tasks/scheduled/:id, /tasks/stream, /tasks/dashboard).

    Proposed Solution

    1. Extend SideMenuItem: Support explicit prefix matching (e.g. allowing matchPrefix to accept a custom prefix string like ${v3EnvironmentPath}/tasks or adding an activePrefix?: string prop).
    2. Update SideMenu.tsx: Enable prefix matching on Runs, Sessions, Webhooks, and supply the /tasks sub-path prefix for Tasks.
    3. Update sideMenuSections.tsx: Ensure detail-bearing section items (batches, deployments, errors, bulk-actions, waitpoint-tokens) also enable matchPrefix: true, matching the pattern already used for alerts.
    4. Tests: Add regression unit tests in apps/webapp/test/ verifying active highlight retention across nested detail paths.

    I'd like to take this up and submit a PR with test coverage. Could you please assign this issue to me?

    Thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.