feat(frontend): move task creation to dedicated page with scrollable layout

Replace the EntityDetailPage modal flow with a route-based CreateTaskPage for better accessibility and long-form usability.

Add route /entities/:entityId/tasks/new and update tests for both entity detail navigation and create-task page behavior.
This commit is contained in:
2026-03-27 00:00:13 -03:00
parent 2262d3ea33
commit 73d4261aa2
5 changed files with 553 additions and 234 deletions

View File

@@ -7,6 +7,7 @@ const LoginPage = lazy(() => import('../pages/LoginPage'))
const DashboardPage = lazy(() => import('../pages/DashboardPage'))
const EntitiesPage = lazy(() => import('../pages/EntitiesPage'))
const EntityDetailPage = lazy(() => import('../pages/EntityDetailPage'))
const CreateTaskPage = lazy(() => import('../pages/CreateTaskPage'))
const LogsPage = lazy(() => import('../pages/LogsPage'))
function Protected({ children }: { children: ReactNode }) {
@@ -55,6 +56,14 @@ export const router = createBrowserRouter([
</Protected>
),
},
{
path: '/entities/:entityId/tasks/new',
element: (
<Protected>
<CreateTaskPage />
</Protected>
),
},
{
path: '/logs',
element: (