From 914fde765556300461d3b71c6bbf55d18d38f7db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=A0=96=E7=9F=A5?= <2298888111@qq.com> Date: Sat, 24 Oct 2026 23:10:07 +0800 Subject: [PATCH] HEL-840: prioritize projects in studio and share header styling Co-authored-by: multica-agent --- .../lib/components/home/AProjectCard.svelte | 40 +- .../components/workbench/StudioHeader.svelte | 7 +- .../src/lib/components/workbench/project.css | 100 --- .../components/workbench/studio-header.css | 108 +++ calliope-web/src/routes/+page.svelte | 747 +++++++++--------- calliope-web/src/routes/studio-v2.css | 515 ++++++++++++ 6 files changed, 1015 insertions(+), 502 deletions(-) create mode 100644 calliope-web/src/lib/components/workbench/studio-header.css create mode 100644 calliope-web/src/routes/studio-v2.css diff --git a/calliope-web/src/lib/components/home/AProjectCard.svelte b/calliope-web/src/lib/components/home/AProjectCard.svelte index 2ee181f5..c865c267 100644 --- a/calliope-web/src/lib/components/home/AProjectCard.svelte +++ b/calliope-web/src/lib/components/home/AProjectCard.svelte @@ -1,5 +1,5 @@ - + {#snippet pageHeader({ openSearch })}{/snippet} - -
-
- {#if entryMode === "none"} -
- {#if recent?.cover_path}{/if} -
-
- {recent - ? "继续创作 · " + - new Date(recent.updated_at).toLocaleDateString() - : "开始创作"} +
+ {#if $projectsQuery.isLoading}

+ 正在读取项目… +

{:else if $projectsQuery.isError}

+ 项目加载失败 +

{:else if recent} +
+
+ {#if recent.cover_path}{:else}暂无封面{/if} +
+
+ 继续创作 · {new Date( + parseDbTs(recent.updated_at), + ).toLocaleDateString()} -

- {recent ? "《" + recent.title + "》" : "还没有项目"}
{recent - ? stageNames[Math.max(recentStage, 0)] - : "从一个想法开始"} - {recent - ? recentStage < 0 - ? "已完成" - : recent.stats?.stage_status?.[stageKeys[recentStage]] === - "awaiting_confirm" +

《{recent.title}》

+ {recentStage < 0 + ? "已完成" + : stageNames[recentStage] + + " · " + + (recent.stats?.stage_status?.[stageKeys[recentStage]] === + "awaiting_confirm" ? "等你确认" - : "继续创作" - : ""} - -

- {recent?.idea || - (recent - ? "草稿确认后,才会交给下一阶段使用。" - : "创建五阶段项目,或直接开始图片与视频创作。")} -

+ : "继续创作")}
+

草稿确认后,才会交给下一阶段使用。

- {#each stageKeys as key, i (key)}
- {stageNames[i]} -
{/each} + {#each stageKeys as key, i (key)}{stageNames[i]}{/each}
-
- {#if recent}打开项目 查看阶段草稿{:else}{/if} -
-
-
-
- - - 独立生图 -

文生图 · 图生图 · 遮罩

- 独立生视频 -

文生 · 首尾帧 · 参考

-
- {:else if entryMode === "idea"} -
-
-

{t("home.entryIdeaTitle")}

- -
- - -
- - - -
-
- - -
-
- {:else} -
-
-

{t("home.entryScriptTitle")}

- -
- - -
- - -
-
- {/if} - -
-

我的项目

- {allProjects.length} -
-
- {#each ["最近", "进行中", "已完成"] as filter (filter)}{/each} -
-
- {#if $projectsQuery.isLoading} -
- {#each [1, 2, 3] as n (n)} -
- -
- - - -
-
- {/each} -
- {:else if $projectsQuery.isError} -
- -

{t("projects.loadError")}

- -
- {:else if allProjects.length === 0} -
- -

{t("home.emptyProjects")}

-
- {:else} -
- {#each visibleProjects as project (project.id)} - - {/each} -
- {/if} -
- -
+ + {#if entryMode === "idea"} +
+
+

{t("home.entryIdeaTitle")}

+ +
+ + +
+ + + +
+
+ + +
+
+ {:else} +
+
+

{t("home.entryScriptTitle")}

+ +
+ + +
+ + +
+
+ {/if}