Skip to content

Add Ability to Filter Tasks by Deadline #10

@vidhitamittal

Description

@vidhitamittal

Summary:
Enhance the to-do list application's home page by introducing a feature to filter tasks based on their deadlines. This functionality will allow users to view tasks in a more organized manner, focusing on due dates such as upcoming, overdue, or tasks due today.

Objectives:

  • Provide a mechanism to filter tasks on the home page based on their deadlines.
  • Allow sorting tasks by ascending or descending deadline order for improved usability.

Changes:

  • Update the python script to support queries for filtering tasks by specific deadline criteria (e.g., due today, overdue, or due within a specified timeframe).
  • Add a filter option (e.g., dropdown) to the home page interface for selecting deadline criteria.
  • Implement logic to fetch and sort tasks by deadline in ascending or descending order. Use SQL queries to fetch tasks matching conditions such as deadline = CURRENT_DATE (due today).
  • Add queries to sort tasks by deadlines (ORDER BY deadline ASC/DESC).
  • Use Flask templates to render tasks based on the selected filter or sort criteria.

Benefits:

  • Better Task Organization: Users can easily focus on tasks with pressing deadlines, helping them prioritize more effectively.
  • Improved Usability: A streamlined view of tasks by deadlines reduces clutter for users managing multiple tasks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions