Remove progress bar - #38
Conversation
…ipts - Implemented ScriptOutput component to generate Bash scripts, Brewfiles, and Curl URLs based on user-selected OS and packages. - Added functionality for copying scripts to clipboard and downloading them. - Integrated a shareable Curl URL feature with expiration handling. - Included a summary of selected packages and installation estimates. feat: create useClientUseCases hook for accessing client use cases - Introduced useClientUseCases hook to encapsulate client container access, improving code organization and reusability. chore: add Vitest configuration for testing - Set up Vitest configuration with aliasing for module resolution and coverage thresholds. - Configured test environment and included coverage reporting for domain and application layers.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
| Filename | Overview |
|---|---|
| src/domain/services/script-generator.ts | Moves script generation into the domain service and removes progress-bar generation while preserving package-step headers and spinner behavior. |
| src/app/api/script-share/route.ts | Delegates script validation and persistence to the sharing use case and adapter; equivalent size and expiry enforcement remains downstream. |
| src/infrastructure/adapters/sharing/file-script-share.adapter.ts | Encapsulates file-backed sharing with validated identifiers, path containment, and 24-hour retrieval expiry. |
| src/app/api/chat/route.ts | Reduces the route to HTTP validation, rate limiting, and delegation to the injected chat use case. |
| src/infrastructure/adapters/ai/groq.adapter.ts | Moves Groq client initialization, prompting, and SSE stream construction behind the AI provider port. |
| src/app/api/versions/route.ts | Delegates registry lookup and caching to the version repository while preserving rate limits and stale-cache fallback. |
| src/lib/store.ts | Routes bucket mutations and catalog lookups through the client-side bucket use case while retaining Zustand persistence. |
| .github/workflows/ci.yml | Adds coverage-backed unit tests to the lint and type-check job. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
UI[Presentation components] --> UC[Application use cases]
API[Next.js API routes] --> UC
UC --> Domain[Domain entities and services]
UC --> Ports[Outgoing ports]
Adapters[Infrastructure adapters] --> Ports
Adapters --> External[Groq, registries, filesystem, browser storage]
Reviews (1): Last reviewed commit: "refactor: remove progress bar functions ..." | Re-trigger Greptile
Remove progress bar from package installation script
Summary
Removes the ASCII progress bar rendering from the generated SudoStart setup script. The progress bar (based on
draw_progress_bar,PROGRESS_WIDTH, andclear_line) added noisy multi-line output between each package step, cluttering the install log.Changes
src/domain/services/script-generator.tsdraw_progress_barshell function definition and thePROGRESS_WIDTHconstant.clear_linehelper that was only used in support of the progress bar.draw_progress_bar ...call from each package installation step.Behavior
step_header) and spinner feedback during installs are preserved, so output remains informative without the redundant progress display.Testing
tsc --noEmit).