Skip to content

Conversation

dev-victoria
Copy link
Contributor

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

Add FeedGroups as optional Tabs. With this change you can use the settings of the main page content to add FeedGroups directly to the Main Page Tabs.

  • New Fragment used in the Settings to choose the FeedGroup
  • New TabClass FeedGroupTab
  • Added Code for Selecting the Tab
  • Added strings related to FeedGroupTab
  • Added FeedGroupTab to UnitTest

Before/After Screenshots/Screen Record

New possibility:
PR_AddingTabs_low.webm
PR_SavedTabs_low.webm

Fixes the following issue(s)

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

Copied select_channel_fragment to select_feed_group_fragment

Copied select_channel_item to select_feed_group_item

# Change
Replaced the Layout references in the new Class SelectFeedGroupFragment
Adjusted the new Class SelectFeedGroupFragment for its Role
- Renamed Variables
- adjusted Imports
- adjusted Interface with FeedGroupEntity Values
Adjusted select_feed_group_fragment Layout
 - reference select_feed_group_item layout
 - use new Strings

Added strings:
- select_a_feed_group
- no_feed_group_created_yet
Added FEEDGROUP Tab Code to
 - ChooseTabsFragment
 - Tab

Added strings:
- feed_group_page_summary
Layout select_feed_group_item (FeedGroup Picker in the Settings)
Remove rounded style from the icons
- use default fragment_feed_title for TabName
- only clear FeedFragment bar subtitle when it matches the groupName to clear.
The Tabname displays the default Feed title.
@github-actions github-actions bot added the size/large PRs with less than 750 changed lines label May 31, 2025
@Isira-Seneviratne
Copy link
Member

Thanks for the PR, but NewPipe is not currently accepting new features.

You could rebase this onto the refactor branch and target it there instead.

@Stypox
Copy link
Member

Stypox commented Jun 1, 2025

@Isira-Seneviratne you'd be right :-)
But we explicitly gave permission for this PR in the Matrix chat, since it is quite small, independent (i.e. doesn't change any architecture) and the user had already developed it for themselves

@dev-victoria
Copy link
Contributor Author

dev-victoria commented Jun 1, 2025

Should I try to write generic Code for the Select[XY]Fragments used in the settings?

Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

Code looks good to me, thank you! I tested it a bit on my phone and on an emulator, and everything seemed to work fine. I pushed a small commit that improves the items in the "Select a feed group" dialog, now the icons have the right size (24dp). Thanks again!

image

@Stypox Stypox enabled auto-merge June 4, 2025 09:20
@Stypox Stypox merged commit 8e036b5 into TeamNewPipe:dev Jun 4, 2025
5 checks passed
Copy link

sonarqubecloud bot commented Jun 4, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
6.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@AudricV AudricV added feature request Issue is related to a feature in the app feed Issue is related to the feed labels Jun 4, 2025
@Stypox Stypox mentioned this pull request Jul 17, 2025
11 tasks
whistlingwoods pushed a commit to whistlingwoods/FoxPipe that referenced this pull request Jul 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request Issue is related to a feature in the app feed Issue is related to the feed size/large PRs with less than 750 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow adding custom feeds as tabs

4 participants