From 284b91b9638c0d658447c39e33ec5b382087fa4e Mon Sep 17 00:00:00 2001 From: Jaime Idolpx Date: Sun, 7 Jun 2026 20:35:45 -0400 Subject: [PATCH] feat: enhance SaveStatusBadge component with pending changes display and save functionality --- src/app/App.tsx | 47 +++++++++++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index 4c805e2..8f9c291 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -35,7 +35,7 @@ type AppId = export default function App() { const [currentPage, setCurrentPage] = useState('status'); - const { config, setConfig, saveStatus, reload } = useSettings(); + const { config, setConfig, saveStatus, pendingCount, flushNow, reload } = useSettings(); const [showSearch, setShowSearch] = useState(false); const [showProfileMenu, setShowProfileMenu] = useState(false); @@ -168,7 +168,7 @@ function AppPage({ title, onBack }: { title: string; onBack: () => void }) { > - +
+ + ); + } + if (status === 'saving') { return ( - + Saving ); } + if (status === 'saved') { return ( - + Saved ); } + // error return (