Commit Graph

189 Commits

Author SHA1 Message Date
estifanos
ecd875adf4 fixes 2026-08-17 10:30:03 +00:00
estifanos
903b178527 UI 2026-08-17 10:25:40 +00:00
Estifo77
84e3500352 Merge branch 'certficate' of https://github.com/Tria-plc/emaui into estif-branch-1 2026-08-17 13:16:22 +03:00
Nati
7f45df04e0 feat(seafarer-registration): remove standalone registration page and redirect to licensing flow; update profile handling and eligibility checks 2026-08-17 09:15:39 +00:00
Nati
3e3d20174c feat(certificates): enhance eligibility checks for CoC/CoP application with tooltips and alerts 2026-08-17 08:19:33 +00:00
Nati
ad9b14d716 fix(profile): change update method from PATCH to PUT for profile updates 2026-08-17 07:45:22 +00:00
estifanos
28ae9f393d fixes 2026-08-17 07:13:34 +00:00
nati14575
c698f381b9 fix(api): update BASE_API_URL to use localhost:3000 for consistency 2026-08-17 09:58:51 +03:00
fitse-yotor
f294f67ced fix(portal,backoffice): six reported issues in registration and the designer
Seafarer and vessel registration were filtered out of the operations
step by `requiresOperatorMode !== false`, so someone registering as a
seafarer or vessel owner landed on an onboarding screen that did not
describe them. Both now appear, grouped apart from the company modes:
declaring "I am a seafarer" is a different kind of statement from "my
company forwards freight".

The designer's preview was gated on the Handlebars source alone, which a
canvas layout does not have until the server compiles it on save -- so
the button was dead for exactly the designs the canvas exists for.

Editing looked broken rather than deliberately read-only: every seeded
template is PUBLISHED, and a published design is immutable because
certificates were issued from it. Says so, and offers the new-version
action that is the way forward.

Reviewing officers saw company, capital and staff tabs on seafarer
certificate applications, because PRESENTATION is keyed by the generic
licence keys and the fifty-odd rank-specific CoC/CoP keys fell through
to the company default. Matched by prefix instead, so a certificate
configured tomorrow gets the right presentation without a code change.

Seaman book and BTC are wired to the newly seeded licence types and no
longer marked "soon".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-16 22:21:00 +03:00
fitse-yotor
c58a727a96 Merge branch 'feature/seaman' of https://github.com/Tria-plc/emaui into certficate 2026-08-15 12:44:39 +03:00
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
Estifo77
6330c9ea55 applying loader on pages 2026-08-15 11:25:30 +03:00
Estifo77
57682188de UI improvments on landing page 2026-08-14 15:33:14 +03:00
Estifo77
c00a19dd99 UI improvements 2026-08-14 15:10:41 +03:00
Estifo77
7733fe8efd UI improvements 2026-08-14 15:03:02 +03:00
Estifo77
9a7b93cfb6 loader UI improvements 2026-08-14 14:45:57 +03:00
estifanos
f31e75c3de feat: implement PageLoader component and register maritime loader as the default theme loader 2026-08-14 11:35:34 +00:00
estifanos
7c79f4d644 feat: implement useAuthToken hook for consistent auth token retrieval across components.comment from nati 2026-08-14 09:27:37 +00:00
estifanos
accfb8c95d fixes 2026-08-14 08:16:09 +00:00
estifanos
6795607b13 fix 2026-08-14 08:05:32 +00:00
estifanos
e0b3a4887a feat: add internationalization support for auth components and pages, including translations for Amharic and English 2026-08-14 07:54:30 +00:00
estifanos
d71483be4a feat: simplify hero section buttons and update call-to-action text 2026-08-14 07:46:39 +00:00
estifanos
cfbec948fb feat: enhance landing page with new hero section, badges, and improved styles 2026-08-14 07:43:14 +00:00
estifanos
de04ed64b3 feat: remove certificate verification page and related API, update landing page links 2026-08-14 07:34:35 +00:00
estifanos
d6b813b697 feat: add landing page copy and styles for English and Amharic versions
- Introduced `landing-copy.ts` containing text for the public landing page, supporting both English and Amharic languages.
- Added `landing.css` for styling the landing page, ensuring scoped styles to prevent conflicts with other app styles.
- Implemented smooth scrolling and animations for a better user experience.
2026-08-14 07:20:42 +00: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