Files
Jyotisha/tests
ClaudeandClaude Opus 5.5 7ffd9fd8c6 feat(release-notes): admin writes 「更新说明」; each published version shows once per user; settings lists them (#331)
- Migration 20261122130000_release_notes.sql: release_notes (version, title,
  grouped items, draft/published/withdrawn) and release_note_reads; RLS on,
  no table privilege for app/service roles; users go through service-role
  functions list_release_notes_for_user / mark_release_note_read (a version
  published before the account existed counts as seen); the admin writes
  through audited admin_save_release_note / admin_set_release_note_status
  gated by the new content.release_notes.write (owner, operations,
  content_editor) and reads via an admin_runtime select policy.
- APIs: GET/POST /api/release-notes (signed-in user only) and GET/POST
  /api/admin/release-notes.
- Admin page 更新说明: table + editor drawer with 新功能/修复/改进 lists and a
  live preview; 保存草稿 / 发布 / 撤回.
- User side: 「本次更新」 dialog once per version (知道了 records the read);
  settings gets an 更新说明 pane (phone segmented nav becomes four).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-22 17:12:54 +08:00
..
2026-07-12 19:22:13 +08:00