The gateway still confirms a remote submission with a corner toast

未关闭
#1,953 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 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 内容生成。

描述

Area: Gateway Difficulty: Low Enhancement Priority: Low

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.tsx is 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 as LocalizedText the way submitButtonLabel is.
  • 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DouglasNeuroInformatics/OpenDataCapture 的其他 Issue

查看 DouglasNeuroInformatics/OpenDataCapture 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。