跳至正文

运营工作区

路由:/operations。角色:独立运营人员。范围:现有辅助入口。依据:当前页面和调用组件(代码基线 67df5ab1,本轮仅修复根元素 hydration 并移除无调用旧 header 插槽)。以下数量是现有读取策略,不是实际业务记录数,也不是容量或服务承诺。

源码入口:page.tsx  · notification-workspace.tsx  · operations-workspace.tsx  · relation-bench.tsx  · selectbench-reading.tsx 。

用户任务与当前操作

作为独立运营人员,我需要处理运行问题并保留可审计证据。当前操作围绕下表的数据完成;不从旧表和旧接口的存在反推新增产品需求。页面存在不等于来源、模型、送达或长期运行已通过真实验收。

页面需要的数据

区域/操作实际展示或输入字段展示数量/读取方式是否持久化及最小存储
健康与维护组件状态、预算used/reserved/remaining/version、维护受理、字典版本按当前API聚合现有budget/audit/heartbeat/dictionary
反馈与审计id/status/revision、内容/附件、操作人/原因/时间反馈和审计20条/页operations_feedback/attachments/audit
通知与评测目标/启用状态、投递attempt/error;样本gold/result/版本通知50条/页;评测明细50条/页现有notification与selectbench记录

接口与业务落点

下列为本页业务读取/提交入口。全局会话、头像、站点元信息和共享组件中未在本页触发的导出函数不算新增页面能力。请求类型、响应与错误以生成客户端和后端为准。

页面调用方法和路径请求 → 响应合同实现依据
getOperationsHealthGET /api/operations/health无业务入参 → OperationsHealthView客户端  · 后端 
getOperatorFeedbackAttachmentGET /api/operations/feedback-attachments/{attachment_id}getOperatorFeedbackAttachmentParams → { id?: number }客户端  · 后端 
getOperatorMaintenanceGET /api/operations/maintenance无业务入参 → MaintenanceStateView客户端  · 后端 
getOperatorRelationBenchGET /api/operations/selectbench/{run_id}/relationsgetOperatorRelationBenchParams → RelationBenchCasesView客户端  · 后端 
getOperatorSelectBenchGET /api/operations/selectbench/{run_id}getOperatorSelectBenchParams → SelectBenchCasesView客户端  · 后端 
importOperatorRelationBenchPOST /api/operations/selectbench-relationsRelationBenchImportInput → SelectBenchRunView客户端  · 后端 
importOperatorSelectBenchPOST /api/operations/selectbenchSelectBenchImportInput → SelectBenchRunView客户端  · 后端 
listEventAttentionSourcesGET /api/events/attention-sources无业务入参 → AttentionSourceView[]客户端  · 后端 
listOperatorAuditGET /api/operations/auditlistOperatorAuditParams → PageViewOperatorAuditView_客户端  · 后端 
listOperatorDictionariesGET /api/operations/dictionaries无业务入参 → DictionaryView[]客户端  · 后端 
listOperatorFeedbackGET /api/operations/feedbacklistOperatorFeedbackParams → PageViewFeedbackView_客户端  · 后端 
listOperatorNotificationDeliveriesGET /api/operations/notification-deliverieslistOperatorNotificationDeliveriesParams → PageViewNotificationDeliveryView_客户端  · 后端 
listOperatorNotificationTargetsGET /api/operations/notification-targets无业务入参 → TargetView[]客户端  · 后端 
listOperatorSelectBenchGET /api/operations/selectbench无业务入参 → SelectBenchRunView[]客户端  · 后端 
resolveOperatorDeliveryPOST /api/operations/audit/{audit_id}/resolve-deliveryresolveOperatorDeliveryParams, AuditResolutionInput → OperatorAuditView客户端  · 后端 
resolveOperatorNotificationDeliveryPOST /api/operations/notification-deliveries/{delivery_id}/resolveresolveOperatorNotificationDeliveryParams, DeliveryResolutionInput → NotificationDeliveryView客户端  · 后端 
runOperatorMaintenancePOST /api/operations/maintenanceMaintenanceInput → MaintenanceAcceptedView客户端  · 后端 
runOperatorRelationBenchPOST /api/operations/selectbench-relation-runsRelationBenchGoldInput → SelectBenchAcceptedView客户端  · 后端 
runOperatorSelectBenchPOST /api/operations/selectbench-runsSelectBenchGoldInput → SelectBenchAcceptedView客户端  · 后端 
saveOperatorDictionaryPUT /api/operations/dictionariesDictionaryInput → DictionaryView客户端  · 后端 
saveOperatorNotificationTargetPUT /api/operations/notification-targetsTargetSaveInput → TargetView客户端  · 后端 
updateOperatorBudgetPUT /api/operations/budgetsBudgetUpdateInput → BudgetPolicyView客户端  · 后端 
updateOperatorFeedbackPATCH /api/operations/feedback/{feedback_id}updateOperatorFeedbackParams, FeedbackUpdateInput → FeedbackUpdateView客户端  · 后端 
upsertEventAttentionSourcePUT /api/events/attention-sourcesAttentionSourceInput → AttentionSourceView客户端  · 后端 

数据落点:operations_process_heartbeats、operations_feedback、operations_feedback_attachments、operations_audit_operations、operations_dictionary_versions、resource_budget_policies、notification_targets、notification_deliveries。这是当前依赖定位,不代表这些表均为重新设计时必须新建;详细字段/键/关系及保留原因见页面数据库设计。

收敛与替换

这是一组维护工具,不是主阅读页面要求的全功能运营平台;保留调用,暂停扩展评测门户。

实现时先复用上述合同。确有缺口须描述具体控件、输入、输出、当前失败和最小修复,不能直接把历史扩展方案列为前置。公开分发、付费供应商、海外新来源与 Flutter 继续受冻结范围和其他生效决策约束。

验收与非功能要求

  • 主路径:独立运营令牌只在内存;未知送达不能自动重发;跨账户明细拒绝。
  • 数据边界:上表数量、字段和统计范围要能从响应核对;未知、未分析、无权限和真实零值不同。筛选、页签与选择不创建持久业务副本。
  • 状态:有远程读取的区域分别验证正常、零数据、加载、失败和撤权;静态说明的业务空态/无权限写不适用,不伪造验收。
  • 写入:有保存/运行/发布时保留可恢复输入,版本冲突先重读;请求结果未知按现有接口查询或复用原幂等键,不新增全局操作账本。
  • 交互:1440px与390px下主动作可见;Tab/Enter/Escape和适用的方向键可操作,弹层关闭返回触发点。凭据只按现有认证流程传递,不进入日志/URL/本机持久存储。

测量和跨页场景统一见非功能要求、验收场景。这里只定义判据,执行进度仍只在 BACKLOG。

原始 Markdown