Closed matous-volf closed 2 months ago
The pull request introduces substantial changes across various components and models to enhance task management functionality. Key modifications include the transition from basic task queries to those that retrieve tasks along with their associated subtasks. This involves updates to components such as CategoryCalendarPage
, CategoryPage
, and SubtasksForm
, as well as the introduction of new structs and traits to support relationships between tasks and subtasks, thereby improving the overall data structure and query capabilities within the application.
File Path | Change Summary |
---|---|
src/components/pages/category_calendar_page.rs , src/components/pages/category_page.rs , src/components/pages/category_today_page.rs |
Transitioned to queries retrieving tasks with subtasks, updated data handling and rendering logic accordingly. |
src/components/subtasks_form.rs , src/components/task_form.rs |
Changed input parameters to accept Task objects instead of IDs, updated logic for managing subtasks. |
src/components/task_list.rs |
Transitioned to use TaskWithSubtasks , updated rendering logic to display subtasks effectively. |
src/models/project.rs , src/models/subtask.rs , src/models/task.rs |
Added Identifiable and Associations traits, defined relationships, and introduced TaskWithSubtasks struct. |
src/query/mod.rs , src/query/tasks.rs |
Added new variants to QueryValue and QueryKey enums, introduced functions to fetch tasks with subtasks in a specified category. |
src/server/tasks.rs |
Added asynchronous function to retrieve tasks with subtasks filtered by category. |
CategoryCalendarPage
component involve transitioning to a new query that retrieves tasks with subtasks, which directly relates to the changes in the src/components/pages/category_calendar_page.rs
file in PR #40, where the ability to manage subtasks is introduced.[!TIP]
New features
Walkthrough comment now includes: - Possibly related PRs: A list of potentially related PRs to help you recall past context. - Suggested labels: CodeRabbit can now suggest labels by learning from your past PRs. You can also provide custom labeling instructions in the UI or configuration file. Notes: - Please share any feedback in the [discussion post](https://discordapp.com/channels/1134356397673414807/1282535539299323995) on our Discord. - Possibly related PRs, automatic label suggestions based on past PRs, learnings, and possibly related issues require data opt-in (enabled by default).
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
TaskWithSubtasks
structure to encapsulate tasks along with their subtasks.Bug Fixes
Documentation
Chores