Repository navigation
feat(#253): implement interactive contract milestone calendar - #274
Merged
SudiptaPaul-31 merged 1 commit intoNov 21, 2026
Conversation
- Add GET /api/milestones/calendar endpoint that returns milestones with
due dates for contracts where the authenticated user is client or
freelancer, with optional filtering by contract_id and status
- Add ContractMilestoneCalendar component (components/dashboard/) with:
- Monthly and weekly calendar views
- Color-coded milestone status indicators (pending, in_progress,
submitted, approved, rejected, paid)
- Filter by contract and milestone status
- Milestone detail dialog opened from calendar events
- Forward/backward month and week navigation
- Today button for quick navigation
- Overdue, upcoming, and completed milestone differentiation
- Loading, empty, and error states
- Responsive layout across desktop, tablet, and mobile
- Add /dashboard/calendar page that renders the calendar component
- Add Calendar nav link (CalendarDays icon) to the dashboard sidebar
- Export ContractMilestoneCalendar from components/dashboard/index.ts
Closes Lumina-eX#253
|
@DammyAji 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔍 Problem Statement
Clients and freelancers had no calendar-based interface to track project milestones, deadlines, upcoming deliverables, and overdue
work at a glance. All milestone information was only accessible through list views on individual contract or milestone pages.
📋 Feature Description
This PR implements an Interactive Contract Milestone Calendar that provides both monthly and weekly calendar views of all
milestones tied to a user's contracts.
✅ Changes
app/api/milestones/calendar/route.ts— New API endpointGET /api/milestones/calendarreturns milestones with due dates for every contract where the authenticated user is client orfreelancer.
contract_id,status,start_date,end_datefor server-side filtering.contractsarray for use in the filter dropdown.withAuthmiddleware pattern and handles all error cases.components/dashboard/contract-milestone-calendar.tsx— Main calendar componentpending,in_progress,submitted,approved,rejected,paid) renders with a distinct colour and icon.views.
name, and a link to the full milestone page.
dataset.
date-fns.app/dashboard/calendar/page.tsx— Dashboard pageContractMilestoneCalendarcomponent under the authenticated dashboard layout at/dashboard/calendar.components/dashboard/sidebar.tsx— NavigationCalendarDaysicon, linking to/dashboard/calendar.components/dashboard/index.ts— Barrel exportContractMilestoneCalendar,CalendarMilestone, andMilestoneStatustypes.📈 Expected Impact
High — Significantly improves visibility into project timelines for both clients and freelancers, reducing missed deadlines
and improving project coordination.
Closes #253