Added Documents Feature

This commit is contained in:
Eric Gullickson
2025-09-28 20:35:46 -05:00
parent 2e1b588270
commit 775a1ff69e
66 changed files with 5655 additions and 944 deletions

View File

@@ -33,8 +33,13 @@ export class MobileErrorBoundary extends React.Component<MobileErrorBoundaryProp
errorInfo
});
// Log error for debugging
console.error(`Mobile screen error in ${this.props.screenName}:`, error, errorInfo);
// Enhanced logging for debugging (temporary)
console.error(`[Mobile Error Boundary] Screen: ${this.props.screenName}`);
console.error(`[Mobile Error Boundary] Error message:`, error.message);
console.error(`[Mobile Error Boundary] Error stack:`, error.stack);
console.error(`[Mobile Error Boundary] Component stack:`, errorInfo.componentStack);
console.error(`[Mobile Error Boundary] Full error object:`, error);
console.error(`[Mobile Error Boundary] Full errorInfo object:`, errorInfo);
}
handleRetry = () => {

View File

@@ -2,7 +2,7 @@ import { create } from 'zustand';
import { persist, createJSONStorage } from 'zustand/middleware';
import { safeStorage } from '../utils/safe-storage';
export type MobileScreen = 'Dashboard' | 'Vehicles' | 'Log Fuel' | 'Settings';
export type MobileScreen = 'Dashboard' | 'Vehicles' | 'Log Fuel' | 'Documents' | 'Settings';
export type VehicleSubScreen = 'list' | 'detail' | 'add' | 'edit';
interface NavigationHistory {
@@ -210,4 +210,4 @@ export const useNavigationStore = create<NavigationState>()(
},
}
)
);
);