Skip to content

refactor(cli): improve search table layout for clarity and alignment #1621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 19, 2025

Conversation

amirabbas-gh
Copy link
Collaborator

📚 Description

This refactors the improve readability and layout consistency CLI's search results table.

Example:

Found 93 packages:

╭──────────────────────────────────────────────┬──────────────┬──────────┬───────────┬─────────────┬─────────────────┬───────────────────────────────────────╮
│ 📦 Name                                      │ 📊 Downloads │ ⭐ Stars │ 👤 Author │ 🌐 Homepage │ 🏢 Organization │ 🔑 Keywords                           │
├──────────────────────────────────────────────┼──────────────┼──────────┼───────────┼─────────────┼─────────────────┼───────────────────────────────────────┤
│ liz/react-router/headers-export              │ 0            │ 0        │ lizkenyon │ -           │ -               │ shopify, react-router, authentication │
│ react/19/remove-forward-ref                  │ 0            │ 0        │ Codemod   │ -           │ -               │ react, migration                      │
│ react-router/4/move-hoc-to-global-scope      │ 0            │ 0        │ Codemod   │ -           │ -               │ react, react router, migration        │
│ react-router/6/use-route-match               │ 0            │ 0        │ Codemod   │ -           │ -               │ migration                             │
│ react-router/6/use-params                    │ 0            │ 0        │ Codemod   │ -           │ -               │ migration                             │
│ react-router/6/use-navigate                  │ 0            │ 0        │ Codemod   │ -           │ -               │ migration                             │
│ react-router/6/use-location                  │ 0            │ 0        │ Codemod   │ -           │ -               │ migration                             │
│ react-router/6/static-router-imports         │ 0            │ 0        │ Codemod   │ -           │ -               │ migration                             │
│ react-router/6/rename-compat-imports         │ 0            │ 0        │ Codemod   │ -           │ -               │ migration                             │
│ react-router/6/remove-redirect-inside-switch │ 0            │ 0        │ Codemod   │ -           │ -               │ migration                             │
│ react-router/6/remove-go-hooks               │ 0            │ 0        │ Codemod   │ -           │ -               │ migration                             │
│ react-router/6/remove-compat-router          │ 0            │ 0        │ Codemod   │ -           │ -               │ migration                             │
╰──────────────────────────────────────────────┴──────────────┴──────────┴───────────┴─────────────┴─────────────────┴───────────────────────────────────────╯

Showing 12 of 93 packages
Use --from 12 to see more results

🧪 Test Plan

  • Ran codemod search react and other queries with large result sets
  • Verified keyword wrapping, alignment, fallback rendering ("-"), and spacing
  • Confirmed CLI output remains clean in various terminal sizes

@amirabbas-gh amirabbas-gh requested a review from mohebifar July 18, 2025 14:17
Copy link

vercel bot commented Jul 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
codemod ⬜️ Ignored (Inspect) Visit Preview Jul 19, 2025 5:28am

Copy link

pkg-pr-new bot commented Jul 18, 2025

Open in StackBlitz

npm i https://pkg.pr.new/codemod@1621

commit: 956b5b3

@mohebifar mohebifar merged commit 9eea0b7 into main Jul 19, 2025
13 checks passed
@mohebifar mohebifar deleted the search_template branch July 19, 2025 06:07
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