forked from sagnik/Project_Velocity
#24 WebOS Completion Co-authored-by: Sayan Datta <sayan@Sayans-MacBook-Air.local> Reviewed-on: sagnik/Project_Velocity#25
5.9 KiB
5.9 KiB
Delivery Log
Multi-Surface Platform and Oracle Expansion
Completed in this pass
- Confirmed backend route families are registered in
backend/main.py:routes_mobile_edge.pyroutes_inventory.pyroutes_admin_surface.py
- Confirmed Oracle extension artifacts already exist in the workspace:
backend/oracle/schema_extension_v2.sqlbackend/oracle/oracle_template_seed_db.json
- Completed iPad residual navigation and feature views:
- Added
CommunicationsView.swift - Added
CalendarView.swift - Wired both into
ContentView.swift
- Added
- Added Android tablet scaffold under
android-tablet/- Compose app shell
- Navigation graph
- Dashboard, Inventory, Oracle, Sentinel, and Settings feature stubs
- Added iPhone edge app scaffold under
iOS/velocity-edge-phone/- SwiftUI app entry
- Alerts, Lead Summary, Communications, Notes, Transcriptions, Settings
- Added Android phone edge scaffold under
android-edge-phone/- Compose app shell
- Alerts, Lead Summary, Communications, Notes, Transcriptions, Settings
- Added WebOS admin panel surface at
app/src/app/admin/page.tsx - Added
docs/KIMI_SYNTHETIC_DATA_DOWNSTREAM_PLAN.md - Hardened live auth/session behavior across WebOS:
- JWT roles are normalized to uppercase in
backend/auth/dependencies.py - WebOS session restore now re-validates the real backend token on reload in
app/src/App.tsx - Top-bar identity now renders the authenticated backend user instead of hard-coded operator text
- JWT roles are normalized to uppercase in
- Removed misleading mock fallback behavior from active WebOS surfaces:
app/src/store/useStore.tsnow starts with empty/live-only state instead of fabricated leads, visitors, metrics, and unitsapp/src/hooks/useCrmBootstrap.tsnow hydrates CRM plus inventory state from backend data and clears state on failure instead of silently preserving fake dataapp/src/lib/oracleQueryClient.tsnow throws whenVITE_ORACLE_QUERY_URLis missing instead of generating mock Oracle answers
- Rebuilt the investor-facing WebOS dashboard around live backend data:
app/src/components/modules/Dashboard.tsxnow renders CRM lead counts, real conversation volume, inventory preview, velocity trends, sync state, and mobile-edge alerts- Removed the previous fabricated AI chat, top performer, and static KPI content from the dashboard surface
- Extended the live inventory contract and frontend mapping:
backend/api/routes_inventory.pynow includesprice_bandsandunit_mixin property summary payloadsapp/src/lib/velocityPlatformClient.tsandapp/src/lib/platformMappers.tsnow map inventory properties into live Inventory module cards
- Reduced fabricated marketing behavior in Catalyst:
app/src/store/useMarketingStore.tsnow initializes empty instead of seeded mock campaigns/assets/insights/eventsapp/src/components/modules/Catalyst.tsxno longer auto-generates fake optimization feed eventsapp/src/components/modules/CatalystMarketingTab.tsxno longer exposes a synthetic lead seeding path from the production shellapp/src/components/modules/GroundTruthPicker.tsxnow requires real operator-provided assets instead of showing built-in sample media
- Oracle v1 client auth is now aligned with the main platform session:
app/src/oracle/lib/oracleApiClient.tswill reuse the live Velocity token if a dedicatedoracle_jwtis not present
- Completed final WebOS production pass:
app/src/app/admin/page.tsxnow stages real bounded admin actions throughPOST /api/admin-surface/actionsapp/src/components/modules/Settings.tsxnow reflects truthful session/config state instead of fake device pairing and hard-coded profile data- Removed inactive demo-only WebOS files such as
app/src/lib/oracleQueryClient.ts,app/src/oracle/lib/oracleDemoData.ts, andapp/src/components/oracle/mockLeads.ts
- Confirmed the iPad residual views are now live-backend readers rather than local static arrays:
iOS/velocity/velocity/Features/Communications/CommunicationsView.swiftiOS/velocity/velocity/Features/Calendar/CalendarView.swiftiOS/velocity/velocity/Core/Networking/VelocityAPIClient.swiftiOS/velocity/velocity/Core/Config/AppConfig.swift
MVP limits still in place
- Android projects are scaffolds only; they are not yet wired to shared API clients, auth, or install registration.
- The iPhone edge scaffold is source-first and does not yet include a dedicated
.xcodeprojtarget. - The WebOS admin page is mounted into the live Vite shell and can now stage bounded actions against the backend audit trail; auto-execution remains intentionally out of scope.
- The iPad Communications and Calendar views read live backend data, but the broader iPad app still contains other legacy mock-backed modules outside this residual slice.
- The active WebOS runtime path has been hardened away from mock/demo behavior, but deeper non-WebOS workstream items remain out of scope for this pass, especially legacy iPad modules and simulator-only inventory/AR helpers on iOS.
- Oracle template seed metadata needs correction:
_meta.total_seed_examplesdoes not match the actual seed example count inbackend/oracle/oracle_template_seed_db.json. - Sprint-1 documentation artifacts called for in the delivery pack are still missing as committed repo outputs, including the residual audit artifact and contract/package documentation.
Verification steps run
- Python syntax compilation for backend route files
- JSON validation for Oracle seed DB
- SQL parse sanity check on extension migration
npx tsc --noEmitfor the WebOS app after live-auth and no-mock hardening changespython3 -m py_compilefor backend auth and route modules after role/session hardening
Recommended next implementation step
WebOS is now the strongest completed surface. The next implementation step should move fully to iOS and Android completion while preserving the live backend/auth patterns established here.