feat(feed): 1D — content-type chips + sort in a toolbar above the cards
Move content type and ordering out of the filter sidebar into a feed toolbar (approved proposal 2): a prominent content-type chip row (Normal/Shorts/Live toggle chips) with the sort control + count + reshuffle in a quieter row beneath it. The toolbar renders even on 'no matches' so content-type can be turned back on after it filtered everything out. The sidebar keeps Show / Upload date / Language / Topic; 'sort' and 'content' widgets removed from the layout (normalizeLayout drops them from any saved layout). New feed.sortLabel string (HU/EN/DE).
This commit is contained in:
parent
f6efe44e37
commit
d96b47ae5d
6 changed files with 95 additions and 84 deletions
|
|
@ -2,22 +2,15 @@
|
|||
// collapsed, and which are hidden. Persisted to localStorage and the server-side
|
||||
// `preferences` blob so it follows the account.
|
||||
|
||||
export type WidgetId = "show" | "sort" | "date" | "content" | "language" | "topic";
|
||||
// `sort` and `content` moved to the feed toolbar (above the cards); they are no longer
|
||||
// sidebar widgets. normalizeLayout drops them from any persisted layout automatically.
|
||||
export type WidgetId = "show" | "date" | "language" | "topic";
|
||||
|
||||
export const ALL_WIDGETS: WidgetId[] = [
|
||||
"show",
|
||||
"sort",
|
||||
"date",
|
||||
"content",
|
||||
"language",
|
||||
"topic",
|
||||
];
|
||||
export const ALL_WIDGETS: WidgetId[] = ["show", "date", "language", "topic"];
|
||||
|
||||
export const WIDGET_TITLES: Record<WidgetId, string> = {
|
||||
show: "Show",
|
||||
sort: "Sort",
|
||||
date: "Upload date",
|
||||
content: "Content type",
|
||||
language: "Language",
|
||||
topic: "Topic",
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue