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.
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.
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
OpenSpec change
uppercase-company-codes.INS,CV). Any input is upper-cased before validation (^[A-Z0-9-]{2,20}$,Locale.ROOT).sales9@CV).cvtoCVis now a real change; the same code typed in any case is still refused.sql/01-uppercase-codes.sqlupper-cases existing codes and staff login names. It is idempotent, and99-rollback.sqlreverts it. Deployment notes are updated.Verification:
mvn -T 1C -pl solvway-services-system,solvway-mobile-api verify: EXIT=0.CVandINS, and typingcvfor CV is refused with a visible message.cv(it is covered by the controller tests).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