gitoria

ident

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain0f6d1592Merge branch 'f18b-shell-session' into mainIdentmain/missions/011-daily-mail-urgent.md

2.0 KB

  1. # ident mission 011 — ident#7: delivery — daily mail at 17:00 in the user's time zone, urgent at once
  2. Ticket: https://tickets.worldapi.org/ident.worldapi.org/7 (read it + CONCEPT.md "Notifications": default channel = the
  3. daily mail at 17:00 in the user's time zone with all pending notifications; urgent = immediately by push if a push device
  4. is registered, else email; always within the user's switches; ident does not ship its own zone rules — use Hybriel's
  5. time zones, hybriel#5 done: read plugins/time for the API).
  6. Scope:
  7. - The user's time zone: stored per account; default taken from the browser at sign-in/first visit (IANA name), changeable
  8. on the account page (a select of zones). No zone yet → Europe/Vienna? NO: then the server's default is UTC and the
  9. account page asks once — decide the smallest sensible thing and say so in the report.
  10. - Daily digest: a job that, per user whose local time just passed 17:00 and who has pending default-channel
  11. notifications, sends ONE mail listing them (name, app, text, action link) and marks them delivered; never twice per day
  12. (survives a restart: store the last sent local date). DST change days handled by Hybriel's zone rules.
  13. - Urgent: push devices do not exist yet (ident#8) → urgent = mail at once, through the same switches; leave a clear hook
  14. for push.
  15. - Mail goes through ident's existing mail code (plugins/smtp, lib/mail.hl); tests use the gate's mail sink, never real mail.
  16. Pure Hybriel, no JS. Code order rules. Proof: gate checks with a fake clock (like calendar's GATE_CLOCK or a server-side
  17. clock override env for tests only): users in Vienna, New York, Tokyo get their digest at their 17:00, once; a DST day;
  18. urgent arrives at once; a user who switched mail off gets nothing; pending ones are not lost. All ident gates green.
  19. Real-data copy (newest /media/STORAGE/deploy-backups/ident.worldapi.org/*.tgz): migration of existing accounts (no zone)
  20. works, nothing is sent on the copy except to the sink.
  21. Worktree /media/STORAGE/projects/ident-w11 (branch w11), ports 8700–8719. Report reports/011-daily-mail-urgent.md.

Branches

Latest commits

  • 0f6d1592Merge branch 'f18b-shell-session' into mainIdent
  • 19868218|||PR ident#39 shell reads its session member instead of a cross-file emitmre
  • 5d1b3fedMerge branch 'v61-day61' into mainIdent
  • 83faeb15|||PR ident: vendor Hybriel day61mre
  • b2572b34Merge branch 'v59-day59' into mainIdent
  • 67cf016d|||PR ident: vendor Hybriel day59mre
  • 600c043dMerge branch 'v58-day58' into mainIdent
  • 365f8c80|||PR ident: vendor Hybriel day58mre
  • 585126e5Merge branch 'f16-setf' into mainIdent
  • 953bf03a|||PR ident setF mirror dropped (hybriel#370)mre
  • a1419d9cMerge branch 'f15-navigate' into mainIdent
  • 3b3e451f|||PR ident#36 navigate to the app instead of location.assignmre
  • e36f4516Merge branch 'f14-online' into mainIdent
  • 2c5eac91|||PR ident#38 online state without probe timermre
  • bf1980f2Merge branch 'v56-day56' into mainIdent
  • 62ae0adf|||PR ident: vendor Hybriel day56mre
  • 0d18abc4Merge branch 'f13-avatar' into mainIdent
  • 2a99730a|||PR ident#37 avatar in hlmre
  • fa4ed25bMerge branch 'f11-upsert' into mainIdent
  • 8f3d9bc9|||PR ident#42 keyed upsert and removemre