feat: company codes in capitals #33

Merged
ngqile merged 5 commits from uppercase-company-codes into main 2026-12-01 08:41:03 +00:00
Owner

OpenSpec change uppercase-company-codes.

  • Company codes are stored and shown in capitals (INS, CV). Any input is upper-cased before validation (^[A-Z0-9-]{2,20}$, Locale.ROOT).
  • Sign-in still ignores case. Staff login names follow the code (sales9@CV).
  • On the Companies screen, code inputs display in capitals. Changing cv to CV is now a real change; the same code typed in any case is still refused.
  • sql/01-uppercase-codes.sql upper-cases existing codes and staff login names. It is idempotent, and 99-rollback.sql reverts it. Deployment notes are updated.

Verification:

  • mvn -T 1C -pl solvway-services-system,solvway-mobile-api verify: EXIT=0.
  • Portal: lint 0, tsc 0, vitest 0 (1426 passed).
  • Playwright on the local stack: Companies lists CV and INS, and typing cv for CV is refused with a visible message.
  • Not run in a browser: a staff sign-in with lowercase cv (it is covered by the controller tests).
  • Whole-branch Opus review: PASS.

Existing tests were re-targeted from lowercase to capitals because the MODIFIED requirement changes this behaviour. The review confirmed no assertion was weakened.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM

OpenSpec change `uppercase-company-codes`. - Company codes are stored and shown in capitals (`INS`, `CV`). Any input is upper-cased before validation (`^[A-Z0-9-]{2,20}$`, `Locale.ROOT`). - Sign-in still ignores case. Staff login names follow the code (`sales9@CV`). - On the Companies screen, code inputs display in capitals. Changing `cv` to `CV` is now a real change; the same code typed in any case is still refused. - `sql/01-uppercase-codes.sql` upper-cases existing codes and staff login names. It is idempotent, and `99-rollback.sql` reverts it. Deployment notes are updated. Verification: - `mvn -T 1C -pl solvway-services-system,solvway-mobile-api verify`: EXIT=0. - Portal: lint 0, tsc 0, vitest 0 (1426 passed). - Playwright on the local stack: Companies lists `CV` and `INS`, and typing `cv` for CV is refused with a visible message. - Not run in a browser: a staff sign-in with lowercase `cv` (it is covered by the controller tests). - Whole-branch Opus review: PASS. Existing tests were re-targeted from lowercase to capitals because the MODIFIED requirement changes this behaviour. The review confirmed no assertion was weakened. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
ngqile added 5 commits 2026-12-01 08:41:00 +00:00
ngqile merged commit 10b32280ad into main 2026-12-01 08:41:03 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ngqile/co-lite#33