Skip to content

feat(chat): project-led drawer + composer attach button#28

Merged
sagar-develop merged 1 commit into
mainfrom
feat/drawer-input-polish
Jun 5, 2026
Merged

feat(chat): project-led drawer + composer attach button#28
sagar-develop merged 1 commit into
mainfrom
feat/drawer-input-polish

Conversation

@sagar-develop

Copy link
Copy Markdown
Owner

What

Two small UX polishes to the chat surface:

Drawer — Projects lead, sections capped. Projects now sit above Recent chats (they're the grounded notebooks, the headline feature). Each section is capped so the drawer stays scannable:

  • Projects: first 5, with a "Show all projects (N)" row that expands the full list.
  • Recent chats: capped at 12.

Composer — attach button. A + button in the input bar imports a source (PDF / image / text) straight into the current project via SAF OpenDocument. Enabled only inside a project (sources are project-scoped); in general chat it's disabled and explains why via a toast.

Testing

Built release-signed and installed on Realme CPH2723 (Snapdragon 8 Elite), preserving on-device data. Verified:

  • Drawer shows Projects (capped at 5) → "Show all projects (11)" → expands to full list; Recent section below. ✅
  • Attach + enabled inside a project → launches the document picker filtered to Images / Documents / text. ✅
  • Attach + disabled in general chat. ✅
  • Grounded RAG + citations unaffected. ✅

Did not run a real import to avoid polluting a real on-device project; importDocument itself is pre-existing, already-verified code.

🤖 Generated with Claude Code

Drawer: surface Projects above Recent chats, cap each section so the
list stays scannable (5 projects with "Show all", 12 recent chats).
Composer: add a "+" attach button to import a source (PDF / image /
text) into the current project, enabled only inside a project.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sagar-develop sagar-develop merged commit d06b93d into main Jun 5, 2026
1 check passed
@sagar-develop sagar-develop deleted the feat/drawer-input-polish branch June 5, 2026 15:39
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.

1 participant