bug: Bug: Sidebar active highlight disappears on detail pages

Aberta
#5,094 1 comentário 1 reação 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@dhruvil-codes já está trabalhando nisso.

Desde 4/11/2026.

Avaliação

Dificuldade
3/5
Tempo estimado
Meio dia
Facilidade para iniciantes
62/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
react, typescript
Domínio
frontend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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
Linguagem predominante
TypeScript
Estrelas
16.5k
Forks
1.5k
Merge médio
1d 15h
PRs com merge (30d)
17

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de triggerdotdev/trigger.dev

Todas as issues de triggerdotdev/trigger.dev

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.