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

+21
View File
@@ -0,0 +1,21 @@
import { watch, type MaybeRefOrGetter, toValue } from 'vue'
import { showActionFeedback, useActionMessage } from '../components/ui/useActionMessage'
/**
* 对新查询失败统一提示;相同轮询错误不反复弹出,成功读取后解除去重。
* @param source 当前查询错误或局部操作反馈
* @param type 消息级别
* @returns 与当前组件生命周期绑定的观察器
*/
export function useFeedbackMessage(
source: MaybeRefOrGetter<string>,
type: 'error' | 'warning' | 'success' | 'info' = 'error'
) {
const message = useActionMessage()
return watch(
() => toValue(source),
content => {
showActionFeedback(message, content, type)
}
)
}
+3
View File
@@ -1,3 +1,4 @@
import { useFeedbackMessage } from './useFeedbackMessage'
import { onScopeDispose, ref, toValue, watch, type MaybeRefOrGetter, type Ref } from 'vue'
import { errorMessage } from '../lib/http'
@@ -10,6 +11,8 @@ export function usePolling<T>(
const data = ref<T | null>(null) as Ref<T | null>
const loading = ref(false)
const error = ref('')
/** 查询失败统一进入消息层,保留错误状态用于禁用写操作。 */
useFeedbackMessage(error)
const updatedAt = ref('')
let generation = 0
let controller: AbortController | undefined
+3
View File
@@ -1,3 +1,4 @@
import { useFeedbackMessage } from './useFeedbackMessage'
import { onScopeDispose, ref, watch, type Ref } from 'vue'
import { errorMessage } from '../lib/http'
@@ -6,6 +7,8 @@ export function useQuery<T>(key: Ref<string>, loader: (key: string, signal: Abor
const data = ref<T | null>(null) as Ref<T | null>
const loading = ref(false)
const error = ref('')
/** 查询失败统一进入消息层,保留错误状态用于禁用写操作。 */
useFeedbackMessage(error)
const updatedAt = ref('')
let generation = 0
let controller: AbortController | undefined