Author SHA1 Message Date
grabowski 684dd27bad PLAN: phase 10 decided with Alex
CI / secret scan (push) Successful in 7s
CI / fmt, clippy, tests (push) Successful in 46s
CI / release (push) Skipped
Visa clients keep the "MUSTERMANN, Erika" form in the client list;
Companies become part of organization clients too (migration 0011 after
the people step); every lawyer sees every client for now, with room left
for finer access later.
2026-11-22 20:11:57 +07:00
+13 -9
View File
@@ -20,7 +20,7 @@
> Desk rather than B4L. Phase 9, the legal practice
> (clients, lawyers, contracts with versions, paper copies, the journal),
> followed that night, and phase 10, one client list, was planned. **Resume
> here: phase 8, reminders, or phase 10 once Alex decides its three questions.**
> here: phase 8, reminders, or phase 10, whose questions are decided.**
Lanna Desk keeps the immigration records of the foreigners that it
looks after: their passports, addresses in Thailand, arrivals with the Thailand
@@ -648,15 +648,19 @@ person has its client with the same name and contact.
4. Docs, screenshots, release; on cnx01, `visa-admin` checks that the
number of people equals the number of clients with a visa record.
**To decide with Alex before building.**
**Decided with Alex (November 21, 2026).**
1. How a visa client's name reads in the client list: "Erika Mustermann" or
"MUSTERMANN, Erika" as on the visa side now.
2. Whether Companies (the employers) and organization clients become one
list too: Demo Records can be a client and an employer. The same pattern
would make the company record part of an organization client.
3. Whether every lawyer and staff member keeps seeing every client, as now,
or only the clients they work on.
1. A visa client's name reads as on the visa side: "MUSTERMANN, Erika".
2. Companies and organization clients become one list too: the company
record (registration, address, director, the pack's documents) becomes
part of an organization client, as the visa record is part of a person
client. Employees stay linked to the company record, so the forms and the
pack keep working. This adds a step after step 3: migration 0011 creates
an organization client per company, and the company pages move as the
visa pages do.
3. Every lawyer and staff member sees every client for now. The model leaves
room for finer access later (a client's team of lawyers, a role per
section), so no page should assume more than the queries enforce.
## Open questions