feat: UI overhaul
All checks were successful
actionlint check / actionlint check (pull_request) Successful in 8s
conventional pull request title check / conventional pull request title check (pull_request) Successful in 3s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 6s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 7s
GitLeaks check / GitLeaks check (pull_request) Successful in 13s
hadolint check / hadolint check (pull_request) Successful in 13s
markdownlint check / markdownlint check (pull_request) Successful in 31s
htmlhint check / htmlhint check (pull_request) Successful in 40s
Prettier check / Prettier check (pull_request) Successful in 30s
checkov check / checkov check (pull_request) Successful in 1m16s
Stylelint check / Stylelint check (pull_request) Successful in 22s
ShellCheck check / ShellCheck check (pull_request) Successful in 50s
yamllint check / yamllint check (pull_request) Successful in 44s
Rust check / Rust check (pull_request) Successful in 58m3s

This commit is contained in:
2026-01-28 19:36:00 +01:00
parent be1a21b746
commit a6711b3e47
41 changed files with 839 additions and 994 deletions

View File

@@ -8,7 +8,9 @@ use crate::views::category_today_page::CategoryTodayPage;
use crate::views::category_trash_page::CategoryTrashPage;
use crate::views::category_waiting_for_page::CategoryWaitingForPage;
use crate::views::not_found_page::NotFoundPage;
use crate::views::project_form_page::ProjectFormPage;
use crate::views::projects_page::ProjectsPage;
use crate::views::task_form_page::TaskFormPage;
use dioxus::prelude::*;
// All variants have the same postfix because they have to match the component names.
@@ -16,26 +18,33 @@ use dioxus::prelude::*;
#[derive(Clone, Routable, Debug, PartialEq)]
#[rustfmt::skip]
pub(crate) enum Route {
#[layout(layouts::Main)]
#[redirect("/", || Route::CategoryTodayPage {})]
#[route("/today")]
CategoryTodayPage,
#[route("/inbox")]
CategoryInboxPage,
#[route("/someday-maybe")]
CategorySomedayMaybePage,
#[route("/waiting-for")]
CategoryWaitingForPage,
#[route("/next-steps")]
CategoryNextStepsPage,
#[route("/calendar")]
CategoryCalendarPage,
#[route("/done")]
CategoryDonePage,
#[route("/trash")]
CategoryTrashPage,
#[route("/projects")]
ProjectsPage,
#[layout(layouts::navigation::Navigation)]
#[layout(layouts::suspense::Suspense)]
#[route("/today")]
CategoryTodayPage,
#[route("/inbox")]
CategoryInboxPage,
#[route("/someday-maybe")]
CategorySomedayMaybePage,
#[route("/waiting-for")]
CategoryWaitingForPage,
#[route("/next-steps")]
CategoryNextStepsPage,
#[route("/calendar")]
CategoryCalendarPage,
#[route("/done")]
CategoryDonePage,
#[route("/trash")]
CategoryTrashPage,
#[route("/projects")]
ProjectsPage,
#[end_layout]
#[end_layout]
#[layout(layouts::suspense::Suspense)]
#[route("/task")]
TaskFormPage,
#[route("/project")]
ProjectFormPage,
#[end_layout]
#[redirect("/", || Route::CategoryTodayPage)]
#[route("/:..route")]