Two breadcrumb pages belong to URLs that always redirect, so they never show
维护者通常 1 天内回复
评估
这个 Issue 还没有评估数据。
描述
What happens
The organizer breadcrumb is a parallel route, src/app/app/(chrome)/@crumbs. Two of its pages pair with organizer pages that do nothing but redirect, so neither crumb is ever seen.
@crumbs/signups/[id]/edit/page.tsx(22 lines). It loads the signup withloadSignupForOrganizerand renders "‹title› › Edit": a hand copy of whatSignupTitleCrumb(src/components/chrome/SignupTitleCrumb.tsx) does, plus an "Edit" crumb. Its page,signups/[id]/edit/page.tsx, only redirects to/settings. It stays for old links;src/mcp/links.tssays as much.@crumbs/signups/[id]/page.tsx(1 line, re-exportsSignupTitleCrumb). Its page,signups/[id]/page.tsx, only redirects to/build.
The slot does render on the redirected request, but only into the 307 response body, which the browser throws away. The final page shows its own crumb. "Edit" never appears anywhere.
Fix, in outline
- Delete
src/app/app/(chrome)/@crumbs/signups/[id]/edit/page.tsxand its now-emptyedit/folder. - Delete
src/app/app/(chrome)/@crumbs/signups/[id]/page.tsx. - Keep both redirect pages.
/app/signups/<id>is linked from the dashboard and from the New signup action, and/editserves old links.@crumbs/default.tsx(returns null) covers both URLs once the slot pages are gone.
Watch for
- Restart a running dev server after deleting them.
pnpm devkeeps a stale reference and returns 500 ("Can't resolve …@crumbs/signups/[id]/edit/page") until restarted. That's the dev build, not a real problem. - Don't expect a query saving. Statement counts on both redirected URLs were the same with and without the crumb files: the crumb's reads are deduped by React
cache()againstsignups/[id]/layout.tsx. This is about dead code and a stray copy ofSignupTitleCrumb, not speed. - No visible change. Every organizer page's breadcrumb should read the same before and after.
Done when
- Both files are gone, and nothing else under
@crumbschanged. - Opening
/app/signups/<id>and/app/signups/<id>/editstill lands on/buildand/settingswith "OpenSignup › ‹title›", by hard and by soft navigation. The existing e2e specs that open/app/signups/<id>still pass. pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm testpass.
Found by the pipeline's refactor scout in the organizer chrome (src/app/app/(chrome)), at be0c273. Checked by an independent verify agent that ran the app with the two files and without them. It compared the redirects (307 to /settings and /build), the breadcrumb after hard and soft navigation, and the Postgres statement counts: all identical. https://claude.ai/code/session_016YZ9SS4Qrr2sRQj4bhaMwW
- 主要语言
- TypeScript
- 星标
- 19
- 派生
- 4
- 平均合并
- 18 小时 44 分钟
- 30 天内合并 PR
- 211
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
richshaw/OpenSignup 的其他 Issue
-
The sign-up dialog's "See alternatives" link looks out of place, and is too small to tap on a phone未关闭enhancement
难度 2/5 1-3 小时 新手友好度 88/100
richshaw/OpenSignup#810 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 74/100
richshaw/OpenSignup#794 ·
维护者通常 1 天内回复
-
enhancement pipeline:proposed pipeline:ux
难度 2/5 1-3 小时 新手友好度 72/100
richshaw/OpenSignup#654 ·
维护者通常 1 天内回复
-
enhancement
难度 3/5 1-2 天 新手友好度 55/100
richshaw/OpenSignup#816 ·
维护者通常 1 天内回复
-
The sign-up dialog decides "See alternatives" with its own copy of the rule behind "Pick another slot."可能已有人在做 @dafeiyupola 于 3 天前认领。 未关闭enhancement good first issue pipeline:ready
难度 2/5 1-3 小时 新手友好度 25/100
richshaw/OpenSignup#803 ·
维护者通常 1 天内回复
查看 richshaw/OpenSignup 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
prime-radiant-inc/evener#5901 ·
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
Bug: Batcher binds the texture that opens a new batch twice (one draw call per element with maxBatchableTextures = 1)可能已有人在做 @darzarzycki 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 2 天内回复
-
area:study-data p2-high ready-for-agent type:chore
难度 2/5 1-3 小时 新手友好度 78/100
fderuiter/deruiter.dev#3706 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
nicobailon/pi-subagents#3242 ·
维护者通常 1 天内回复