OU-1281: show disabled project bar while loading#936
Conversation
|
@PeterYurkovich: This pull request references OU-1281 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target either version "5.0." or "openshift-5.0.", but it targets "COO 1.5.0" instead. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughAlways render the project dropdown toggle in ChangesDropdown UX during permission loading/error
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@web/src/components/dashboards/perses/project/ProjectDropdown.tsx`:
- Around line 233-236: The ProjectMenuToggle currently uses the disabled prop
when permissionsLoading is true which prevents hover/focus and blocks the
Tooltip; update ProjectMenuToggle to use isAriaDisabled={permissionsLoading}
(and only set disabled when you need to fully prevent focus/hover) so the toggle
still renders disabled styling and suppresses clicks but preserves hover/focus
events required by the Tooltip; change the usage in the component that renders
{toggle} (and mirror the pattern used in MetricsPage.tsx around line ~569) to
pass isAriaDisabled instead of disabled, and ensure any click handlers still
check permissionsLoading to fully block interaction if necessary.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: d3d45047-d9b3-45c2-947b-8ea8b9443924
📒 Files selected for processing (1)
web/src/components/dashboards/perses/project/ProjectDropdown.tsx
|
/lgtm |
|
/hold |
|
/lgtm cancel |
|
/unhold |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@web/src/components/dashboards/perses/project/ProjectDropdown.tsx`:
- Around line 233-242: In ProjectDropdown.tsx fix the malformed JSX in the
conditional render: replace the literal "..." inside the Tooltip attributes with
valid props (for example TooltipPosition import and use
position={TooltipPosition.top} and any required aria or children props) and
remove the duplicated ternary branch so the render becomes a single
permissionsLoading ? <Tooltip ...>{toggle}</Tooltip> : permissionsError ?
<Tooltip ...>{toggle}</Tooltip> : toggle; ensure Tooltip, TooltipPosition,
permissionsLoading, permissionsError and toggle are referenced exactly as in the
file.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: af73c185-fc50-4853-bfaf-9d3d98c62464
📒 Files selected for processing (1)
web/src/components/dashboards/perses/project/ProjectDropdown.tsx
Co-authored-by: Gabriel Bernal <gabrielbernalp@gmail.com>
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jgbernalp, PeterYurkovich The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@PeterYurkovich: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/cherry-pick release-coo-ocp-4.22 |
|
@PeterYurkovich: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
2 similar comments
|
@PeterYurkovich: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@PeterYurkovich: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/label qe-approved |
|
@PeterYurkovich: new pull request created: #943 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Summary by CodeRabbit