Skip to content

Add file picker button and menu command for attachments - #153

Open
bmikaili wants to merge 1 commit into
viktorstrate:mainfrom
bmikaili:pr/attach-file-picker
Open

bmikaili wants to merge 1 commit into
viktorstrate:mainfrom
bmikaili:pr/attach-file-picker

Conversation

@bmikaili

@bmikaili bmikaili commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Adds two ways to attach files from the composer without paste or drag-and-drop.

  • A + (plus.circle) attach button on the left side of the composer in ChatComposerContainer.
  • A Conversation > Attach File… (⇧⌘A) menu command in AppCommands that posts .composerAttachFile to the key window's ChatInputViewController.

Both open an NSOpenPanel sheet with multiple file selection. They pass the chosen URLs into the existing ComposerAttachmentImporter pipeline used by paste and drag-and-drop.

Testing

  • Added ChatComposerAttachTests.attachButtonIsPositionedInsideComposer() in Tests/MactrixAppTests/ChatComposerAttachTests.swift.
  • Ran xcodebuild test -workspace Mactrix.xcworkspace -scheme Mactrix -destination 'platform=macOS' on branch pr/attach-file-picker (commit e93b556 over 83b77ad). 262 tests passed across 28 suites (TEST SUCCEEDED).

Out of scope

  • Does not change paste, drag-and-drop, or attachment upload logic.

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