fix(plan): move Applicable Rules panel to TaskEditorView (the routed task surface)

This commit is contained in:
2026-05-28 10:43:41 -04:00
parent 75d3d40038
commit b30cf06096
2 changed files with 7 additions and 7 deletions
+7
View File
@@ -25,6 +25,7 @@ import DiffView from "@/components/DiffView.vue";
import ConfirmDialog from "@/components/ConfirmDialog.vue";
import VersionHistorySection from "@/components/VersionHistorySection.vue";
import RecurrenceEditor from "@/components/RecurrenceEditor.vue";
import PlanRulesPanel from "@/components/rules/PlanRulesPanel.vue";
import { Trash2 } from "lucide-vue-next";
const route = useRoute();
@@ -514,6 +515,12 @@ useEditorGuards(dirty, save);
<!-- Work 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>
<!-- Sidebar -->
-7
View File
@@ -10,7 +10,6 @@ import type { Note } from "@/types/note";
import type { TaskStatus } from "@/types/task";
import StatusBadge from "@/components/StatusBadge.vue";
import PriorityBadge from "@/components/PriorityBadge.vue";
import PlanRulesPanel from "@/components/rules/PlanRulesPanel.vue";
import TagPill from "@/components/TagPill.vue";
import TableOfContents from "@/components/TableOfContents.vue";
import ShareDialog from "@/components/ShareDialog.vue";
@@ -380,12 +379,6 @@ const subTaskProgress = computed(() => {
@click="onBodyClick"
></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 -->
<div v-if="subTasks.length" class="subtasks">
<div class="subtasks-header">