Changeset 0.37.2 (#214)

Co-authored-by: gobha <jasafpro@gmail.com>
Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
2026-03-20 23:52:55 +00:00
committed by xcaliber
parent 8c53f61b71
commit 4f1abc6321
24 changed files with 1775 additions and 25 deletions

View File

@@ -26,30 +26,35 @@ v0.9.xv0.28.7 Foundation through Platform Polish ✅
v0.28.8 ICD Green Board ✅
┌──────────────────────────────┐
Extension Track Operations Track
v0.29.0 Starlark Sandbox ✅ v0.32.0 Multi-Replica HA
v0.29.1 API Extensions ✅ v0.33.0 Observability
v0.29.2 DB Extensions ✅ v0.34.0 Data Portability
v0.29.3 Workflow Forms
v0.30.0 Package Lifecycle ✅
v0.30.1 SDK Adoption ✅
v0.30.2 Workflow Packages ✅
v0.31.0 Editor + SDK ✅
v0.31.1 SDK Exercise ✅
v0.31.2 Team Workflows ✅
v0.35.0 Workflow Product
v0.36.0 Full OpenAPI Spec ✅
══════╪═══════════════════════════════╪══════
MVP v0.50.0
(v0.31.2 + v0.35.0
+ mobile + deployment docs)
══════╪═══════════════════════════════╪══════
┌──────────────────────────────┐
Extension Track UI Rewrite Operations Track
Track
v0.29.0 ✅ │ v0.32.0
v0.29.1 ✅ │ v0.33.0
v0.29.2 ✅ │ v0.34.0
v0.29.3 ✅ │
v0.30.0 ✅ │
v0.30.1 ✅ │
v0.30.2 ✅ │
v0.31.0 ✅ │
v0.31.1 ✅ │
v0.31.2 ✅ │
v0.35.0 Workflow Product
v0.36.0 Full OpenAPI
v0.37.1 Perm Audit ✅
│ v0.37.2 Primitives ✅ │
v0.37.3 SDK
v0.37.4 Shell
v0.37.513 Surfaces
│ │ │
══════╪════════════╪═════════════════╪══════
│ MVP v0.50.0 │
│ (all three tracks complete │
│ + mobile + deploy docs) │
══════╪════════════╪═════════════════╪══════
v0.50.0+ Rich Media + Beyond
(image gen, code sandbox,
@@ -528,6 +533,84 @@ Depends on: v0.33.0 (Swagger UI + initial spec).
---
## UI Rewrite Track
Scorched earth rebuild of the frontend on Preact+htm. Three-layer
architecture (Primitives → SDK → Shell) replacing the imperative
DOM manipulation codebase. See `UI redesign.md` for full design doc.
Depends on: v0.36.0 (OpenAPI spec), v0.31.2 (SDK composability).
### v0.37.1 — Permission Audit & Enforcement ✅
Backend prerequisite for frontend RBAC. See `CHANGESET.md`.
- [x] `RequirePermission` middleware on 8 unprotected routes
- [x] `GET /profile/permissions` — self-service resolved permission set
- [x] 12 permission enforcement integration tests (deny → grant → allow)
- [x] Mirror route fixes in integration test harness
### v0.37.2 — Layer 0: UI Primitives + Shell Layout ✅
Preact+htm component library and application frame.
- [x] Vendor: preact.module.js, hooks.module.js, htm.module.js (~5KB total)
- [x] 14 primitive components: Button, Spinner, Avatar, FormField,
Tooltip, Banner, Toast, Dialog, Confirm, Prompt, Menu, Drawer,
Tabs, Dropdown
- [x] AppShell layout: fixed top/bottom banners (single config),
dismissible message bar, footer, surface viewport
- [x] `sw-primitives.css` + `sw-shell.css` — `sw-` prefixed, no
conflicts with existing styles
- [x] `dev.html` — interactive primitives gallery + shell controls
- [x] ES module loading with `window.preact/hooks/html` globals
### v0.37.3 — Layer 1: SDK
Namespaced REST client, auth module, RBAC gate, event bus, pipe/filter
pipeline, theme control.
Depends on: v0.37.2.
- [ ] `sw.api.{domain}.*` — namespaced methods for all 18 ICD domains
- [ ] `sw.auth.*` — login, logout, refresh, session lifecycle
- [ ] `sw.can(perm)` — synchronous RBAC gate from cached permission set
- [ ] `sw.on/off/emit` — event bus with wildcard patterns
- [ ] `sw.pipe.*` — carry forward pre-send/stream/render pipeline
- [ ] `sw.theme.*` — theme control with FOUC prevention
### v0.37.4 — Layer 2: Shell
Application frame with user menu, surface viewport, banners, toast/dialog
stacks. Temp auth bypass for visual validation.
Depends on: v0.37.3.
- [ ] Root `<App>` component tree
- [ ] `UserMenu` — avatar + flyout (Settings, Admin, Sign Out)
- [ ] `SurfaceViewport` — mount point for active surface
- [ ] `ToastContainer` + `DialogStack` — global overlay management
- [ ] Simplified `base.html` Go template (single `#app` mount)
### v0.37.5v0.37.13 — Surface Rebuilds
Each surface rebuilt as Preact component tree. Old JS deleted per surface.
| Version | Surface | Notes |
|---------|---------|-------|
| v0.37.5 | Login + Settings | Self-contained, no real-time |
| v0.37.6 | Admin | Largest section count, no real-time |
| v0.37.7 | Team Admin | Inherits from Admin patterns |
| v0.37.8 | ChatPane | Reusable component, NOT a surface |
| v0.37.9 | NotesPane | Reusable component, NOT a surface |
| v0.37.10 | Chat surface | Composes ChatPane + sidebar + panels |
| v0.37.11 | Notes surface | Composes NotesPane + graph |
| v0.37.12 | Extension surface container | `.pkg` mount point |
| v0.37.13 | Workflow surfaces | Form renderer, review views |
| v0.37.# | Tag | Functionality restored, old code deleted |
---
## MVP v0.50.0
**Gate:** deploy for 510 teams, ~50 users, 100+ anonymous visitors