The gateway still confirms a remote submission with a corner toast
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 半天
- 新手友好度
- 35/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
Start in apps/gateway/src/Root.tsx, where notifications.addNotification({ type: 'success' }) shows the corner toast, and compare with apps/web, which passes savesSubmissions to InstrumentRenderer. The copy lives in packages/react-core/src/components/InstrumentRenderer/SubmissionSavedNotice.tsx. Done means the gateway passes savesSubmissions so the save is confirmed on the instrument, with the toast removed or kept as the maintainers decide, and the copy question settled.
由索引模型根据 Issue 内容生成。
描述
A remote subject who submits an assignment is told it worked by a toast in the bottom-left corner of the viewport (apps/gateway/src/Root.tsx, notifications.addNotification({ type: 'success' })), away from the instrument they were reading.
apps/web no longer does this: InstrumentRenderer now takes savesSubmissions, and the renderers confirm the save on the instrument itself — above the scalar summary, between the items of a series, and on a series' completion screen. The gateway persists every submission (it PATCHes /api/assignments/:id) but does not pass the prop, so it is the one host still on the toast, and it is the host whose reader is the person whose results they are.
Two things to settle when this is picked up:
- The copy in
packages/react-core/src/components/InstrumentRenderer/SubmissionSavedNotice.tsxis second person ("Your Results Have Been Saved"), which reads correctly for a subject and loosely for a clinician recording someone else's results. Either leave it, or make it host-supplied asLocalizedTextthe waysubmitButtonLabelis. - Whether the gateway's toast comes off entirely, or stays as well.
- 主要语言
- TypeScript
- 星标
- 119
- 派生
- 19
- 平均合并
- 1 天 18 小时
- 30 天内合并 PR
- 60
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DouglasNeuroInformatics/OpenDataCapture 的其他 Issue
-
A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at once可能已有人在做 @2389400626lh-ops 今天认领。 未关闭Area: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low
难度 2/5 1-3 小时 新手友好度 78/100
DouglasNeuroInformatics/OpenDataCapture#1956 ·
维护者通常 1 天内回复
-
Area: Infrastructure Chore Difficulty: Low Priority: Low
难度 2/5 1-3 小时 新手友好度 72/100
DouglasNeuroInformatics/OpenDataCapture#1948 ·
维护者通常 1 天内回复
-
apps/web preview overwrites newly built dist/index.html with stale dist/index.html.bak across builds未关闭Area: Infrastructure Area: Web Bug Difficulty: Low Priority: Medium
难度 2/5 1-3 小时 新手友好度 82/100
DouglasNeuroInformatics/OpenDataCapture#1938 ·
维护者通常 1 天内回复
-
Area: API Bug Difficulty: Low Priority: Low
难度 2/5 1-3 小时 新手友好度 62/100
DouglasNeuroInformatics/OpenDataCapture#1937 ·
维护者通常 1 天内回复
-
Area: Infrastructure Bug Difficulty: Low Priority: Medium Security
难度 2/5 1-3 小时 新手友好度 72/100
DouglasNeuroInformatics/OpenDataCapture#1916 ·
维护者通常 1 天内回复
查看 DouglasNeuroInformatics/OpenDataCapture 的全部 Issue
相似的 Issue
-
Resources: New templates of Beijing Subway可能已有人在做 @rmt-svc 今天认领。 未关闭resources
难度 2/5 1-3 小时 新手友好度 68/100
railmapgen/rmg-templates#2726 ·
维护者通常 1 天内回复
-
needs triage
难度 2/5 1-3 小时 新手友好度 76/100
homarr-labs/homarr#7729 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
Buzzpy/Dev-Encyclopedia#218 ·
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
prio:low status:done type:content
难度 2/5 1-3 小时 新手友好度 72/100
davidsneighbour/samui-samui.de#1925 ·