Hide stats header in TopBar for non-descriptions tabs

Only show Total, Missing DE/EN Long/Short, Fully Complete header when viewing Product Descriptions tab
This commit is contained in:
Christian Vidal Wolf
2026-04-20 16:35:40 +02:00
parent 86c3ace6f8
commit b6b60e7dfb
4 changed files with 8 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
{}
+3
View File
@@ -0,0 +1,3 @@
Credit balance is too low
SessionEnd hook [node "${CLAUDE_PLUGIN_ROOT}/hooks/session-end-cleanup.mjs"] failed: /bin/sh: node: command not found
+1
View File
@@ -471,6 +471,7 @@ export default function App() {
<div className="h-screen bg-[#040d1a] text-slate-200 flex flex-col font-sans overflow-hidden"> <div className="h-screen bg-[#040d1a] text-slate-200 flex flex-col font-sans overflow-hidden">
<TopBar <TopBar
stats={stats} stats={stats}
activeModule={activeModule}
onExport={handleExport} onExport={handleExport}
hasData={appState.data.length > 0} hasData={appState.data.length > 0}
hasUnsavedChanges={appState.hasUnsavedChanges} hasUnsavedChanges={appState.hasUnsavedChanges}
+3 -2
View File
@@ -4,6 +4,7 @@ import { cn } from '../lib/utils';
interface TopBarProps { interface TopBarProps {
stats: any; stats: any;
activeModule?: string;
onExport: () => void; onExport: () => void;
hasData: boolean; hasData: boolean;
hasUnsavedChanges: boolean; hasUnsavedChanges: boolean;
@@ -20,7 +21,7 @@ interface TopBarProps {
isSavingAll: boolean; isSavingAll: boolean;
} }
export function TopBar({ stats, onExport, hasData, hasUnsavedChanges, userEmail, onSignOut, canUndo, onUndo, undoMessage, undoSteps, pendingCount, pendingChanges, onSaveAll, onRevertRow, isSavingAll }: TopBarProps) { export function TopBar({ stats, activeModule, onExport, hasData, hasUnsavedChanges, userEmail, onSignOut, canUndo, onUndo, undoMessage, undoSteps, pendingCount, pendingChanges, onSaveAll, onRevertRow, isSavingAll }: TopBarProps) {
const [showPending, setShowPending] = useState(false); const [showPending, setShowPending] = useState(false);
const dropdownRef = useRef<HTMLDivElement>(null); const dropdownRef = useRef<HTMLDivElement>(null);
@@ -50,7 +51,7 @@ export function TopBar({ stats, onExport, hasData, hasUnsavedChanges, userEmail,
/> />
</div> </div>
{stats && ( {stats && activeModule === 'descriptions' && (
<div className="flex items-center gap-4 text-xs font-medium"> <div className="flex items-center gap-4 text-xs font-medium">
<div className="flex flex-col items-center"> <div className="flex flex-col items-center">
<span className="text-slate-400">Total</span> <span className="text-slate-400">Total</span>