实现站内通知与邮件通知
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Read #7 for the event contract and recipient rules, #13 for the event publishing points, and #5 for the polling agreement. Then trace the existing API, database, SMTP, and frontend entry points to see how this feature fits. Done means event recipients and self-notification behavior pass integration tests, notification APIs and email handling work, and the bell, unread count, list, read action, and workbench integration are usable.
Written by the indexing model from the issue text.
Description
Background
通知让工单流转触达到人。事件契约与接收人规则见 #7,本 issue 实现站内通知与邮件两个订阅者,以及前端通知组件。
Technical requirement
- 订阅
internal/events(#13 已接入发布点):按 #7 的接收人规则表计算收件人; - 站内通知:写
notifications表(title / body 由服务端按事件组装为数据内容,非界面固定文案);GET /api/notifications分页、POST /api/notifications/read标记已读(ids 或全部);未读数端点或并入 me; - 邮件:SMTP 配置存在时发送;模板 P0 用简单文本模板(Go text/template);发送失败仅记 error 日志,不重试不阻断;
- 订阅者 panic 隔离(recover),单个订阅者异常不影响其他订阅者与业务事务;
- 前端部分:顶栏通知铃铛 + 未读数(30s 轮询,#5 约定)+ 通知下拉列表 + 标记已读;点击跳转对应工单详情。
Expect
- 集成测试:每类事件的接收人正确、操作者本人不收到自己操作的通知;
- 前端通知组件挂入 #18 工作台布局后可用。
Potential TODO list
- notifications 迁移与 repository
- 事件订阅 + 接收人规则
- 站内通知端点
- SMTP 发送与文本模板
- 前端铃铛 / 列表 / 已读
依赖
#7 契约冻结;#13(事件已发布)。
- Dominant language
- No language data
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LinuxSuRen/tick-flow
-
项目门面:logo、README 与仓库 AboutPossibly taken @linuxsuren-fs claimed this 9 days ago. Opendocumentation good first issue help wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 20/100
LinuxSuRen/tick-flow#20 ·
-
编写四个内置种子模板包Possibly taken @linuxsuren-fs claimed this 9 days ago. Opengood first issue help wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 35/100
LinuxSuRen/tick-flow#19 ·
-
实现处理工作台前端:列表、详情与处理动作Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 5/5 Over a week Newbie friendliness 25/100
LinuxSuRen/tick-flow#18 ·
-
实现提交门户前端:表单渲染器与我的工单Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LinuxSuRen/tick-flow#17 ·
-
实现附件上传与下载Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LinuxSuRen/tick-flow#15 ·
All issues in LinuxSuRen/tick-flow
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
vetro-protocol/vetro-monorepo#1262 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ProyectoRespira/respira-webapp#334 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100