Skip to content

feat: resolves issue #16 - add loading state while routes are calculated - #64

Merged
ToryMic merged 1 commit into
BreachDirect:mainfrom
Max-Owolabi:issue-16
Aug 10, 2026
Merged

feat: resolves issue #16 - add loading state while routes are calculated#64
ToryMic merged 1 commit into
BreachDirect:mainfrom
Max-Owolabi:issue-16

Conversation

@Max-Owolabi

Copy link
Copy Markdown
Contributor

Summary

Resolves #16 — adds a loading state while routes are being calculated, ready to be styled ahead of Phase 2's real network calls.

Changes

  • src/App.jsx: handleSubmit is now async with a 500ms artificial delay before computing routes. While loading, results are replaced with a "Finding routes…" indicator (role="status"); the submit handler also guards against duplicate submissions.
  • src/styles.css: .loading + .spinner styles (CSS keyframe spin).
  • tests/App.test.jsx: verifies the loading indicator appears on submit and disappears once results are ready.
  • CHANGELOG.md: entry under Unreleased.

Verification

  • npm test passes (24/24 across 5 files).
  • npm run build passes.

@ToryMic
ToryMic merged commit 60fde88 into BreachDirect:main Aug 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a loading state while routes are being calculated

2 participants