Skip to content

Hide iteration number on idle engine cylinders - #225

Merged
charneykaye merged 1 commit into
mainfrom
vibrator/issue-197-engine-cylinder-should-not-show-a-number
Jun 30, 2026
Merged

Hide iteration number on idle engine cylinders#225
charneykaye merged 1 commit into
mainfrom
vibrator/issue-197-engine-cylinder-should-not-show-a-number

Conversation

@charneykaye

@charneykaye charneykaye commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

What changed

Idle cylinders were showing a ghost iteration number (e.g., "Idle #5") because cycleLabel in cylinder-row.ts was computed unconditionally from cyl.iterationNumber, which retains its value from the last completed cycle even after the cylinder returns to idle.

The fix adds the same status guard that already existed in the server-side SSR path (dashboard-server.ts): the cycle label is now only rendered when the cylinder is active, done, or error.

Files changed

  • src/dashboard/components/cylinder-row.ts — added isDone/isError status booleans and gated cycleLabel on (isActive || isDone || isError).

Testing

  • All 38 existing dashboard-store unit tests pass.
  • The fix matches the already-correct server-side rendering logic at line 1447 of dashboard-server.ts, ensuring consistent behavior between SSR and client-side rendering paths.

Closes #197

The cycle label (#N) was unconditionally rendered even when a cylinder
was idle, producing a ghost issue number. Now it only appears when the
cylinder is active, done, or errored — matching the existing server-side
rendering logic in dashboard-server.ts.

Closes #197
@charneykaye

Copy link
Copy Markdown
Contributor Author

Reviewed code, no issues found.

1 similar comment
@charneykaye

Copy link
Copy Markdown
Contributor Author

Reviewed code, no issues found.

@charneykaye
charneykaye marked this pull request as ready for review June 30, 2026 20:24
@charneykaye
charneykaye merged commit 71877e5 into main Jun 30, 2026
1 check passed
@charneykaye
charneykaye deleted the vibrator/issue-197-engine-cylinder-should-not-show-a-number branch June 30, 2026 20:24
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.

Engine cylinder should not show a number unless it's working on an issue

1 participant