Astudiaeth Achos Prosiect · Ap Gwe Cynyddol sy'n Gallu Gweithio All-lein
Rural Mail Digital Helper
Ap Gwe Cynyddol (PWA) rhad ac am ddim, gosodadwy a ddyluniwyd ac a adeiladwyd gan Tyson Berry-Wogan ar gyfer cludwyr llythyrau gwledig. Mae'n cyfuno atebion contract USPS-NRLCA ac RRECS wedi'u cadw, llyfrgell ddyfyniadau dogfennau y gellir ei chwilio, drafftiau gwaith argraffadwy lleol i'r porwr ar PS Form 8191 a Ffurflen Anghydfod Gwerthuso RRECS 1, a mapio llwybrau all-lein USGS/OpenStreetMap.
Mae cludwyr llythyrau gwledig sy'n gwirio darpariaethau contract, yn paratoi ar gyfer trafodaethau stiwardiaid, neu'n adolygu arosfannau llwybr o dan y System Iawndal wedi'i Werthuso ar gyfer Llwybrau Gwledig (RRECS) yn wynebu tri rhwystr cyson:
1. Dod o Hyd i Atebion Cytundeb a RRECS a Ddyfynnwyd
Mae cwestiynau am ddyddiadau cau cwynion Cam 1, tâl diwrnod rhyddhad, ail deithiau, ffactor cwmpas, a'r Broses Anghydfod Gwerthuso Llwybrau Gwledig (RREDP) yn rhychwantu Cytundeb Cenedlaethol NRLCA, Memoranda o Ddealltwriaeth (MOUs), a llawlyfrau USPS. Mae angen chwiliadau cyflym, iaith blaen ar gludwyr sydd wedi'u cysylltu â theitlau dogfennau, rhifau tudalennau a dyddiadau penodol.
2. Drafftio Ffurflenni Cwynion ac Anghydfodau'n Breifat
Mae paratoi drafft gwaith cwyn Cam 1 (PS Form 8191) neu ddrafft anghydfod gwerthuso RRECS (Ffurflen 1) ar gyfer stiward undeb yn cynnwys manylion gweithwyr sensitif (enwau, Rhifau Adnabod Gweithwyr 8 digid, rhifau llwybr, a naratifau digwyddiadau) y mae angen iddynt aros ym mhorwr y cludwr yn hytrach na chael eu hanfon i weinydd, ac mae angen tudalennau parhad ar ddatganiadau hir yn hytrach na chael eu cwtogi'n dawel y tu mewn i flychau ffurflen PDF bach.
3. Mapio Arosfannau a Gweithio All-lein ar Lwybrau Gwledig
Mae llwybrau dosbarthu gwledig yn aml yn croesi ardaloedd heb fawr o ddarpariaeth symudol neu ddim o gwbl. Mae angen mapiwr llwybrau ar gludwyr sy'n cynllunio lleoliadau Blwch Post, Pwynt Parcio a Drws Ffrynt sy'n cadw arosfannau'n lleol yn y porwr, yn cysylltu arosfannau cysylltiedig, yn allforio ffeiliau map cludadwy heb greu cyfrif, ac yn lawrlwytho teils map parth cyhoeddus ar gyfer cyfeirio all-lein.
Beth Mae'r Cynnyrch yn ei Wneud (Galluoedd a Ddangoswyd)
Mae Rural Mail Digital Helper yn trefnu pedair gwefan waith integredig y tu mewn i Ap Gwe Cynyddol gosodadwy, sy'n gallu gweithio all-lein:
1. Saved Contract & RRECS Q&A (`#ask`)
Gwirio atebion a gadwyd ar waith cludwyr gwledig, tâl, gwerthusiadau RRECS, ffactor cwmpas, ail deithiau, rheolau diwrnod rhyddhad, a llinellau amser Cam 1 gyda dyfyniadau ffynhonnell.
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.
Chwilio dyfyniadau ar draws Cytundeb Cenedlaethol NRLCA, MOUs, canllawiau RREDP, a llawlyfrau post yn ôl pwnc, erthygl, neu rif ffurflen.
Yn cynnwys cychwynwyr pynciau cyflym ar gyfer gweithdrefn gwyno Erthygl 15, PS Form 8191, Proses Anghydfod Gwerthuso Llwybrau Gwledig (RREDP), a cheisiadau Erthygl 31 am wybodaeth.
Dychwelyd dyfyniadau ochr yn ochr â theitlau eu dogfennau ffynhonnell, rhifau tudalennau a dyddiadau (dyfyniadau yn unig, nid lawrlwythiadau dogfen lawn).
3. Browser-Local Printable Form Drafts (`#tools`)
Holiadur Mater a Drafft Gwaith: Builds a steward preparation checklist and an escaped-text worksheet that can be printed or downloaded as `.txt` without clipping long entries.
Drafft Dilys PS Form 8191 (Mawrth 2007 — Argraffiad 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.
Drafft Ffurflen Anghydfod Gwerthuso RRECS 1 wedi'i Ail-greu (Hydref 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`)
Yn ddiog-lwytho Leaflet 1.9.4 a ddarparwyd yn lleol gyda phedair haen sylfaen: Stryd (OpenStreetMap), Lloeren (delweddau USGS National Map gyda labeli), O'r Awyr (orthoddelweddau delweddau-yn-unig USGS), ac Topograffig (USGS National Map).
Lleoliadau wedi'u codio â lliw Blwch post (`#15803d`), Pwynt parcio (`#7c3aed`), and Drws ffrynt (`#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.
Modd Cysylltu: 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.
Pecynnau Teils USGS All-lein a Ffeiliau Cludadwy: 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.
Rôl 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/`).
Peirianneg PDF a Theipograffeg ar Ochr y Cleient: 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`).
Dyluniad Geospatial a Chynllun Cludadwy: 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.
Pensaernïaeth Service Worker PWA Atomig: 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.
Cipolygon o'r Rhaglen ac Asedau Gweledol
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.
Cip Arddangos — Ateb RRECS a Gadwyd a Dyfyniadau Dogfennau
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.
Eicon Ap Gwe Cynyddol — Arosfannau Llwybr Cysylltiedig
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.
Eicon Sgrin Gartref Masgiadwy — Ased Parth Diogel Android a 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.
Cyfyngiadau, Gosod, Preifatrwydd a Llwyfannau
Mae Rural Mail Digital Helper yn gorfodi ffiniau cyfreithiol, technegol a phreifatrwydd llym fel bod cludwyr a stiwardiaid yn deall beth mae'r offeryn yn ei wneud a beth nad yw'n ei wneud:
Nid yw'n System Undeb nac USPS Swyddogol
Mae Rural Mail Digital Helper yn gymorth addysgol a chynllunio annibynnol—nid ffynhonnell wirionedd—ac ni ddylid ei ddyfynnu fel un. Gwiriwch ddogfennau contract cyfredol bob amser a siaradwch â stiward undeb cyn dyddiadau cau ffeilio.
Drafftiau Gwaith yn Unig (Ni Chânt Byth eu Llofnodi na'u Ffeilio Yma)
Mae paratoi neu argraffu taflen waith, drafft PS Form 8191, neu ddrafft Ffurflen Anghydfod Gwerthuso RRECS 1 yn cynhyrchu drafft gwaith ar gyfer adolygiad stiward yn unig; ni chaiff byth ei lofnodi, ei ffeilio, na'i gyflwyno yma. Gadewir datganiadau rheolwyr, asesiadau amseroldeb, gwarediadau, a llinellau llofnod yn wag yn fwriadol. Cynllun fector wedi'i ail-greu yw Ffurflen 1 RRECS Hydref 2026, nid un swyddogol wreiddiol USPS.
Ffurflenni Lleol i'r Porwr a Storfa Lwybrau
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.
Haenau Map, Polisi Teils a Phellter Llinell Syth
Mae'r map yn defnyddio teils OpenStreetMap a USGS National Map—nid map swyddogol USPS Digital Point Mapping (DPM)—ac mae ei binnau Blwch Post, Pwynt Parcio a Drws Ffrynt yn labeli cynllunio personol, nid symbolau DPM swyddogol na mesuriadau RRECS. Amcangyfrifon geodesig llinell syth yw llinellau a dynnwyd a phellteroedd Cysylltu, nid milltiroedd wedi'u ciplunio i ffyrdd, amser dosbarthu, na chredyd RRECS. Yn unol â pholisi defnyddio teils Sefydliad OpenStreetMap, ni chaiff teils OSM Street byth eu rhaglwytho na'u lawrlwytho mewn swmp; dim ond teils lloeren neu dopograffig USGS parth cyhoeddus y mae pecynnau all-lein yn eu cudd-storio (i chwyddo 16, wedi'i gapio ar 6,000 o deils fesul llwybr).
Cofnodi Lleoliad Blaendir yn Unig
Gofynnir am ganiatâd lleoliad dim ond pan fydd y defnyddiwr yn clicio Defnyddio fy lleoliad neu Dechrau recordio lleoliad. Mae recordio llwybr yn rhedeg dim ond tra bod y dudalen yn weladwy (hyd at 10,000 o drwsiadau/segmentau a recordiwyd); mae cuddio'r tab, newid apiau, cloi'r sgrin, neu fwlch darparwr o dros 30 eiliad yn oedi recordio ac yn nodi toriad segment. Mae safleoedd GPS porwr a ffôn yn fras.
Llwyfannau, Cwmpas All-lein ac Adeiladwaith Prawf 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.
Gweithred Nesaf — Agor y Cynorthwyydd neu Wylio'r Arddangosiad
Lansio Rural Mail Digital Helper yn uniongyrchol yn eich porwr (neu ei osod ar eich sgrin gartref), neidio at offeryn penodol, neu wylio'r demo arddangos rhyngweithiol tri munud: