Files
kulakpos_web/walkthroughs/2026-04-27_bb6330e6_Walkthrough__Dynamic_Team_Members_Count.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

853 B

Walkthrough - Dynamic Team Members Count

I have updated the Dashboard to dynamically display the total number of team members fetched from the Employee Directory API.

Changes

Dashboard

dashboard_page.dart

  • Converted DashboardPage to a StatefulWidget.
  • Added logic to fetch subordinate data using DirectoryApi during initialization.
  • Replaced the hardcoded '24' with the actual count from the API.
  • Added a loading state ('...') while data is being fetched.

Verification Results

Manual Verification

  • The "Team Members" card on the dashboard now shows the count of employees retrieved from the backend API.
  • If the API call fails or is loading, the UI handles it gracefully.