Commit Graph

561 Commits

Author SHA1 Message Date
estifanos
0e4db93396 fixes 2026-08-19 08:07:22 +00:00
Estifo77
1624cc16be fixes 2026-08-19 10:31:53 +03:00
Estifo77
9185df64b9 fixes 2026-08-19 10:31:13 +03:00
Estifo77
0832e5d339 fixes 2026-08-19 10:23:57 +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
Estifo77
cb770f023a chore: configure pnpm workspace builds and add eslint dependency requirements 2026-08-19 09:44:03 +03:00
nati14575
130082dcc4 Refactor LicenseApplicationPage and RequireSeafarerProfile components
- Updated imports for better readability in LicenseApplicationPage.
- Introduced legacy profile sources for backward compatibility in LicenseApplicationPage.
- Enhanced user profile handling by utilizing accountUser in LicenseApplicationPage.
- Improved application state management in LicenseApplicationPage to include accountUser.
- Refactored RequireSeafarerProfile to check for existing applications and handle navigation accordingly.
- Cleaned up navigation items in PortalLayout for better readability and maintainability.
2026-08-19 09:42:23 +03:00
Nati
d70b2e76cd refactor: remove unused application query and simplify application creation logic 2026-08-19 05:55:53 +00:00
Nati
629b02fd26 feat: implement person name utility functions and update related components for name handling 2026-08-19 05:52:26 +00:00
Nati
d44977cbf3 Remove obsolete test artifacts and error context files for seafarer registration tests 2026-08-19 05:14:43 +00:00
Nati
99eb55c366 feat: enhance location handling and localization; improve fallback mechanisms and unify type definitions 2026-08-18 14:44:24 +00:00
fitse-yotor
03e2b2b8a4 feat: update seafarer registration flow and localization; remove profile gating and enhance user experience 2026-08-18 16:44:39 +03:00
mihretue
59bb8cefb9 fix(exam): stop print margins doubling up, fitting far fewer questions per page
body had its own 40px padding + max-width:800px for the on-screen preview
tab, which stacked with @page's own margin once actual printing kicked in
— the preview tab never shows @page at all, so it looked like one
continuous page while the real printed output wasted ~150px+ of page
height per side and was capped to 800px wide regardless of the physical
page width. In @media print specifically: padding:0, max-width:none —
@page's margin is the only inset that should apply once printing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-18 12:59:08 +00:00
mihretue
20b7de2310 fix(exam): pin print footer to the bottom of every page
Footer was just the last thing in document flow, so on a short paper it
landed mid-page instead of at the bottom. position:fixed in @media print
(the standard trick for a repeating page footer) plus a matching @page
bottom margin so it never overlaps the last question's text.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-18 12:12:00 +00:00
mihretue
cb3f945a2a fix(exam): cap cutting point input at 100 for Percentage evaluation
Matches the new backend rule. Field caps at 100 and shows a hint the
moment Percentage is selected, instead of letting you type 150 and only
finding out later.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-18 12:02:45 +00:00
mihretue
df9db6a36e feat(question): add CHOICE options inline while creating, not after
Create a CHOICE question and the options fields were hidden behind a
'save first' message — had to save, then reopen via Edit, to actually add
options. Added an inline options editor (local state, same bilingual
fields/correct-checkbox as the existing edit-mode one) directly in the
create form. On submit: create the question, then immediately call
setOptions with the drafted options using the new question's id — one
action from the user's point of view, two API calls under the hood.
Edit mode is unchanged, still uses the existing QuestionOptionsEditor
against the real question id.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-18 12:00:15 +00:00
Estifo77
4374502ebd Merge branch 'WorkflowChange' of https://github.com/Tria-plc/emaui into estif-branch-1 2026-08-18 14:54:05 +03:00
estifanos
10d2a8935a fixes 2026-08-18 11:49:08 +00:00
estifanos
98277924a3 UI improvements 2026-08-18 11:46:52 +00:00
mihretue
ae3af7777e fix(exam,result,question): kebab-icon action menus, status change as a picker
Two follow-ups on the dropdown-actions pass:
- All four action menus (exams, results, questions, candidates panel) now
  trigger off a plain three-dot icon button instead of a text 'Actions'
  button with a chevron.
- Exam status change no longer lists all six statuses flat in the dropdown
  (bad UX, looked like six always-visible options). 'Status' is now one
  menu item that opens a small picker modal (current status + a Select +
  Update) rather than the full edit form.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-18 11:46:16 +00:00
estifanos
de78052429 feat: add in-flight registration application tracking and status dashboard to vessel registration page 2026-08-18 11:43:11 +00:00
mihretue
80db201676 fix(exam,result): collapse row actions into a dropdown menu everywhere
Same treatment as the questions table, applied consistently: exams list,
exam results list, and the exam-detail candidates panel all now show a
single Actions button opening a dropdown instead of a row of inline
buttons/icons. Also fixes the exams list's action column header, which was
rendering the literal untranslated key ('exam.columns.actions') — missing
a fallback string, same pattern already used elsewhere in this file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-18 11:40:13 +00:00
mihretue
896a19bd5d Merge remote-tracking branch 'origin/feature/exam-attempt-domain' into feature/exam-attempt-domain 2026-08-18 11:40:01 +00:00
estifanos
1509f8ca1f refactor: update vessel registration route and clarify navigation logic in OperationsOnboardingPage 2026-08-18 11:36:35 +00:00
mihretue
3ca5c342c3 fix(question): collapse row actions into a dropdown menu
Matches the exams table's action pattern — a single Actions button opening
a menu, instead of a row of inline buttons/icons that got crowded once a
question had submit/approve/reject/retire/edit/delete all applicable at
once.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-18 11:32:42 +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
estifanos
581eac7466 UI changes 2026-08-18 10:57:37 +00:00
Estifo77
007c0e3d71 feat: configure vite settings for portal and backoffice apps with shared environment directory 2026-08-18 13:47:45 +03:00
estifanos
cb19928bde UI fixes 2026-08-18 10:41:44 +00:00
estifanos
5897e73442 feat: add status filtering and display to medical and sea service verification queues 2026-08-18 10:37:57 +00:00
estifanos
de0dcbfbe8 feat: add workflow profiles to restrict status filtering and sync queue counts by license type 2026-08-18 10:07:22 +00:00
estifanos
2d91092a6b refactor: remove VesselRegistrationHeadDashboardPage and associated navigation links 2026-08-18 09:54:13 +00:00
estifanos
7e19ce9cc9 Revert "mock data for test"
This reverts commit 02b9c73caf.
2026-08-18 09:38:54 +00:00
estifanos
02b9c73caf mock data for test 2026-08-18 09:35:47 +00:00
Fistum
1931e69594 Add error context and media files for seafarer registration tests
- Created error context markdown files for failed tests in seafarer registration, detailing validation errors related to profile details.
- Added binary files (PNG, ZIP, WEBM) for test results, including snapshots and traces for debugging purposes.
- Updated test cases to include new error context and media files for better analysis of failures.
2026-08-18 09:20:36 +00:00
Estifo77
fbe9129fb7 Merge branch 'estif-branch-1' of https://github.com/Tria-plc/emaui into estif-branch-1 2026-08-18 11:59:52 +03:00
Estifo77
eb0b1b7d80 fixes 2026-08-18 11:59:46 +03:00
estifanos
2b95454b4b feat: implement interactive vessel registration reporting page with filters, charts, and data tables 2026-08-18 08:57:51 +00:00
Yonas Tewabe
a513c5d0b9 Update deploy.yml 2026-08-18 11:08:34 +03:00
Yonas Tewabe
ca82408dd8 Merge pull request #17 from Tria-plc/env
Env
2026-08-18 11:03:47 +03:00
Yonas Tewabe
d580379130 Change project name from 'edr' to 'ema' 2026-08-18 11:03:20 +03:00
Yonas Tewabe
94abc33392 Update deploy.yml 2026-08-18 11:01:40 +03:00
Yonas Tewabe
21e34295f1 Create sync-env-from-env-manager.sh 2026-08-18 10:57:57 +03:00
estifanos
1dc82d943a feat: update document review progress tooltip with detailed counts and formatting 2026-08-18 07:46:51 +00:00
estifanos
3d508acc41 feat: implement 18+ age validation, enforce document review completion for approvals, and refactor DecisionBar UI 2026-08-18 07:43:48 +00:00
Estifo77
c6ecb2dd48 fix 2026-08-18 10:22:12 +03:00
mihretue
2b653ac13b Merge branch 'feature/exam-attempt-domain' of github.com:Tria-plc/emaui into feature/exam-attempt-domain 2026-08-18 10:16:30 +03:00
Estifo77
6a717eb761 Merge branch 'WorkflowChange' of https://github.com/Tria-plc/emaui into estif-branch-1 2026-08-18 09:56:16 +03:00
mihretue
f0443b84b1 fix(exam): lock the exam form to CHOICE when administration is Online
Matches the new backend rule (online_exam_requires_choice_form) — picking
Online in the exam form now auto-sets Form to Choice and disables that
field with an explanatory hint, instead of letting the user pick Essay
and only finding out at save time.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-17 17:20:16 +00:00
Nati
c7bd69eecb fix(seafarer): route registration through the application wizard
/seafarer-registration had a page of its own that wrote the profile directly
and created no application at all. A "submitted" registration was therefore
never reviewed, never approved and never numbered — there was nothing for an
officer to open. The shared wizard, the review queue and the approval side
effects all already existed; only the route pointed away from them.

The page is deleted rather than repaired. It was a second wizard maintained
alongside the config-driven one, and the seed already describes every step it
was hand-rolling — including the physical characteristics and medical details
added this release, which it would not have known about. /seafarer-registration
now redirects, so navigation, deep links and the profile gate keep working.

Also adds Configuration -> Number Formats, for the shape of generated seafarer,
seaman book and BTC numbers. The sample is rendered by the server rather than
formatted here, so the preview cannot drift from what an approval will actually
generate, and asking for one never consumes a number.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-17 14:48:26 +00:00