feat: 同步动作与首帧编辑能力并统一工作区反馈

接入动作时间轴、密度审计、人工视线目标和后台首帧编辑;独立读取已保存提示词,并在首帧晋升前重新核对持久化质量状态。
统一 NMessage 结果反馈、局部 loading 和业务说明间距,保留真实长任务进度与部分失败语义。
验证:pnpm check(49 个文件、393 项测试)、pnpm build;当前环境无法完成 localhost 浏览器验收及真实后端联调。
This commit is contained in:
GouJ committed 2026-10-12 20:05:03 +08:00
1 parent 83482a70c5
commit 7a60db3ced
76 files changed
+2485 -457

No files matched your search

@@ -1,6 +1,10 @@
<script setup lang="ts">
import FeedbackMessage from '../../components/ui/FeedbackMessage.vue'
import ContextNotice from '../../components/ui/ContextNotice.vue'
import { computed, reactive, ref } from 'vue'
import { NAlert, NButton, NFormItem, NInput, NPopconfirm, NSelect, NTag, NTooltip } from 'naive-ui'
import { NButton, NFormItem, NInput, NPopconfirm, NSelect, NTag, NTooltip } from 'naive-ui'
import { Search, Trash2, Upload } from '@lucide/vue'
import { AppDialog, AssetImage, EmptyState } from '../../components/ui'
import AppForm from '../../components/ui/AppForm.vue'
@@ -236,14 +240,14 @@ async function removeAsset() {
</div>
</template>
<NAlert v-if="fileError" type="error" :show-icon="false" class="mb-4">{{ fileError }}</NAlert>
<NAlert v-if="query.error.value" type="error" :show-icon="false" class="mb-4">
<FeedbackMessage v-if="fileError" :message="fileError" />
<ContextNotice v-if="query.error.value" type="error" :show-icon="false" class="mb-4">
{{ query.error.value }}<NButton text class="ml-3" @click="query.refresh">重新连接</NButton>
</NAlert>
<NAlert v-if="projectsQuery.error.value" type="warning" :show-icon="false" class="mb-4">
</ContextNotice>
<ContextNotice v-if="projectsQuery.error.value" type="warning" :show-icon="false" class="mb-4">
剧本列表读取失败,暂时不能上传新图片。
<NButton text class="ml-3" @click="projectsQuery.refresh">重新读取</NButton>
</NAlert>
</ContextNotice>
<div class="asset-library-filters">
<NInput
@@ -324,7 +328,7 @@ async function removeAsset() {
description="选择所属剧本并确认名称和分类,提交后仍停留在当前资产库。"
:busy="busy"
>
<NAlert v-if="actionError" type="error" :show-icon="false" class="mt-5">{{ actionError }}</NAlert>
<FeedbackMessage v-if="actionError" :message="actionError" />
<AppForm :model="uploadForm" :rules="formRules" :disabled="busy" class="mt-5" @submit="uploadAsset">
<p class="mb-4 text-sm">{{ selectedFile?.name }} · {{ formatBytes(selectedFile?.size ?? 0) }}</p>
<NFormItem path="projectId" label="所属剧本">
@@ -348,7 +352,7 @@ async function removeAsset() {
:busy="busy"
wide
>
<NAlert v-if="actionError" type="error" :show-icon="false" class="mt-5">{{ actionError }}</NAlert>
<FeedbackMessage v-if="actionError" :message="actionError" />
<AppForm :model="editForm" :rules="formRules" :disabled="busy" class="mt-5" @submit="updateAsset">
<div v-if="selectedAsset" class="asset-management-layout">
<AssetImage
@@ -1,6 +1,10 @@
<script setup lang="ts">
import FeedbackMessage from '../../components/ui/FeedbackMessage.vue'
import ContextNotice from '../../components/ui/ContextNotice.vue'
import { computed, reactive, ref } from 'vue'
import { NAlert, NButton, NFormItem, NInput, NPopconfirm, NSelect, NTag } from 'naive-ui'
import { NButton, NFormItem, NInput, NPopconfirm, NSelect, NTag } from 'naive-ui'
import { Pencil, Search, Trash2, Upload } from '@lucide/vue'
import { AppDialog, AssetImage, EmptyState } from '../../components/ui'
import AppForm from '../../components/ui/AppForm.vue'
@@ -191,10 +195,10 @@ async function removeAsset(asset: ProjectAsset) {
</div>
</template>
<NAlert v-if="fileError" type="error" :show-icon="false" class="mb-3">{{ fileError }}</NAlert>
<NAlert v-if="query.error.value" type="error" :show-icon="false" class="mb-3">
<FeedbackMessage v-if="fileError" :message="fileError" />
<ContextNotice v-if="query.error.value" type="error" :show-icon="false" class="mb-3">
{{ query.error.value }} 当前保留上次成功读取的素材,写操作已暂停。
</NAlert>
</ContextNotice>
<div class="asset-filter-bar">
<NInput