fix(plan): move Applicable Rules panel to TaskEditorView (the routed task surface)
This commit is contained in:
@@ -25,6 +25,7 @@ import DiffView from "@/components/DiffView.vue";
|
|||||||
import ConfirmDialog from "@/components/ConfirmDialog.vue";
|
import ConfirmDialog from "@/components/ConfirmDialog.vue";
|
||||||
import VersionHistorySection from "@/components/VersionHistorySection.vue";
|
import VersionHistorySection from "@/components/VersionHistorySection.vue";
|
||||||
import RecurrenceEditor from "@/components/RecurrenceEditor.vue";
|
import RecurrenceEditor from "@/components/RecurrenceEditor.vue";
|
||||||
|
import PlanRulesPanel from "@/components/rules/PlanRulesPanel.vue";
|
||||||
import { Trash2 } from "lucide-vue-next";
|
import { Trash2 } from "lucide-vue-next";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
@@ -514,6 +515,12 @@ useEditorGuards(dirty, save);
|
|||||||
|
|
||||||
<!-- Work log -->
|
<!-- Work log -->
|
||||||
<TaskLogSection v-if="taskId" :task-id="taskId" class="body-log" />
|
<TaskLogSection v-if="taskId" :task-id="taskId" class="body-log" />
|
||||||
|
|
||||||
|
<!-- Applicable rules (plan tasks only) -->
|
||||||
|
<PlanRulesPanel
|
||||||
|
v-if="store.currentTask?.task_kind === 'plan' && store.currentTask?.project_id"
|
||||||
|
:project-id="store.currentTask.project_id"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- ── Sidebar ──────────────────────────────────────────────── -->
|
<!-- ── Sidebar ──────────────────────────────────────────────── -->
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import type { Note } from "@/types/note";
|
|||||||
import type { TaskStatus } from "@/types/task";
|
import type { TaskStatus } from "@/types/task";
|
||||||
import StatusBadge from "@/components/StatusBadge.vue";
|
import StatusBadge from "@/components/StatusBadge.vue";
|
||||||
import PriorityBadge from "@/components/PriorityBadge.vue";
|
import PriorityBadge from "@/components/PriorityBadge.vue";
|
||||||
import PlanRulesPanel from "@/components/rules/PlanRulesPanel.vue";
|
|
||||||
import TagPill from "@/components/TagPill.vue";
|
import TagPill from "@/components/TagPill.vue";
|
||||||
import TableOfContents from "@/components/TableOfContents.vue";
|
import TableOfContents from "@/components/TableOfContents.vue";
|
||||||
import ShareDialog from "@/components/ShareDialog.vue";
|
import ShareDialog from "@/components/ShareDialog.vue";
|
||||||
@@ -380,12 +379,6 @@ const subTaskProgress = computed(() => {
|
|||||||
@click="onBodyClick"
|
@click="onBodyClick"
|
||||||
></div>
|
></div>
|
||||||
|
|
||||||
<!-- Applicable rules (plan tasks only) -->
|
|
||||||
<PlanRulesPanel
|
|
||||||
v-if="store.currentTask.task_kind === 'plan' && store.currentTask.project_id"
|
|
||||||
:project-id="store.currentTask.project_id"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!-- Sub-tasks -->
|
<!-- Sub-tasks -->
|
||||||
<div v-if="subTasks.length" class="subtasks">
|
<div v-if="subTasks.length" class="subtasks">
|
||||||
<div class="subtasks-header">
|
<div class="subtasks-header">
|
||||||
|
|||||||
Reference in New Issue
Block a user