feat(webui): five-place top bar with Settings, New task and one connection pill
Dashboard, Tasks, Workflows, Events and Settings replace the Work, Agent and System menus. Configuration pages move under /settings/* with redirects from their old paths; Logs and Appearance leave the bar and stay reachable from Jump to, the Dashboard and the account menu. New task opens the Start work form in a dialog and lands on the new task. One pill reports the live stream's state. Drops docs/prds/dashboard-navigation-groups.md: web UI design is not tracked in PRDs.
This commit is contained in:
23 files changed
+453
-383
No files matched your search
@@ -0,0 +1,26 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from "vue";
|
||||
import { storeToRefs } from "pinia";
|
||||
|
||||
import { StatusPill } from "@/components/ui/status-pill";
|
||||
import { connectionStatus } from "@/lib/connection";
|
||||
import { useLiveUpdatesStore } from "@/stores/live-updates";
|
||||
|
||||
const { streamState } = storeToRefs(useLiveUpdatesStore());
|
||||
const status = computed(() => connectionStatus(streamState.value));
|
||||
const pill = {
|
||||
ok: { tone: "neutral", dot: "live" },
|
||||
warn: { tone: "warn", dot: "warn" },
|
||||
danger: { tone: "danger", dot: "danger" },
|
||||
} as const;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<StatusPill
|
||||
:tone="pill[status.tone].tone"
|
||||
:dot="pill[status.tone].dot"
|
||||
role="status"
|
||||
class="max-sm:hidden"
|
||||
>{{ status.label }}</StatusPill
|
||||
>
|
||||
</template>
|
||||
@@ -63,8 +63,8 @@ function closeMenuSoon() {
|
||||
@pointerenter="openMenu"
|
||||
@pointerleave="closeMenuSoon"
|
||||
>
|
||||
<template v-for="item in items" :key="item.path">
|
||||
<DropdownMenuSeparator v-if="item.dividerBefore" />
|
||||
<template v-for="(item, index) in items" :key="item.path">
|
||||
<DropdownMenuSeparator v-if="item.dividerBefore && index > 0" />
|
||||
<DropdownMenuLabel v-if="item.dividerBefore">{{
|
||||
item.dividerBefore
|
||||
}}</DropdownMenuLabel>
|
||||
|
||||
@@ -26,15 +26,10 @@ import {
|
||||
</DropdownMenuLabel>
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItem as-child>
|
||||
<RouterLink to="/system/appearance" class="w-full cursor-pointer"
|
||||
<RouterLink to="/settings/appearance" class="w-full cursor-pointer"
|
||||
>Appearance</RouterLink
|
||||
>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem as-child>
|
||||
<RouterLink to="/system/status" class="w-full cursor-pointer"
|
||||
>Status</RouterLink
|
||||
>
|
||||
</DropdownMenuItem>
|
||||
</DropdownMenuContent>
|
||||
</DropdownMenu>
|
||||
</template>
|
||||
@@ -1,11 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import NewTaskButton from "@/tasks/NewTaskButton.vue";
|
||||
import Brand from "./Brand.vue";
|
||||
import ConnectionPill from "./ConnectionPill.vue";
|
||||
import Nav from "./Nav.vue";
|
||||
import ProfileDropdown from "./ProfileDropdown.vue";
|
||||
import SearchBar from "./SearchBar.vue";
|
||||
import SupportLink from "./SupportLink.vue";
|
||||
|
||||
defineProps<{ hidden: string[] }>();
|
||||
const props = defineProps<{ hidden: string[] }>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -13,15 +15,12 @@ defineProps<{ hidden: string[] }>();
|
||||
class="bg-background/80 sticky top-0 z-40 flex h-14 items-center gap-3 border-b px-3 backdrop-blur-xl sm:px-4"
|
||||
>
|
||||
<Brand />
|
||||
<Nav :hidden="hidden" />
|
||||
<div class="flex shrink-0 items-center gap-1">
|
||||
<SearchBar :hidden="hidden" />
|
||||
<Nav :hidden="props.hidden" />
|
||||
<div class="flex shrink-0 items-center gap-2">
|
||||
<SearchBar :hidden="props.hidden" />
|
||||
<NewTaskButton v-if="!props.hidden.includes('/workflows')" />
|
||||
<ConnectionPill />
|
||||
<SupportLink />
|
||||
<!--
|
||||
The theme control lives on /system/appearance, not here. Two switches
|
||||
for one preference is two places to look and one of them to be wrong
|
||||
(docs/prds/dashboard-navigation-groups.md).
|
||||
-->
|
||||
<ProfileDropdown />
|
||||
</div>
|
||||
</header>
|
||||
|
||||
Reference in new issue
Block a user