Skip to content

Remove duplicated checks and constants across the packages - #9

Merged
vqsierra merged 1 commit into
mainfrom
cleanup/code-review
Nov 13, 2026
Merged

vqsierra merged 1 commit into
mainfrom
cleanup/code-review

Conversation

@vqsierra

Copy link
Copy Markdown
Contributor

A code-review pass over the four packages. No behavior, wire-format or public API change, and no version bump.

  • sealed-envelope: one P-256 constant in util.ts instead of one each in keys.ts and envelope.ts.
  • relay: one admin-key check shared by asAdmin and DELETE /sessions/:id; one refusal check (already submitted, session closed) shared by the draft and submission routes.
  • session-client: the ID, secret and app patterns live in patterns.ts; one bad-link failure instead of four copies of its message; one mapping from a network error to a saved-on-device result.
  • ui: one definition of the touch button size.

Checked locally on Node 24: npm test (all four packages), npm run typecheck, npm run build, node scripts/check-release.mjs, and the envelope fixture check.

No behavior, wire-format or public API change.

- sealed-envelope: one P-256 constant in util.ts
- relay: one admin-key check (asAdmin and DELETE) and one write-refusal
  check (draft and submission)
- session-client: shared ID, secret and app patterns; one bad-link
  failure; one mapping from a network error to a saved-on-device result
- ui: one definition of the touch button size
@vqsierra
vqsierra merged commit 466effc into main Nov 13, 2026
2 checks passed
@vqsierra
vqsierra deleted the cleanup/code-review branch November 13, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant