Istùdiu de casu de su progetu · Progressive Web App funtzionante offline
Rural Mail Digital Helper
Una Progressive Web App (PWA) de balde e installàbile, progetada e fraigada da Tyson Berry-Wogan pro sos portalìteras rurales. Cumbinat rispostas sarvadas subra su cuntratu USPS-NRLCA e subra RRECS, una biblioteca de brutes de documentos consultàbile, brutas de traballu imprentàbiles in locale in su navigadore de su mòdulu PS Form 8191 e de su mòdulu de pertega de avaliamentu RRECS Form 1, e mapas de percursu offline USGS/OpenStreetMap.
Sos portalìteras rurales chi controllant sas normas de su cuntratu, si preparant pro sos arresonos cun su delegadu o esàminant sas fermadas de su percursu segundu su Rural Route Evaluated Compensation System (RRECS) afròntant tres ostàculos recurrentes:
1. Chirca de rispostas tzitadas de su cuntratu e RRECS
Sas pregontas subra sas cadèntzias de sos reclamos de Istràsia 1, sa paga de sos dies de pasu, sos segundus biàgios, su fatore de cobertura e su Protzessu de Pertega de s'Avaliamentu de sos Percursos Rurales (RREDP) pertocant s'Acòrdiu Natzionale NRLCA, sos Memorandos de Intesa (MOU) e sos manuales USPS. Sos portalìteras tenent bisòngiu de chircas ràpidas e in limbàgiu craru, ligadas a tìtulos de documentos, nùmeros de pàgina e datas pretzisas.
2. Redatzione privada de mòdulos de reclamu e perrica
Sa preparatzione de una bruta de traballu pro unu reclamu de Istràsia 1 (PS Form 8191) o de una pertega de avaliamentu RRECS (Form 1) pro unu delegadu sindacale rechedet datos riservados de su dipendente (nùmenes, Nùmeros de Identificatzione de su Dipendente a 8 tzifras, nùmeros de percursu e relatas de sos fatos) chi depent abarrare in su navigadore de su portalìteras e no èssere imbiados a unu serbidore; in prus, sas decraratziones longas tenent bisòngiu de pàginas de sighidura pro no èssere segadas a sa muda intro de sas casellas minores de su mòdulu PDF.
3. Mapamentu de sas paradas e traballu foras de lìnia in percursos rurales
Sos percursos de cunsigna rurales a s'ispissu rugrant zonas cun cobertura mòbile dèbile o ausente. Sos portalìteras chi progetant sas positziones de Mailbox, Park point e Front door tenent bisòngiu de una mapa de percursos chi sarvet sas fermadas in locale in su navigadore, collighet sas fermadas relatas, esportet archìvios de mapa portàbiles chene bisòngiu de creare unu contu e iscàrrighet tassellos de mapa de domìniu pùblicu pro consultatzione offline.
Ite faghet su produtu (Capatzidades ammustradas)
Rural Mail Digital Helper organizat bator ispàtzios de traballu integrados intro de una Progressive Web App installàbile e funtzionante offline:
1. Saved Contract & RRECS Q&A (`#ask`)
Verìficat sas rispostas sarvadas subra su traballu de su portalìteras rurale, sa retributzione, sos avaliamentos RRECS, su fatore de cobertura, sos segundus biàgios, sas règulas de sos dies de pasu e sas cadèntzias de s'Istràsia 1 cun tzitatziones de sas fontes.
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.
Chircat brutes in s'Acòrdiu Natzionale NRLCA, in sos MOU, in sas ghias RREDP e in sos manuales postales pro tema, artìculu o nùmeru de mòdulu.
Includet puntos de partèntzia ràpidos pro sa protzedura de reclamu de s'Artìculu 15, su PS Form 8191, su Protzessu de Pertega de s'Avaliamentu de sos Percursos Rurales (RREDP) e sas rechestas de informatziones de s'Artìculu 31.
Torrat brutes tzitadas paris cun sos tìtulos de sos documentos de orìgine, sos nùmeros de pàgina e sas datas (solu brutes, no iscarrigamentos de documentos intregos).
3. Browser-Local Printable Form Drafts (`#tools`)
Cuestionàriu de su problema e bruta de traballu: Builds a steward preparation checklist and an escaped-text worksheet that can be printed or downloaded as `.txt` without clipping long entries.
Bruta autèntica de su PS Form 8191 (Martzu 2007 — Editzione EIN): 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.
Bruta torrada a creare de su mòdulu de pertega de avaliamentu RRECS Form 1 (Urtriber 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`)
Càrrigat a sa sola e in locale Leaflet 1.9.4 cun bator livellos de base: Istrada (OpenStreetMap), Satèllite (immàzines USGS National Map cun etichetas), Aèrea (ortoimmàzines USGS de immàzines ebbia), e Topogràfica (USGS National Map).
Pòstulas cun còdighes de colore Buca de sas lìteras (`#15803d`), Puntu de parchègiu (`#7c3aed`), and Ghenna printzipale (`#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.
Modalidade de connessione: 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.
Pachetes de tassellos USGS offline e documentos portàbiles: 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.
Ruolu de 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/`).
Ingegneria tipogràfica e PDF dae sa banda de su cliente: 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`).
Progetatzione de ischemas geospatziales e portàbiles: 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.
Architetura de su Service Worker de sa PWA atòmica: 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.
Iscrintsiots e resursas visuales de s'aplicatzione
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.
Cata de sa ghia — Risposta RRECS sarvada e tzitatziones de documentos
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.
Icona de sa Progressive Web App — Fermadas de percursu cunnèctidas
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.
Icona mascheràbile pro s'ischermada printzipale — Resursa cun àrea de seguridade pro Android e PWA
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.
Lìmites, cunfiguratzione, riservadesa e prataformas
Rural Mail Digital Helper àplicat lìmites legales, tècnicos e de riservadesa rigorosos pro fàghere a manera chi sos portalìteras e sos delegados cumprendant su chi s'istrumentu faghet e no faghet:
No est unu sistema ufitziale de su sindacadu o de s'USPS
Rural Mail Digital Helper est un'agiudu indipendente pro sa formatzione e sa pianificatzione—no una fonte de veridade—e no depet èssere tzitadu comente a tale. Verìfica semper sos documentos cuntratuales atuales e chistiona cun unu delegadu sindacale prima de sas cadèntzias de presentatzione.
Solu brutas de traballu (mai firmadas o presentadas inoghe)
A preparare o a imprentare unu fògiu de traballu, una bruta de PS Form 8191 o una bruta de su mòdulu de pertega de avaliamentu RRECS Form 1 gènerat una bruta de traballu petzi pro s'esàmene de su delegadu; no est mai firmadu, archiviatu o imbiadu inoghe. Declaratziones de sa diretzione, valutatziones de sa tempestividade, risolutziones e lìnias pro sa firma sunt lassadas a de badas a sa fine. Su Mòdulu RRECS 1 de santugaine 2026 est un'impaginatzione vetoriale recreada, no un'originale ufitziale USPS.
Mòdulos in locale in su navigadore e archiviatzione de sos percursos
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.
Livellos de mapa, polìtica de sos tassellos e distàntzia in lìnia dereta
Sa mapa impreat tassellos de OpenStreetMap e USGS National Map—no sa mapa ufitziale USPS Digital Point Mapping (DPM)—e sos spillas de Mailbox, Park point e Front door sunt etichetas de pianificatzione personales, no sìmbulos DPM ufitziales o mesuras RRECS. Sas lìnias trassadas e sas distàntzias de Connect sunt istimas geodèsicas in lìnia dereta, no chilòmetros adatados a sa retze de sas istradas, tempus de cunsigna o crèditu RRECS. Segundu sa polìtica de impreu de sos tassellos de sa Fundatzione OpenStreetMap, sos tassellos OSM Street no benint mai precarrigados nen iscarrigados in blocu; sos pachetes offline sarvant in cache solu tassellos de domìniu pùblicu USGS Satellite o Topo (finas a su zoom 16, cun unu màssimu de 6,000 tassellos pro percursu).
Registratzione de sa positzione solu in primu pianu
Su permissu de positzione benit pedidu petzi cando s'impitadore sèberat Imprea sa positzione mea o Incumintza sa registratzione de sa positzione. Sa registratzione de su camminu funtzionat sceti cando sa pàgina est vìsibile (fintzas a 10,000 positziones/segmentos registrados); cuare s'ischeda, cambiare aplicatzione, serrare s'ischermu o un'intervallu de su frunidore de prus de 30 segundos ponet in pàusa sa registratzione e sinnat un'interrutzione de segmentu. Sas positziones GPS de su navigadore e de su telèfonu sunt aprossimadas.
Prataformas, àmbitu offline e compilatzione de proa pro Android
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.
Atzione imbeniente — Aberi s'agiudu o càstia sa ghia
Avia Rural Mail Digital Helper deretu in su navigadore tuo (o instàllalu in s'ischermada printzipale), colla a un'istrumentu ispetzìficu, o càstia sa dimustratzione ghia interativa de tres minutos: