Files
Keysat 6d6f4bcc7e Thesis Workshop redesign: edit/choose/delete + approve-as-current (v0.1.0:56)
Addresses Grant's feedback that the Workshop was confusing and underbuilt (no delete,
no approve, redundant generate-vs-feedback panels, and a stray "0" on segment lines).

Backend (architect_tools.py + server.py routes/handlers):
- retire_node: soft-delete a node + its subtree (reversible). DELETE /api/thesis/nodes/{id}.
- choose_variant: 'Use this' — keep this option, soft-delete the others in its group,
  mark it approved. POST /api/thesis/nodes/{id}/choose.
- upsert_thesis_node gains actor_type so a manual human edit is recorded as 'human'.
  PUT /api/thesis/nodes/{id} edits a part's text directly.
- handle_approve_line: one-click 'approve as current' — records this admin's approval on
  the line's in-review version (creating + submitting one from the live tree if none),
  promoting to canonical at the required distinct-approval count. POST /api/thesis/lines/{key}/approve.

Frontend (ThesisWorkshop redesign):
- Merged the redundant "Generate options" + "Give feedback" panels into one "Ask the
  Architect for options" box (revise was just generate-with-guidance).
- Per option: Use this / Edit (inline) / Delete. Per part: edit + delete via the same.
- "Approve as current" bar with dual-sign-off state + a "Current ✓" badge, and a one-line
  "how it works" hint. Refreshes the tree after every action.
- Fixed the stray "0": `{line.is_core && <badge>}` rendered 0 for non-core lines (SQLite
  integer 0); now `{!!line.is_core && ...}`.

Verified: backend test_thesis_actions.py (choose/edit/retire-subtree/dual-approval->canonical),
and a live in-browser smoke test (JSX compiles, Workshop renders, options show Use/Edit/Delete,
approve returns 1-of-2, no runtime errors).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-05 18:29:47 -05:00

21 lines
1.0 KiB
TypeScript

import { VersionInfo } from '@start9labs/start-sdk'
// Thesis Workshop redesign — makes it clear what to do and adds the missing controls.
// Per part and per generated option you can now Edit (write your own wording), Use this
// (pick a winner and clear the rest), and Delete; the redundant generate/feedback panels
// are merged into one "Ask the Architect" box; and an admin can Approve as current right
// in the Workshop (dual sign-off -> canonical). Also fixes the stray "0" on segment lines.
// No data migration.
export const v_0_1_0_56 = VersionInfo.of({
version: '0.1.0:56',
releaseNotes: {
en_US: [
'Thesis Workshop is clearer and fuller: edit any part or option in place, pick a winner',
'with "Use this", delete what you do not want, ask the Architect for options from one',
'box, and approve a line as your current thesis right there (two admins sign off). Also',
'fixes a stray "0" shown next to the segment lines.',
].join(' '),
},
migrations: { up: async () => {}, down: async () => {} },
})