Skip to content

feat: batch implementation of frontend dashboard widgets#1054

Merged
yusuftomilola merged 1 commit into
DistinctCodes:mainfrom
SharifIbrahimDev:feat/batch-frontend-widgets-998-1001
May 31, 2026
Merged

feat: batch implementation of frontend dashboard widgets#1054
yusuftomilola merged 1 commit into
DistinctCodes:mainfrom
SharifIbrahimDev:feat/batch-frontend-widgets-998-1001

Conversation

@SharifIbrahimDev
Copy link
Copy Markdown

This pull request introduces a batch of 4 reusable frontend React components to enhance the dashboard and workspace UI.

What's included

  • Onboarding Checklist Widget: A clean, interactive progress tracker (OnboardingChecklist.tsx) that shows members what to do next to get started. It calculates dynamic progress and presents a satisfying completion state when finished.
  • Booking Status Badge: A robust badge component (BookingStatusBadge.tsx) utilizing strict TypeScript union types to perfectly map PENDING, CONFIRMED, CANCELLED, COMPLETED, and NO_SHOW statuses to visually distinct Tailwind colors (including dark mode variants).
  • Amenities List Widget: A streamlined badge list (AmenitiesList.tsx) that normalizes capitalization and safely maps amenities to lucide-react icons (Wifi, Parking, Air Conditioning, Gym, etc.), falling back to a Tag icon for unknown entries.
  • Check-In History Table: An organized attendance record table (CheckInHistory.tsx) that formats durations into Xh Ym, cleanly identifies Active sessions, incorporates the newly built BookingStatusBadge for state tracking, and falls back to a structured empty state.

All components have been built entirely within frontend/cntr/ using Tailwind CSS and lucide-react, and boast full test coverage using Vitest and React Testing Library (40 passing tests).

Closes #998
Closes #999
Closes #1000
Closes #1001

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

Someone is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@SharifIbrahimDev Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@yusuftomilola yusuftomilola merged commit 4dccf1a into DistinctCodes:main May 31, 2026
2 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants