Skip to content

Fixes #39507 - update editornavbar and radio buttons to pf5 and the tests to RTL#11099

Merged
MariaAga merged 1 commit into
theforeman:developfrom
andreilakatos:fixes-39507-editor-navbar-and-buttons
Jul 15, 2026
Merged

Fixes #39507 - update editornavbar and radio buttons to pf5 and the tests to RTL#11099
MariaAga merged 1 commit into
theforeman:developfrom
andreilakatos:fixes-39507-editor-navbar-and-buttons

Conversation

@andreilakatos

Copy link
Copy Markdown
Contributor

Fixes #39507 - update editornavbar and radio buttons to pf5 and the tests to RTL

Before:
image

image

After:
image

image

@github-actions github-actions Bot added the UI label Jul 10, 2026
@andreilakatos
andreilakatos force-pushed the fixes-39507-editor-navbar-and-buttons branch 2 times, most recently from 38305f7 to 4dd9d8a Compare July 10, 2026 11:11

@MariaAga MariaAga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thought: It seems to me like the pr is trying to achieve the previous look by many customization. Can it rely on PF defaults more, and look more like PF instead of looking like the old editor?

@andreilakatos
andreilakatos force-pushed the fixes-39507-editor-navbar-and-buttons branch from 6ad9f6e to a21734d Compare July 13, 2026 14:55

@MariaAga MariaAga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some visual issues:

  1. No settings button if the preview warning is shown
Image
  1. I'm not sure if it looks weird or I'm just not used to it, but the buttons have arrows to scroll through them when the preview warning is shown. The scrolling does work and all buttons are visible so not sure its an issue.
Image

Might be good to move the alert out of the tab bar.

  1. the safe mode has a custom css in webpack/assets/javascripts/react_app/components/Editor/components/editorsafemodecheckbox.scss I think its a. can be moved to editor.css b. needs to be fixed so it will be aligned (text and checkbox)
Image

@pnovotny

Copy link
Copy Markdown

I tested this PR and the tab switching works correctly.

Then there are few alignment issues, that @MariaAga 's already mentioned:
Vertical alignmet of the Safemode checkbox and Preview is outdated line.
editor-preview-misaligned

Also, the horizontal scrolling includes only the Editor/Changes/Preview tabs and not the rest of the top panel.
On a narrow screen, it then causes the right icons (revert, import file, settings, fullscreen) to completely disappear and the Safemode or Preview is outdated text to overflow.
editor-horizontal-scrolling

@andreilakatos

Copy link
Copy Markdown
Contributor Author

3. editorsafemodecheckbox

Yep, I'm moving the alert above the editor so we won't have this issue. The horizontal scroll is not something that I implemented, it's default behaviour for tabs. It sort of worked like that before as well, maybe I should implement some horizontal scrolling if the screen is resized.

@andreilakatos

Copy link
Copy Markdown
Contributor Author

Some visual issues:

  1. No settings button if the preview warning is shown
Image 2. I'm not sure if it looks weird or I'm just not used to it, but the buttons have arrows to scroll through them when the preview warning is shown. The scrolling does work and all buttons are visible so not sure its an issue. Image Might be good to move the alert out of the tab bar.
  1. the safe mode has a custom css in webpack/assets/javascripts/react_app/components/Editor/components/editorsafemodecheckbox.scss I think its a. can be moved to editor.css b. needs to be fixed so it will be aligned (text and checkbox)
Image

Done, moved alert outside of navbar, and updated the tests and Editor component. Also aligned the safe mode checkbox:
image
image
image

@pnovotny

Copy link
Copy Markdown

Re-tested the latest changes and QA-wise LGTM.

The alignment issues have been fixed and everything looks like in the screenshots from the previous comment.

Also, the horizontal scrolling includes only the Editor/Changes/Preview tabs and not the rest of the top panel.
On a narrow screen, it then causes the right icons (revert, import file, settings, fullscreen) to completely disappear and the Safemode or Preview is outdated text to overflow.

I forgot to add that this is not a regression to the PF5 updates.
After discussion, it will be handled as a separate task or bug.

Comment thread webpack/assets/javascripts/react_app/components/Editor/Editor.js

@MariaAga MariaAga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, just needs a squash

@andreilakatos
andreilakatos force-pushed the fixes-39507-editor-navbar-and-buttons branch from 88e1da4 to 87d48e8 Compare July 15, 2026 13:14

@MariaAga MariaAga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

code LGTM, thanks!

@MariaAga
MariaAga merged commit 96ce9e0 into theforeman:develop Jul 15, 2026
40 checks passed
pnovotny added a commit to SatelliteQE/airgun that referenced this pull request Jul 15, 2026
* template editor: update navigation bar locator

Locator for the template navigation bar (Editor/Changes/Preview) has slightly changed.

Related to change theforeman/foreman#11099
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.

4 participants