本卡屬 FR-196(母卡 CM-3875(已建)),卡 P-4,第三期批 8。只改 jedi-python-package。依賴:P-3。

這張卡做什麼(白話)

通知中心套件第四棒:合併。同一個人、同一件事(例如同一張任務)在設定的秒數內又來一筆且前一筆還沒讀,就不新增,改成「有 N 項更新」。Email 不合併。

reuse/extend/new

extend notify_service:寫 inbox 前查一次;ITemplateRenderer.render 多收 count

在哪裡

repo:~/Projects/Jedicogy/module/jedi-python-package
改既有:jedi-notification-center/jedi_notification_center/app/service/notify_service.py
改既有:jedi-notification-center/jedi_notification_center/infra/repository/inbox_repo_impl.py(find_mergeable)
改既有:jedi-notification-center/jedi_notification_center/domain/ports.py(render 簽名加 count)
新開:jedi-notification-center/tests/test_merge.py

怎麼做

驗收(首腦照這個驗)

tests:五分鐘內同任務兩次 assigned → 一列 merged_count=2;已讀後再來 → 新列;視窗外 → 新列;不同收件人各自一列

必讀

紀律