Skip to content

feat: add visual trust indicator badges to template list/search output#285

Open
BABAT-CODE wants to merge 1 commit into
Nanle-code:masterfrom
BABAT-CODE:feat/trust-indicator-badges
Open

feat: add visual trust indicator badges to template list/search output#285
BABAT-CODE wants to merge 1 commit into
Nanle-code:masterfrom
BABAT-CODE:feat/trust-indicator-badges

Conversation

@BABAT-CODE
Copy link
Copy Markdown

Summary

Enhances starforge template list and starforge template search output with compact, scannable
trust indicator badges so users can quickly evaluate template dependability at a glance.

Changes

src/utils/templates.rs

  • Replaced verbose emoji badge strings in trust_indicators() with compact bracket tokens:
    [VERIFIED], [DOCS], [ACTIVE], [MAINTAINED], [DEPRECATED], [POPULAR]

src/commands/template.rs

  • Fixed a bug in list() where each template entry was printed twice
  • Merged quality score + trust badges + compatibility into one unified summary line for both
    list and search
  • Added [COMPATIBLE] / [INCOMPATIBLE] / [BAD-META] badge derived from the CLI version
    compatibility check
  • Removed redundant Maintenance kv row in search() — now covered by the inline badges

Before / After

Before:

 1. hello-world@1.0.0  [✓]
 1. hello-world@1.0.0  [quality 80/100]  🟢 Actively maintained  📖 Documented

After:

 1. hello-world@1.0.0  [quality 80/100]  [VERIFIED] [DOCS] [ACTIVE] [COMPATIBLE]

Testing

  • starforge template list — single line per template with badges
  • starforge template search — badges visible inline with each result
  • starforge template show — trust signals section unchanged

close #250

…ch output

- Replace verbose emoji badge strings with compact [VERIFIED], [DOCS],
  [ACTIVE], [MAINTAINED], [DEPRECATED], [POPULAR] tokens in trust_indicators()
- Add [COMPATIBLE]/[INCOMPATIBLE]/[BAD-META] badge from compatibility check
- Fix double-print bug in list() — each template was rendered twice
- Merge quality score + trust badges + compat into one summary line for
  both list() and search() commands
- Remove redundant 'Maintenance' kv row in search() (covered by badges)
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 2, 2026

@BABAT-CODE Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Add more trust signals to template search results

1 participant