Skip to content

feat(web): Migration to PatternFly v6, round 1#1900

Merged
dgdavid merged 36 commits intostorage-config-uifrom
pfv6-round-1
Jan 16, 2025
Merged

feat(web): Migration to PatternFly v6, round 1#1900
dgdavid merged 36 commits intostorage-config-uifrom
pfv6-round-1

Conversation

@dgdavid
Copy link
Contributor

@dgdavid dgdavid commented Jan 15, 2025

Problem

On October 31th, 2024 PatternFly released it's 6th version, which comes with interesting changes. It's look&feel has changed a lot and it has started to make use of tokens, which can be an opportunity for sanitizing the Agama CSS overrides and to start a good foundation for allowing themes in the Agama web interface. Especially, having in mind that there is a SUSE branding refinement too.

Solution

Start migrating to PatternFly 6.

This first round of changes covers several code adaptations as well as some Agama refinements like the deletion of dead code.

Testing

  • Added a new unit test
  • Tested manually

Notes

This PR is not against a feature branch directly on top of master branch because we have decided to deliver this together the new storage interface.

Screenshots

This first round does not take too much care about the final result, which makes useless taking screenshots.

As a first step before migrating to PatternFly v6
As part of the migration to PF v6. It also use PF/Content for replacing
a deprecated PF/Chip.
Use Start and End suffix instead of Left and Right.
No longer used in PF v6.
For using right values for PF v6.
No longer needed in PF v6.
No longer available in PF v6.
As part of the PF v6 migration.
For using PF/Masthead as recommended in PF v6.
For accepting the description prop sometimes needed for the header.
To properly look for the menu actions at the document body instead of
the row where the toggler lives. This change is needed because in PFv6
"The default value of appendTo on Dropdown, Select, and Popper has been
updated to `document.body`"

Maybe in the future the appendTo prop is added to the actions menu
instead.
Which was wrongly using getByText instead of getByRole for working with
buttons.
Most probably it will be drop in the short term.
Renders an emtpy Masthead instead of nothing when there is not header at
all. This is needed in order to have the document structure expected by
PatternFly CSS to make things works as expected (i.e., allowing the
content fill the space reserved for the sidebar).
@dgdavid dgdavid requested a review from joseivanlopez January 15, 2025 16:13
@dgdavid dgdavid changed the base branch from storage-config-ui-pfv6 to storage-config-ui January 15, 2025 16:26
Same than done at 9eaaa81, but for
files not previously adapted.
@dgdavid dgdavid requested a review from imobachgs January 15, 2025 16:32
@dgdavid dgdavid merged commit 8abc6cd into storage-config-ui Jan 16, 2025
0 of 2 checks passed
@dgdavid dgdavid deleted the pfv6-round-1 branch January 16, 2025 11:46
dgdavid added a commit that referenced this pull request Jan 20, 2025
A continuation of #1900 for
basically introducing some bits of brand.suse.com just for an initial
test and feedback from developers putting their hands on the
storage-config-ui branch. For the full list of changes, please see
commit by commit.

Please, merge it ASAP in the feature branch to minimize merge conflicts.
dgdavid added a commit that referenced this pull request Jan 29, 2025
A continuation of #1900 and
#1921. To know more about
introduced changes, please see commit by commit, but it basically still
polishing visual aspects after the migration to PF6

The idea of this PR is to minimize the risk of big merge conflicts by
introducing adjustments done until now in the feature branch ASAP. But
still not being the last migration round.
dgdavid added a commit that referenced this pull request Feb 3, 2025
dgdavid added a commit to joseivanlopez/agama that referenced this pull request Feb 5, 2025
Lost while deleting all previous CSS during the migration to PF6. I.e.,
related to

  - agama-project#1900
  - agama-project#1921
  - agama-project#1954
  - agama-project#1961
dgdavid added a commit to joseivanlopez/agama that referenced this pull request Feb 6, 2025
Lost while deleting all previous CSS during the migration to PF6. I.e.,
related to

  - agama-project#1900
  - agama-project#1921
  - agama-project#1954
  - agama-project#1961
@imobachgs imobachgs mentioned this pull request Feb 26, 2025
imobachgs added a commit that referenced this pull request Feb 26, 2025
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.

2 participants

Comments