Skip to content

feat(groups): show which batch run is running - #48

Merged
Delta1035 merged 1 commit into
mainfrom
Delta1035/running-groups
Oct 9, 2026
Merged

Delta1035 merged 1 commit into
mainfrom
Delta1035/running-groups

Conversation

@Delta1035

Copy link
Copy Markdown
Owner

显示哪个批量任务正在运行。

  • 「正在运行」= 执行中,或执行已结束但它启动 / 复用的脚本仍未退出(activeGroups,packages/shared,不改 API)
  • 侧栏顶部常驻条:任务名、启动中 / 运行中进度,点击跳到任务,可停止
  • 「批量」标签圆点:悬停与 aria-label 列出任务;启动中闪烁,运行中为静态绿点
  • 标题栏:任务名与进度,多个时「xx 等 n 个」,悬停看完整列表;窄屏隐藏
  • 项目详情脚本行:徽标「批量:任务名」

验证:pnpm check 通过(新增 6 个 shared 单元测试);pnpm e2e 34 通过、2 跳过(Windows 上的 SIGTERM 用例),groups.spec.ts 覆盖四处显示的出现与消失。

Closes #46

Only a dot on the 批量 tab hinted that some group was executing, and only
while it was starting: a parallel group ends as soon as its scripts start,
so the servers it brought up looked unrelated to any group.

A group now counts as active while its execution runs or while any run it
started or reused is still alive (activeGroups in shared, derived from the
existing group states and runs, so no API change). Active groups appear in
a bar above the sidebar tabs (jump to / stop), on the tab dot's tooltip, in
the title bar, and as a 批量:<name> badge on their script rows.

Closes #46
@Delta1035
Delta1035 merged commit 5dfaa1e into main Oct 9, 2026
7 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