Improve traffic splitting modal design#9010
Conversation
|
@nrfox Looks great. Here is some feedback regarding the UX/UI point: Capitalization: regarding UX writing, all fields and phrases within the modal should follow sentence case rather than title case. For example, it should be "Destination workload" instead of "Destination Workload," and "Show advanced options" instead of "Show AdvancedOptions." This aligns with the [PatternFly Capitalization Guidelines] Input Group Background: For the % input group, since it provides information without interactivity, the background color should be the default secondary (#F2F2F2). The current color resembles the "disabled" state, which may mislead users into believing the value cannot be modified at all. Button Label: Using "Preview" as the primary button label is confusing in this context. Since clicking this button completes the traffic distribution configuration and affects the actual system, "Preview" implies a simulation or a non-permanent check. I recommend using a label that clearly indicates the action's finality, such as Create to be aligned with modal header. Mirror workload: I'd recommend dropping the tooltip—it's redundant since the number input updates in real-time.
|
|
Regarding your proposal in patternfly/patternfly-react#12159, I think it is excellent. As I understand it, the current PatternFly component logic keeps the number input in an "editing" state until the user clicks outside the box or hits "Enter," which prevents the slider from updating immediately. The lack of real-time synchronization between the numeric input and the slider is a core usability issue. I plan to present this solution at the next PF designers' meeting and advocate for incorporating this approach into the official PatternFly guidelines. |
I don't love that we sort of just throw mirroring in there, but if we remove it we'll lose the ability to set mirroring. |
|
@nrfox @jshaughn 1. Design Scheme
Interaction Logic
This approach ensures users can clearly distinguish between the routing destination and the mirrored target, while keeping the configuration intuitive. |
|
Quick demo video https://github.com/user-attachments/assets/138b36de-7d61-441d-880b-b57ac2915922 Figma design link: https://www.figma.com/design/XDFgbelLCdhepNYrYAkdsA/Kiali-PF6-styles-and-patterns?node-id=2474-8671&t=tBMt7p192DbulFrB-1 |
|
@Joeyyubo alright I implemented the suggested changes for mirroring workloads: |
|
@jshaughn I updated the screenshots: kiali/kiali.io#937 |
|
@Joeyyubo now that we've changed the size of the initial modal, I wonder if we should also change the size of the preview modal to match? |
This may affect other modals/actions as well so maybe this should be a follow up. I think we already have an issue to convert the wizards from modals to form pages? One more thing is that the styling of the icons does not match what is in figma. I kept the styling the way it was to make it consistent with the rest of the UI but if the icon coloring should change then we can create a separate issue for that to change it universally. |
There is no a real issue, just a matter of timing. Wizard conversion to form pages is low priority right now. |
|
@nrfox |
I updated the existing issue, #7823, mentioning the Modal with Wizard pattern. But +1 to the prioritization mentioned by @ferhoyos. As such, I have replaced the |
jshaughn
left a comment
There was a problem hiding this comment.
For me, this is good to go!
Ok I'll wait then to update this particular modal until we address the broader wizard redesign issue in general and keep this PR as is. Thanks for all the feedback @Joeyyubo! |










Describe the change
Implements most of the suggested design changes.
Steps to test the PR
hack/run-integration-tests.sh --test-suite backend --setup-only trueAutomation testing
N/A
Issue reference
Follow up from #8938 (comment)
Some things I did not implement:
This modal creates some YAML. All modals that create YAML require you to preview it first. Hitting the "preview" button opens a different modal with all the YAML. Probably the "preview" modal should be updated as well.
Lastly until the issues with the Patternfly Slider have been addressed we need to keep using our custom Slider which has a slightly different styling.