Skip to content

Drop ora in favour of a tiny in-tree blinking-dot spinner#4740

Merged
soulgalore merged 1 commit into
mainfrom
replace-ora
May 16, 2026
Merged

Drop ora in favour of a tiny in-tree blinking-dot spinner#4740
soulgalore merged 1 commit into
mainfrom
replace-ora

Conversation

@soulgalore
Copy link
Copy Markdown
Member

ora is only used by one CLI flow (--api.add / --api.addAndGetResult)
to show progress while polling the test result. For that single
pixel of UX we were pulling ora plus its exclusive transitive deps
(cli-cursor, cli-spinners, log-symbols, is-interactive,
stdin-discarder, restore-cursor, onetime, mimic-function).

The replacement at lib/support/spinner.js is ~60 lines: a blinking
dot toggling between '●' and ' ' on stderr every 500ms while a
request is in flight, finishing with '✔ text' on success or
'✖ text' on failure. It exposes the same surface the API code
expects (start, text setter, color setter as a no-op, succeed,
fail) and falls back to plain "starting line, final line" output
when stderr isn't a TTY, so CI logs stay readable.

Co-authored-by: Claude noreply@anthropic.com

  ora is only used by one CLI flow (--api.add / --api.addAndGetResult)
  to show progress while polling the test result. For that single
  pixel of UX we were pulling ora plus its exclusive transitive deps
  (cli-cursor, cli-spinners, log-symbols, is-interactive,
  stdin-discarder, restore-cursor, onetime, mimic-function).

  The replacement at lib/support/spinner.js is ~60 lines: a blinking
  dot toggling between '●' and ' ' on stderr every 500ms while a
  request is in flight, finishing with '✔ text' on success or
  '✖ text' on failure. It exposes the same surface the API code
  expects (start, text setter, color setter as a no-op, succeed,
  fail) and falls back to plain "starting line, final line" output
  when stderr isn't a TTY, so CI logs stay readable.

  Co-authored-by: Claude noreply@anthropic.com
@soulgalore soulgalore merged commit e9f18a3 into main May 16, 2026
15 checks passed
@soulgalore soulgalore deleted the replace-ora branch May 16, 2026 10:08
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