feat: Add document download and upload. Add NFC support and enhance attendance and permits views
- Improved error message handling in LoginScreen for invalid credentials. - Added new images: mariani-icon.png and mariani-splash.png. - Updated AddDocumentModal to handle file extensions and improve UI. - Enhanced CalendarWidget to support month change callbacks. - Introduced NfcScanModal for NFC tag scanning with animations. - Revamped QrScanModal to utilize camera for QR code scanning. - Removed mock data from data.ts and streamlined Office data. - Updated package dependencies for expo-camera and react-native-nfc-manager. - Added utility function to parse seconds to time format. - Refactored document upload logic to use FormData for server uploads.
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
// --- TYPES & export INTERFACES (File: types.ts) ---
|
||||
|
||||
import { DateType } from "react-native-ui-datepicker";
|
||||
|
||||
export interface UserData {
|
||||
@ -11,13 +9,22 @@ export interface UserData {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ActivityItem {
|
||||
id: string;
|
||||
type: 'document' | 'attendance' | 'permit';
|
||||
title: string;
|
||||
subtitle: string;
|
||||
date_display: string;
|
||||
}
|
||||
|
||||
export interface AttendanceRecord {
|
||||
id: number;
|
||||
site: string;
|
||||
subactivity: string;
|
||||
date: string;
|
||||
in: string;
|
||||
out: string | null;
|
||||
status: 'complete' | 'incomplete';
|
||||
time: number | null;
|
||||
}
|
||||
|
||||
export interface DocumentItem {
|
||||
@ -55,7 +62,7 @@ export interface TimeOffRequest {
|
||||
start_time?: string | null;
|
||||
end_time?: string | null;
|
||||
message?: string | null;
|
||||
status: number;
|
||||
status: number;
|
||||
timeOffRequestType: TimeOffRequestType;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user