Repository navigation
web: give API domains focused contract owners - #194
Merged
Merged
Conversation
Engine: codex
4 tasks
There was a problem hiding this comment.
Codex review of a8628d7: nothing found.
Reviewed every changed file and relevant callers and tests; found no merge-blocking defects.
Contributor
Author
|
Judgment on a8628d7, checked against AGENTS.md as it is on main (it's the only AGENTS.md in the tree). What I checked:
Decision: land. It's a pure client-side refactor that a revert undoes completely, with no data, secret or owner-reserved decision involved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #59
The legacy API client concentrated unrelated contracts in a 1,299-line module. Move its contracts and calls into focused domain owners under
web/src/lib/api/; leaveapi.tsas a compatible re-export entrypoint. The development map now routes to those owners.Move / new owner / impact / proof plan:
session.ts; setup/backup status →installation.ts; user administration →users.ts.programs.ts; enrollment lifecycle/assignments and own-enrollment reads →enrollments.ts; training periods →sessions.ts.drafts.ts; finalized envelopes, acknowledgments and amendments →records.ts; summary linking →summaries.ts.signoffs.ts, using oneSignoffKind; archive downloads →exports.ts.requireOk. Domain dependencies are direct type imports, never imports through the barrel.Public exports, HTTP paths/payloads, session semantics, typed refusals, role/capability decisions and persisted behavior are preserved. No server/schema change, route change, UI rewrite, or autosave ownership change. This is the API slice; the two large workflow pages remain under #59, and #34/#49 behavior is unaffected. Rung 1: one owning module per contract and one refusal parser, with compatibility exports rather than duplicate implementations.
Authorization: owner-authored #59 as relayed to this job; no owner-set effort budget. Integrator performed implementation and self-review; hosted review remains pending. Focused proof is the web type/Svelte check and build; the intended full proof is CONTRIBUTING.md's gates and all browser scenarios.
Local validation on a8628d7:
npm cipassed (initial shell used Node 22 and warned about the Node >=24 floor).npm run check: zero errors/warnings.nix develop --command bash -c 'cd web && npm run check && npm run build'passed under Node 24.22.1, with zero check errors/warnings.git diff --checkpassed.heavy: cannot open /run/burrow-heavy/slot1: No such file or directory (os error 2). No full local receipt or browser pass is claimed. Hosted checks/review must complete before landing.