Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move attachment preview above the composer, allowing to add captions … #2600

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

surakin
Copy link
Contributor

@surakin surakin commented Mar 25, 2024

…to media/attachments

Fixes #2573

I has too many UX changes for my taste so if one of the team likes it and wants to pick it up that's fine by me :)

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Motivation and context

Screenshots / GIFs

Before sending
image
After sending
image

Tests

  • Step 1
  • Step 2
  • Step ...

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

Copy link
Contributor

Thank you for your contribution! Here are a few things to check in the PR to ensure it's reviewed as quickly as possible:

  • Your branch should be based on origin/develop, at least when it was created.
  • There is a changelog entry in the changelog.d folder with the Towncrier format.
  • The test pass locally running ./gradlew test.
  • The code quality check suite pass locally running ./gradlew runQualityChecks.
  • If you modified anything related to the UI, including previews, you'll have to run the Record screenshots GH action in your forked repo: that will generate compatible new screenshots. However, given Github Actions limitations, it will prevent the CI from running temporarily, until you upload a new commit after that one. To do so, just pull the latest changes and push an empty commit.

@frebib
Copy link
Contributor

frebib commented Mar 25, 2024

Is it necessary to keep the Sending {spinner} box with this change?

@surakin
Copy link
Contributor Author

surakin commented Mar 25, 2024

Is it necessary to keep the Sending {spinner} box with this change?

I understand this is the only feedback until matrix-org/matrix-rust-sdk#1732 is sorted out

@bmarty bmarty added the Z-Community-PR Issue is solved by a community member's PR label Mar 27, 2024
@frebib
Copy link
Contributor

frebib commented Mar 29, 2024

A small bug I noticed today: Trying to send a captioned image as a reply sends okay, but doesn't attach the reply metadata to the event and leaves the reply box in the composer

@surakin
Copy link
Contributor Author

surakin commented Apr 1, 2024

A small bug I noticed today: Trying to send a captioned image as a reply sends okay, but doesn't attach the reply metadata to the event and leaves the reply box in the composer

Hmmm sending replies with anything other than text is not supported yet anyway
Maybe disabliing attachments on reply mode would be enough for now

@surakin surakin marked this pull request as ready for review April 1, 2024 12:26
@surakin surakin requested a review from a team as a code owner April 1, 2024 12:26
@surakin surakin requested review from ganfra and removed request for a team April 1, 2024 12:26
@cyrneko
Copy link

cyrneko commented May 12, 2024

Hmmm sending replies with anything other than text is not supported yet anyway

In what sense? I have seen many users (especially beeper users) send images in reply to messages and they get rendered in EXA just fine, is there a limitation on the Rust-SDK's end maybe? 🤔

@surakin
Copy link
Contributor Author

surakin commented May 13, 2024

Hmmm sending replies with anything other than text is not supported yet anyway

In what sense? I have seen many users (especially beeper users) send images in reply to messages and they get rendered in EXA just fine, is there a limitation on the Rust-SDK's end maybe? 🤔

Yes, afaik the rust SDK can only reply with text so far.

…to media/attachments

Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
…attachments is supported

Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
…sibility of pressing it multiple times

Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
…captions

# Conflicts:
#	features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/MessagesFlowNode.kt
#	features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/MessagesNode.kt
#	features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/MessagesView.kt
#	features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/attachments/preview/AttachmentsPreviewView.kt
#	features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/messagecomposer/AttachmentsBottomSheet.kt
#	features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/messagecomposer/MessageComposerView.kt
#	features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/typing/MessagesViewWithTypingPreview.kt
#	libraries/textcomposer/impl/src/main/kotlin/io/element/android/libraries/textcomposer/TextComposer.kt
Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-Community-PR Issue is solved by a community member's PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add captions to sent image and video files
4 participants