Skip to content

Conversation

@sachaudh
Copy link
Contributor

@sachaudh sachaudh commented Dec 2, 2025

Description

This PR fixes the user profile page integration tests.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

Before:

Screenshot 2025-12-01 at 6 14 19 PM

After:

Screenshot 2025-12-01 at 5 50 45 PM

@openshift-ci
Copy link

openshift-ci bot commented Dec 2, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@sachaudh
Copy link
Contributor Author

sachaudh commented Dec 2, 2025

@zhenpesky @mansursyed We seem to be using NavItem and NavExpandable in the User Profile page, which don't seem to show a good active state in v6 of PatternFly (see link). I noticed we have white-on-white, so maybe that's why.

Even if I make the background gray, like in our PatternFly v5, it still doesn't look nice.

Screenshot 2025-12-01 at 6 38 24 PM

I'm wondering if using Tabs would be better here (see link). There seem to be vertical tabs and even an expandable tab with more visible active states.

cc: @dvail @pedrottimark

@sachaudh sachaudh marked this pull request as ready for review December 2, 2025 02:41
@sachaudh sachaudh requested a review from a team as a code owner December 2, 2025 02:41
@codecov
Copy link

codecov bot commented Dec 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.34%. Comparing base (69d9c49) to head (bb91c32).

Additional details and impacted files
@@                  Coverage Diff                  @@
##           dv/ROX-28622-pf-6   #18007      +/-   ##
=====================================================
- Coverage              49.35%   49.34%   -0.01%     
=====================================================
  Files                   2699     2699              
  Lines                 198960   198960              
=====================================================
- Hits                   98199    98185      -14     
- Misses                 93144    93155      +11     
- Partials                7617     7620       +3     
Flag Coverage Δ
go-unit-tests 49.34% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sachaudh
Copy link
Contributor Author

sachaudh commented Dec 2, 2025

@dvail never used git-spice before. Do I need to use it for the work we're doing?

@dvail dvail force-pushed the dv/ROX-31766-fix-logos-and-login-page branch from 5a592fe to 8ce63f4 Compare December 2, 2025 16:03
@dvail dvail requested a review from a team as a code owner December 2, 2025 16:03
@dvail
Copy link
Contributor

dvail commented Dec 2, 2025

We seem to be using NavItem and NavExpandable in the User Profile page, which don't seem to show a good active state in v6 of PatternFly

@mansursyed @zhenpesky Of note, I've already found a couple of other places where this is going to be a problem in the app, global search being another one. I really don't know why the PF team decided to make the active state nearly indistinguishable on these types of navigation items but it does reduce clarity in our UI. Depending on your guidance here, we might want to think on if there is an alternate pattern we can use and replace all instances where this is an issue. Possibly with Tabs like @sachaudh mentioned above.

This might be a good topic for the UI/UX sync on Wed too.

@dvail
Copy link
Contributor

dvail commented Dec 2, 2025

@dvail never used git-spice before. Do I need to use it for the work we're doing?

I don't think so, and honestly I'm not sure how this would work with both of us working on the same stack as git-spice keeps metadata locally on our development machines.

I use it primarily because it makes stacking branches/PRs, changing between them, and rebasing the entire stack very easy. Now that we are working on individual page issues though, I think the stacks will be much shorter, and mostly targeting the PF6 feature branch directly (soon...), so stack management will be less of a concern.

@dvail dvail force-pushed the dv/ROX-31766-fix-logos-and-login-page branch from 8ce63f4 to cc491d0 Compare December 3, 2025 13:47
Base automatically changed from dv/ROX-31766-fix-logos-and-login-page to dv/ROX-28622-pf-6 December 3, 2025 13:50
@dvail dvail force-pushed the dv/ROX-28622-pf-6 branch from 65303ba to 69d9c49 Compare December 3, 2025 13:55
@sachaudh sachaudh closed this Dec 3, 2025
@sachaudh sachaudh force-pushed the saif/ROX-31771-fix-my-profile branch from 403d48d to 69d9c49 Compare December 3, 2025 18:27
@sachaudh
Copy link
Contributor Author

sachaudh commented Dec 3, 2025

@dvail, it looks like an earlier commit might have had the side effect of fixing this issue. It had auto-closed because I resolved the merge conflict by choosing the changes from the branch's head. I'll reopen for the visual changes, though.

@sachaudh
Copy link
Contributor Author

sachaudh commented Dec 3, 2025

@mansursyed I do want to push this along, so I'll use the Vertical Tab and Expandable Tab approach for now. We can sync on further changes separately.

@sachaudh
Copy link
Contributor Author

sachaudh commented Dec 4, 2025

@mansursyed @dvail, I wanted to brainstorm another option for that page. I initially tried using Tabs, but it felt odd to have a Vertical Tab and a Vertical Expandable Tab. It would have looked nicer with just one or the other, but together it still looked weird.

Another option could be a Selector. Since the user roles list is dynamic, it should work well as a select option.

Screenshot 2025-12-03 at 5 22 14 PM

@mansursyed I know you wanted some time to think about this one. Let me know if any of the previous suggestions work for you, or if you have any others. I'm ok with whatever is most consistent and simplest 👍🏼

@sachaudh sachaudh reopened this Dec 4, 2025
Signed-off-by: Saif Chaudhry <[email protected]>
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.

2 participants