refactor: remove discover page

This commit is contained in:
2026-06-13 17:04:01 +02:00
parent 9b7a2cac8f
commit 70a6e9a6b5
6 changed files with 9 additions and 13 deletions

View File

@@ -76,8 +76,9 @@ func (h *AnimeHandler) HandleCommandPalette(c *gin.Context) {
func (h *AnimeHandler) commandPaletteNavigationItems(query string) []commandPaletteItem {
all := []commandPaletteItem{
{ID: "nav:discover", Type: "navigation", Label: "Go to Discover", Subtitle: "Navigation", Href: "/discover", Icon: "compass"},
{ID: "nav:home", Type: "navigation", Label: "Go to Home", Subtitle: "Navigation", Href: "/", Icon: "home"},
{ID: "nav:watchlist", Type: "navigation", Label: "Go to Watchlist", Subtitle: "Navigation", Href: "/watchlist", Icon: "bookmark"},
{ID: "nav:schedule", Type: "navigation", Label: "Open Broadcast Guide", Subtitle: "External broadcast metadata", Href: "/schedule", Icon: "calendar"},
{ID: "nav:popular", Type: "navigation", Label: "Browse popular", Subtitle: "Browse", Href: "/browse?order_by=popularity&sort=asc", Icon: "trending"},
{ID: "nav:airing", Type: "navigation", Label: "Currently airing", Subtitle: "Browse", Href: "/browse?status=airing&order_by=popularity&sort=asc", Icon: "play"},
}

View File

@@ -316,11 +316,7 @@ func (h *AnimeHandler) renderCatalogSection(c *gin.Context, section string) {
}
func (h *AnimeHandler) HandleDiscover(c *gin.Context) {
user := server.CurrentUser(c)
c.HTML(http.StatusOK, "discover.gohtml", gin.H{
"CurrentPath": "/discover",
"User": user,
})
c.Redirect(http.StatusSeeOther, "/")
}
func (h *AnimeHandler) HandleDiscoverTopPicksForYou(c *gin.Context) {