# Fix Backlog — P0/P1/P2 Issues

# LumisCare — Fix Backlog

**Consolidated from 5 expert reports — 2026-03-25**
**Total issues: 32**

Format: [PORTAL] [PAGE] [ELEMENT] [PROBLEM] [FIX NEEDED]

---

## P0 — Demo Blocking

Issues that will be visible within 60 seconds of any stakeholder opening the app. Must be fixed before any demo or investor showing.

| # | Portal | Page | Element | Problem | Fix Needed |
|---|--------|------|---------|---------|------------|
| 1 | Admin Panel | Organizations (`/admin/organizations`) | "Add Organization" button | Button renders; no form or modal wired | Wire button to create organization form/modal with: Organization Name, Status, Contact details → POST `/api/v1/organizations` |
| 2 | Admin Panel | Organizations (`/admin/organizations`) | Per-card "More options" (…) button | Button renders; no dropdown or menu attached | Add dropdown menu with actions (Edit, View, Deactivate) per org card |
| 3 | Family Portal | Care Plan (`/family-portal-careplan`) | Print button (header) | `onClick` handler missing — button does nothing | Wire to `window.print()` or PDF export |
| 4 | Family Portal | Care Plan (`/family-portal-careplan`) | More options (3-dot) button (header) | `onClick` handler missing — button does nothing | Add dropdown with relevant actions (Download, Share) or remove button |
| 5 | Family Portal | Care Notes (`/family-portal-carenotes`) | "Week" button (rounded-full with left chevron) | No `onClick` handler — looks interactive but does nothing | Wire to `goToPreviousWeek()` (same as the arrow button) or replace with correct UI |
| 6 | Family Portal | Care Plan (`/family-portal-careplan`) | Draw Signature area inside Sign & Consent Modal | Draw tab shows placeholder `<div>`, no canvas or drawing library hooked up | Integrate a canvas drawing library (e.g. react-signature-canvas) — draw mode must capture a real signature |
| 7 | Back Office | Body Map (`/clients/:id/body-map`) | "This Week" time filter button | No `onClick` handler wired | Wire to filter observations by current week, or remove button until implemented |
| 8 | Back Office | Body Map (`/clients/:id/body-map`) | "Filters" button | No `onClick` handler wired | Open filter drawer/modal for observation category/severity, or remove button until implemented |
| 9 | Back Office | Body Map (`/clients/:id/body-map`) | Zoom controls (minus / zoom icon / plus) | UI renders; no zoom logic implemented | Implement zoom state and apply CSS transform on body diagram container |
| 10 | Back Office | Body Map (`/clients/:id/body-map`) | Per observation card "Edit" (pencil icon) | `onEdit(id)` handler marked TODO — not implemented | Implement edit observation flow (open edit dialog pre-populated with observation data) |
| 11 | Family Portal | Invoices (`/family-portal-invoices`) | Per-row "Pay" button | Calls `console.log` or shows "Online payment will be available in the next release." toast; no payment flow | For demo: show a modal stub. For production: integrate payment provider. Disable with clear "Coming Soon" state if not ready. |
| 12 | Family Portal | Dashboard (`/family-portal-dashboard`) | Per-invoice "Pay" button | Same as above — triggers info toast only | Same fix as above |
| 13 | Back Office | Visits Header (`/visits`) | Print button | `console.log` placeholder — "Print functionality coming soon" | Wire to print or remove button |
| 14 | Back Office | Visits Header (`/visits`) | Export button | `console.log` placeholder — "Export functionality coming soon" | Wire to CSV/PDF export or remove button |
| 15 | Back Office | Activity Log (`/visits/activity-log`) | Print button | No `onClick` handler wired | Wire to print or remove button |
| 16 | Back Office | Activity Log (`/visits/activity-log`) | Export button | No `onClick` handler wired | Wire to export (CSV at minimum) or remove button |
| 17 | Family Portal | Dashboard | Video thumbnails in visit cards | Play icon overlay shown on thumbnails but no `onClick` handler — non-interactive | Either remove play overlay or implement video playback modal |

---

## P1 — Pilot Blocking

Issues that block a paying pilot customer from using core workflows. Must be resolved before any live pilot.

| # | Portal | Page | Element | Problem | Fix Needed |
|---|--------|------|---------|---------|------------|
| 18 | Admin Panel | Audit Logs (`/admin/audit-logs`) | Export functionality | No export button present anywhere on the page | Add export button → generate CSV/PDF of audit log entries with current filters applied |
| 19 | Admin Panel | Audit Logs (`/admin/audit-logs`) | Date range filter | No date range picker present — only type filter and text search | Add date range picker (start/end) to filter audit log by date |
| 20 | Admin Panel | Compliance Dashboard (`/admin/compliance`) | All action items | Page is fully read-only — data rights requests, anomaly alerts, consent override all require action | Add action controls: respond to data rights requests, acknowledge anomaly alerts, manage consent |
| 21 | Family Portal | Profile (`/profile`) | Edit contact information | Profile page is fully read-only — no edit buttons, no form, no save | Add edit form for at minimum: phone number, preferred contact method. Name/email via Azure AD. |
| 22 | Admin Panel | Organizations (`/admin/organizations`) | Organization data | All data is hardcoded array in component state — not API-connected | Connect to `/api/v1/organizations` GET (list) and POST (create) endpoints |
| 23 | Admin Panel | Roles & Permissions (`/admin/roles`) | Role management | Roles page is view-only — no "Add Role" or "Edit Role" UI | Add ability to create custom roles and edit permissions, or document that this is intentionally RBAC-fixed |
| 24 | Back Office | Activity Log (`/visits/activity-log`) | "This Month" date filter button | Button renders with dropdown chevron but no `onClick` handler wired | Wire to date range picker — currently filters are impossible to apply by date on this page |
| 25 | Back Office | Completed Events Tab (`/visits` — Completed Events) | Date Range button | Visual button with no date picker wired | Wire to date range picker for filtering completed events by date range |
| 26 | Back Office | Finance | Billing Page | Entire page is placeholder: `<div>Welcome to BillingPage</div>` | Implement billing page or redirect to Insurance Billing page until ready |
| 27 | Back Office | Scheduling | Recompute Schedule | Demo-only — hardcoded with `carer-1` / `"Sarah Mitchell"` data | Connect to real scheduling data and real recomputation logic |

---

## P2 — Production Blocking

Issues that are acceptable for demo/pilot but must be resolved before production launch. Real persistence and real backend required.

| # | Portal | Page | Element | Problem | Fix Needed |
|---|--------|------|---------|---------|------------|
| 28 | Admin Panel | Settings (all tabs) | Save Changes | Persists to `localStorage` only | Connect to backend settings API with proper per-org persistence |
| 29 | Admin Panel | Assessment Questions | Save Question | Persists to `localStorage('admin_assessment_questions')` | Connect to backend questions API |
| 30 | Admin Panel | Profile | Save Photo | Stores base64 in `localStorage` | Upload to blob storage; store reference in user record |
| 31 | Back Office | Body Map | Add Observation | Saves to `localStorage('lumiscare-body-map-observations-{clientId}')` | Persist observations to assessment service / clinical records |
| 32 | Back Office | Care Plan Review | Schedule Review | Saves to `localStorage('lumiscare_scheduled_care_plan_reviews')` and `localStorage('lumiscare_schedule_blocks')` | Persist to scheduling service; create real calendar entries |

---

## Summary by Portal

| Portal | P0 | P1 | P2 | Total |
|--------|----|----|-----|-------|
| Back Office (Clinical/Scheduling/Finance/HR) | 8 | 4 | 3 | 15 |
| Admin Panel | 2 | 6 | 3 | 11 |
| Family Portal | 7 | 1 | 0 | 8 |
| **Total** | **17** | **11** | **6** | **32** |

---

## Quick Wins (P0 items fixable in < 1 hour each)

These P0 bugs are simple missing handler wires — not missing features:

1. **[P0-3]** Family Portal Care Plan Print button — `onClick={() => window.print()}`
2. **[P0-4]** Family Portal Care Plan More options button — add dropdown or remove icon
3. **[P0-5]** Family Portal Care Notes "Week" button — `onClick={goToPreviousWeek}`
4. **[P0-13]** Backoffice Visits Print button — `onClick={() => window.print()}`
5. **[P0-15]** Activity Log Print button — `onClick={() => window.print()}`
6. **[P0-7]** Body Map "This Week" button — remove or stub with toast "Filters coming soon"
7. **[P0-8]** Body Map "Filters" button — remove or stub with toast "Filters coming soon"
8. **[P0-17]** Dashboard video thumbnails — remove play icon overlay until implemented

---

*Generated 2026-03-25. Source: consolidated from 5 expert subagent reports.*