You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request]: Plain projects cannot use the UI kit declaratively; no data-bound CRUD screen pattern #262
enhancementNew feature or requestextensionInvolves an extension or companion package (store, ui, auth, admin)importantHigh-priority work selected for near-term focus
Tried: use URLCode's existing UI capabilities for the list/form interface. Expected: a plain project can use the UI kit declaratively. Got:@jimhoyd/urlcode-ui needs operator host wiring (run 2), and neither run found a data-bound list/form component, so both hand-wrote HTML plus 52-64 lines of browser JS. Both UI scripts had defects (edit text lost on re-render; a failed update left the checkbox flipped). Related: #217 (closed) covers UI wiring in auth/admin scaffolds only. Suggestion: a documented path (and starter) for a plain project to serve a UI-kit page, and a small data-bound list/form pattern for CRUD screens. Evidence: an A/B benchmark on URLCode 0.4.1 with Sonnet 5 agents building the same Todo app from the repo docs. Run 1 (benchmark Agent B, no authoring skill, no browser check) and run 2 (session "Todo application with URLCode", authoring skill loaded, tightened prompt) hit this independently. n=1 each; single small app, so treat frequency as anecdotal. The Agent A control (no URLCode) needed 2 shell calls and 0 dependencies for the same app. Not verified: whether the UI package can already do this from a non-operator project.
Findings on the "not verified" question (read from packages/ui on main; nothing was run).
What a plain project can do today: serve a kit-styled static page with no operator wiring. The UI README documents rendering a page with the kit, writing the HTML to public/welcome.html, and serving it with an ordinary page route.
What exists: HTML helpers that turn data you pass in into safe markup: field, button, alert, navigation, table(caption, columns, rows), pagination, emptyState, postForm, renderDocument. None of them fetch data.
What does not exist: a data-bound component that declares its fields once and reads them from a data source. That cannot exist before the store in #253.
Unverified: whether a trusted function in a plain project can import the kit at runtime without the operator host file. The README does not say how the import resolves.
Proposed (not a decision): keep the decided order (store in #253 first, then bound screens in the ui package). As a cheaper first step, document the build-time static path and the table/field helpers for plain projects now. That answers the "could not find the UI kit" complaint without waiting for the store.
First slice shipped in #328: crudScreen in @jimhoyd/urlcode-ui renders a list with create, inline edit and delete from the store's collection declaration, with a nonce'd content-hashed client script (no inline script), and init --with ui,store composes it. Both benchmark defects (edit text lost on re-render, checkbox left flipped after a failed update) are fixed with tests. Deferred, tracked separately: #330 (labels, columns, filtering), #331 (per-record ownership), #332 (browser test in CI).
enhancementNew feature or requestextensionInvolves an extension or companion package (store, ui, auth, admin)importantHigh-priority work selected for near-term focus
Activity
jimhoyd commentedon Sep 20, 2026
Placement: extend the existing
@jimhoyd/urlcode-uiextension, built on top of the store extension in #253.init --withscaffold contract (ui, plusstoreonce it exists).Record CRUD screen recommendation for plain projects (#262) (#267)
jimhoyd commentedon Sep 20, 2026
Decision: confirmed as the placement comment above: extend
@jimhoyd/urlcode-ui, no new core handler.init --withscaffold contract (ui, thenstorewhen it exists).Add Todo A/B agent benchmark baseline (run 1) (#294)
Record decisions for eight benchmark-driven authoring requests (#297)
Drop the already-decided #262 row restored during rebase
Let renderDocument pages run under the default oshp CSP (refs #287) (#…
jimhoyd commentedon Sep 20, 2026
Findings on the "not verified" question (read from
packages/uionmain; nothing was run).What a plain project can do today: serve a kit-styled static page with no operator wiring. The UI README documents rendering a page with the kit, writing the HTML to
public/welcome.html, and serving it with an ordinarypageroute.What exists: HTML helpers that turn data you pass in into safe markup:
field,button,alert,navigation,table(caption, columns, rows),pagination,emptyState,postForm,renderDocument. None of them fetch data.What does not exist: a data-bound component that declares its fields once and reads them from a data source. That cannot exist before the store in #253.
Unverified: whether a trusted function in a plain project can import the kit at runtime without the operator host file. The README does not say how the import resolves.
Proposed (not a decision): keep the decided order (store in #253 first, then bound screens in the ui package). As a cheaper first step, document the build-time static path and the
table/fieldhelpers for plain projects now. That answers the "could not find the UI kit" complaint without waiting for the store.jimhoyd commentedon Sep 20, 2026
Progress: an agent has started on this; a PR will be linked here when it opens.
Add a data-bound list and form screen to the ui package, composed by …
Data-bound list and form screen in ui, composed by init --with ui,sto…
jimhoyd commentedon Sep 20, 2026
First slice shipped in #328: crudScreen in @jimhoyd/urlcode-ui renders a list with create, inline edit and delete from the store's collection declaration, with a nonce'd content-hashed client script (no inline script), and init --with ui,store composes it. Both benchmark defects (edit text lost on re-render, checkbox left flipped after a failed update) are fixed with tests. Deferred, tracked separately: #330 (labels, columns, filtering), #331 (per-record ownership), #332 (browser test in CI).