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

Upgrade to PatternFly 5 #21321

Open
4 of 7 tasks
ssilvert opened this issue Jun 29, 2023 · 10 comments
Open
4 of 7 tasks

Upgrade to PatternFly 5 #21321

ssilvert opened this issue Jun 29, 2023 · 10 comments

Comments

@ssilvert
Copy link
Contributor

ssilvert commented Jun 29, 2023

We should upgrade all themes to PatternFly 5 as soon as these conditions are met:

  1. PF5 is released
  2. Keycloak 22 is final

All theme types should be upgraded so that everything is using the same PatternFly version. (account, admin, login, welcome)

Motivation

  1. Welcome is still on PF3, so we need to get it upgraded to a supported version.
  2. We should have everything on the same PatternFly version.

Tasks

  1. 0 of 1
    area/login/ui kind/enhancement team/ui
  2. area/welcome/ui kind/enhancement release/24.0.0 team/ui
    jonkoops
  3. area/account/ui kind/enhancement release/25.0.0 team/ui
    jonkoops
  4. area/admin/ui kind/enhancement release/25.0.0 team/ui
    jonkoops
  5. 2 of 3
    kind/task priority/important team/ui
    jonkoops
  6. area/account/ui area/admin/ui kind/task team/ui
  7. area/admin/ui help wanted kind/bug priority/normal status/auto-bump team/ui
@ssilvert ssilvert added kind/enhancement Categorizes a PR related to an enhancement status/triage labels Jun 29, 2023
@ssilvert ssilvert added this to the 23.0.0 milestone Jun 29, 2023
@stianst
Copy link
Contributor

stianst commented Jun 29, 2023

Would be cool to be able to set the default for login, account, and/or admin to be light/dark, both for a realm, or server-wide, and maybe even having an option for users themselves to switch :)

@jonkoops jonkoops self-assigned this Jun 29, 2023
@jonkoops
Copy link
Contributor

I'll take this one, I think we can easily upgrade Account v3 and the Admin Console. For the login, I think we should take some time to do that separately, mostly because the jump from PatternFly 3 - 4 is quite large.

@jonkoops
Copy link
Contributor

@jenny-s51 I know you did some preliminary work on this under #21303. If you have some tips on how to best pick up from where you left, please let me know 😃

@ssilvert
Copy link
Contributor Author

I'll take this one, I think we can easily upgrade Account v3 and the Admin Console. For the login, I think we should take some time to do that separately, mostly because the jump from PatternFly 3 - 4 is quite large.

@jonkoops Login is actually the highest priority here. We need to get off PF3 because it is no longer supported.

@mabartos
Copy link
Contributor

AFAIK, we use PatternFly 4 for the login screens. Or do I miss something?

#7470

@jonkoops
Copy link
Contributor

@mabartos I can still see PatternFly 3 (and jQuery for some reason) being included in the common base for the the themes. But I guess this is not being used at all?

@jonkoops
Copy link
Contributor

Upon closer inspection, it looks like the 'welcome' theme is still on PatternFly 3. Which is why it's still being listed as a dependency.

@jonkoops
Copy link
Contributor

Okay, so things get even weirder. The login is using PatternFly 4. But it's not installed from the aforementioned package.json, instead the Account v2 theme has a build step that copies the dependencies it has into to the common theme.

Not only that, but it also seems that the login theme includes both PatternFly 3 and 4, as it pulls in part of the dependencies from node_modules as well.

@jenny-s51
Copy link
Contributor

@jonkoops the admin console builds and runs with the updates in #21303

With this v5 update, the big lift on the Keycloak side will likely be updating the form elements to use FormHelperText, HelperText, and HelperTextItem directly inside children - I marked all those instances in #21303 with TODO statements. There are also some event handlers that will need their parameters reordered.

You may notice some visual differences as well and should be able to fix these by updating any hardcoded pf-c-[component] instances to pf-v5-c-[component].

We hope to have official PF5 release numbers next week 🙂

@jonkoops
Copy link
Contributor

jonkoops commented Jul 3, 2023

Great, I'll have a gander once the stable is out!

@jonkoops jonkoops added kind/epic and removed kind/enhancement Categorizes a PR related to an enhancement labels Sep 8, 2023
@ssilvert ssilvert modified the milestones: 23.0.0, 24.0.0 Oct 26, 2023
@ssilvert ssilvert modified the milestones: 24.0.0, 25.0.0 Dec 19, 2023
@jonkoops jonkoops removed their assignment Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants