feat: implement document upload functionality with dedicated UI, state management, and routing.

This commit is contained in:
Achintha Isuru
2026-02-26 16:11:24 -05:00
parent 050072bd93
commit 1aa5132abe
14 changed files with 618 additions and 90 deletions

View File

@@ -225,6 +225,21 @@ extension StaffNavigator on IModularNavigator {
pushNamed(StaffPaths.documents);
}
/// Pushes the document upload page.
///
/// Parameters:
/// * [document] - The document metadata to upload
/// * [initialUrl] - Optional initial document URL
void toDocumentUpload({required StaffDocument document, String? initialUrl}) {
navigate(
StaffPaths.documentUpload,
arguments: <String, dynamic>{
'document': document,
'initialUrl': initialUrl,
},
);
}
/// Pushes the certificates management page.
///
/// Manage professional certificates (e.g., food handling, CPR).

View File

@@ -164,6 +164,9 @@ class StaffPaths {
/// Store ID, work permits, and other required documentation.
static const String documents = '/worker-main/documents/';
/// Document upload page.
static const String documentUpload = '/worker-main/documents/upload/';
/// Certificates management - professional certifications.
///
/// Manage professional certificates (e.g., food handling, CPR, etc.).