Use Distance Pre-fill to Reduce Manual Entry Effort
Many peer mentors visit the same contacts repeatedly, making the same trip week after week. The distance prefill service should leverage the local distance cache to suggest previously used distances for known route combinations. When a mentor types a from/to combination that matches a cached entry, the distance field should auto-populate while remaining editable. This significantly reduces entry time for repeat routes and aligns with the workshop requirement for submitting registrations in under two clicks for common cases.
User Story
Acceptance Criteria
- Given I have previously submitted a claim for a route from address A to address B, When I next enter the same from/to combination in the route input fields, Then the distance field is pre-populated with the previously used distance
- Given the distance field is pre-populated from cache, When I review the value, Then it is clearly indicated as a suggestion (e.g., prefilled label) and I can edit it freely
- Given no cached route exists for my input, When the prefill service finds no match, Then the distance field remains empty and no incorrect suggestion is displayed
- Given I am offline, When I enter a route combination, Then the local distance cache is consulted and a cached value is offered if available, without requiring a network call
- Given I edit a pre-filled distance and submit the claim, When the claim is saved, Then the new distance value is stored in the cache to update the suggestion for future identical routes
Business Value
Repeat route pre-fill directly supports the core design principle established across all workshop sessions: minimize cognitive load and reduce the number of steps for common actions. A peer mentor with 380 registrations per year (HLF example from workshops) saves significant cumulative time and effort when frequently-travelled routes are remembered by the app, reducing the risk of abandonment mid-entry.
Components
- Distance Prefill Service service
- Local Distance Cache infrastructure
- Route Input Fields Widget ui
- Distance Input Field Widget ui
- Mileage Entry Form ui