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

Render Gif and video files while composing posts #2753

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scoder1747
Copy link
Contributor

@scoder1747 scoder1747 commented Nov 30, 2024

Summary

This PR will introduce functionality enabling users to preview the Gif and video attachments directly within the post composition. Using this feature, users can confirm that the correct GIF or video is attached before finalizing their post, reducing errors.

Demo video showing the attachments:

r22f.mov

Demo video after PR update:

PR.Update.Video.mov

Testing performed:

  1. Testing the video in the Post View
    i. Tested Play/Pause video
    ii. Tested audio
    iii. Tested video icon
    iv. Tested the cross button for removal
    v. Testing after posting

  2. Testing the image
    i. Tested the image preview is intact (because almost no change is done on still image side)
    ii. Tested the cross button for removal
    iii. Testing after posting

  3. Testing the GIF image
    i. Tested the animated view
    ii. Tested after GIF is posted
    iii. Tested the cross button for removal
    iv. Testing after posting

Also, overall flow and experience testing is also performed.

Checklist

  • I have read (or I am familiar with) the Contribution Guidelines
  • I have tested the changes in this PR
  • My PR is either small, or I have split it into smaller logical commits that are easier to review
  • I have added the signoff line to all my commits. See Signing off your work
  • I have added appropriate changelog entries for the changes in this PR. See Adding changelog entries
    • I do not need to add a changelog entry. Reason: [Please provide a reason]
  • I have added appropriate Closes: or Fixes: tags in the commit messages wherever applicable, or made sure those are not needed. See Submitting patches

Test report

Please provide a test report for the changes in this PR. You can use the template below, but feel free to modify it as needed.

Device: [Please specify the device you used for testing]

iOS: [Please specify the iOS version you used for testing]

Damus: [Please specify the Damus version or commit hash you used for testing]

Setup: [Please provide a brief description of the setup you used for testing, if applicable]

Steps: [Please provide a list of steps you took to test the changes in this PR]

Results:

  • PASS
  • Partial PASS
    • Details: [Please provide details of the partial pass]

Other notes

[Please provide any other information that you think is relevant to this PR.]

@danieldaquino danieldaquino self-requested a review December 2, 2024 06:53
@danieldaquino
Copy link
Contributor

I did not have time to get to this one today, but I will look into it soon!

@danieldaquino
Copy link
Contributor

Taking a look at it now

Copy link
Contributor

@danieldaquino danieldaquino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @scoder1747! Looks and works well, just found some minor issues. I added 2 comments to the PR.

In general, I also encourage the use of the test report in the PR template, detailing what has been covered during testing. You do that to some extent with the video, which is great and helps visualize some of the testing — but if you include some notes as to what else has been tested (e.g. edge cases, or checking if existing behaviour is not broken), this will help the reviewer save some time testing and approve your PRs faster.

damus/Views/PostView.swift Outdated Show resolved Hide resolved
damus/Views/PostView.swift Outdated Show resolved Hide resolved
Changelog-Added: Render Gif and video files while composing posts
Signed-off-by: Swift Coder <[email protected]>
@scoder1747 scoder1747 force-pushed the Render-Gif-and-video-files-while-composing-posts branch from 0897599 to 2be6015 Compare December 11, 2024 18: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.

2 participants