Author SHA1 Message Date
grabowski f7fb2c7af4 scripts/demo.sh: the demo instance on :8041
CI / secret scan (push) Successful in 6s
CI / fmt, clippy, tests (push) Successful in 45s
CI / release (push) Skipped
The app with invented data on its own database and files beside the dev
server, as used for the pitch deck at lannadesk.com/pitch/.
2026-11-22 20:37:06 +07:00
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
2 changed files with 29 additions and 9 deletions

No files matched your search

+13 -9
View File
@@ -20,7 +20,7 @@
> Desk rather than B4L. Phase 9, the legal practice > Desk rather than B4L. Phase 9, the legal practice
> (clients, lawyers, contracts with versions, paper copies, the journal), > (clients, lawyers, contracts with versions, paper copies, the journal),
> followed that night, and phase 10, one client list, was planned. **Resume > 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 Lanna Desk keeps the immigration records of the foreigners that it
looks after: their passports, addresses in Thailand, arrivals with the Thailand 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 4. Docs, screenshots, release; on cnx01, `visa-admin` checks that the
number of people equals the number of clients with a visa record. 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 1. A visa client's name reads as on the visa side: "MUSTERMANN, Erika".
"MUSTERMANN, Erika" as on the visa side now. 2. Companies and organization clients become one list too: the company
2. Whether Companies (the employers) and organization clients become one record (registration, address, director, the pack's documents) becomes
list too: Demo Records can be a client and an employer. The same pattern part of an organization client, as the visa record is part of a person
would make the company record part of an organization client. client. Employees stay linked to the company record, so the forms and the
3. Whether every lawyer and staff member keeps seeing every client, as now, pack keep working. This adds a step after step 3: migration 0011 creates
or only the clients they work on. 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 ## Open questions
+16
View File
@@ -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