Skip to content

Conversation

@ShivaGupta-14
Copy link
Contributor

Description

This PR introduces full overdue-task support in the Tasks page, along with badge UI updates and a comprehensive test suite to ensure behavior correctness and long-term stability.

Key Enhancements

  • Added "overdue" as a selectable option in the Status filter
  • Integrated overdue detection via existing isOverdue() logic
  • Implemented overdue-aware sorting so overdue tasks always appear on top
  • Added “O” badge in the Status column for overdue tasks
  • Preserved existing red background highlight for overdue Task IDs
  • Added complete Jest test coverage for:
    • Overdue filtering
    • O-badge rendering
    • Non-overdue fallback behavior
    • Sorting with overdue-first ordering

Fixes: #186


Checklist

  • Ran npx prettier --write . (for formatting)
  • Ran gofmt -w . (for Go backend)
  • Ran npm test (for JS/TS testing)
  • Added unit tests, if applicable
  • Verified all tests pass
  • Updated documentation, if needed

Additional Notes

Screenshots:

Screenshot 2025-11-26 at 12 19 31 AM Screenshot 2025-11-26 at 12 19 47 AM Screenshot 2025-11-26 at 12 20 07 AM

- Added "overdue" to Status filter and integrated with existing logic
- Implemented overdue sorting + “O” badge in status column
- Kept red ID highlight for overdue tasks
- Added comprehensive tests for overdue filtering, badges, and ordering

- Fixes: CCExtractor#186
@its-me-abhishek its-me-abhishek merged commit 3a4b32f into CCExtractor:main Nov 29, 2025
4 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.

Add an over due filter in addition to Status Filters (Pending, Completed, Overdue)

2 participants