feat: ability to view tasks in a category #19

Merged
matous-volf merged 15 commits from feat/tasks-in-category-list into main 2024-09-06 06:07:35 +00:00
8 changed files with 1 additions and 21 deletions
Showing only changes of commit f205af7563 - Show all commits

View File

@ -1,10 +1,8 @@
use crate::models::category::Category;
use crate::server::tasks::get_tasks_in_category;
use chrono::NaiveDate;
use dioxus::core_macro::rsx;
use dioxus::dioxus_core::Element;
use dioxus::prelude::*;
use std::fmt::format;
#[component]
pub(crate) fn CategoryInput(selected_category: Signal<Category>, class: Option<&'static str>) -> Element {

View File

@ -1,7 +1,4 @@
use dioxus::prelude::*;
use crate::components::task_list::TaskList;
use crate::models::category::Category;
use crate::route::Route;
#[component]
pub(crate) fn CreateButton(creating: Signal<bool>) -> Element {

View File

@ -1,6 +1,4 @@
use crate::components::navigation_item::NavigationItem;
use crate::components::task_list::TaskList;
use crate::models::category::Category;
use crate::route::Route;
use dioxus::prelude::*;

View File

@ -1,6 +1,4 @@
coderabbitai[bot] commented 2024-09-05 16:27:29 +00:00 (Migrated from github.com)
Review

Review of imports and module usage.

The imports are well-organized and relevant to the component's functionality:

  • dioxus::prelude::* for Dioxus core functionalities.
  • crate::components::task_list::TaskList seems unused in this file and could be removed unless it's intended for future use.
  • crate::models::category::Category and crate::route::Route are essential for handling routing and category data.

Consider removing unused imports to keep the code clean and efficient.

**Review of imports and module usage.** The imports are well-organized and relevant to the component's functionality: - `dioxus::prelude::*` for Dioxus core functionalities. - `crate::components::task_list::TaskList` seems unused in this file and could be removed unless it's intended for future use. - `crate::models::category::Category` and `crate::route::Route` are essential for handling routing and category data. Consider removing unused imports to keep the code clean and efficient. <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2024-09-05 16:27:29 +00:00 (Migrated from github.com)
Review

Review of imports and module usage.

The imports are well-organized and relevant to the component's functionality:

  • dioxus::prelude::* for Dioxus core functionalities.
  • crate::components::task_list::TaskList seems unused in this file and could be removed unless it's intended for future use.
  • crate::models::category::Category and crate::route::Route are essential for handling routing and category data.

Consider removing unused imports to keep the code clean and efficient.

**Review of imports and module usage.** The imports are well-organized and relevant to the component's functionality: - `dioxus::prelude::*` for Dioxus core functionalities. - `crate::components::task_list::TaskList` seems unused in this file and could be removed unless it's intended for future use. - `crate::models::category::Category` and `crate::route::Route` are essential for handling routing and category data. Consider removing unused imports to keep the code clean and efficient. <!-- This is an auto-generated comment by CodeRabbit -->
use dioxus::prelude::*;
use crate::components::task_list::TaskList;
coderabbitai[bot] commented 2024-09-05 16:27:29 +00:00 (Migrated from github.com)
Review

Review of imports and module usage.

The imports are well-organized and relevant to the component's functionality:

  • dioxus::prelude::* for Dioxus core functionalities.
  • crate::components::task_list::TaskList seems unused in this file and could be removed unless it's intended for future use.
  • crate::models::category::Category and crate::route::Route are essential for handling routing and category data.

Consider removing unused imports to keep the code clean and efficient.

**Review of imports and module usage.** The imports are well-organized and relevant to the component's functionality: - `dioxus::prelude::*` for Dioxus core functionalities. - `crate::components::task_list::TaskList` seems unused in this file and could be removed unless it's intended for future use. - `crate::models::category::Category` and `crate::route::Route` are essential for handling routing and category data. Consider removing unused imports to keep the code clean and efficient. <!-- This is an auto-generated comment by CodeRabbit -->
use crate::models::category::Category;
coderabbitai[bot] commented 2024-09-05 16:27:29 +00:00 (Migrated from github.com)
Review

Review of imports and module usage.

The imports are well-organized and relevant to the component's functionality:

  • dioxus::prelude::* for Dioxus core functionalities.
  • crate::components::task_list::TaskList seems unused in this file and could be removed unless it's intended for future use.
  • crate::models::category::Category and crate::route::Route are essential for handling routing and category data.

Consider removing unused imports to keep the code clean and efficient.

**Review of imports and module usage.** The imports are well-organized and relevant to the component's functionality: - `dioxus::prelude::*` for Dioxus core functionalities. - `crate::components::task_list::TaskList` seems unused in this file and could be removed unless it's intended for future use. - `crate::models::category::Category` and `crate::route::Route` are essential for handling routing and category data. Consider removing unused imports to keep the code clean and efficient. <!-- This is an auto-generated comment by CodeRabbit -->
use crate::route::Route;
#[component]

coderabbitai[bot] commented 2024-09-05 16:27:29 +00:00 (Migrated from github.com)
Review

Review of imports and module usage.

The imports are well-organized and relevant to the component's functionality:

  • dioxus::prelude::* for Dioxus core functionalities.
  • crate::components::task_list::TaskList seems unused in this file and could be removed unless it's intended for future use.
  • crate::models::category::Category and crate::route::Route are essential for handling routing and category data.

Consider removing unused imports to keep the code clean and efficient.

**Review of imports and module usage.** The imports are well-organized and relevant to the component's functionality: - `dioxus::prelude::*` for Dioxus core functionalities. - `crate::components::task_list::TaskList` seems unused in this file and could be removed unless it's intended for future use. - `crate::models::category::Category` and `crate::route::Route` are essential for handling routing and category data. Consider removing unused imports to keep the code clean and efficient. <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2024-09-05 16:27:29 +00:00 (Migrated from github.com)
Review

Review of imports and module usage.

The imports are well-organized and relevant to the component's functionality:

  • dioxus::prelude::* for Dioxus core functionalities.
  • crate::components::task_list::TaskList seems unused in this file and could be removed unless it's intended for future use.
  • crate::models::category::Category and crate::route::Route are essential for handling routing and category data.

Consider removing unused imports to keep the code clean and efficient.

**Review of imports and module usage.** The imports are well-organized and relevant to the component's functionality: - `dioxus::prelude::*` for Dioxus core functionalities. - `crate::components::task_list::TaskList` seems unused in this file and could be removed unless it's intended for future use. - `crate::models::category::Category` and `crate::route::Route` are essential for handling routing and category data. Consider removing unused imports to keep the code clean and efficient. <!-- This is an auto-generated comment by CodeRabbit -->

View File

@ -1,7 +1,4 @@
coderabbitai[bot] commented 2024-09-05 16:27:28 +00:00 (Migrated from github.com)
Review

Consider removing unused imports.

The imports TaskList, Category, and Route are not used in the current implementation of NotFoundPage. If these are not intended for immediate future use, consider removing them to clean up the code.

**Consider removing unused imports.** The imports `TaskList`, `Category`, and `Route` are not used in the current implementation of `NotFoundPage`. If these are not intended for immediate future use, consider removing them to clean up the code. <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2024-09-05 16:27:28 +00:00 (Migrated from github.com)
Review

Consider removing unused imports.

The imports TaskList, Category, and Route are not used in the current implementation of NotFoundPage. If these are not intended for immediate future use, consider removing them to clean up the code.

**Consider removing unused imports.** The imports `TaskList`, `Category`, and `Route` are not used in the current implementation of `NotFoundPage`. If these are not intended for immediate future use, consider removing them to clean up the code. <!-- This is an auto-generated comment by CodeRabbit -->
use dioxus::prelude::*;
use crate::components::task_list::TaskList;
coderabbitai[bot] commented 2024-09-05 16:27:28 +00:00 (Migrated from github.com)
Review

Consider removing unused imports.

The imports TaskList, Category, and Route are not used in the current implementation of NotFoundPage. If these are not intended for immediate future use, consider removing them to clean up the code.

**Consider removing unused imports.** The imports `TaskList`, `Category`, and `Route` are not used in the current implementation of `NotFoundPage`. If these are not intended for immediate future use, consider removing them to clean up the code. <!-- This is an auto-generated comment by CodeRabbit -->
use crate::models::category::Category;
coderabbitai[bot] commented 2024-09-05 16:27:28 +00:00 (Migrated from github.com)
Review

Consider removing unused imports.

The imports TaskList, Category, and Route are not used in the current implementation of NotFoundPage. If these are not intended for immediate future use, consider removing them to clean up the code.

**Consider removing unused imports.** The imports `TaskList`, `Category`, and `Route` are not used in the current implementation of `NotFoundPage`. If these are not intended for immediate future use, consider removing them to clean up the code. <!-- This is an auto-generated comment by CodeRabbit -->
use crate::route::Route;
coderabbitai[bot] commented 2024-09-05 16:27:28 +00:00 (Migrated from github.com)
Review

Consider removing unused imports.

The imports TaskList, Category, and Route are not used in the current implementation of NotFoundPage. If these are not intended for immediate future use, consider removing them to clean up the code.

**Consider removing unused imports.** The imports `TaskList`, `Category`, and `Route` are not used in the current implementation of `NotFoundPage`. If these are not intended for immediate future use, consider removing them to clean up the code. <!-- This is an auto-generated comment by CodeRabbit -->
#[component]
pub(crate) fn NotFoundPage(route: Vec<String>) -> Element {

coderabbitai[bot] commented 2024-09-05 16:27:28 +00:00 (Migrated from github.com)
Review

Consider removing unused imports.

The imports TaskList, Category, and Route are not used in the current implementation of NotFoundPage. If these are not intended for immediate future use, consider removing them to clean up the code.

**Consider removing unused imports.** The imports `TaskList`, `Category`, and `Route` are not used in the current implementation of `NotFoundPage`. If these are not intended for immediate future use, consider removing them to clean up the code. <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2024-09-05 16:27:28 +00:00 (Migrated from github.com)
Review

Consider removing unused imports.

The imports TaskList, Category, and Route are not used in the current implementation of NotFoundPage. If these are not intended for immediate future use, consider removing them to clean up the code.

**Consider removing unused imports.** The imports `TaskList`, `Category`, and `Route` are not used in the current implementation of `NotFoundPage`. If these are not intended for immediate future use, consider removing them to clean up the code. <!-- This is an auto-generated comment by CodeRabbit -->

View File

@ -1,10 +1,7 @@
use crate::models::category::{Category, Reoccurrence, ReoccurrenceInterval};
use crate::server::tasks::get_tasks_in_category;
use chrono::NaiveDate;
use crate::models::category::ReoccurrenceInterval;
use dioxus::core_macro::rsx;
use dioxus::dioxus_core::Element;
use dioxus::prelude::*;
use std::fmt::format;
#[component]
pub(crate) fn ReoccurrenceIntervalInput(

View File

@ -1,7 +1,4 @@
use dioxus::prelude::*;
use crate::components::task_list::TaskList;
use crate::models::category::Category;
use crate::route::Route;
#[component]
pub(crate) fn StickyBottom(children: Element) -> Element {

View File

@ -1,4 +1,3 @@
use crate::components::home::Home;
use crate::components::pages::category_inbox_page::CategoryInboxPage;
use crate::components::pages::category_next_steps_page::CategoryNextStepsPage;
use crate::components::pages::category_today_page::CategoryTodayPage;
@ -12,7 +11,6 @@ use crate::components::pages::projects_page::ProjectsPage;
use crate::components::pages::not_found_page::NotFoundPage;
use crate::components::layout::Layout;
use dioxus::prelude::*;
use crate::models::category::Category;
#[derive(Clone, Routable, Debug, PartialEq)]
#[rustfmt::skip]