Skip to content

fix(ui): keep one thing moving while an update runs - #932

Merged
runkids merged 3 commits into
mainfrom
runkids/ui-calm-progress
Nov 16, 2026
Merged

runkids merged 3 commits into
mainfrom
runkids/ui-calm-progress

Conversation

@runkids

@runkids runkids commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)
  • Approved feature or large change (the linked issue has the approved label)

Linked Issue

No issue; requested by the maintainer.

What

While an update ran, the dashboard showed a spinner in the status card, a progress bar, a spinner on the active row and a moving line under that row. The bar also sat empty while a repository was fetched and was removed in the same render as the last result, so it never reached the end.

  • The progress bar is one shared component (ProgressBar.tsx). A faint runner shows work before the first item finishes, the fill moves with a transform, and when the run ends it reaches the end, holds, then fades and gives its space back.
  • The status card icon stays still and ends with a check that draws itself.
  • The active row is marked by a light sweeping its status text. Its spinner and the line under it are gone.
  • The same applies to the plugin update dialog, install from config, the backup note and pending Doctor checks.
  • Under reduced motion nothing travels: the track fades in and out and the fill steps.

Spinners for loading data and inside buttons are unchanged.

Verification

  • UI: tsc -b --noEmit, lint (0 errors), 960 tests and the build passed in the devcontainer image; scripts/design tests passed.
  • Seen in a browser against a production build:
    • Updates tab, update and check runs, Clean light: the fill reaches the end, the bar fades 0.6s later and its slot closes.
    • Updates tab, dark with reduced motion.
    • Plugin update dialog with mocked API responses: a clean run, a run with one failure, and a retry.
  • No tests added: the change is motion and layout, which the dashboard checks by screenshot.

Not covered

  • Not seen on screen: the bar fading from a partial fill after Stop or a mid-run failure, the install-from-config panel, the backup note, pending Doctor rows, and the update flow in the Playful style.
  • StreamProgressBar.tsx has no importers and was left as it is.

Checklist

  • I've read CONTRIBUTING.md, including its AI-assisted contributions section
  • I've reviewed every line of the diff and can explain it
  • Tests included and passing (make check) — UI checks only; make check was not rerun for this commit, which changes no Go code
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR

Updating many skills from the Updates tab cloned the repository once per
skill and reinstalled every one, so 31 skills from 8 repositories took over
a minute where `skillshare update --all` takes 16 seconds, and unchanged
skills were reported as updated.

The update stream and the update-all endpoint now group the request's
skills by repository and branch and go through install.UpdateSkillsFromRepo,
as the CLI does. A skill that already matches upstream is left alone and
reported as up to date; the Updates tab shows and counts it that way.
Results still arrive in request order, which the dashboard relies on.

Updating a single skill and switching its branch still reinstall. Those
paths now also pass the configured parse options to the installer.
An update showed a spinner in the status card, a progress bar, a spinner
on the active row and a moving line under it, all at once. The bar also
sat empty while a repository was fetched, and was removed in the same
render as the last result, so it never reached the end.

The bar is now one shared component. A faint runner shows work before
the first item finishes, the fill moves with a transform, and when the
run ends it reaches the end, holds, then fades and gives its space back.
The status card icon stays still and ends with a check that draws
itself. The active row is marked by a light sweeping its status text
instead of a spinner and a line. Backup, install from config, the plugin
update dialog and pending Doctor checks follow the same rule.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T18:23:58.330756Z 173b74b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

# Conflicts:
#	internal/server/handler_update.go
#	internal/server/handler_update_test.go
@runkids
runkids changed the base branch from runkids/ui-update-group-by-repo to main November 16, 2026 18:44
@runkids
runkids merged commit 27e6734 into main Nov 16, 2026
9 checks passed
@runkids
runkids deleted the runkids/ui-calm-progress branch November 18, 2026 02:02
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