Case Study ning Proyekto · Progressive Web App a Malyaring Gamitan Offline
Rural Mail Digital Helper
Metung a libring, malyaring i-install a Progressive Web App (PWA) a dinisenyo ampong telacad ning Tyson Berry-Wogan para karing rural letter carrier. Pagsamasan no ring misimpan a pakibat king kontrata ning USPS-NRLCA ampo RRECS, metung a a-search a simpanan da reng sipi ning kasulatan, browser-local a mai-print a draft king PS Form 8191 ampo RRECS evaluation dispute Form 1, ampo offline a pamag-mapang ruta king USGS/OpenStreetMap.
Ding rural letter carrier a mag-check karing probisyun ning kontrata, maghanda para karing pisambian kambe ning steward, o susuri karing tuknangan king ruta lalam ning Rural Route Evaluated Compensation System (RRECS) arapan do ring atlung paulit-ulit a sagabal:
1. Pamanintun Mekasiping a Pakibat king Kontrata & RRECS
Ding kutanus tungkul king deadline ning Step 1 grievance, sueldu king relief day, kaduang trip, coverage factor, ampo Rural Route Evaluation Dispute Process (RREDP) sasakupan de ing NRLCA National Agreement, Memoranda of Understanding (MOUs), ampo manual ning USPS. Mangailangan lang mabilis at malinong panintun ding carrier a makatuglung karing partikular a pamagat ning kasulatan, numero ning bulung, ampo petsa.
2. Lihim a Pamagdraft Form king Reklamo & Pamilaban
Ing pamaghanda king Step 1 grievance working draft (PS Form 8191) o RRECS evaluation dispute draft (Form 1) para king union steward sasakupan na ring maselang detalye ning talapagobra (lagyu, 8-digit Employee ID Numbers, ruta numero, ampo salese ning kapalyarian) a kailangan manatili king browser ning carrier imbes na ipadala king server, at ding makabang salese mangailangan lang karagdagang bulung imbes na tahimik a maputut kilub da reng mangalating kahun ning PDF form.
3. Pamag-mapa king Tuknangan & Pamag-obra Offline karing Rutang Rural
Deng rural delivery routes maralas lang dumalan karing lugal a maki mahina o alang mobile coverage. Ding carrier a magplano karing Mailbox, Park point, ampo Front door locations mangailangan lang pamag-mapang ruta a magsimpan lokal karing tuknangan kilub ning browser, magtuglung karing miyuyugneng tuknangan, mag-export portable a file ning mapa a alang pamangawang account, ampo mag-download public-domain map tiles para king offline a sanggunian.
Nanu ing Agawa ning Produkto (Pepatunayan a Kagiwan)
Pagsasanmetung no ning Rural Mail Digital Helper ding apat a workspace kilub ning mai-install, offline-capable a Progressive Web App:
1. Saved Contract & RRECS Q&A (`#ask`)
Susurian no reng misimpan a pakibat king obra ning rural carrier, sueldu, RRECS evaluation, coverage factor, kaduang trip, tuntunan king relief day, ampo Step 1 timelines a maki siping a sanggunian.
Supported unanswered public questions can be queued via `/rural-mail-digital-assistant/engine/ask` without generating in engine-open, scheduling up to six read-only cache refreshes 30 seconds apart.
When the engine reports `answer_status: "needs_material"`, the page states that the question is kept on file while looking for supporting material, with no set wait time and no queue promise.
Displays turnaround estimates only from verified completed samples in `flash-turnaround.json` (verified within the last 7 days, deduplicated by `evidence_sha256`), falling back to 7-day `healthz.cache_turnaround` statistics when at least five samples exist and showing an explicit no-estimate message rather than an invented wait time when fewer than five samples exist.
Manintun yang sipi king kabilugan ning NRLCA National Agreement, MOUs, guides ning RREDP, ampo postal manuals agpang king paksa, artikulu, o numero ning pormularyo.
Kayabe la ring mabilis a panimulang paksa para king Article 15 grievance procedure, PS Form 8191, Rural Route Evaluation Dispute Process (RREDP), ampo Article 31 pamanyad impormasyun.
Magbalik yang siniping dake kayabe ding pamagat ning orihinal a kasulatan, numero ning bulung, ampo petsa (sipi mu, ali buung kasulatan a i-download).
3. Browser-Local Printable Form Drafts (`#tools`)
Issue Questionnaire & Working Draft: Builds a steward preparation checklist and an escaped-text worksheet that can be printed or downloaded as `.txt` without clipping long entries.
Tutung PS Form 8191 Draft (Marso 2007 — EIN Edition): Uses locally vendored `pdf-lib`, `@pdf-lib/fontkit`, and `DejaVuSans.ttf` (`ps8191.js`) to fill the authentic blank AcroForm entirely in the browser. Enforces explicit bounds (100,000 characters per entry; 400,000 across the draft), carries overflow onto labelled continuation pages on whole Unicode code-point boundaries, validates Item 1b EIN as 8 digits or blank, checks glyph coverage against embedded DejaVu (Latin, Greek, Cyrillic, accents, and typographic punctuation), and immediately detaches the PDF blob if any field changes.
Mibaelik a RRECS Evaluation Dispute Form 1 Draft (Oktubri 2026): Fills a recreated vector PDF layout (`rrecs-form1.js`) in the browser, preserving leading zeros on plain-text phone, installation, finance-number, and ZIP fields, with independent checkboxes for Office Time, Route Time, and Street Volume Time.
4. Interactive Offline Route Mapper (`#map`)
Lazy-loads locally vendored Leaflet 1.9.4 a maki apat a base layer: Dalan (OpenStreetMap), Satellite (imahe ning USGS National Map a maki label), Aerial (USGS imahe-mu a orthoimagery), at Topo (USGS National Map).
Lalage yang color-coded Bulanlu (`#15803d`), Lugar ning parada (`#7c3aed`), and Arapan a pasbul (`#eab308`) pins with optional user names (up to 140 UTF-16 code units, keeping leading zeros such as `007`), undo last placement, and click-to-undo mode.
Connect Mode: Links a mailbox, a park point, and a front door in order with an optional verbatim box number (up to 40 characters), computing geodesic (haversine) straight-line distance estimates and displaying a proximity advisory when a mailbox is under 5 feet (`1.523999 m`) from another stop.
Offline a USGS Tile Packs & Portable a Files: Downloads USGS Satellite or Topo tile packs (up to 6,000 tiles, zoom ≤ 16) into Cache Storage (`helper-tiles-v1`) with parallel fetch, retry, cancel/sweep cleanup, and dateline (`±180°`) wrapping. Checkpoints working maps (`nrlca_route_map_working_session_v1`), saves named routes in `localStorage`, records foreground-only GPS location trails, and exports/imports strict `nrlca-map/v1` and `nrlca-map/v2` portable JSON files plus GeoJSON and print summaries.
Tungkulan ning Tyson
Tyson Berry-Wogan conceived, designed, and built Rural Mail Digital Helper (`/rural-mail-digital-helper/`) and its companion three-minute interactive walkthrough demo (`/nrlca-demo/`).
Inhinyeria king Client-Side PDF & Typography: Built `ps8191.js` and `rrecs-form1.js` to render printable working drafts on the March 2007 PS Form 8191 AcroForm and the recreated October 2026 RRECS Form 1 vector layout directly in the browser, with surrogate-safe Unicode code-point wrapping, pre-build glyph validation, continuation page layout, and SHA-256 vendor provenance verification (`vendor/ps8191/PROVENANCE.json`).
Disenyo ning Geospatial & Portable Schema: Authored the `nrlca-map/v1` and `nrlca-map/v2` JSON Schema 2020-12 contracts and portable JavaScript codecs (`shared/map-portable-v1.js`, `shared/map-portable-v2.js`) shared between the web helper and native iOS/Android mapping parsers, including strict unknown-field refusal, dateline unwrapping, and non-destructive legacy route migration.
Arkitektura ning Atomic PWA Service Worker: Engineered the v6 atomic generation service worker (`rural-mail-digital-helper/sw.js`) that stages and validates the 30 `SHELL` entries—verifying MIME types, format magic signatures, and 22 pinned SHA-256 hashes—into a new immutable generation cache (`helper-shell-v6-g-<build>`) before updating the `__selected_generation__` pointer, without deleting the previously selected generation during publication so a failure at any promotion step keeps the old verified shell live and serving.
Screenshots ning Application & Visual Assets
The images below are the existing raster visual assets committed in the repository for Rural Mail Digital Helper: the walkthrough interface capture (`/posters/nrlca-demo.webp`) and the standard and maskable Progressive Web App icons (`/rural-mail-digital-helper/icons/icon-512.png` and `/rural-mail-digital-helper/icons/maskable-512.png`), which depict the three connected stop types used in the route mapper.
Walkthrough Capture — Misimpan a RRECS Pakibat & Kasulatang Sanggunian
Interface capture (`/posters/nrlca-demo.webp`, 720×480) showing the Ask workspace returning a cached answer on the Rural Route Evaluation Dispute Process (RREDP) with document page citations and verification notices.
Icon ning Progressive Web App — Makatuglung a Ruta da reng Tuknangan
Standard 512×512 PNG application icon (`/rural-mail-digital-helper/icons/icon-512.png`, SHA-256 pinned in `sw.js`) illustrating three linked route stops along a mapped path.
Maskable Home-Screen Icon — Asset ning Android & PWA Safe-Zone
Full-bleed 512×512 maskable icon (`/rural-mail-digital-helper/icons/maskable-512.png`, SHA-256 pinned in `sw.js`) referenced by `manifest.webmanifest` for adaptive mobile home-screen installation.
Limitasyun, Setup, Privacy & Plataporma
Ipapatupad ning Rural Mail Digital Helper ing mahigpit a limitasyun king batas, teknikal, ampo privacy ba rang aintindian ding carrier ampo steward nung nanu ing agyu at e agyung gawan ning kasangkapan:
Aliwang Opisyal a Sistema ning Union o USPS
Ing Rural Mail Digital Helper metung yang independienteng saup king pamagaral ampo pamagplano—e panibatan ning katutuan—at e dapat gamitan bilang metung a opisyal a sanggunian. Parating surian ding kasalungsungang kasulatan ning kontrata at makipagsalita king union steward bayu ring deadline ning pamag-file.
Working Drafts Lamang (E Nanu Man Pipirmahan o I-file Keni)
Ing pamaghanda o pamag-print worksheet, PS Form 8191 draft, o RRECS Evaluation Dispute Form 1 draft gagawa yang working draft para mu king pagsuri ning steward; e ya pirmahan, ipasulagpo, o ipasa keni kailanman. Ding pahayag ning pamamahala, pamanyuri king panaun, disposisyun, at gulis ning pirma tuyang pikakwanan a alang laman. Ing Oktubri 2026 RRECS Form 1 metung yang panibayung lelangan a vector layout, e opisyal a orihinal ning USPS.
Browser-Local a Pormularyo & Simpanan ning Ruta
Form entries run in the browser: they are not sent anywhere, not logged, and not saved by the site. Unsaved route pins stay in the current page; working map checkpoints (`nrlca_route_map_working_session_v1`), named saved routes (`nrlca_route_map_saved_routes_v1`), and downloaded offline tile packs (`helper-tiles-v1`) are stored only in that browser profile on that device (up to 500 pins, 500 connections, and a 4 MiB checkpoint JSON cap) and are not uploaded or synced. No user account is created, anyone using the same browser profile may be able to see saved local storage, and clearing browser site data removes local routes.
Map Layers, Tile Policy & Deritsung Distansya
Gagamitan ne ning mapa ing OpenStreetMap ampo USGS National Map tiles—e ing opisyal a mapa ning USPS Digital Point Mapping (DPM)—at ding Mailbox, Park point, ampo Front door pins personal lang tanda king pamagplano, ali opisyal a simbolo ning DPM o sukad ning RRECS. Ding megulis a linya ampo Connect distances taya la mung deritsung distansya (geodesic), ali road-snapped a kalyu, oras ning pamamye, o RRECS credit. Agpang king tile usage policy ning OpenStreetMap Foundation, ding OSM Street tiles e la nung kapilan man i-prefetch o i-bulk-download; ding offline packs mag-cache la mu karing public-domain USGS Satellite o Topo tiles (angga king zoom 16, mituldu king 6,000 tiles balang ruta).
Foreground Lokasyun Pamag-record Lamang
Ing paintulut king lokasyun yaran ya mu potang i-click ning talagamit ing Gamitan ing kakung lokasyon o Umpisan ing pamag-record king lokasyon. Ing pamag-record king dalan gagana mu kabang akakit ya ing bulung (angga king 10,000 a mitalang fix/segment); ing pamisalikut king tab, pamaglipat app, pamag-lock king screen, o pilatan ning provider a migit 30 a segundo magpatuknang king pamag-record at magtatak segment break. Ding posisyun ning GPS king browser at teleponu karkuladu la mu.
Plataporma, Sakup ning Offline & Android Test Build
Runs on desktop and mobile browsers (Web, iOS, Android) and installs as an offline-capable PWA. Saved routes, pins, Connect links, and local draft forms work offline once cached; asking new questions, searching the document library, and viewing undownloaded map areas require a network connection. Interactive helper features require JavaScript enabled. The Route Map section also offers a signed Android test APK (`RuralMailDigitalHelper-Android-1.0.1-native-20261016-debug.apk`, 58.4 MiB, Android 8.0+, with SHA-256 checksum), explicitly labelled as an October 16 test candidate—not a Play Store release or the newer marker-guard source—where phone compatibility, saved-map recovery, and background/locked-screen GPS still require device verification.
Tutuking Gawan — Buklat ing Helper o Alben ing Walkthrough
Buklat ya ing Rural Mail Digital Helper deritsu king kekang browser (o i-install ya king home screen), lumuksu king partikular a kasangkapan, o alben ya ing atlung minutung interactive a walkthrough demo: