Merged
Conversation
Multipart HTTP support: - Add post_multipart and put_multipart methods to Client - Add set_multipart_body helper for building multipart/form-data requests - Add detect_content_type for MIME type detection (images, PDFs, text) - Build multipart boundaries with random SecureRandom hex values Card image uploads: - Add --image option to card create command - Add --image option to card update command - Automatically use multipart request when image path provided - Skip missing files gracefully in multipart requests User avatar uploads: - Add --avatar option to user update command - Use multipart request when avatar path provided Direct upload for rich text (Active Storage): - Add upload subcommand with file action - Implement 3-step direct upload flow: 1. Create direct upload record via API 2. Upload file to storage service 3. Return signed_id for use in rich text fields - Calculate MD5 checksum with Base64 encoding - Add base64 gem to Gemfile for Ruby 3.4 compatibility Test coverage: - Add client_multipart_test.rb with tests for POST/PUT multipart - Add upload_test.rb with tests for direct upload command - Add test fixture image (test_image.png) - All 103 tests passing
Collaborator
Author
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.
Summary
post_multipartandput_multipartmethods--imageoption tocard createandcard updatecommands for header image uploads--avataroption touser updatecommand for avatar uploadsupload filecommand for Active Storage direct uploads (for rich text attachments)Test plan
--imageagainst real Fizzy CLI board--imageagainst real Fizzy CLI board--avataragainst real Fizzy CLI board