Skip to content

Add ChargeCatch demo app for offline session reconciliation to mock CMS - #21

Merged
Ankush523 merged 4 commits into
mainfrom
feat/chargecatch
Oct 13, 2026
Merged

Ankush523 merged 4 commits into
mainfrom
feat/chargecatch

Conversation

@Ankush523

Copy link
Copy Markdown
Contributor

Summary

  • Add ChargeCatch (apps/chargecatch): EV-style charge site demo aligned with local session retention + upstream reconciliation when connectivity returns.
  • Site hub holds the authoritative session ledger; charge points (CP-A / CP-B) record RFID sessions; field tech clears comms faults so pending sessions retry over mesh.
  • Head office link toggle simulates CMS connectivity; Upload to CMS (mock) with visible duplicate drop on re-upload (sessionId idempotency).
  • Root README app table, run instructions, and CI Android/iOS matrix updated for chargecatch.

What it proves

  • Edge devices stay useful while head office is offline; enterprise ledger catches up once, without double-counting sessions.
  • Same mesh patterns as other catalogue apps (host ledger, propose/snapshot, pending resend) applied to the charge-point / OCPP-adjacent story.

Test plan

  • pnpm --filter @offline-app-examples/chargecatch test
  • pnpm --filter @offline-app-examples/chargecatch typecheck
  • Physical devices: hub + 2 chargers + tech — head office off → sessions on hub → fault/repair → head office on → upload → second upload shows dupes dropped
  • CI green (typecheck, lint, test, bundle, Android/iOS build)

Comment thread apps/chargecatch/src/domain/sessions.ts Fixed
Ankush523 and others added 3 commits October 12, 2026 17:05
…ge path

Move MainActivity and MainApplication under com/offlineappexamples/chargecatch
so CI Kotlin compile matches namespace/applicationId.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Ankush523
Ankush523 merged commit dd73185 into main Oct 13, 2026
23 checks passed
@mizanxali
mizanxali deleted the feat/chargecatch branch October 14, 2026 19:10
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.

2 participants