bug: Bug: Sidebar active highlight disappears on detail pages

Aperta
#5,094 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@dhruvil-codes ci sta già lavorando.

Dal 4/11/2026.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Start in apps/webapp/app/components/navigation/SideMenuItem.tsx, where the active state is likely computed, and check SideMenu.tsx and sideMenuSections.tsx for how each section's route is passed in. Reproduce by opening Tasks or Runs, then opening a single task or run, and confirm the parent item loses its highlight. Done when the parent stays highlighted on detail routes without other items lighting up.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
16.5k
Fork
1.5k
Merge medio
1g 15h
PR unite (30g)
17

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di triggerdotdev/trigger.dev

Tutte le issue di triggerdotdev/trigger.dev

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.