mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-03 11:22:25 +00:00
feat: Remove hashtag pills from For You page
- Updated `For You` page to rely on feed engine filtering for tag preferences. - Removed the `recentVideoTags` HTML element from `views/for-you.html`. - Updated `js/app.js` and `js/ui/videoListViewController.js` to optionally skip finding the `recentVideoTags` element. - Updated `loadForYouVideos` in `js/app.js` to explicitly skip `recentVideoTags`. - Confirmed feed logic via `tests/feed-engine/tag-preference-filter.test.mjs`. - Verified UI changes via Playwright.
This commit is contained in:
1 parent
5261f3125b
commit
5c65c44db3
3 files changed
+16
-6
No files matched your search
@@ -17,13 +17,16 @@ export default class VideoListViewController {
|
||||
);
|
||||
}
|
||||
|
||||
mount({ container = null, view, currentVideoList = null } = {}) {
|
||||
mount({ container = null, view, currentVideoList = null, includeTags = true } = {}) {
|
||||
if (!view) {
|
||||
return { videoList: currentVideoList || null, popularTags: null };
|
||||
}
|
||||
|
||||
const target = container || this.getElementById("videoList");
|
||||
const popularTags = this.getElementById("recentVideoTags");
|
||||
let popularTags = null;
|
||||
if (includeTags) {
|
||||
popularTags = this.getElementById("recentVideoTags");
|
||||
}
|
||||
|
||||
if (typeof view.setPopularTagsContainer === "function") {
|
||||
view.setPopularTagsContainer(popularTags || null);
|
||||
|
||||
Reference in new issue
Block a user