Open TaskModal from dashboard "Créer une tâche" action card
Instead of navigating to /tasks, the Create Task action card now opens a TaskModal with tablo selection enabled, allowing users to create a task directly from the dashboard. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
26816ff12d
commit
6d0298447d
1 changed files with 11 additions and 7 deletions
|
|
@ -39,6 +39,7 @@ import {
|
|||
import { useIsReadOnlyUser, useUser } from "../providers/UserStoreProvider";
|
||||
import { DashboardActionCards } from "src/components/DashboardActionCards";
|
||||
import { DashboardTaskList } from "src/components/DashboardTaskList";
|
||||
import { TaskModal } from "src/components/kanban/TaskModal";
|
||||
import { ProjectCardList } from "src/components/ProjectCardList";
|
||||
|
||||
export const TabloPage = () => {
|
||||
|
|
@ -52,6 +53,7 @@ export const TabloPage = () => {
|
|||
y: number;
|
||||
} | null>(null);
|
||||
const [isCreateModalOpen, setIsCreateModalOpen] = useState(false);
|
||||
const [isTaskModalOpen, setIsTaskModalOpen] = useState(false);
|
||||
const [deletingTablo, setDeletingTablo] = useState<UserTablo | null>(null);
|
||||
const [isDeleting, setIsDeleting] = useState(false);
|
||||
const [filterType] = useState<"all" | "todo" | "inProgress" | "done">("all");
|
||||
|
|
@ -649,7 +651,7 @@ export const TabloPage = () => {
|
|||
|
||||
<DashboardActionCards
|
||||
onCreateProject={openCreateModal}
|
||||
onCreateTask={() => navigate("/tasks")}
|
||||
onCreateTask={() => setIsTaskModalOpen(true)}
|
||||
onSendMessage={() => navigate("/chat")}
|
||||
onInviteTeam={() =>
|
||||
toast.add(
|
||||
|
|
@ -718,12 +720,14 @@ export const TabloPage = () => {
|
|||
/>
|
||||
)}
|
||||
|
||||
{/* Tutorial - Hidden */}
|
||||
{/* <TabloTutorial
|
||||
isOpen={isTutorialOpen}
|
||||
onClose={handleCloseTutorial}
|
||||
onCreateTablo={handleTutorialCreateTablo}
|
||||
/> */}
|
||||
{/* Create Task Modal */}
|
||||
<TaskModal
|
||||
isOpen={isTaskModalOpen}
|
||||
onClose={() => setIsTaskModalOpen(false)}
|
||||
tablos={tablos}
|
||||
allowTabloSelection={true}
|
||||
initialStatus="todo"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue