A company's office: its GPS position and a photo
CI / secret scan (push) Successful in 4s
CI / fmt, clippy, tests (push) Successful in 22s

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:
grabowski committed 2026-11-18 11:56:26 +07:00
1 parent e88bb74e1e
commit 2a6e972b68
14 files changed
+642 -8

No files matched your search

+4 -1
View File
@@ -38,7 +38,10 @@ Data Protection Act (PDPA) asks.
- Companies with their Thai name, registration number (the check digit is
verified), address and signing director. A person's employer and the
employer on a work permit are chosen from them, and a company's page adds
people to it.
people to it. The page's Office card shows the office's GPS position,
with links to OpenStreetMap and Google Maps, and the newest photo of the
office; the position may be pasted as Google Maps copies it or as a link
to the place.
- New people and passports from the passport's machine-readable zone: paste
the two lines at the bottom of the photo page and the form fills itself in.
The check digits catch typing errors.