mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 11:05:24 +02:00
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:
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
@@ -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
|
||||||
|
|
||||||
@@ -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}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user