Skip to content

Conversation

@kmcfaul
Copy link
Collaborator

@kmcfaul kmcfaul commented Mar 25, 2025

WIP.

  • Added tabs section to component tab page
  • Added logic to [...tab].astro to build a tab dictionary from available routes (stored in componentTabs) and then sort the tabs in a specified order (from org repo).
  • Added [section] to determine if route is a component page
  • Renamed [id] to [page] to distinguish from entry.id and entry.data.id fields
  • Updated Nav logic to only show unique components (based on frontmatter id) & route to /components/{kebab-component}
  • Updated [...page].astro to rewrite content to [...tab].astro for component pages (so that /component/alert effectively will show /component/alert/react). It should be picking the first available tab based on the componentTabs global.
  • Updated Page.astro, removing the wrapping PF Content component (this was interfering with rendering the tabs classes)

Todos:

  • back out content config changes & clean up comments

@kmcfaul kmcfaul marked this pull request as draft March 25, 2025 19:22
@kmcfaul kmcfaul marked this pull request as ready for review April 1, 2025 14:31
Copy link
Contributor

@wise-king-sullyman wise-king-sullyman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great! A few various things below, also I'd love if we could figure out the performance issues here, but that could be a followup.

@kmcfaul kmcfaul linked an issue Apr 10, 2025 that may be closed by this pull request
4 tasks
Copy link
Contributor

@wise-king-sullyman wise-king-sullyman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@wise-king-sullyman wise-king-sullyman merged commit 3b45808 into patternfly:main Apr 14, 2025
1 check passed
@github-actions
Copy link

🎉 This PR is included in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tabs in the components page

2 participants