8000 feat(chat): an empty chat offers Import when nothing is in scope by adeelahmad · Pull Request #703 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

feat(chat): an empty chat offers Import when nothing is in scope - #703

Merged
adeelahmad merged 1 commit into
mainfrom
claude/project-thread-qow8ad
Oct 20, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/project-thread-qow8ad

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: a new conversation on a fresh install (or scoped to an empty namespace) suggested "What topics came up most this month?", a question with nothing to answer from.

After: with no asset in its scope, chat says "Nothing to answer from yet" (or "Nothing in family yet") and offers Import assets, plus Change scope when namespaces are picked. Someone who can't import anywhere is told an editor or admin can. With assets, the suggested questions show as before.

Motivation and Context

The planned item "Empty states name the next step (empty chat suggests importing)" from the feature list. The empty graph and Library already offered Import; chat was the gap.

How: nothingInScope() in components/chat/empty.tsx reads the asset index chat already loads (useRecordingIndex), so no new request; EmptyChat gets nothing and canImport.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (eslint, prettier, tsc clean).
  • I added or updated tests (__tests__/chat-empty.test.tsx, 5 tests).
  • I have updated docs/ (docs/assistant.md, Chat: "Before the first question").
  • Changelog fragment changelog.d/empty-chat-import.md.

Done questions (AGENTS.md)

  • Goal: delivers what the user wanted, merged on green CI (merging on green).
  • Agents: n/a for a new action; agents learn the same from GET /api/v1/recordings / MCP list_recordings coming back empty, as the docs now say.
  • Zero setup: nothing new to set up.
  • Fewest clicks: Import is one click from an empty chat instead of a trip through the menu.
  • Configurable: n/a, no new setting.
  • Light: no new request or dependency; reuses the index chat already loads.
  • Private and secure: n/a, no new surface; lists only assets the person can read.
  • Cost: no model call.
  • User decides: only a link; defaults unchanged.
  • Upgrades: n/a, no stored data changes.
  • Honest: README built list and docs/requirements.md row added.
  • Tests, docs and generated files updated (no API change, so no openapi regen).
  • Open standards: n/a; no new dependency.
  • Result reported with evidence; refine later: the "No namespaces yet" pages (Topics, People, Entities, Reports) could offer admins "New namespace".
  • Reuse: existing EmptyChat, useRecordingIndex, useArchive().can.

Generated by Claude Code

A new conversation with no asset in its scope now says chat has nothing
to answer from and offers Import assets (plus Change scope when
namespaces are picked) instead of suggesting questions nothing can
answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014temCBvypqiLU9jzcG6xq7
@adeelahmad adeelahmad self-assigned this Oct 20, 2026
@adeelahmad
adeelahmad merged commit 4c9b8c1 into main Oct 20, 2026
10 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-qow8ad branch October 20, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0