Commit Graph

25 Commits

Author SHA1 Message Date
a3a6cbbec6 chore: standalone idempotent prod SQL migration (apikey alias + authorship)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 22:58:54 +01:00
bf4c0dbbbd feat: apikey alias/renewal + markdown/patch authorship
- APIKey.alias (unique, required). Creating with an existing alias
  renews that key: same key string kept, validity reset to 15d,
  reactivated, name/roles updated (response has renewed=true).
- get_actor(): X-API-Key -> key alias, Bearer -> 'admin'.
- markdown & patch create/update record author / created_at /
  updated_at / last_modified_by from the actor.
- Idempotent run_migrations() (information_schema-guarded ALTERs +
  backfill) so existing tables/data gain the new columns on startup;
  create_all still covers fresh DBs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 22:51:40 +01:00
155aa897c6 feat: markdown patch cards (model + API)
Add MarkdownPatch model (markdown_patch table, auto-created by
create_all) and /api/patch blueprint: list patches for a markdown
(inherits the parent's private/protected visibility), create/update
(admin|creator), delete (admin).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 17:28:04 +01:00
1a160c9415 add: backend api auth by apikey/apikey gen/apikey revoke 2025-05-06 18:54:10 +01:00
85d8124a0c improve: upgrade node to 20, upgrade react-query to v4 2025-04-27 00:36:42 +01:00
35c8934963 add: markdown permission setting
improve: template
2025-04-25 00:39:01 +01:00
0186a95dd4 fix: template defects 2025-04-17 21:44:45 +01:00
fa855bc7bb add: template editor 2025-04-14 17:02:22 +01:00
6626fac452 improve: add setting button to pathnode 2025-03-20 18:37:13 +00:00
e7000f0b2e improve: change db schema for settings 2025-03-20 13:58:24 +00:00
864b78641b add: webhook 2025-03-17 13:54:53 +00:00
acb1e2260f add: load backup 2025-03-05 17:33:17 +00:00
26b64f8c15 add: auto link feature 2025-01-17 16:33:39 +00:00
9e0967c69e improve: css for change order 2024-12-29 19:30:46 +00:00
a96e833aa6 add: order paths & mds 2024-12-29 18:53:02 +00:00
79acfb2313 fix: home md not shown 2024-12-10 13:25:17 +00:00
b3ec244e06 Save Markdowns 2024-12-06 15:13:20 +00:00
48dd59f8e4 kc token public key/token issue, path root set to 1 2024-12-06 10:04:03 +00:00
4b9c1ba727 manage markdowns by path 2024-12-05 18:28:16 +00:00
dc8ee49c9e fix render issue 2024-12-03 16:36:32 +00:00
23b9db19a8 fix docker config 2024-12-03 14:35:25 +00:00
969f200753 requirements 2024-12-03 12:42:09 +00:00
a93bd5d870 resource impl 2024-12-03 00:10:47 +00:00
5557b3434b log impl 2024-12-02 19:50:34 +00:00
83c5662fcb api impl 2024-12-02 18:33:39 +00:00