Commit Graph
18 Commits
Author SHA1 Message Date
aiongg 5d0e07986c Convert src/access.ts and its tests' access, session, permission and link fixtures to the Kysely builder 2026-11-21 21:58:47 +00:00
aiongg 20061c88d9 Apply async codemod: node scripts/codemod-async.ts over the program 2026-11-21 17:00:38 +00:00
aiongg a4c40da985 Discord phase 1: link codes from the dashboard, ping-reply deletion through the combined dispatch, explicit-mention rule, shared public visibility rule, per-bucket REST chains, account commands 2026-11-07 03:18:47 +00:00
aiongg 4f5ad75fef Discord links and public status: signed link tokens with confirm page and unlink controls, public status and stats layer, privacy text and docs 2026-11-07 03:03:59 +00:00
aiongg 97375fcded ArtCraft mark as favicon and link-preview image; anonymous pages carry preview tags and move on to sign-in, so previews no longer show the identity provider's page 2026-11-07 01:56:34 +00:00
aiongg df17c0b145 Tests: API shape, migration and parser boundary tests; fixtures and helpers the remaining tests do not use are gone 2026-11-04 07:43:21 +00:00
aiongg f01276ba5e Tests: delete the old suite except format and security boundary tests, trimmed 2026-11-04 07:36:22 +00:00
aiongg 01de117891 Integration fixes: steps trigger without the dropped topics column, one runner slot per step group, viewer write test within the write limit 2026-11-03 18:20:42 +00:00
aiongg 64a990e392 Make viewers read-only: refuse opinion, retract, comment and claim, and hide those controls 2026-11-03 17:03:48 +00:00
aiongg 4dd4d93800 Rename remaining craft-auto names to autocraft (command, env vars, paths, key label) 2026-11-03 16:48:10 +00:00
aiongg d4f2a6b9f6 Tests keep their databases and checkouts in one scratch directory per process and remove it on exit 2026-11-03 05:02:28 +00:00
aiongg f709f198ad Sweep fixes: cost for viewers, hidden-repo filter on every cost figure, error states, copy and header fixes 2026-11-03 02:52:05 +00:00
aiongg dae8777c88 Merge main into dash-admin; remove the server-rendered pages, dash export and v1 route handling 2026-11-02 18:31:51 +00:00
aiongg 6c7183f79e Contributors, Repos and Access as React views over JSON endpoints; drop their v1 pages 2026-11-02 18:24:10 +00:00
aiongg b7b2aaaab6 Serve the React frontend over the JSON API; operator, maintainer and viewer roles
- web/: an HTTP client for the Api interface (CSRF from the X-CSRF-Token
  response header, errors carry the server's text, 401 goes to sign-in);
  the mock API and its view-as menu only in VITE_MOCK=1 builds; the clock
  is real time outside the mock; nav links to the server-rendered pages.
- Server: serves web/dist (CRAFT_AUTO_WEB_DIST) behind sign-in, hashed
  assets cached a year, index.html uncached for every client route, a 503
  page when the build is missing; a strict CSP for the app with the hash
  of the Radix scroll-lock style.
- The v1 Decisions, Item and Progress pages are gone; Contributors,
  Classifiers, Run and cost, Repos and Access stay at their paths.
- Access roles operator, maintainer and viewer; rows with role admin
  become operator on connect.
- v1 form POSTs and sign-out refuse a foreign Origin or Sec-Fetch-Site.
2026-11-02 18:11:09 +00:00
aiongg 4b77070c2b Merge the dashboard JSON API; tests use the home directory for scratch DBs 2026-11-02 18:00:07 +00:00
aiongg 0fa5f9bab0 Admin-managed tracked repos: sync, dashboard scope, /repos page, repos CLI 2026-11-02 15:01:43 +00:00
aiongg 99ef5599a2 Dashboard server: GitHub sign-in, sessions, CSRF, rate limits, access list
HTTP server with pattern routing, form body parsing, security headers and
a per-request CSP nonce. GitHub OAuth App sign-in with state and PKCE,
expiring user tokens refreshed on demand and stored encrypted. Repo write
permission cached per user and repo. A fake provider for tests and local
development. Access page and craft-auto access / dash serve commands.
2026-11-02 14:48:24 +00:00