UX: set "topics" link in sidebar as active for hot, unseen, and my posts filters (#28305)

This commit is contained in:
Kris 2024-08-09 16:39:12 -04:00 committed by GitHub
parent 9d5eb6fed6
commit c002911bed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 1 deletions

View File

@ -51,7 +51,7 @@ export default class EverythingSectionLink extends BaseSectionLink {
} }
get currentWhen() { get currentWhen() {
return "discovery.latest discovery.new discovery.unread discovery.top"; return "discovery.latest discovery.new discovery.unread discovery.top discovery.hot discovery.unseen discovery.posted";
} }
get badgeText() { get badgeText() {

View File

@ -42,6 +42,7 @@ export default {
"search", "search",
"bookmarks", "bookmarks",
"hot", "hot",
"unseen"
], ],
periods: ["all", "yearly", "quarterly", "monthly", "weekly", "daily"], periods: ["all", "yearly", "quarterly", "monthly", "weekly", "daily"],
top_menu_items: [ top_menu_items: [
@ -54,6 +55,7 @@ export default {
"categories", "categories",
"hot", "hot",
"bookmarks", "bookmarks",
"unseen",
], ],
anonymous_top_menu_items: ["latest", "hot", "categories"], anonymous_top_menu_items: ["latest", "hot", "categories"],
uncategorized_category_id: 17, uncategorized_category_id: 17,

View File

@ -52,6 +52,7 @@ export default {
"read", "read",
"posted", "posted",
"bookmarks", "bookmarks",
"unseen",
], ],
list_type: "compact", list_type: "compact",
}, },

View File

@ -44,6 +44,7 @@ PreloadStore.store("site", {
"read", "read",
"posted", "posted",
"bookmarks", "bookmarks",
"unseen",
], ],
periods: ["all", "yearly", "monthly", "weekly", "daily"], periods: ["all", "yearly", "monthly", "weekly", "daily"],
top_menu_items: [ top_menu_items: [
@ -55,6 +56,7 @@ PreloadStore.store("site", {
"posted", "posted",
"categories", "categories",
"hot", "hot",
"unseen",
], ],
anonymous_top_menu_items: ["latest", "categories", "hot"], anonymous_top_menu_items: ["latest", "categories", "hot"],
uncategorized_category_id: 17, uncategorized_category_id: 17,