From ba4c9ca65cc39df9825fb6c939c9c9fd9f3ecaf5 Mon Sep 17 00:00:00 2001 From: Jeffrey Smith Date: Thu, 2 Apr 2026 13:49:00 +0000 Subject: [PATCH 1/2] Feat v0.7.4 documentation + deferred surface work Docs restructuring: category grouping (Getting Started, Platform, Extension Development, Operations) with 14 ordered docs. Four new guides: Permissions & Groups, Workflows, Starlark Reference, Frontend JS Guide. Extension Guide updated with config_section docs. Content refresh across 10 existing docs: rebrand volume names, stale CSS vars, TLS_MODE env, self-hosted font notes, Architecture frontend section. Team Admin workflows.js (722 lines) split into 3 modules: workflows.js (router+CRUD), workflow-editor.js (editor+stages), workflow-monitor.js (assignments+monitor+signoff). Fix: docs outline scroll no longer pushes topbar off-screen. Fix: --bg-2 (undefined CSS var) replaced with --bg-secondary. Co-Authored-By: Claude Opus 4.6 (1M context) --- ROADMAP.md | 16 +- VERSION | 2 +- docs/ARCHITECTURE.md | 11 +- docs/DEPLOYMENT.md | 5 +- docs/EXTENSION-CSS.md | 4 +- docs/EXTENSION-GUIDE.md | 74 ++- docs/FRONTEND-JS-GUIDE.md | 256 ++++++++ docs/GETTING-STARTED.md | 2 +- docs/PERMISSIONS-AND-GROUPS.md | 121 ++++ docs/STARLARK-REFERENCE.md | 232 +++++++ docs/TUTORIAL-FIRST-EXTENSION.md | 4 +- docs/WORKFLOWS.md | 193 ++++++ server/handlers/docs.go | 29 +- src/css/sw-primitives.css | 2 +- src/css/sw-shell.css | 2 +- src/js/sw/surfaces/docs/index.js | 48 +- .../sw/surfaces/team-admin/workflow-editor.js | 337 ++++++++++ .../surfaces/team-admin/workflow-monitor.js | 239 ++++++++ src/js/sw/surfaces/team-admin/workflows.js | 573 +----------------- 19 files changed, 1537 insertions(+), 613 deletions(-) create mode 100644 docs/FRONTEND-JS-GUIDE.md create mode 100644 docs/PERMISSIONS-AND-GROUPS.md create mode 100644 docs/STARLARK-REFERENCE.md create mode 100644 docs/WORKFLOWS.md create mode 100644 src/js/sw/surfaces/team-admin/workflow-editor.js create mode 100644 src/js/sw/surfaces/team-admin/workflow-monitor.js diff --git a/ROADMAP.md b/ROADMAP.md index 90dd6dd..6b737c2 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,6 +1,6 @@ # Armature — Roadmap -## Current: v0.7.3 — Extension Shell Migration +## Current: v0.7.4 — Documentation + Deferred Surface Work Self-hosted extensible platform. Auth, identity, packages, Starlark sandbox, storage, realtime, and ops are kernel primitives. Everything else is an extension. @@ -170,11 +170,15 @@ same pattern as the kernel surface migrations. | Step | Status | Description | |------|--------|-------------| -| Permissions & Groups guide | | RBAC model, permission slugs with descriptions, group scoping, settings cascade. | -| Workflows user guide | | Entry modes, stages, team roles, signoff gates, SLA, public forms. | -| Docs content refresh | | Review all 5 existing docs for accuracy at v0.7.x. | -| Extension config section docs | | Document `config_section` manifest field for Settings/Admin extensibility. | -| Team Admin Workflows evaluation | | 723-line inline designer — extract to surface or split into files. Decision doc if needed. | +| Docs category grouping | done | Backend `Category` field on doc entries. Frontend groups sidebar by category with headings. Four categories: Getting Started, Platform, Extension Development, Operations. | +| Permissions & Groups guide | done | RBAC model, 7 permission slugs, system/custom groups, settings cascade, extension permissions. | +| Workflows user guide | done | Entry modes, stages, team roles, signoff gates, SLA, public forms, branch rules, Starlark hooks. | +| Starlark Reference | done | Sandbox constraints, 10 modules with function signatures, permission gates, example hook script. | +| Frontend JS Guide | done | Preact+htm runtime, 16 SDK modules with API reference, shell topbar patterns, CSS contract. | +| Extension config_section docs | done | Manifest schema, backend discovery, frontend contract, example component. Added to Extension Guide. | +| Docs content refresh | done | All 10 user-facing docs reviewed for v0.7.x accuracy: rebrand volume names, stale CSS vars, TLS_MODE env, self-hosted font notes, Architecture frontend section. | +| Team Admin Workflows split | done | 722-line `workflows.js` split into 3 modules: `workflows.js` (router+CRUD), `workflow-editor.js` (editor+stages), `workflow-monitor.js` (assignments+monitor+signoff). | +| Stale CSS variable fix | done | `--bg-2` references in `sw-shell.css` and `sw-primitives.css` replaced with `--bg-secondary`. | ### v0.7.5 — Headless E2E + CI Gate diff --git a/VERSION b/VERSION index f38fc53..0a1ffad 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.7.3 +0.7.4 diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 950abf7..06fd389 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -271,12 +271,13 @@ graph TD ## Frontend Preact (3KB) + htm (tagged template literals). No build step, no bundler -(except CM6 via esbuild). IIFE/global-namespace pattern with -`sb.register()`/`sb.ns()`. +(except CM6 via esbuild). ES modules loaded via `