Skip to content

Teach import paths and assistant capabilities at the empty states, not only in the README #39

Closed as not planned

Description

@bencode

Problem

The first visit is well served: the first project is seeded with starter files (workspace-database.ts, seedSamples). But every project after the first starts empty by design, and what meets a reader there teaches nothing:

  • An empty project's Files panel shows exactly one sentence — "Add a document when you are ready to read." (resource-panel.tsx:232-235). Two import paths exist — dropping files onto the Files panel (resource-panel.tsx:130-153, with drop-active styling) and the + button — but the empty state names neither. The knowledge lives in the README ("add your own files by dragging them onto Files or with +"), not in the product.
  • A fresh conversation's entire guidance is one privacy notice — "Messages and document excerpts used in chat are sent to the AI provider." (conversation-messages.tsx:73-77) — plus the composer placeholder "Ask about what you are reading" (composer/index.tsx:114). That the assistant can search and read open documents, explain images, compare sources, and draft into the Source panel appears nowhere in the UI; a reader must guess or read the README.

Issue #1 asked for "lightweight inline guidance" alongside the starter files; the starter half shipped, the guidance half beyond Start here.md never landed.

Proposal

  • In the empty-files state, name both import paths in one calm line, e.g. "Drag documents onto Files, or choose + to add them." Keep it as the existing quiet resource-state block — no dialog, nothing blocking.
  • Under the privacy notice in a fresh conversation, add one line of capability framing, e.g. "The assistant can search and read your open documents, explain images, and compare sources." Keep the privacy notice; this adds, not replaces.
  • Stay within PRODUCT.md: calm, precise, approachable; first run free of configuration; guidance sits in the surface and disappears once there is content.

Goal

After this, a reader landing in any empty project learns both import paths from the Files panel itself, and every fresh conversation states what the assistant can do — without opening the README.

Verification

grep -rq "explain images" ui-packages/web/src/features/conversation
grep -rq "Drag documents" ui-packages/web/src/features/resources
pnpm --filter @gamma-reader/web test --silent
pnpm check

Refs

  • ui-packages/web/src/features/resources/resource-panel.tsx:232-235 — current one-sentence empty state
  • ui-packages/web/src/features/resources/resource-panel.tsx:130-153 — undocumented drag-and-drop import
  • ui-packages/web/src/features/conversation/conversation-messages.tsx:73-77 — privacy notice is the only fresh-conversation guidance
  • ui-packages/web/src/features/conversation/composer/index.tsx:114 — composer placeholder
  • ui-packages/web/src/data/workspace-database.ts — seedSamples covers only the first project
  • README.md — "Features" and the starter-files paragraph; ui-packages/web/PRODUCT.md — Design principles
  • Start with sample documents, add local resources progressively, and save explicitly #1 — shipped starter files and progressive adding; this issue is the guidance residue

Activity

  1. added
    enhancement
    source:scheduled
    on Sep 30, 2026
  2. bencode commented on Sep 30, 2026

    @bencode
    OwnerAuthor

    Independent review — posted by the scheduled issue-reviewer loop (a session separate from the one that files these issues), under the maintainer's standing instruction to evaluate, sharpen, or retire source:scheduled proposals.

    Evidence audit (against main@d28fe0b): all citations confirmed.

    • ✅ Empty-files state is exactly one sentence (resource-panel.tsx:234-236); the drag-and-drop path with drop-active styling exists right above it (:130-137) and is named nowhere in the UI.
    • ✅ A fresh conversation's only guidance is the privacy notice (conversation-messages.tsx:73-76); composer placeholder confirmed (composer/index.tsx:114).
    • ✅ seedSamples runs only when databaseName === legacyDatabaseName (workspace-database.ts:84) — "first project only" is accurate.
    • ✅ Sensor: lint passed; verify fails today as it should → stays open.

    Verdict: valid, keep open. Real capability-discovery gap, proposal stays inside PRODUCT.md's calm/no-dialog stance, and the #1 relationship (starter half shipped, guidance half didn't) is correctly drawn.

    Two sharpening notes (non-blocking):

    1. Both Verification anchors pin exact UI copy ("explain images", "Drag documents"). If the implementation words either line differently, the gate false-negatives. If the copy is meant to be part of the spec, fine as-is; otherwise anchor to structure (e.g. a non-notice element in the empty-files state / a second line in the fresh-conversation notice) rather than phrases.
    2. pnpm --filter @gamma-reader/web test --silent is a subset of pnpm check (which runs biome + typecheck + pnpm -r test + integration), so the middle line adds little — dropping it would make failures easier to read.
  3. bencode commented on Oct 2, 2026

    @bencode
    OwnerAuthor

    Not planned — discussed with the maintainer on 2026-10-01. Gamma Reader stays deliberately small: a feature lands only when no existing path covers the need. Drag-and-drop and the + button are discoverable on their own, and the README covers both; extra empty-state copy adds surface without solving a real gap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsource:scheduled

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions