Skip to content

fix: migrate CLIs to alpha version of clack#43

Closed
ascorbic wants to merge 10 commits into
mainfrom
claude/migrate-clack-alpha-efItu
Closed

fix: migrate CLIs to alpha version of clack#43
ascorbic wants to merge 10 commits into
mainfrom
claude/migrate-clack-alpha-efItu

Conversation

@ascorbic
Copy link
Copy Markdown
Owner

@ascorbic ascorbic commented Jan 1, 2026

No description provided.

claude added 3 commits January 1, 2026 16:15
- Upgrade @clack/prompts from 0.11.0 to 1.0.0-alpha.9 in both packages
- Replace custom progress bar implementation with clack's progress() API
- Simplifies blob transfer progress tracking in migration command
- Progress bar now uses native clack rendering with advance() method

The alpha version provides a cleaner API for progress tracking:
- progress({ max }) initialization
- start(message) to begin
- advance(count) to update progress
- stop(message) to complete

This removes ~10 lines of custom progress bar rendering code.
Replace custom info box hacks with alpha's native box() prompt:
- Remove brightNote() ANSI escape workarounds
- Use box() with titleAlign for centered titles
- Consistent formatting across all CLIs

Add taskLog for transient setup steps:
- Secret generation in `pds init` (clears on success)
- Project setup in `create-pds` (template copy, git init)
- Reduces visual noise while maintaining reassurance

Use spinner.error() for failure states:
- Replaces spinner.stop() on errors across all commands
- Clearer semantic distinction between success/failure
- Better visual feedback with error icons

Goals: reassurance during operations, delight with polished UX
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jan 1, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
atproto-pds a6d5707 Jan 01 2026, 07:55 PM

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jan 1, 2026

Open in StackBlitz

npm i https://pkg.pr.new/create-pds@43
npm i https://pkg.pr.new/@ascorbic/atproto-oauth-provider@43
npm i https://pkg.pr.new/@ascorbic/pds@43

commit: a6d5707

claude added 6 commits January 1, 2026 19:36
Add vibrant colors to the PDS setup completion box:
- Cyan labels for configuration items
- Bold handle and auth token for emphasis
- Dimmed DIDs and keys for less critical info
- Green checkmark for success states
- Yellow highlight for important auth token
- Blue link for migration docs

Makes the setup completion more delightful and easier to scan! ✨
The progress bar was showing a spinner without progress info.
Now displays '123/456 images transferred' as it works, with
failure count when errors occur.

Fixes the 'just spinning' issue during blob migration.
Set progress bar to use 'block' style (█) instead of line style.
Also set width to 30 characters for better visibility.

Available styles: 'light' (─), 'heavy' (━), 'block' (█)
Enhance visual hierarchy and user experience by adding picocolors styling:

- Cyan for domains and technical identifiers (targetDomain, sourceDomain)
- Green for success states (authenticated, imported, activated)
- Yellow for warnings and important counts
- Bold for handles and important identifiers
- Consistent use of spinner.error() for failure states

This complements the previous UX improvements (box, taskLog, progress bar)
and adds visual delight throughout the migration, activation, and
deactivation workflows.
The 'heavy' style (━) is more visible than 'block' (█) with the
default magenta color used by @clack/prompts progress bar.
Block style (█) is more visible than heavy style (━) in most terminals.

Also includes Prettier formatting fixes (tabs instead of spaces).
@ascorbic ascorbic marked this pull request as draft January 1, 2026 20:03
@ascorbic ascorbic closed this Jan 2, 2026
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.

2 participants