fix(webui): toasts above sheets; drop unreachable alias helpers

Stack the toast viewport on perfect-design's --z-toast token so it sits
above Sheet overlays, and add a harness check that the toast is the
topmost element at its centre while a sheet is open.

Delete useAliasNames, lib/alias and its spec, which nothing imports
since the shadcn migration removed AliasBadge.
This commit is contained in:
2026-11-25 11:52:38 +00:00
parent ff58b03e21
commit 62817af834
5 changed files with 19 additions and 36 deletions
-11
View File
@@ -1,11 +0,0 @@
import { computed } from 'vue'
import { aliasNameSet } from '@/lib/alias'
import { useDashboardStore } from '@/stores/dashboard'
/** useAliasNames exposes isAlias(id): true when id is a configured model alias (from the polled overview). */
export function useAliasNames() {
const dashboard = useDashboardStore()
const names = computed(() => aliasNameSet(dashboard.overview?.aliases))
return { isAlias: (id: string): boolean => names.value.has(id) }
}