[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routes
Los mantenedores suelen responder en 20 días
@mithunkc017-ship-it ya está trabajando en esto.
Desde el 25/11/2026.
- #815 de @mithunkc017-ship-it — abierto
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 80/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go, react, typescript
- Área
- full-stack
Línea de trabajo
Empieza leyendo la tabla de rutas en frontend/src/App.tsx para confirmar qué rutas existen (/community, /team-builder) y cómo frontend/src/components/Header.tsx llama a navigate(notification.link). Después corrige las cadenas de enlace almacenadas en backend/controllers/comment_controller.go alrededor de las líneas 112 y 138 y en backend/controllers/team_controller.go alrededor de la línea 393. Añade una prueba de backend que verifique el enlace por tipo de notificación y comprueba que cada notificación ahora llegue a una ruta real. Terminado significa que ninguna notificación resuelve a un 404 ni a la sala equivocada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 108
- Forks
- 266
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AOSSIE-Org/DebateAI
-
[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routesQuizá libre de nuevo @unnati-jaiswal24 la tomó hace 7 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
AOSSIE-Org/DebateAI#811 · 2 comentarios ·
Los mantenedores suelen responder en 20 días
-
[BUG]: Inverted Mic icon causes input confusion in Bot Debate RoomPosiblemente ocupada @Rusky-1014 la tomó hace 12 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
AOSSIE-Org/DebateAI#802 ·
Los mantenedores suelen responder en 20 días
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument pagePosiblemente ocupada @sujitkr268 la tomó hace 6 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
AOSSIE-Org/DebateAI#801 · 2 comentarios ·
Los mantenedores suelen responder en 20 días
-
[BUG]: Singleton state leak in matchmaking tests causes non-deterministic failuresPosiblemente ocupada @mithunkc017-ship-it la tomó hace 15 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
AOSSIE-Org/DebateAI#798 · 3 comentarios ·
Los mantenedores suelen responder en 20 días
-
[BUG]: Live Debate Rooms page overflows horizontally on mobile screensQuizá libre de nuevo @SYED-IRTEZA-HUSSAIN-RIZVI la tomó hace 15 días y no hay ningún pull request abierto. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
AOSSIE-Org/DebateAI#797 · 4 comentarios ·
Los mantenedores suelen responder en 20 días
Todos los issues de AOSSIE-Org/DebateAI
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
-
review-followup
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
griffinwork40/agent-afk#5387 ·
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
CodeManufactoryLLC/Code60#358 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
android:plan ios:plan main:plan packages:learn
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día