| Type | FE |
| Size | L |
| Tier | 2 |
| Depends on | contract |
| Acceptance | AC-PE-020, AC-PE-021, AC-PE-022, AC-PE-023, AC-PE-024, AC-PE-025, AC-PE-026, AC-PE-027, AC-PE-036, AC-PE-040, AC-PE-041, AC-PE-047, AC-PE-048, AC-PE-049, AC-PE-050, AC-PE-052, AC-PE-055, AC-PE-056, AC-PE-057, AC-PE-058, AC-PE-059, AC-PE-060, AC-PE-061, AC-PE-062, AC-PE-063, AC-PE-080, AC-PE-081, AC-PE-082, AC-PE-085 |
| Status | Done |
Ikuti prasyarat pelaksanaan sebelum mulai.
Footer mengikuti frame Figma (D25). Judul kelompok, kelompok kosong dan header mengikuti frame (D26).
Saat flag unit ON, modal Promotion Status menampilkan rekomendasi dalam kelompok tipe kapal saat ini dan tipe kapal lain dengan tiga kolom, footer latest rank, dan state Not Eligible yang dipilih dari reason.
Tipe PromotionStatus ditambah reason, latestRank, currentVesselType dan items[].vesselTypeGroup, semua opsional. Saat flag ON dan sudah selesai dimuat: bila status = Eligible dan items tidak kosong, tampilkan satu tabel Rank Recommendation, Vessel, Vessel Type berisi kelompok CURRENT lalu OTHER, masing-masing diawali baris judul frame persis (Suggestions for the current vessel type. dan Suggestions for other vessel type., D26). Kedua judul selalu tampil; kelompok tanpa item berisi satu baris kosong. Tinggi modal mengikuti isi seperti frame, dibatasi tinggi layar. Item dalam urutan respons dan tanpa label per baris. Header tanpa badge status. Selain itu tampilkan state dari reason dengan heading dan deskripsi tabel Enum contract, fallback ke pemetaan status lama bila reason tidak ada. Footer kiri di samping Close mengikuti tabel footer B2 (D25) untuk semua state hasil, dan tidak tampil saat loading atau error. Loading, alert error dan Retry memakai komponen dan perilaku existing. Retry memuat ulang crew yang sama. 404 dengan errorCode = PROMOTION_CREW_NOT_FOUND tampil sebagai alert error dengan Retry, sedangkan 404 tanpa kode tetap memicu alur fitur tidak tersedia. Izin table_layout:view dan gate enable_promotion_module tidak berubah. Saat flag OFF, modal sama persis dengan sekarang termasuk kolom Required Seatime.
src/features/promotion/PromotionStatusModal.tsx, src/features/promotion/PromotionStatusModal.test.tsx, src/features/promotion/types.ts, src/features/promotion/plan.ts (helper error code bila perlu), story modal bila adasrc/features/promotion/PromotionPlanEditor.tsx (B06), src/app/(home)/crew-management/all-crew/_components/Table.tsx selain bila data-testid sel sudah sesuai, dialog filter (B08), src/constants/feature-flags.ts bila B06 sudah menambah keyall-crew_modal_promotion, all-crew_text_promotion-badge (hanya flag OFF), all-crew_text_promotion-group-current, all-crew_table_promotion-current, all-crew_text_promotion-group-other, all-crew_table_promotion-other, all-crew_row_promotion-recommendation, all-crew_text_promotion-latest-rank, all-crew_empty_promotion-no-experience, all-crew_empty_promotion-no-configuration, all-crew_empty_promotion-no-approval, all-crew_empty_promotion-insufficient-sea-time, all-crew_loading_promotion, all-crew_alert_promotion-error, all-crew_button_promotion-retry, all-crew_button_promotion-closestatussrc/features/promotion/PromotionStatusModal.tsx baris 90-103: semua 404 dianggap fitur tidak tersediaPromotionStatusModal (layar modal di All Crew)0m, 1m, 1y, 2y 10m, 404 berkode dan tanpa kode, Retry ke crew yang sama, flag OFF sama dengan snapshot existing. AC-PE-047 sampai 050 di bolt ini hanya bagian modal. Lint dan type check| Date | Event | Reason | Ref |
|---|---|---|---|
| 2026-11-27 | Note | Klarifikasi saat membaca frame: judul kelompok, kelompok kosong dan header ikut Figma (D26) | PR spec-change D26 |