feat(chat): project-led drawer + composer attach button#28
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Composer — attach button. A
+button in the input bar imports a source (PDF / image / text) straight into the current project via SAFOpenDocument. 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:
+enabled inside a project → launches the document picker filtered to Images / Documents / text. ✅+disabled in general chat. ✅Did not run a real import to avoid polluting a real on-device project;
importDocumentitself is pre-existing, already-verified code.🤖 Generated with Claude Code