Skip to content
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

Added v6 RC updates and theme switcher #30

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dlabaj
Copy link
Contributor

@dlabaj dlabaj commented Oct 24, 2024

Added v6 updates, theme switcher, and updated README.md.

Fixes issue #27

Copy link

vercel bot commented Oct 24, 2024

@dlabaj is attempting to deploy a commit to the patternfly-extension-testing Team on Vercel.

A member of the Team first needs to authorize it.

@dlabaj dlabaj linked an issue Oct 24, 2024 that may be closed by this pull request
3 tasks
@dlabaj dlabaj changed the title Added: v6 RC updates and theme switcher Added v6 RC updates and theme switcher Oct 24, 2024
Copy link

@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

LGTM! Left a few comments. I just reviewed the code because I didn't see a preview link. If you'd like me to review visually, is there a link or should I build it locally?

Comment on lines -16 to +19
import "@patternfly/react-core/dist/styles/base.css";
import "@patternfly/patternfly/patternfly.css";
Copy link

Choose a reason for hiding this comment

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

This may be known but just in case

  • @patternfly/patternfly/patternfly.css is all patternfly styles except for utility classes
  • @patternfly/react-core/dist/styles/base.css is just our global styles (no component/layout styles) minus font awesome and possibly other stuff that happens via patternfly-react/packages/react-core/scripts/copyStyles.mjs

So I'd want to make sure that with this update, styles aren't being pulled in twice/multiple times (once from patternfly.css and again from an individual component stylesheet - for example, button.css which will be imported when you import { Button } from "patternfly/react-core". You could see if that's the case by inspecting a button and seeing if you have the same button styles listed multiple times in dev tools with the duplicate styles crossed out.

And for reference:

  • patternfly.css is about 1.5mb (you can use patternfly.min.css, it's 1.4mb)
  • patternfly-base.css is about 184k

@@ -59,7 +59,7 @@ export const ReleaseStatusTable: React.FunctionComponent = () => {
];

return (
<PageSection isWidthLimited>
<PageSection hasBodyWrapper isWidthLimited>
Copy link

Choose a reason for hiding this comment

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

Just noting that hasBodyWrapper should be true by default - https://staging.patternfly.org/components/page#pagesection

@@ -72,7 +91,7 @@ export const TestStatusTable: React.FunctionComponent<TestStatusTableProps> = ({
const columns = ["Name", "Status", "Synced with upstream?"];

return (
<PageSection isWidthLimited>
<PageSection hasBodyWrapper isWidthLimited>
Copy link

Choose a reason for hiding this comment

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

another note that hasBodyWrapper should be true by default https://staging.patternfly.org/components/page#pagesection

"@types/react": "18.0.28",
"@types/react-dom": "18.0.11",
"eslint": "8.35.0",
"@patternfly/patternfly": "6.0.0-prerelease.15",
Copy link
Contributor

Choose a reason for hiding this comment

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

since this is still open, this could be updated to the released v6 versions :)

Copy link

vercel bot commented Dec 20, 2024

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

Name Status Preview Comments Updated (UTC)
dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 20, 2024 4:26pm

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.

Looks good other than the already suggested changes, do you want to address those before we merge this?

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.

Update Dashboard to PatternFly v6 Prerelease
4 participants