Skip to content

feat: add custom deadline feature#1

Merged
aloktripathi1 merged 2 commits into
mainfrom
feature/custom-deadline
Mar 2, 2026
Merged

feat: add custom deadline feature#1
aloktripathi1 merged 2 commits into
mainfrom
feature/custom-deadline

Conversation

@aloktripathi1

Copy link
Copy Markdown
Owner

Adds a custom deadline feature — users can create, view, and delete personal deadlines
alongside their academic ones. Data persists in localStorage.

Changes

  • AddCustomDeadlineDialog component (title, date, optional description)
  • useCustomDeadlines hook with localStorage persistence
  • Dashboard "My Deadlines" section + Timeline lane integration
  • Two bug fixes: Rules of Hooks violation in Index.tsx and UTC date off-by-one in the dialog
  • First-time user flow (no courses configured) → no crash

- Add 'custom' to DeadlineType and isCustom flag to DeadlineItem
- New useCustomDeadlines hook persists deadlines to localStorage
  (key: deadline-intel-custom)
- AddCustomDeadlineDialog: form with Title, Date, optional Description
- useDeadlines merges custom deadlines into all computed lists
  (items, allItems, filteredDeadlines, allFilteredDeadlines)
- DeadlineRow: violet 'Custom' badge + hover-reveal Trash2 delete button
- Index (Dashboard): 'Add Custom Deadline' button in header,
  dedicated 'My Deadlines' section for upcoming custom deadlines
- Timeline: 'Add Custom Deadline' button in header, dedicated violet
  lane for custom deadlines within the Feb–May 2026 window, legend entry

Academic deadline logic is not changed.
…line feature

- Move pendingCustom useMemo before early return in Index.tsx to comply
  with React Rules of Hooks (prevented crash on first-time user flow)
- Fix AddCustomDeadlineDialog today date using local date methods instead
  of toISOString() to avoid off-by-one in negative UTC offset timezones
@vercel

vercel Bot commented Mar 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
deadline-intel Ready Ready Preview, Comment Mar 2, 2026 2:07pm

@aloktripathi1 aloktripathi1 merged commit 8af9e17 into main Mar 2, 2026
5 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

Development

Successfully merging this pull request may close these issues.

1 participant