A company's office: its GPS position and a photo
The company form has a field for the office's GPS position (migration 0004, column companies.office_gps). It takes what people have at hand: the numbers Google Maps copies, a link to the place on Google Maps or OpenStreetMap, a geo: URI, or degrees, minutes and seconds. It keeps decimal degrees with six decimals and refuses a position outside Thailand, which catches a swapped pair; a short maps.app.goo.gl link is refused with a hint, as it holds no position (src/gps.rs, with unit tests). The company's page has an Office card: the position with links that open it on OpenStreetMap and Google Maps, the newest photo of the office, and a strip that uploads a photo (kind "Photo of the office") and returns to the card. The photos are documents like any other: encrypted on the server and audited. A refused photo shows its errors on the card only; office photos that are PDFs are counted under Company documents. The demo company has a position. Tests: the position read from a link, from degrees, minutes and seconds, the three refusals, the audit entry and its removal; a photo uploaded from the card, shown, and its errors placed.
This commit is contained in:
1 parent
e88bb74e1e
commit
2a6e972b68
14 files changed
+642
-8
No files matched your search
+13
-3
@@ -2,7 +2,8 @@
|
||||
|
||||
> Phases 1 to 3 built on November 17, 2026, and phase 4's app side on
|
||||
> November 18, 2026; the app is live at https://visa.buildfor.life. **Resume
|
||||
> here: task 4.6, the fleet side of the documents, then phase 5.**
|
||||
> here: phase 5, the filled-in forms.** Task 4.6, the fleet side of the
|
||||
> documents, waits in cnx-network-clan PR #126.
|
||||
|
||||
visa.buildfor.life keeps the immigration records of the foreigners that B4L
|
||||
looks after: their passports, addresses in Thailand, arrivals with the Thailand
|
||||
@@ -84,7 +85,7 @@ made of.
|
||||
| `addresses` | the address in Thailand in the order Thai forms use, moving dates, the house master and the TM.30 receipt | 1 |
|
||||
| `sessions` | signed-in sessions | 1 |
|
||||
| `audit_log` | who viewed or changed which record, append-only | 1 |
|
||||
| `companies` | name in English and Thai, the 13-digit registration number with its check digit, address, the director who signs; archiving | 2 |
|
||||
| `companies` | name in English and Thai, the 13-digit registration number with its check digit, address, the office's GPS position, the director who signs; archiving | 2, 4 |
|
||||
| `visas` | visa category (Non-B, Non-O, DTV and others), number, place and date of issue, validity, entries | 2 |
|
||||
| `arrivals` | arrival date, port, flight, visa used, permitted-until date, TDAC number; departure date when the person left | 2 |
|
||||
| `extensions` | extensions of stay: approval date, new permitted-until date, reason, office, receipt | 2 |
|
||||
@@ -168,7 +169,7 @@ dark at desktop and phone width, a commit and a push.
|
||||
| 1 | App, Kanidm login, people, passports with MRZ reading, addresses in Thailand, audit log, demo data, CI | built Nov 17, 2026 |
|
||||
| 2 | Companies; stays: visas, arrivals with TDAC, extensions, re-entry permits, 90-day reports, work permits; deadlines | built Nov 17, 2026 |
|
||||
| 3 | On cnx01: flake package, fleet module, Kanidm client and group, bkk01 site, backups; real data from here on | live Nov 17, 2026 |
|
||||
| 4 | Documents: encrypted uploads (passport pages, TDAC, receipts, photo) on the dataset `zroot/visa` with a key var, viewing and download, all audited | app built Nov 18, 2026; fleet next |
|
||||
| 4 | Documents: encrypted uploads (passport pages, TDAC, receipts, photo) on the dataset `zroot/visa` with a key var, viewing and download, all audited; the office's GPS position and photo | app built Nov 18, 2026; fleet in PR #126 |
|
||||
| 5 | Filled-in forms: TM.7, STM.2, the overstay acknowledgment, TM.47, TM.8 and STM.1 as PDF | |
|
||||
| 6 | The Non-B extension pack: B4L's company documents, the checklist, one PDF to print | |
|
||||
| 7 | Reminders by Matrix room message and by email | |
|
||||
@@ -264,6 +265,15 @@ one `Kind`.
|
||||
Nov 18, 2026); Alex merges and deploys it, together with the flake
|
||||
update #125 that cnx01 and control do not run yet. After the deploy:
|
||||
`visa-admin files-check` on cnx01 and an upload on the live app.
|
||||
- [x] 4.7 A company's office, asked for on November 18, 2026: its GPS
|
||||
position on the company form, read from the numbers Google Maps
|
||||
copies, a link to the place on Google Maps or OpenStreetMap, or
|
||||
degrees, minutes and seconds, kept as decimal degrees and checked to
|
||||
lie in Thailand (`src/gps.rs`); an Office card on the company's page
|
||||
with the position, links that open it on either map, the newest photo
|
||||
of the office, and a strip that adds a photo and returns to the card.
|
||||
The photos are documents of the kind "Photo of the office", so they
|
||||
are encrypted and audited like every other file.
|
||||
|
||||
## Open questions
|
||||
|
||||
|
||||
Reference in new issue
Block a user