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 19 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 Before After After
Before Before After After
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
@Isira-Seneviratne Isira-Seneviratne force-pushed the Video-description-compose branch from 7788a20 to de6285b Compare August 31, 2024 10:23
@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 force-pushed the Video-description-compose branch from 875e3fa to 45aa445 Compare September 1, 2024 13:00
@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
@Isira-Seneviratne Isira-Seneviratne force-pushed the Video-description-compose branch from 954770b to 387a4d5 Compare September 1, 2024 15:31
@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.

@Isira-Seneviratne Isira-Seneviratne force-pushed the Video-description-compose branch from edf3782 to 8f9faf3 Compare September 6, 2024 16:37
@Isira-Seneviratne Isira-Seneviratne force-pushed the Video-description-compose branch from 8d93272 to 0d12cfc Compare September 6, 2024 23:44
@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
@ShareASmile ShareASmile removed the waiting for review Most of the work is done, PR is now ready for a review label Nov 20, 2024
# Conflicts:
#	app/build.gradle
#	app/src/main/java/org/schabi/newpipe/fragments/detail/DescriptionFragment.java
#	app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelAboutFragment.java
#	app/src/main/java/org/schabi/newpipe/ui/components/items/ItemList.kt
#	app/src/main/java/org/schabi/newpipe/ui/components/items/stream/StreamMenu.kt
# Conflicts:
#	app/src/main/java/org/schabi/newpipe/ktx/Bundle.kt
@Jean-BaptisteC
Copy link

Jean-BaptisteC commented Nov 28, 2024

I suggest three things on this PR:

  • Reduce a little bit size of font
  • Use grey color like chip background
  • Add ability to scroll to the top just under the video (on little screen, like foldable phone, it's hard to scroll to the video description) -> maybe need to do in a separate PR?

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
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

5 participants