bug: Bug: Sidebar active highlight disappears on detail pages

オープン
#5,094 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@dhruvil-codes がすでに取り組んでいます。

2026年11月4日 から。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
TypeScript
スター
16.5k
フォーク
1.5k
平均マージ
1日 15時間
マージ済み PR(30日)
17

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

triggerdotdev/trigger.dev のほかの issue

triggerdotdev/trigger.dev の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。