[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routes
メンテナーはふだん 20 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 80/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- go, react, typescript
- 領域
- full-stack
調査の方向性
まず frontend/src/App.tsx のルートテーブルを読んで、どのパスが存在するか(/community、/team-builder)と、frontend/src/components/Header.tsx がどのように navigate(notification.link) を呼び出しているかを確認する。次に、backend/controllers/comment_controller.go の112行目と138行目付近、および backend/controllers/team_controller.go の393行目付近にある保存済みのリンク文字列を修正する。通知タイプごとにリンクを検証するバックエンドテストを追加し、各通知が実際のルートに到達するようになったことを確認する。完了とは、どの通知も404や誤ったルームに解決されない状態を指す。
索引モデルが issue の本文から書いたものです。
説明
Bug Description
Three of the in-app notifications created by the backend store a link that does not match any working frontend route. When the user clicks the notification in the header bell (Header.tsx → navigate(notification.link)), they end up on the wrong page, on an error toast, or on the 404 page.
| Notification | Created in | Stored link |
What happens when clicked |
|---|---|---|---|
| "New Reply" (someone replied to your comment) | backend/controllers/comment_controller.go L112 |
/debate/<transcriptId> |
Matches debate/:roomId → DebateRoom (the bot debate room). There is no debate state, so it shows "Debate Session Not Found" and redirects to /startDebate. |
| "New Comment" (someone commented on your debate/post) | backend/controllers/comment_controller.go L138 |
/view-debate/<transcriptId> |
Matches view-debate/:debateID → ViewDebate, the live spectator view. It opens a debate WebSocket using the transcript ID as a live debate ID, so the user sees an empty or broken live room instead of the comment. |
| "New Team Member" (someone joined your team) | backend/controllers/team_controller.go L393 |
/team/<teamId> |
No /team/:id route exists in frontend/src/App.tsx → NotFound (404). |
Comments are only displayed in CommunityFeed (/community) and in SavedTranscripts on /profile. Team management lives at /team-builder. None of the stored links point there.
Steps to Reproduce
- User A publishes a saved transcript as a community post (or has a saved transcript).
- User B comments on it → User A gets a "New Comment" notification. Click it → user A lands on the live spectator room
/view-debate/<transcriptId>, not the comment. - User A replies to User B's comment → User B gets a "New Reply" notification. Click it → "Debate Session Not Found" toast and a redirect to
/startDebate. - User C joins User A's team → User A gets a "New Team Member" notification. Click it → 404 page.
Expected Behaviour
Clicking a notification should open the page where the related content can be seen, for example:
- comment/reply notifications →
/community(or a dedicated post/transcript page, ideally scrolling to the comment) - team join notification →
/team-builder
Suggested Fix
- Update the
linkvalues inCreateCommentHandlerandJoinTeamto point at existing routes (or add a dedicated/post/:id//team/:idroute on the frontend if maintainers prefer). - Optionally keep notification route strings in one place (shared constants) so backend links don't drift from
App.tsxroutes again. - Add a small backend test asserting the link created for each notification type.
Note: existing notifications already stored in MongoDB will keep the old links, so a one-off migration or a frontend fallback may also be worth discussing.
Environment Details
- Checked on
main@95b24b5 - Frontend routes:
frontend/src/App.tsx; notification click handler:frontend/src/components/Header.tsx
Impact
Medium - Feature works but has issues
Code of Conduct
- I have searched existing issues to avoid duplicates
- 主要言語
- TypeScript
- スター
- 108
- フォーク
- 266
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AOSSIE-Org/DebateAI のほかの issue
-
[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routes再び着手できるかも @unnati-jaiswal24 が 7 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AOSSIE-Org/DebateAI#811 · コメント 2 件 ·
メンテナーはふだん 20 日以内に返信
-
[BUG]: Inverted Mic icon causes input confusion in Bot Debate Room対応中かも @Rusky-1014 が 12 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
AOSSIE-Org/DebateAI#802 ·
メンテナーはふだん 20 日以内に返信
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument page対応中かも @sujitkr268 が 6 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AOSSIE-Org/DebateAI#801 · コメント 2 件 ·
メンテナーはふだん 20 日以内に返信
-
[BUG]: Singleton state leak in matchmaking tests causes non-deterministic failures対応中かも @mithunkc017-ship-it が 15 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
AOSSIE-Org/DebateAI#798 · コメント 3 件 ·
メンテナーはふだん 20 日以内に返信
-
[BUG]: Live Debate Rooms page overflows horizontally on mobile screens再び着手できるかも @SYED-IRTEZA-HUSSAIN-RIZVI が 15 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
AOSSIE-Org/DebateAI#797 · コメント 4 件 ·
メンテナーはふだん 20 日以内に返信
AOSSIE-Org/DebateAI の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
review-followup
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
griffinwork40/agent-afk#5387 ·
メンテナーはふだん 1 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
CodeManufactoryLLC/Code60#358 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
android:plan ios:plan main:plan packages:learn
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信