Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7fb2c7af4 | ||
|
|
684dd27bad |
No files matched your search
+13
-9
@@ -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
|
||||
|
||||
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
# The demo instance: the app with invented data on its own database
|
||||
# (visa_demo) and files (.dev/demo-files) on :8041, beside the dev server,
|
||||
# so the dev data stays as it is. Used for the pitch deck's screenshots.
|
||||
# The first start creates the database; dev.sh seeds the demo data (it
|
||||
# adds only what is missing). Start over: drop visa_demo, rm -rf .dev/demo-files.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
export PATH="$HOME/.cargo/bin:/c/Program Files/Git/cmd:$PATH"
|
||||
docker exec visa-pg psql -U visa -d postgres -Atc "SELECT 1 FROM pg_database WHERE datname='visa_demo'" | grep -q 1 ||
|
||||
docker exec visa-pg psql -U visa -d postgres -qc "CREATE DATABASE visa_demo OWNER visa"
|
||||
base=$(sed -n 's/^export VISA_DATABASE_URL=\${VISA_DATABASE_URL:-\(.*\)}$/\1/p' scripts/dev.sh)
|
||||
export VISA_DATABASE_URL="${base%/visa}/visa_demo"
|
||||
export VISA_LISTEN=127.0.0.1:8041
|
||||
export VISA_FILES_DIR=.dev/demo-files
|
||||
exec bash scripts/dev.sh
|
||||
Reference in new issue
Block a user