Commit Graph

77 Commits

Author SHA1 Message Date
mihretue
933ba41476 feat(signup): verify identity with Fayda and prefill the form
Adds "Continue with Fayda" to the existing signup page. It is an alternative
way to fill the form, not a second signup: the applicant still submits to
/auth/signup-with-pwd through the same schema, the same validation and the same
redirect to OTP verification, and signing up without Fayda is unchanged.

The page asks the API for an authorization URL, keeps the returned handle and
state in sessionStorage for the round trip, and FaydaCallbackPage hands the
code back to /auth/fayda/callback. No Fayda protocol logic lives here — the
PKCE verifier, the client key and the token exchange stay on the server. Once
the account exists the page posts the verification token to /auth/fayda/link so
the identity is recorded against it; that call is best-effort, since the
account is already usable without it.

Prefilled fields carry a "From Fayda" badge and stay editable, and a value
that already belongs to another account is badged as such so the applicant can
see which one to change rather than reading a single opaque signup error.
Cancellation, an expired session, a mismatched state and an incomplete callback
each get their own message.

Amharic strings are a first pass and want a native speaker's review.
2026-08-25 12:30:57 +00:00
mihretue
e94ecb3a71 Merge remote-tracking branch 'origin/WorkflowChange' into feature/exam-attempt-domain 2026-08-21 06:58:57 +00:00
mihretue
c0b5871dc3 Merge remote-tracking branch 'origin/WorkflowChange' into feature/exam-attempt-domain
# Conflicts:
#	apps/portal/src/app/features/exams/pages/ExamsPage/columns.tsx
#	apps/portal/src/app/features/exams/pages/ExamsPage/index.tsx
#	libs/api/src/lib/features/licensing/licensing.helpers.ts
#	libs/auth/src/lib/components/AuthBootstrap.tsx
2026-08-20 11:41:06 +00:00
estifanos
8454fb5829 fixes 2026-08-20 11:21:46 +00:00
estifanos
2c8895fed8 feat: support phone number input for password recovery and move route to public access 2026-08-20 11:08:03 +00:00
estifanos
12daba2951 feat: enforce physical characteristics for seafarer profiles and add dynamic validation and form support 2026-08-20 10:17:35 +00:00
estifanos
0b03bc45c3 refactor: improve PhoneInput digit normalization and update validation to trigger on blur 2026-08-20 08:31:08 +00:00
estifanos
a424be5f6c test files 2026-08-20 07:33:25 +00:00
estifanos
481ff57ad1 feat: implement reusable PhoneInput component with validation support and integrate across auth and portal modules. 2026-08-20 07:33:25 +00:00
nati14575
524131fe42 Merge branch 'WorkflowChange' of https://github.com/Tria-plc/emaui into estif-branch-1 2026-08-19 16:49:12 +03:00
estifanos
ec28f6456d feat: implement ActiveSessions component and JWT session tracking to manage user device access 2026-08-19 11:00:20 +00:00
estifanos
ff89b9af5e feat: implement two-factor authentication flow during sign-in and add utility hooks for configuration management 2026-08-19 10:42:30 +00:00
estifanos
4e2f63d4df feat: implement cross-tab idle session timeout and add request collapsing to token refresh logic. 2026-08-19 09:29:02 +00:00
estifanos
1eeb4c5cc3 feat: implement concurrent-safe token refreshing with session-aware error handling 2026-08-19 09:00:05 +00:00
Nati
f97eb68e25 Major 2026-08-19 08:35:28 +00:00
Estifo77
9185df64b9 fixes 2026-08-19 10:31:13 +03:00
Estifo77
c377ddf74a Merge branch 'WorkflowChange' of https://github.com/Tria-plc/emaui into estif-branch-1 2026-08-19 10:23:33 +03:00
Nati
629b02fd26 feat: implement person name utility functions and update related components for name handling 2026-08-19 05:52:26 +00:00
estifanos
2257989821 feat: add account type synchronization to operations form based on selected license types 2026-08-18 11:23:30 +00:00
mihretue
d13fa4ba15 Merge branch 'feature/exam-attempt-domain' of github.com:Tria-plc/emaui into feature/exam-attempt-domain 2026-08-17 14:43:45 +03:00
estifanos
366f75a84d fixes 2026-08-17 10:34:00 +00:00
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
mihretue
1da86a73a9 Merge branch 'feature/exam-attempt-domain' of github.com:Tria-plc/emaui into feature/exam-attempt-domain 2026-08-17 11:51:33 +03: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
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
7733fe8efd UI improvements 2026-08-14 15:03:02 +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
e0b3a4887a feat: add internationalization support for auth components and pages, including translations for Amharic and English 2026-08-14 07:54:30 +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
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
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
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
01105446a0 fix(LoginPage): enhance email and phone validation logic and update password length requirement 2026-08-04 13:53:51 +03:00
Estifo77
07970b85b2 merge fixes 2026-08-03 10:06:30 +03:00
Estifo77
5889ee2105 Merge branch 'dev' of https://github.com/Tria-plc/emaui into estif-branch-1 2026-08-03 09:26:04 +03:00
Mulu Mehari
c62ec59655 Initial End to End functionality 2026-08-02 22:44:08 +03:00
Estifo77
7692730642 fixes 2026-08-01 11:24:18 +03:00