Files
Lumotia/scripts
Jake 1d5e6d4c59 v0.3 Phase 5f: History page migrated to quietware skeleton
Calm local archive instead of SaaS table. Same gated-layout pattern
as Phases 5c/5d. v0.2 surface unchanged; quietware path renders
HistoryPage via LumotiaPageSkeleton.

Zones.

  Header             "History" title + "Search and reopen saved
                     transcripts." subtext + Live/Trash tab toggle
                     with live counts in mono.
  Primary surface    search input + scrollable list of items, or
                     empty-state typography when nothing saved.
  Mono footer        N saved · N in trash · Local only.

  Action dock omitted — actions live per-row (Open / Copy /
  Delete) so the dock doesn't add noise when the user is browsing
  a list of items each with their own context.

State + handlers preserved.

  history (store), trashItems, viewMode, searchQuery, filtered
  (derived), trashError, trashLoading, restoringId,
  compactPreviewText, copyItem, removeItem, openViewer,
  restoreFromTrash, formatTimestamp.

  Bulk actions, audio playback, tag chips, ClearAll modal and
  Phase 9 multi-select toolbar all stay accessible via the v0.2
  fallback path when quietware is off. The quietware view focuses
  on the core archive flow.

Per-item row.

  Mic icon if source=dictation, FileText icon if source=file.
  Title (or first 80 chars of preview if untitled).
  Two-line preview clamp.
  Mono timestamp via formatTimestamp.
  Open / Copy / Delete actions in tertiary buttons on the right.

Empty states.

  Live mode, no items:
    FileText icon + Young Serif italic "Nothing saved yet." +
    Work Sans support.

  Live mode, search returns nothing:
    same icon + "Nothing matched." + "Try different keywords or
    clear the search."

  Trash mode, no items:
    Clock icon + "Trash is empty." + 30-day retention copy.

Search input.

  Lives at the top of the primary surface. Standard search input
  with focus ring picking up --button-primary-bg.

Capture script.

  scripts/capture-quietware-screenshots.mjs now navigates to the
  History page via the sidebar nav button after Files, and
  screenshots both quietware modes.

Verified.

  - npm run check: 0 errors, 0 warnings across 5707 files.
  - Captures confirm both empty and populated states render
    correctly (populated state captured with temporary mock data
    in the history store, reverted before this commit).

Phase 5f is complete. Phase 5e (Tasks) is the last layout migration
before Phase 6 / 7.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 19:03:44 +01:00
..