Files
DumiFlex-ComfyUI-Wildcard-P…/src/components/debug/DebugViewer.vue
T
DumiFlex 79bdb457cb feat: polish suite — MVP frontend + subgraph support + DX + a11y
Lands the P4 frontend MVP plus 9 follow-up polish batches (88 commits squashed).

* Pipeline Context, Prompt Assembler, Debug Viewer widgets
* PIPELINE_CONTEXT chain crosses subgraph boundaries
* Conflict badges on SubgraphNodes containing WP nodes
* Empty-state hero, soft-delete + Undo toasts, corrupt-workflow recovery
* Bundled Inter + JetBrains Mono variable fonts, brand identity end-to-end
* Settings panel: Reduce motion + Contrast (a11y) with live updates
* DX: coverage gate, stricter ESLint, pre-commit pnpm size, PR size-delta workflow, contract doc

Closes the polish-brainstorm spec.
2026-04-26 05:39:22 +03:00

57 lines
1.2 KiB
Vue

<script setup lang="ts">
import { computed } from "vue";
const props = defineProps<{ snapshot: string }>();
const pretty = computed(() => {
if (!props.snapshot) return "";
try { return JSON.stringify(JSON.parse(props.snapshot), null, 2); }
catch { return props.snapshot; }
});
</script>
<template>
<div class="wp-debug">
<pre v-if="pretty" class="wp-debug__pre">{{ pretty }}</pre>
<p v-else class="wp-debug__empty">Run the graph to capture a snapshot.</p>
</div>
</template>
<style>
@import "../shared/theme.css";
</style>
<style scoped>
.wp-debug {
font-family: var(--wp-font-mono, monospace);
font-size: 11px;
line-height: 1.4;
padding: 6px;
color: var(--wp-text);
height: 100%;
display: flex;
flex-direction: column;
box-sizing: border-box;
}
.wp-debug__pre {
background: var(--wp-bg);
color: var(--wp-text);
border: 1px solid var(--wp-border);
border-radius: var(--wp-radius-sm);
padding: 8px;
margin: 0;
flex: 1;
min-height: 0;
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
}
.wp-debug__empty {
color: var(--wp-text3);
font-style: italic;
font-family: var(--wp-font-sans, sans-serif);
text-align: center;
margin: auto 0;
}
</style>