Add explore view empty state and info popover

This commit is contained in:
thePR0M3TH3AN committed 2026-01-22 19:27:40 -05:00
1 parent a1a4d0bf6b
commit 304d4ea374
2 files changed
+122 -8

No files matched your search

+2 -8
View File
@@ -1,6 +1,7 @@
// js/viewManager.js
import { initChannelProfileView } from "./channelProfile.js";
import { initForYouView } from "./forYouView.js";
import { initExploreView } from "./exploreView.js";
import { subscriptions } from "./subscriptions.js";
import { getApplication } from "./applicationContext.js";
import { ASSET_VERSION } from "../config/asset-version.js";
@@ -118,7 +119,7 @@ export const viewInitRegistry = {
}
},
explore: () => {
devLogger.log("Explore view loaded.");
initExploreView();
const app = getApplication();
if (app && typeof app.loadExploreVideos === "function") {
if (typeof app.mountVideoListView === "function") {
@@ -130,13 +131,6 @@ export const viewInitRegistry = {
if (refreshApp && typeof refreshApp.forceRefreshAllProfiles === "function") {
refreshApp.forceRefreshAllProfiles();
}
const infoTrigger = document.getElementById("exploreInfoTrigger");
if (infoTrigger) {
attachFeedInfoPopover(
infoTrigger,
"Discovery feed blended for freshness, novelty, and diversity."
);
}
},
history: async () => {
try {