Skip to content

feat(ui): add promotional banner for Hub on Galaxy pages#5575

Open
stevefulme1 wants to merge 1 commit intoansible:masterfrom
stevefulme1:feat/hub-promo-banner
Open

feat(ui): add promotional banner for Hub on Galaxy pages#5575
stevefulme1 wants to merge 1 commit intoansible:masterfrom
stevefulme1:feat/hub-promo-banner

Conversation

@stevefulme1
Copy link
Copy Markdown

Summary

  • Adds a reusable HubPromoBanner component that renders an info banner on Galaxy (community) pages directing users to Red Hat Automation Hub for certified and Red Hat supported content
  • Banner appears on collection detail pages and role detail pages
  • Only renders in community mode (IS_COMMUNITY) — no-op on Hub/standalone deployments

Files changed

  • src/components/hub-promo-banner.tsx — New reusable banner component
  • src/components/index.ts — Barrel export
  • src/containers/collection-detail/collection-detail.tsx — Added banner
  • src/containers/ansible-role/role-detail.tsx — Added banner

Ref: AAP-53655

Test plan

  • Verify banner appears on Galaxy collection detail pages with working Hub link
  • Verify banner appears on Galaxy role detail pages with working Hub link
  • Verify banner does NOT appear on Hub/standalone deployments
  • Verify TypeScript compiles without errors (npm run lint:ts)

🤖 Generated with Claude Code

Add a reusable HubPromoBanner component that displays an info banner
on Galaxy collection and role detail pages, directing community users
to Red Hat Automation Hub for certified and supported content.

Ref: AAP-53655

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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