Skip to content

feat(overview): Stage-1 mock「实时进行中」摘要卡(只读) - #435

Merged
caigee-cmd merged 20 commits into
mainfrom
feat/overview-live-inflight-mock
Oct 29, 2026
Merged

caigee-cmd merged 20 commits into
mainfrom
feat/overview-live-inflight-mock

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

Overview 阶段 1:只读「实时进行中」摘要卡(假数据),用 AffectUI Agent Queue 的观感呈现 cli2api 既有机制(等待请求 / 账号池槽位 / sticky / 冷却·限流琥珀 / 深度图),不发明并行队列控制面。

  • 映射:jobs≈进行中/等待请求,workers≈账号槽,rateLimits≈冷却/限流,depth≈近窗 waiting/并发
  • Motion:等待 pill drop、槽位滑入、进度扫光(GSAP / lib/motion);限流槽琥珀冻结 + 深度图琥珀色带
  • 禁止:Pause / Cancel / 并发步进 / 插队
  • 卡片可点「查看全部」→ /live(本 PR 不实现全页;等视觉点头后再做 Stage 2 + 真 inflight)
  • 已 npm run sync 嵌入 internal/webui/static
  • changelog:changelog/unreleased/overview-inflight-mock-card.md

未 merge / release / deploy。请先过视觉再开 Stage 2。

Screenshots

Light card Dark + rate-limit
card-light card-dark
Overview light Overview dark
ov-light ov-dark

本地副本:/workspace/overview-inflight-mock-shots/

Test plan

  • Overview 浅色/深色:卡在 LiveStrip 下方,中文短文案,示意/限流 pill 可见
  • 等待队列、账号槽进度/冷却琥珀、Done/Failed、深度图色带与参考 AffectUI 方向一致
  • 无 Pause/Cancel/并发控件;「查看全部」链到 /live(可 404/回首页,预期)
  • 静态资源与 frontend/dist 同步;changelog 双语条目存在

Agent Queue 观感映射既有账号池槽位 / 进行中请求 / 冷却限流 / 深度;
假数据 + GSAP 入场与扫光;无 Pause/Cancel/并发步进。同步 webui static。
Reimplement drop/slot/grow/sheen/glow/shake timings and cubic-bezier(0.22,1,0.36,1)
from publicly served Agent Queue demo CSS (notes only — no Pro source). Horizontal
worker rail (pill + clip-path bar + elapsed), amber cooldown, refreshed screenshots.
Remap public AffectUI Agent Queue demo CSS vars onto project tokens
(--il-* color-mix wells/chips, amber cooldown only, chart-1 depth,
ok/err edge bins). Elevate nested surfaces off the card; keep motion
timings. Refresh Stage-1 mock screenshots + webui static.
Shift Stage-1 card bases off cold gray with chart-3 washes (still project
tokens). Replace SVG polyline depth with recharts monotone Area + gradient
fill and rate-limit ReferenceArea bands. Keep GSAP entrance on
transform/opacity with force3D and public AffectUI timings (drop/slot/grow/
sheen/glow/shake).
Card/well/chip back to foreground×surface mixes per project tokens.
chart-3 orange only stays out of surfaces; amber (--warning) reserved
for rate-limit/cooldown accents. Keep recharts depth curve. Refresh shots.
@caigee-cmd

Copy link
Copy Markdown
Owner Author

视觉反馈「底色不要橙色」已跟:去掉 card/well/chip 上的 chart-3 orange washes,改回项目色规范里的 cooler --foreground×--surface 混色;琥珀仅保留在限流/冷却(--warning)。recharts 深度曲线保留。

tip: c6cde62 · 截图已刷新(同路径 raw 链接即可看新图)

…tUI motion

Extend /api/live with read-only workers/rate_limits/sticky from AccountView,
Pool DownUntil/ModelCooldowns, and SessionAffinity.Stats — no new cooldown SM,
inflight routes, or SQLite. InflightLiveCard queue/slot items use solid-glass;
Stage-1 mock live loop adds subtle queue 流光, stronger running sheen, and
GSAP flies queue→worker and worker→Done/Failed. Sync webui + refresh mock shots.
GSAP-only: queue vacancy FLIP after fly-out, worker occupy on land,
priority glide-past, CountUp metrics, depth chart continuous glide,
retry slide-back. Queue shows 3 pills + kind dots; workers rail ≤4.
…fills

Overflow: 3 pills + kind dots; workers rail ≤4; solid-glass, amber only on rate-limit.
User feedback after Docker: waiting queue felt like it never flew into
account slots. flyGhost was fading to opacity 0.15 (barely-visible text).

Match AffectUI Agent Queue fly-in: opaque solid-glass pill clone (kind
wash + kind dot), 720ms clear horizontal FLIP into the slot, 3 staggered
afterimage residuals, short land hold before unmount. Keep solid-glass;
no orange / chart-3 wash.

Copy link
Copy Markdown
Owner Author

视觉跟进(本地 Docker 反馈)

「等待队列没有飞进去账号槽位的感觉」

flyGhost 之前飞到一半就淡到 ~0.15,看着像几乎看不见的字,不像 pill 飞进槽。

a270ed3 加强 queue→worker:

  • 不透明 solid-glass pill 克隆(kind wash + kind 色点),全程可读
  • 720ms 横向 FLIP 进槽,落点稍停再卸
  • 3 层残影拖尾(AffectUI 飞入观感)
  • 仍用 solid-glass,无橙色 / chart-3 wash

请再 docker 拉一下这 tip 看等待→账号槽是否「飞进去」了。

Default collapsed — no live projection until expand (LiveStrip concurrency
or card toggle). Open → map workers/rate_limits/sticky; mock tick only when
live is missing. Sync static for Docker rebuild.
applyLiveProjection 在 live 投影时清零 totals/throughput/p95,深度仅滚动真实
in_flight 采样;InflightLiveCard 仅在 live === null 时跑 mock 活环。
忙碌槽位用 Pool InFlightSince → /api/live started_at 显示墙钟已耗时
(约 150ms 滴答);进度条改为 indeterminate 流光,不再用假百分比。
空闲保持干净;同步 webui static。
账号槽位 py-2 / h-2.5 / 11px 文案与 gap-2,贴近 AffectUI 呼吸感;
kind 粉彩、完成薄荷/失败珊瑚略加深,限流琥珀洗底变轻,忙碌槽冷色描边。
账号槽复用 ProviderMark(贴合 solid-glass);完成/失败图标优先;等待/槽位/P95 等文案精简。
忙碌槽 chart-1 流光更亮;队列飞入不透明胶囊 + kind 拖尾光晕;kind/忙碌描边略加饱和。
busy→idle 按单次结果路由:/api/live 抽干 recent_completions,
last_error_kind 兜底;mock completions + GSAP 按 job 分到 Done/Failed。
队列/槽位/任务 pill/Done·Failed/深度图去掉叠 solid-glass;靠颜色洗底区分,小项最多一根极细描边。保留流光、失败路由、ProviderMark。
账号 max_inflight 驱动槽条 N 等分格;in_flight 占用格洗底+流光。
飞向 Done/Failed 落点略短于按钮中心;飞行 onComplete 即对细描边做 1–2 次 GSAP 轻脉冲(success/danger)。
@caigee-cmd
caigee-cmd merged commit 0547a84 into main Oct 29, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant