Files
co-lite/openspec/changes/uppercase-company-codes/proposal.md
T

1.2 KiB

Why

Company codes are stored and shown in lowercase (ins, cv). The owner wants them in capitals (INS, CV), and the Companies screen cannot change cv to CV: the portal treats a case-only change as no change, and services-system lowercases every code it saves.

What Changes

  • Company codes are stored and shown in capitals: 2 to 20 characters of A-Z, 0-9 and -. Any code entered is turned to capitals before it is checked and saved.
  • Sign-in keeps ignoring case: staff can type cv, Cv or CV.
  • Staff login names follow the code (sales9@CV).
  • A one-off SQL turns the existing codes and staff login names to capitals.

Capabilities

New Capabilities

None.

Modified Capabilities

  • company-scoping: the code format of the Companies requirement becomes capitals.

Impact

  • services-system: CompanyService code validation and normalisation.
  • mobile-api: the admin login builds the login name with the code in capitals.
  • portal: the Companies code fields show and send capitals. A case-only rename is no longer treated as no change.
  • Data: sql/01-uppercase-codes.sql on service-system. Signed-in staff must sign in again after it runs, as after any code change.