fix(sidebar): centralize tree action handling

This commit is contained in:
t8y2 committed 2026-07-14 18:10:52 +08:00
1 parent 7f096653db
commit ee85033068
28 files changed
+2705 -1032

No files matched your search

@@ -0,0 +1,14 @@
<script setup lang="ts">
import { AlertTriangle } from "@lucide/vue";
defineProps<{ error?: unknown }>();
</script>
<template>
<div class="fixed inset-0 z-[100] flex items-center justify-center bg-black/20">
<div class="flex max-w-md items-start gap-2 rounded-md border border-destructive/40 bg-background p-4 text-sm text-destructive shadow-lg">
<AlertTriangle class="mt-0.5 h-4 w-4 shrink-0" />
<span class="break-all">{{ error instanceof Error ? error.message : String(error || "Dialog failed to load") }}</span>
</div>
</div>
</template>