The sign-up dialog's "See alternatives" link looks out of place, and is too small to tap on a phone
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 88/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- react, tailwindcss, typescript
调研方向
阅读 src/app/s/[slug]/commit-dialog.tsx,并将链接与 src/app/s/[slug]/c/[id]/edit-form.tsx 中的次要按钮进行比较;查看 src/app/s/[slug]/slot-format.ts 中关于手机触控目标尺寸的指导。仅更新链接样式,并在手机和桌面宽度下检查对话框和底部弹层。完成标准:链接与次要按钮一致,在手机上至少高 44px,且所列检查均通过。
由索引模型根据 Issue 内容生成。
描述
What happens
When a slot fills while someone is signing up, the dialog shows "Sorry, this slot just filled up." / "Pick another slot." and, under them, a See alternatives link (CommitDialog in src/app/s/[slug]/commit-dialog.tsx).
The link is styled inline-block rounded bg-white px-2 py-1 underline and sits inside the red FormError box. The result is a small white chip with underlined red text: it reads as neither a button nor a plain link, and it doesn't match any other action on the participant pages.
- It doesn't look like our buttons. Elsewhere on the participant pages, a secondary action in a red box is a bordered white button (
rounded-lg border border-surface-sunk bg-white px-3 py-1.5 text-xs font-medium), like Keep in the cancel confirmation insrc/app/s/[slug]/c/[id]/edit-form.tsx. - It's too small to tap. At
text-xswithpy-1it's about 24px tall. The slot rows' actions are at least 44px on phones (min-h-11, see the comment insrc/app/s/[slug]/slot-format.ts), and participants mostly arrive on phones.
Found while tophatting #806, which only changes when the link shows, not how it looks.
Fix, in outline
- Style the link like the existing secondary button above (same classes, or a shared one if a second copy would appear), with
max-sm:min-h-11so it's a comfortable tap target on phones. - Keep it an
<a href="/s/<slug>">, keep the words "See alternatives", and keep it inside theFormErrorbox under the message. - Drop the wrapper
div'sspace-y-1if it no longer does anything (it has one child).
Watch for
- Only the look changes. When the link shows (
offersAlternatives, once #806 lands), where it goes and its text stay the same. - Related, maybe separate: clicking it just reloads the signup page. It doesn't point at the slots the server suggested, so the participant still has to find an open one themselves. Worth a look while here, but fine to split into its own issue.
- Check it at phone width (390px) and desktop, in the bottom sheet as well as the dialog.
Done when
- See alternatives looks like the other secondary buttons on the participant pages and is at least 44px tall on phones.
pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm testpass.
- 主要语言
- TypeScript
- 星标
- 19
- 派生
- 4
- 平均合并
- 19 小时 15 分钟
- 30 天内合并 PR
- 205
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
richshaw/OpenSignup 的其他 Issue
-
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 于 1 天前认领。 未关闭enhancement good first issue pipeline:ready
难度 2/5 1-3 小时 新手友好度 25/100
richshaw/OpenSignup#803 ·
维护者通常 1 天内回复
-
A failed database query logs its parameters, so OAuth tokens and participant details can end up in the logs可能已有人在做 @richshaw 于 2 天前认领。 未关闭bug pipeline:building
richshaw/OpenSignup#800 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 richshaw/OpenSignup 的全部 Issue
相似的 Issue
-
desktop v3 windows
难度 2/5 1-3 小时 新手友好度 75/100
esengine/DeepSeek-Reasonix#15016 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
readest/readest#7413 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement good first issue priority: medium size: XS
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
content triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
eliasstravik/herdr-projects#788 ·