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

Adding Video Inline to Notes, Adjusting the size of images and videos, and Editor in Darkmode #127

Merged
merged 10 commits into from
Mar 17, 2024

Conversation

AndchooChen
Copy link
Collaborator

@AndchooChen AndchooChen commented Feb 28, 2024

Hello all!

This issue fixes: #126

** What was changed? **

This pull request attempts to fix the issues found in issue #126. In particular, it will bring changes to allow Videos to be placed inline for both AddNoteScreen and EditNoteScreen, fix the issue of the RichTextEditor in Darkmode, and allow for images to properly be sized in Note Views. Currently, there are no fixes for added videos to the NoteDetailModal.

** Why was it changed? **

These changes felt necessary because improving the experience of the story that Ethnographers and people alike are trying to tell is important. Having videos that are inline for people to view in the certain spot of the note helps facilitate the story. Moreover, it's important to make the NoteViews of these creates nice.

** How was it changed? **

Going more specifically into it, there is now a custom renderer that adjusts tag that are found when the html is being rendered. Additionally, the same flow was used to add video inline in the same way that made it possible to add images to the note screens. Styles were also changed to change the color of the editor!

A test case was also added!

Files that were specifically modified: AddNoteScreen.tsx, EditNoteScreen.tsx, photoScroller.tsx, NoteDetailModal.tsx

Screenshots that show the changes (if applicable):
IMG_3542

IMG_3541

@AndchooChen AndchooChen added bug Something isn't working enhancement New feature or request labels Feb 28, 2024
@AndchooChen AndchooChen self-assigned this Feb 28, 2024
@AndchooChen AndchooChen linked an issue Feb 28, 2024 that may be closed by this pull request
AndrewC added 8 commits February 28, 2024 16:44
…r both the AddNoteScreen and EditNoteScreen
…y videos are only showing the thumbnail and not being able to play any video
…ntly have it so that videos have a thumbnail and that they can be played from the add and edit note screens
…o the note detail modal, the uri shows up for now
… custom renderers for the note modal screen
@AndchooChen AndchooChen marked this pull request as ready for review March 17, 2024 17:31
Copy link
Collaborator

@yashb196 yashb196 left a comment

Choose a reason for hiding this comment

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

This looks good and should work for now but we need to improve on the video quality

@yashb196 yashb196 merged commit 3d72665 into main Mar 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RichTextEditor Video Inline, Image Resize, and Darkmode Color
2 participants