feat(webui): report account storage update progress
Surface account storage preparation and background history progress through the existing live connection status channel. Clearly distinguish unavailable accounts from accounts that remain fully usable during maintenance. Show processed totals, completion percentage, estimated remaining time, and retry states in both the global notice and account overview. Preserve existing connection update filtering to avoid unnecessary refreshes.
This commit is contained in:
7 files changed
+202
-27
No files matched your search
@@ -15,10 +15,11 @@ import { cn } from '@/lib/utils';
|
||||
interface MainLayoutProps {
|
||||
status: string;
|
||||
onLogout: () => void;
|
||||
notice?: ReactNode;
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
export function MainLayout({ status, onLogout, children }: MainLayoutProps) {
|
||||
export function MainLayout({ status, onLogout, notice, children }: MainLayoutProps) {
|
||||
const isMobile = !useMediaQuery('(min-width: 768px)');
|
||||
const { appearance } = useTheme();
|
||||
const customBg = appearance.background.type !== 'none';
|
||||
@@ -123,6 +124,8 @@ export function MainLayout({ status, onLogout, children }: MainLayoutProps) {
|
||||
/>
|
||||
)}
|
||||
|
||||
{!kiosk && notice}
|
||||
|
||||
<main className={cn('flex min-h-0 flex-1 flex-col')}>
|
||||
<ScrollArea className="flex-1 min-h-0" viewportClassName="[&>div]:!block">
|
||||
<div className="mx-auto w-full max-w-7xl px-4 py-5 sm:px-6 sm:py-6 lg:px-8 2xl:max-w-[1600px]">
|
||||
|
||||
Reference in new issue
Block a user