Files
kulakpos_web/walkthroughs/2026-05-13_49267d96_Walkthrough__New_FPTK_Approval_Screen.md
eko54r 05fd3230b8
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 5m14s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 17s
Build, Push and Deploy / deploy-staging (push) Successful in 41s
Build, Push and Deploy / deploy-production (push) Has been skipped
update marketing
2026-05-14 11:55:22 +07:00

1.9 KiB

Walkthrough - New FPTK Approval Screen

I have successfully created the new FPTK Approval screen by copying and adapting the structure from the Leave Approval screen.

Changes Made

1. API Enhancements

Updated employee_request_api.dart to include:

  • getDataApprovalFPTK(): Fetches FPTK records pending approval.
  • approveFPTK(): Handles approval of FPTK requests.

2. New Approval Page

Created fptk_approval_page.dart. This page features:

  • A desktop-optimized table for FPTK requests.
  • Mobile-responsive cards for better viewing on smaller screens.
  • Direct integration with the EmployeeRequestPage for viewing details.

3. Navigation & Routing

  • Registered the /approvals/fptk route in main.dart.
  • Added "Employee Request" (FPTK) to the Approvals section in the sidebar within root_layout.dart.

4. Localization

Added the following translation keys to translations.dart:

  • fptk_approval: "FPTK Approval" / "Persetujuan FPTK"
  • fptk_request_msg: A descriptive message for the approval section.

Verification Results

  • The sidebar now contains the "Employee Request" item under "Approvals".
  • Navigating to the new screen displays the FPTK Approval interface.
  • Clicking the "eye" icon correctly opens the detailed FPTK form in view mode.