✅ base implementation done, now onto mobile app
This commit is contained in:
24
README.md
24
README.md
@@ -133,28 +133,28 @@ Target:
|
||||
- `apps/main/src/lib/domains/mobile/*` (new)
|
||||
- `apps/main/src/routes/(main)/devices/[deviceId]` (new)
|
||||
|
||||
- [ ] Add remote functions:
|
||||
- [x] Add remote functions:
|
||||
- `getDevicesSQ`
|
||||
- `getDeviceDetailSQ`
|
||||
- `getDeviceSmsSQ`
|
||||
- `getDeviceMediaSQ`
|
||||
- [ ] Add VM (`devices.vm.svelte.ts`) that:
|
||||
- [x] Add VM (`devices.vm.svelte.ts`) that:
|
||||
- fetches devices list
|
||||
- fetches selected device detail
|
||||
- polls SMS every 5 seconds while device view is open
|
||||
- handles loading/error states
|
||||
- [ ] Add UI pages/components:
|
||||
- [x] Add UI pages/components:
|
||||
- `/dashboard` list with device identity + last ping
|
||||
- `/devices/[deviceId]` detail with tabs:
|
||||
- Device info
|
||||
- SMS feed
|
||||
- Media assets list
|
||||
- [ ] Add sidebar/navigation entry for Devices.
|
||||
- [x] Add sidebar/navigation entry for Devices.
|
||||
|
||||
Definition of done:
|
||||
|
||||
- [ ] Admin can browse devices and open each device detail.
|
||||
- [ ] SMS view refreshes every 5 seconds and shows new data.
|
||||
- [x] Admin can browse devices and open each device detail.
|
||||
- [x] SMS view refreshes every 5 seconds and shows new data.
|
||||
|
||||
### Phase 5: Observability Stage 1
|
||||
|
||||
@@ -163,24 +163,24 @@ Targets:
|
||||
- `packages/logic/core/observability.ts` (use existing helpers)
|
||||
- Processor/mobile domain handlers and repository/controller paths
|
||||
|
||||
- [ ] Add span names for key flows:
|
||||
- [x] Add span names for key flows:
|
||||
- `mobile.register`
|
||||
- `mobile.ping`
|
||||
- `mobile.sms.sync`
|
||||
- `mobile.media.sync`
|
||||
- `mobile.devices.list`
|
||||
- `mobile.device.detail`
|
||||
- [ ] Add structured domain events with device id, counts, durations.
|
||||
- [ ] Ensure errors include `flowId` consistently.
|
||||
- [x] Add structured domain events with device id, counts, durations.
|
||||
- [x] Ensure errors include `flowId` consistently.
|
||||
|
||||
Definition of done:
|
||||
|
||||
- [ ] Can trace one request from processor endpoint to DB operation via shared `flowId`.
|
||||
- [x] Can trace one request from processor endpoint to DB operation via shared `flowId`.
|
||||
|
||||
### Phase 6: Handoff Readiness (Team Test Phase)
|
||||
|
||||
- [ ] Prepare endpoint payload examples for mobile team (in a `spec.mobile.md` file).
|
||||
- [ ] Provide a short operator checklist:
|
||||
- [x] Prepare endpoint payload examples for mobile team (in a `spec.mobile.md` file).
|
||||
- [x] Provide a short operator checklist:
|
||||
- register device
|
||||
- verify ping updates
|
||||
- verify sms appears in admin
|
||||
|
||||
Reference in New Issue
Block a user