2026-06-11 17:39:24 +02:00
|
|
|
import { useRef, useState } from "react";
|
2026-06-15 00:30:34 +02:00
|
|
|
import { useTranslation } from "react-i18next";
|
2026-06-15 00:06:57 +02:00
|
|
|
import { BarChart3, Home, Info, LogOut, Search, Settings, Shield, Tv } from "lucide-react";
|
2026-06-11 02:19:47 +02:00
|
|
|
import type { FeedFilters, Me } from "../lib/api";
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
import type { Page } from "../lib/urlState";
|
2026-06-15 00:30:34 +02:00
|
|
|
import { type LangCode } from "../i18n";
|
2026-06-11 04:15:25 +02:00
|
|
|
import SyncStatus from "./SyncStatus";
|
2026-06-11 19:26:34 +02:00
|
|
|
import NotificationCenter from "./NotificationCenter";
|
2026-06-15 00:30:34 +02:00
|
|
|
import LanguageSwitcher from "./LanguageSwitcher";
|
2026-06-12 18:01:43 +02:00
|
|
|
import AvatarImg from "./Avatar";
|
2026-06-11 02:19:47 +02:00
|
|
|
|
|
|
|
|
export default function Header({
|
|
|
|
|
me,
|
|
|
|
|
filters,
|
|
|
|
|
setFilters,
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
page,
|
|
|
|
|
setPage,
|
|
|
|
|
onOpenSettings,
|
2026-06-15 00:06:57 +02:00
|
|
|
onOpenAbout,
|
2026-06-15 00:30:34 +02:00
|
|
|
onChangeLanguage,
|
2026-06-14 07:08:59 +02:00
|
|
|
onGoToFullHistory,
|
2026-06-11 02:19:47 +02:00
|
|
|
}: {
|
|
|
|
|
me: Me;
|
|
|
|
|
filters: FeedFilters;
|
|
|
|
|
setFilters: (f: FeedFilters) => void;
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
page: Page;
|
|
|
|
|
setPage: (p: Page) => void;
|
|
|
|
|
onOpenSettings: () => void;
|
2026-06-15 00:06:57 +02:00
|
|
|
onOpenAbout: () => void;
|
2026-06-15 00:30:34 +02:00
|
|
|
onChangeLanguage: (code: LangCode) => void;
|
2026-06-14 07:08:59 +02:00
|
|
|
onGoToFullHistory: () => void;
|
2026-06-11 02:19:47 +02:00
|
|
|
}) {
|
2026-06-15 00:30:34 +02:00
|
|
|
const { t, i18n } = useTranslation();
|
|
|
|
|
|
2026-06-11 02:19:47 +02:00
|
|
|
async function logout() {
|
|
|
|
|
await fetch("/auth/logout", { method: "POST", credentials: "include" });
|
|
|
|
|
location.reload();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
2026-06-11 22:39:52 +02:00
|
|
|
<header className="h-14 shrink-0 border-b border-border bg-surface/95 flex items-center gap-3 px-4 z-20">
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
<button
|
|
|
|
|
onClick={() => setPage("feed")}
|
|
|
|
|
className="text-xl font-bold tracking-tight select-none"
|
2026-06-15 00:30:34 +02:00
|
|
|
title={t("header.feed")}
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
>
|
chore: rebrand Subfeed -> Siftlode
Rename all user-facing references (UI wordmark Sift+lode, titles, app name,
legal pages, onboarding wizard, emails, README/docs) and infra paths
(/srv/subfeed -> /srv/siftlode, image tag, deploy script, backup filenames).
Internal identifiers kept on purpose: Postgres user/db "subfeed", logger
namespace, localStorage keys, and the subfeed_pgdata volume (renaming would
orphan the migrated production data).
2026-06-14 04:40:22 +02:00
|
|
|
Sift<span className="text-accent">lode</span>
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
</button>
|
2026-06-11 02:19:47 +02:00
|
|
|
|
2026-06-14 07:08:59 +02:00
|
|
|
<SyncStatus isAdmin={me.role === "admin"} onGoToFullHistory={onGoToFullHistory} />
|
2026-06-11 04:15:25 +02:00
|
|
|
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
{page === "feed" ? (
|
|
|
|
|
<div className="flex-1 max-w-xl mx-auto relative">
|
|
|
|
|
<Search className="w-4 h-4 absolute left-3 top-1/2 -translate-y-1/2 text-muted" />
|
|
|
|
|
<input
|
|
|
|
|
value={filters.q}
|
|
|
|
|
onChange={(e) => setFilters({ ...filters, q: e.target.value })}
|
2026-06-15 00:30:34 +02:00
|
|
|
placeholder={t("header.searchPlaceholder")}
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
className="w-full bg-card border border-border rounded-full pl-9 pr-4 py-2 text-sm outline-none focus:border-accent"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
) : (
|
2026-06-12 02:47:55 +02:00
|
|
|
<div className="flex-1 text-center text-sm font-semibold">
|
2026-06-15 00:30:34 +02:00
|
|
|
{page === "stats" ? t("header.usageStats") : t("header.channelManager")}
|
2026-06-12 02:47:55 +02:00
|
|
|
</div>
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
)}
|
2026-06-11 02:19:47 +02:00
|
|
|
|
|
|
|
|
<div className="flex items-center gap-1">
|
2026-06-15 00:30:34 +02:00
|
|
|
<LanguageSwitcher value={i18n.language as LangCode} onChange={onChangeLanguage} />
|
2026-06-11 19:46:58 +02:00
|
|
|
<NotificationCenter filters={filters} setFilters={setFilters} />
|
2026-06-11 17:39:24 +02:00
|
|
|
<div className="pl-1">
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
<AccountMenu
|
|
|
|
|
me={me}
|
|
|
|
|
logout={logout}
|
|
|
|
|
page={page}
|
|
|
|
|
setPage={setPage}
|
|
|
|
|
onOpenSettings={onOpenSettings}
|
2026-06-15 00:06:57 +02:00
|
|
|
onOpenAbout={onOpenAbout}
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
/>
|
2026-06-11 02:19:47 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</header>
|
|
|
|
|
);
|
|
|
|
|
}
|
2026-06-11 17:39:24 +02:00
|
|
|
|
|
|
|
|
function Avatar({ me, className = "" }: { me: Me; className?: string }) {
|
2026-06-12 18:01:43 +02:00
|
|
|
return (
|
|
|
|
|
<AvatarImg
|
|
|
|
|
src={me.avatar_url}
|
|
|
|
|
fallback={me.display_name ?? me.email}
|
|
|
|
|
className={`rounded-full ${className}`}
|
|
|
|
|
/>
|
2026-06-11 17:39:24 +02:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
function AccountMenu({
|
|
|
|
|
me,
|
|
|
|
|
logout,
|
|
|
|
|
page,
|
|
|
|
|
setPage,
|
|
|
|
|
onOpenSettings,
|
2026-06-15 00:06:57 +02:00
|
|
|
onOpenAbout,
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
}: {
|
|
|
|
|
me: Me;
|
|
|
|
|
logout: () => void;
|
|
|
|
|
page: Page;
|
|
|
|
|
setPage: (p: Page) => void;
|
|
|
|
|
onOpenSettings: () => void;
|
2026-06-15 00:06:57 +02:00
|
|
|
onOpenAbout: () => void;
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
}) {
|
2026-06-15 00:30:34 +02:00
|
|
|
const { t } = useTranslation();
|
2026-06-11 17:39:24 +02:00
|
|
|
const [open, setOpen] = useState(false);
|
|
|
|
|
const closeTimer = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
|
|
|
|
|
|
|
|
function openNow() {
|
|
|
|
|
if (closeTimer.current) clearTimeout(closeTimer.current);
|
|
|
|
|
setOpen(true);
|
|
|
|
|
}
|
|
|
|
|
function closeSoon() {
|
|
|
|
|
closeTimer.current = setTimeout(() => setOpen(false), 220);
|
|
|
|
|
}
|
|
|
|
|
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
const itemClass =
|
|
|
|
|
"w-full flex items-center gap-2 text-sm px-2 py-2 rounded-lg text-muted hover:text-fg hover:bg-card transition";
|
|
|
|
|
|
2026-06-11 17:39:24 +02:00
|
|
|
return (
|
2026-06-11 22:16:07 +02:00
|
|
|
<div className="relative" onMouseEnter={openNow} onMouseLeave={closeSoon}>
|
2026-06-11 17:39:24 +02:00
|
|
|
<button
|
|
|
|
|
onClick={() => setOpen((o) => !o)}
|
|
|
|
|
title={me.email}
|
|
|
|
|
className="block rounded-full ring-2 ring-transparent hover:ring-border focus:outline-none focus:ring-accent transition"
|
|
|
|
|
>
|
|
|
|
|
<Avatar me={me} className="w-8 h-8 text-xs" />
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
{open && (
|
feat(ui): liquid-glass design system, settings polish, hints, notif fixes
- Add a theme-aware glass surface system (.glass/.glass-card + ambient backdrop,
performance-mode opt-out) and apply it across panels, popovers, toasts, cards,
sidebar widgets, channel rows, video cards and login.
- SettingsPanel: slide in/out animation, glass styling, wrapping pill tabs (no
horizontal scrollbar) with a prominent active state.
- Notifications: auto-dismiss can be switched off (stays until closed); the test
notification now also triggers the alert sound; resume a suspended AudioContext.
- Add an app-wide, toggleable hint/tooltip system (lib/hints + Tooltip) and wire
hints across the settings and channel-manager surfaces; persisted per account.
2026-06-11 21:08:35 +02:00
|
|
|
<div className="glass absolute right-0 mt-2 w-64 rounded-xl p-3 z-30 animate-[popIn_0.16s_ease]">
|
2026-06-11 17:39:24 +02:00
|
|
|
<div className="flex items-center gap-3 pb-3 border-b border-border">
|
|
|
|
|
<Avatar me={me} className="w-10 h-10 text-sm shrink-0" />
|
|
|
|
|
<div className="min-w-0">
|
|
|
|
|
<div className="text-sm font-semibold truncate">
|
|
|
|
|
{me.display_name ?? me.email.split("@")[0]}
|
|
|
|
|
</div>
|
|
|
|
|
<div className="text-xs text-muted truncate">{me.email}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{me.role === "admin" && (
|
|
|
|
|
<div className="flex items-center gap-1.5 mt-2 text-[11px] font-medium text-accent">
|
|
|
|
|
<Shield className="w-3.5 h-3.5" />
|
2026-06-15 00:30:34 +02:00
|
|
|
{t("header.account.admin")}
|
2026-06-11 17:39:24 +02:00
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
<div className="mt-2 flex flex-col">
|
2026-06-12 02:47:55 +02:00
|
|
|
{page !== "feed" && (
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
<button onClick={() => { setPage("feed"); setOpen(false); }} className={itemClass}>
|
|
|
|
|
<Home className="w-4 h-4" />
|
2026-06-15 00:30:34 +02:00
|
|
|
{t("header.account.feed")}
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
</button>
|
2026-06-12 02:47:55 +02:00
|
|
|
)}
|
|
|
|
|
{page !== "channels" && (
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
<button onClick={() => { setPage("channels"); setOpen(false); }} className={itemClass}>
|
|
|
|
|
<Tv className="w-4 h-4" />
|
2026-06-15 00:30:34 +02:00
|
|
|
{t("header.account.channels")}
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
</button>
|
|
|
|
|
)}
|
2026-06-12 02:47:55 +02:00
|
|
|
{me.role === "admin" && page !== "stats" && (
|
|
|
|
|
<button onClick={() => { setPage("stats"); setOpen(false); }} className={itemClass}>
|
|
|
|
|
<BarChart3 className="w-4 h-4" />
|
2026-06-15 00:30:34 +02:00
|
|
|
{t("header.account.stats")}
|
2026-06-12 02:47:55 +02:00
|
|
|
</button>
|
|
|
|
|
)}
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
<button onClick={() => { onOpenSettings(); setOpen(false); }} className={itemClass}>
|
|
|
|
|
<Settings className="w-4 h-4" />
|
2026-06-15 00:30:34 +02:00
|
|
|
{t("header.account.settings")}
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
</button>
|
2026-06-15 00:06:57 +02:00
|
|
|
<button onClick={() => { onOpenAbout(); setOpen(false); }} className={itemClass}>
|
|
|
|
|
<Info className="w-4 h-4" />
|
2026-06-15 00:30:34 +02:00
|
|
|
{t("header.account.about")}
|
2026-06-15 00:06:57 +02:00
|
|
|
</button>
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
<button onClick={logout} className={itemClass}>
|
|
|
|
|
<LogOut className="w-4 h-4" />
|
2026-06-15 00:30:34 +02:00
|
|
|
{t("header.account.signOut")}
|
feat(m5a): channel manager, tabbed settings panel, per-user sync status
Backend: /api/channels (list + PATCH priority/hidden + attach/detach user tags),
user-tag CRUD on /api/tags, /api/sync/my-status (per-user channel sync counts).
Frontend: feed|channels page nav (URL-synced) from the account menu; a slide-in
tabbed Settings panel (Appearance, Notifications=6b sound+duration, Sync status +
actions + admin pause/resume, Account); a channel manager with priority, hide,
per-channel user tags, sync badges and 'view in feed'. Notifications now honor the
configurable sound + auto-dismiss settings.
2026-06-11 20:45:48 +02:00
|
|
|
</button>
|
|
|
|
|
</div>
|
2026-06-11 17:39:24 +02:00
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|