feat: bulk XML upload, period selector, and session persistence
- Add bulk XML CFDI upload support (up to 300MB) - Add period selector component for month/year navigation - Fix session persistence on page refresh (Zustand hydration) - Fix income/expense classification based on tenant RFC - Fix IVA calculation from XML (correct Impuestos element) - Add error handling to reportes page - Support multiple CORS origins - Update reportes service with proper Decimal/BigInt handling - Add RFC to tenant view store for proper CFDI classification - Update README with changelog and new features Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,12 @@ const themeIcons: Record<ThemeName, React.ReactNode> = {
|
||||
|
||||
const themeOrder: ThemeName[] = ['light', 'vibrant', 'corporate', 'dark'];
|
||||
|
||||
export function Header({ title }: { title: string }) {
|
||||
interface HeaderProps {
|
||||
title: string;
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
export function Header({ title, children }: HeaderProps) {
|
||||
const { theme, setTheme } = useThemeStore();
|
||||
|
||||
const cycleTheme = () => {
|
||||
@@ -26,7 +31,10 @@ export function Header({ title }: { title: string }) {
|
||||
|
||||
return (
|
||||
<header className="sticky top-0 z-30 flex h-16 items-center justify-between border-b bg-background/95 backdrop-blur px-6">
|
||||
<h1 className="text-xl font-semibold">{title}</h1>
|
||||
<div className="flex items-center gap-4">
|
||||
<h1 className="text-xl font-semibold">{title}</h1>
|
||||
{children}
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-3">
|
||||
<TenantSelector />
|
||||
|
||||
Reference in New Issue
Block a user