From 9163f4609c43c6a9e424500208f633bbf4998087 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Wed, 4 Nov 2026 12:07:50 -0800 Subject: [PATCH] feat(ui): turn the dashboard into Mar's Builds page The dashboard now follows Mar's Builds page: a titled header with one primary action, a toolbar with where-it-runs tabs, sort and search, and her text card, which says where a build runs and leads with the action its state needs. A card click still launches as before, until the build details page exists. New Instance moves from a grid tile to the page header, the workspace count moves onto the tabs, and first-use and no-match states get Mar's copy. The sidebar row is now Builds, naming the page it opens, until a real Home arrives. The repeated wordmark goes from Benchmarks and Performance Tests. The two style blocks the old tile and grid needed go with their exceptions. --- locales/en.json | 19 +- locales/zh.json | 19 +- scripts/eslint/vue-style-exceptions.json | 8 - .../src/assets/design-system-theme.css | 6 + .../src/components/BrandedPageHeader.vue | 8 - .../src/components/ui/SegmentedControl.vue | 36 +++ src/renderer/src/components/ui/StatusChip.vue | 28 ++ .../src/composables/useInstallList.ts | 3 + src/renderer/src/panel/AppSidebar.test.ts | 6 + src/renderer/src/panel/AppSidebar.vue | 4 +- src/renderer/src/panel/PanelApp.test.ts | 2 - src/renderer/src/views/BenchmarksView.vue | 1 - src/renderer/src/views/ChooserView.test.ts | 150 ++++++++-- src/renderer/src/views/ChooserView.vue | 262 +++++++++------- .../src/views/PerformanceTestView.vue | 1 - .../src/views/chooser/ChooserFamilyGrid.vue | 33 +- .../src/views/chooser/ChooserInstallTile.vue | 283 +++++++++--------- .../src/views/chooser/chooserTileClasses.ts | 12 - 18 files changed, 547 insertions(+), 334 deletions(-) create mode 100644 src/renderer/src/components/ui/SegmentedControl.vue create mode 100644 src/renderer/src/components/ui/StatusChip.vue delete mode 100644 src/renderer/src/views/chooser/chooserTileClasses.ts diff --git a/locales/en.json b/locales/en.json index f99ef9b11..cb04cba62 100644 --- a/locales/en.json +++ b/locales/en.json @@ -16,6 +16,7 @@ } }, "sidebar": { + "builds": "Builds", "navigation": "Navigation", "home": "Home", "tools": "Tools", @@ -65,7 +66,23 @@ "viewErrorTooltip": "View error details", "errorTitle": "Error", "searchPlaceholder": "Search instances", - "noMatches": "No instances match" + "noMatches": "No instances match", + "buildsTitle": "Builds", + "newBuild": "Build", + "newBuildLabel": "New build", + "filterThisComputer": "This computer", + "whereLabel": "Where it runs", + "sortLabel": "Sort", + "sortLastUsed": "Last used", + "sortName": "Name", + "searchBuilds": "Search builds", + "startInstall": "Start", + "updateAvailable": "Update available", + "nothingMatches": "Nothing matches", + "nothingMatchesHint": "Try another word, or clear the filters to see everything.", + "clearFilters": "Clear filters", + "noBuildsTitle": "Set up where your work runs", + "noBuildsBody": "A build is ComfyUI with its own version, custom nodes and models. Install one on this computer, or run on Comfy Cloud with nothing to install." }, "titleBar": { "panelComfy": "ComfyUI", diff --git a/locales/zh.json b/locales/zh.json index 9ea58121a..14e1c8434 100644 --- a/locales/zh.json +++ b/locales/zh.json @@ -16,6 +16,7 @@ } }, "sidebar": { + "builds": "构建", "navigation": "导航", "home": "主页", "tools": "工具", @@ -65,7 +66,23 @@ "viewErrorTooltip": "查看错误详情", "errorTitle": "错误", "searchPlaceholder": "搜索实例", - "noMatches": "没有匹配的实例" + "noMatches": "没有匹配的实例", + "buildsTitle": "构建", + "newBuild": "构建", + "newBuildLabel": "新建构建", + "filterThisComputer": "此电脑", + "whereLabel": "运行位置", + "sortLabel": "排序", + "sortLastUsed": "最近使用", + "sortName": "名称", + "searchBuilds": "搜索构建", + "startInstall": "启动", + "updateAvailable": "有可用更新", + "nothingMatches": "没有匹配项", + "nothingMatchesHint": "换个关键词试试,或清除筛选条件查看全部内容。", + "clearFilters": "清除筛选", + "noBuildsTitle": "设置工作的运行位置", + "noBuildsBody": "构建是拥有独立版本、自定义节点和模型的 ComfyUI。你可以在此电脑上安装一个,也可以直接在 Comfy Cloud 上运行,无需安装。" }, "titleBar": { "panelComfy": "ComfyUI", diff --git a/scripts/eslint/vue-style-exceptions.json b/scripts/eslint/vue-style-exceptions.json index 2b6c8e6df..4024d5835 100644 --- a/scripts/eslint/vue-style-exceptions.json +++ b/scripts/eslint/vue-style-exceptions.json @@ -27,14 +27,6 @@ "reason": "Preserve the existing template-preview-pulse animation.", "sha256": "f6939b02602758e17f40529cd24db181f95854f153bce6be496bf324b90d31f8" }, - "src/renderer/src/views/chooser/ChooserInstallTile.vue": { - "reason": "Preserve the existing chooser-tile-status-pulse animation.", - "sha256": "d3a61fc0d707f9c1e5411b5f5b62c70186381111d34d8d10742b542b0d588103" - }, - "src/renderer/src/views/ChooserView.vue": { - "reason": "Register the integer --rows property used to reserve scroll height.", - "sha256": "24bda0dd767ac8a390648a2916635d54dba8ba9761851a15b77d8b203e70fba3" - }, "src/renderer/src/views/comfyUISettings/ConsoleTerminalPane.vue": { "reason": "Unlayered xterm vendor integration overrides for generated terminal DOM.", "sha256": "ac35f9448c82e5cb0eeba067da1566bd988d52f2b11e133325eccafa216010a0" diff --git a/src/renderer/src/assets/design-system-theme.css b/src/renderer/src/assets/design-system-theme.css index 7442ad83d..b7c55f952 100644 --- a/src/renderer/src/assets/design-system-theme.css +++ b/src/renderer/src/assets/design-system-theme.css @@ -62,6 +62,7 @@ --animate-pop-in: pop-in 160ms var(--ease-out-expo); --animate-fade-in: fade-in 160ms ease-out; --animate-status-pulse: status-pulse 2s ease-out infinite; + --animate-status-breathe: status-breathe 1.6s ease-in-out infinite; --animate-shimmer: shimmer 1.6s ease-in-out infinite; --animate-brand-takeover: brand-takeover-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both; --animate-gs-field-flash: gs-field-flash 2.2s ease-out; @@ -86,6 +87,11 @@ box-shadow: 0 0 0 5px transparent; } } + @keyframes status-breathe { + 50% { + opacity: 0.35; + } + } @keyframes shimmer { from { background-position: 150% 0; diff --git a/src/renderer/src/components/BrandedPageHeader.vue b/src/renderer/src/components/BrandedPageHeader.vue index 96df7903a..2a3fc7045 100644 --- a/src/renderer/src/components/BrandedPageHeader.vue +++ b/src/renderer/src/components/BrandedPageHeader.vue @@ -1,10 +1,7 @@ @@ -12,11 +9,6 @@ defineProps<{
-