Commit Graph

115 Commits

Author SHA1 Message Date
fitse-yotor
0ac75669d4 feat: add ExamStageActions component for exam fee handling
- Implemented ExamStageActions component to manage actions related to exam booking and payment based on application status.
- Added mock-base-query for development, providing a partial mock backend for various API endpoints.
- Introduced mock-data for simulating responses in the mock-base-query, covering profiles, vessels, applications, licenses, exams, and notifications.
2026-08-15 11:51:14 +03:00
Nati
6852fc86c6 feat: implement permission-based access control across various pages and components
- Added RequirePermission component to manage access based on user permissions.
- Integrated permission checks in MySeaRecordsPage, SeafarerRegistrationPage, VesselRegistrationPage, WaiverPage, and PortalLayout.
- Updated router to enforce permissions for specific routes.
- Introduced PORTAL_PERMISSIONS and LICENSE_PERMISSIONS constants for consistent permission management.
- Enhanced usePermissions hook to fetch permissions from the server and determine access rights.
- Refactored UI components to conditionally render based on user permissions, improving security and user experience.
2026-08-13 12:58:11 +00:00
Nati
220ed2d018 Merge branch 'dev' of github.com:Tria-plc/emaui into Refactor
Resolved by unifying on the lib/data AdvancedTable (PR #10) as the canonical
table component: kept its API plus teammate i18n/feature work, kept the
folder-per-table structure (index.tsx + columns.tsx + actions.tsx) across all
27 tables, removed the parallel lib/table implementation, and fixed
pre-existing compile breaks in ExamDetailPage/QuestionAssigner/RecordResultModal.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-13 11:31:27 +00:00
Nati
2af9e60800 feat(vessel-registration): add vessel registration page with incident reporting and certificate download functionality
feat(waiver): implement waiver page with application tracking and letter download feature

feat(ui): introduce AdvancedTable component for enhanced table functionality across the application

chore: update package-lock.json to remove unnecessary dependencies
2026-08-13 09:11:50 +00:00
estifanos
31c52c02e0 feat: introduce useLocalized hook for bilingual value retrieval.(localization round 2)
- Added useLocalized hook to provide a stable function for retrieving bilingual values based on the current language.
- Updated various components across the portal and backoffice to utilize the new useLocalized hook for consistent bilingual label rendering.
- Refactored localized function in licensing.helpers to handle empty Amharic strings correctly.
- Enhanced localization handling in LicenseApplicationPage, ProfilePage, and other components to ensure proper language switching.
2026-08-12 11:31:20 +00:00
estifanos
9897a9bf78 feat: implement date display utility across various pages
- Added `useDateDisplayer` hook and `dateDisplayer` function to format dates consistently based on the user's language.
- Updated multiple components and pages in both backoffice and portal applications to utilize the new date display functionality, ensuring proper formatting for dates in lists, tables, and detail views.
- Introduced Ethiopian date formatting for Amharic language support.
- Refactored date handling in components such as ExamAppealsPage, ResultPage, SeafarerRegistryPage, and others to improve localization and user experience.
2026-08-12 10:22:39 +00:00
estifanos
0633ecc165 feat: implement applicant name fallback logic in licensing helpers and update MyApplicationsPage 2026-08-12 07:18:43 +00:00
estifanos
444c3111ab UI 2026-08-12 06:40:43 +00:00
estifanos
4a68bdf169 UI fixes 2026-08-11 12:24:03 +00:00
estifanos
b2f99200e7 feat: enhance AmharicDatePicker with Ethiopian time selection and formatting 2026-08-11 12:20:22 +00:00
estifanos
18de7b1c1d UI fixes 2026-08-11 11:39:46 +00:00
estifanos
1b0a21c683 feat: add page size selection to AdvancedTable and update useServerTable hook 2026-08-11 11:37:52 +00:00
Estifo77
0573e01769 UI fixes 2026-08-11 14:32:26 +03:00
estifanos
0fd78c7757 fix: update Badge component in LicenseQueuePage for consistent styling
feat: add siblings and boundaries props to pagination in AdvancedTable
2026-08-11 11:23:38 +00:00
Estifo77
1cfa3dec69 UI 2026-08-11 13:10:44 +03:00
Estifo77
f956c41c06 UI 2026-08-11 11:58:23 +03:00
estifanos
19afcc3403 feat: add nationality support with demonym in CountrySelect and related components 2026-08-10 12:28:31 +00:00
Estifo77
4fc73b0567 feat(i18n): update medical verification label to include sea service verification
fix(layouts): import baseApi in BackofficeLayout and PortalLayout for API state management

refactor(auth): remove clearCurrentProfile call on logout and improve cookie removal logic

chore(auth-storage): enhance cookie management with secure and sameSite attributes, and streamline cleanup process
2026-08-10 14:42:21 +03:00
Estifo77
1a0da134a5 Refactor MySeaRecordsPage to use AmharicDatePicker and update styles for better UX 2026-08-10 14:18:09 +03:00
estifanos
2c1b0306a0 revert 2026-08-10 10:21:58 +00:00
estifanos
73de3f212b Licence applications filter 2026-08-10 10:10:34 +00:00
Estifo77
c822e99052 Add AttachmentsModal and refactor MedicalVerificationPage with AdvancedTable integration 2026-08-10 13:06:54 +03:00
Estifo77
e93b439d50 date picker fix 2026-08-10 12:21:40 +03:00
estifanos
8ce6a2fa94 Revert "fixes"
This reverts commit 31547ba608.
2026-08-10 09:10:11 +00:00
estifanos
e0dec698a0 Revert "fix"
This reverts commit 854a446411.
2026-08-10 09:10:11 +00:00
estifanos
854a446411 fix 2026-08-10 09:07:09 +00:00
estifanos
31547ba608 fixes 2026-08-10 09:05:09 +00:00
estifanos
e2063223f4 fix 2026-08-10 08:48:40 +00:00
estifanos
40a4809e6a fix 2026-08-10 08:33:34 +00:00
estifanos
d1e9bc47c6 fixes 2026-08-10 08:29:00 +00:00
estifanos
fbf948b3d3 Implement seafarer profile requirement gate to ensure complete profile before registration 2026-08-08 08:35:40 +00:00
Estifo77
1116e57a8d Refactor ProfilePage to remove unused API calls and optimize user data handling 2026-08-08 11:13:03 +03:00
estifanos
56de3727fa Refactor AddressFormContent and ProfilePage to integrate CountrySelect for nationality selection and update address payload handling 2026-08-08 07:40:33 +00:00
estifanos
85c9930363 Add address management features and improve validation
- Implement saveMyAddress mutation for updating user addresses.
- Enhance address validation schema with additional fields.
- Add error handling for location loading in LocationPicker.
- Update translations for loading errors in English and Amharic.
- Introduce phone number validation for Ethiopian formats.
- Refactor AddressFormContent to accommodate new address structure.
2026-08-08 07:32:33 +00:00
Estifo77
23675005fc Refactor imports and improve LoginPage validation logic 2026-08-08 09:26:47 +03:00
Estifo77
a92580c7be fixes 2026-08-08 09:05:06 +03:00
Estifo77
203d2e5026 Merge branch 'dev' of https://github.com/Tria-plc/emaui into estif-branch-1 2026-08-08 09:03:50 +03:00
Mulu Mehari
7c968c7093 Adding more functionalities for all the license types 2026-08-07 11:50:07 +03:00
Estifo77
3610c69a69 fixes 2026-08-06 09:43:40 +03:00
estifanos
a02cee1a78 feat(LicenseQueuePage): update sorting logic to prioritize claimedAt for "mine" view 2026-08-05 12:44:22 +00:00
estifanos
cc70e271d2 fix(AmharicDatePicker): conditionally close date picker based on time selection 2026-08-05 12:36:10 +00:00
Estifo77
a8ded884e6 fixes 2026-08-05 14:24:21 +03:00
Estifo77
5752362174 feat(AmharicDatePicker): enhance CSS styles for improved calendar layout and button accessibility 2026-08-05 14:05:44 +03:00
estifanos
92166a8754 feat(tsconfig): add types option for Vite client in compilerOptions 2026-08-05 10:48:08 +00:00
estifanos
c79e4cc5fa feat(AmharicDatePicker): add width prop to align input fields in filter bar 2026-08-05 10:21:56 +00:00
estifanos
7ba760d74b feat(AmharicDatePicker): implement Amharic date picker component with calendar type switching and time input 2026-08-05 10:14:03 +00:00
estifanos
f06f74b9e0 feat(AppHeader): add notifications click handler and count display 2026-08-05 09:26:20 +00:00
estifanos
bbae230ad5 feat: implement ModalFooter component for consistent modal action layout 2026-08-05 08:50:38 +00:00
Estifo77
01105446a0 fix(LoginPage): enhance email and phone validation logic and update password length requirement 2026-08-04 13:53:51 +03:00
Estifo77
553ef26566 merge fixes 2026-08-03 15:41:06 +03:00