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

Migrate video description and about channel fragments to Jetpack Compose #11489

Open
wants to merge 14 commits into
base: refactor
Choose a base branch
from

Conversation

Isira-Seneviratne
Copy link
Member

@Isira-Seneviratne Isira-Seneviratne commented Aug 31, 2024

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • Migrate the video description and about channel UIs to Jetpack Compose.
  • Fix a crash that occurs when minimizing the app while the about channel UI is open.

Before/After Screenshots/Screen Record

  • Before:
    Screenshot_20240831-153532
    Screenshot_20240831-153554

  • After:
    Screenshot_20240831-153604
    Screenshot_20240831-154034

  • Video:

Screen_recording_20240831_154300.mp4

Fixes the following issue(s)

  • Fixes #

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.

Due diligence

@github-actions github-actions bot added the size/large PRs with less than 750 changed lines label Aug 31, 2024
@github-actions github-actions bot added size/giant PRs with more than 750 changed lines and removed size/large PRs with less than 750 changed lines labels Sep 1, 2024
@Isira-Seneviratne Isira-Seneviratne changed the title Migrate video description to Jetpack Compose Migrate video description and about channel fragments to Jetpack Compose Sep 1, 2024
@TobiGr TobiGr added the GUI Issue is related to the graphical user interface label Sep 2, 2024
Copy link
Member

@AudricV AudricV 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! According to your what you provided, this finally fixes the scrolling issue when selecting text 🎉

In my opinion, the tag chips component isn't the right one. An ElevatedSuggestionChip or something similar would probably look a lot better and similar to the current one used in XML.

Like other metadata items and in the current design, the Tags text should be upper-case.

You should not talk about a video description but a stream description, there are audio-only supported services. So your new VideoDescriptionSection composable and its corresponding package should be renamed :)

onTextLayout: (TextLayoutResult) -> Unit = {},
style: TextStyle = LocalTextStyle.current
) {
// TODO: Handle links and hashtags, Markdown.
Copy link
Member

Choose a reason for hiding this comment

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

This must be solved before the PR can be merged.

@ShareASmile ShareASmile added rewrite Issues and PRs related to rewrite waiting for review Most of the work is done, PR is now ready for a review labels Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI Issue is related to the graphical user interface rewrite Issues and PRs related to rewrite size/giant PRs with more than 750 changed lines waiting for review Most of the work is done, PR is now ready for a review
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

4 participants