Remove pure passthrough getters from allMapData store

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RaRBJFZKSTA7naHGuQHfnQ
This commit is contained in:
2026-07-05 00:42:58 +08:00
co-authored by Claude Fable 5
parent e5a6f7eaf2
commit ab1eacc1c2
8 changed files with 94 additions and 136 deletions
+20 -20
View File
@@ -86,23 +86,23 @@
></SidebarView>
<SidebarState
v-model:visible="sidebarState"
:insights="insights"
:stats="stats"
:insights="allInsights"
:stats="allStats"
></SidebarState>
<SidebarTraces
v-model:visible="sidebarTraces"
:cases="cases"
:cases="allCase"
@switch-Trace-Id="switchTraceId"
ref="tracesViewRef"
>
</SidebarTraces>
<SidebarFilter
v-model:visible="sidebarFilter"
:filterTasks="filterTasks"
:filterStartToEnd="filterStartToEnd"
:filterEndToStart="filterEndToStart"
:filterTimeframe="filterTimeframe"
:filterTrace="filterTrace"
:filterTasks="allFilterTask"
:filterStartToEnd="allFilterStartToEnd"
:filterEndToStart="allFilterEndToStart"
:filterTimeframe="allFilterTimeframe"
:filterTrace="allFilterTrace"
@submit-all="createCy(mapType)"
@switch-Trace-Id="switchTraceId"
ref="sidebarFilterRefComp"
@@ -176,25 +176,25 @@ const allMapDataStore = useAllMapDataStore();
const { isLoading } = storeToRefs(loadingStore);
const {
processMap,
bpmn,
stats,
insights,
allBpmn,
allStats,
allInsights,
traceId,
traces,
baseTraces,
baseTraceId,
filterTasks,
filterStartToEnd,
filterEndToStart,
filterTimeframe,
filterTrace,
allFilterTask,
allFilterStartToEnd,
allFilterEndToStart,
allFilterTimeframe,
allFilterTrace,
temporaryData,
isRuleData,
ruleData,
logId,
baseLogId,
createFilterId,
cases,
allCase,
postRuleData,
} = storeToRefs(allMapDataStore);
@@ -401,7 +401,7 @@ function setNodesData(mapData) {
};
mapData.nodes = [];
const mapSource = mapTypeVal === "processMap" ? processMap.value : bpmn.value;
const mapSource = mapTypeVal === "processMap" ? processMap.value : allBpmn.value;
mapSource.vertices.forEach((node) => {
switch (node.type) {
case "gateway":
@@ -485,7 +485,7 @@ function setEdgesData(mapData) {
};
mapData.edges = [];
const mapSource = mapTypeVal === "processMap" ? processMap.value : bpmn.value;
const mapSource = mapTypeVal === "processMap" ? processMap.value : allBpmn.value;
mapSource.edges.forEach((edge) => {
mapData.edges.push({
data: {
@@ -510,7 +510,7 @@ function setEdgesData(mapData) {
async function createCy(type) {
const graphId = document.getElementById("cy");
const mapData = type === "processMap" ? processMapData.value : bpmnData.value;
const mapSource = type === "processMap" ? processMap.value : bpmn.value;
const mapSource = type === "processMap" ? processMap.value : allBpmn.value;
if (mapSource.vertices.length !== 0) {
setNodesData(mapData);