Feat(RHOAIENG-102984): added ups UI changes #10788
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 535 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.376
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10788"
general
weight: 0.35
lucferbux
Closes RHOAIENG-102984
Problem
The Unified Project Selector did not provide a consistent flow when no projects were available. In the normal project-listing flow, users could be taken directly into project creation instead of first seeing the selector and choosing how to proceed. The selector also had to preserve the existing xKS/manual project behavior, including manually adding and validating projects when namespace listing is unavailable.
The selector footer and empty-state logic had also become difficult to maintain, and several tests no longer accurately represented the expected interaction flow.
Solution
Update the Unified Project Selector empty-project experience so that the selector is shown first and users can choose the next action:
Preserve xKS/manual project support:
ListingUnavailable.Refactor the selector implementation to improve maintainability:
WorkingProjectSelectorFootercomponent and empty-state rendering into an internalProjectSelectorEmptyStatecomponent.Update test coverage for the revised behavior:
EmptyProjects.scrollIntoViewmocking.aria-checkedassertion.<img width="2666" height="1378" alt="image" src="https://github.com/user-attachments/assets/dc99eade-7bdd-4da1-a3af-1262b8d276ea" />
https://github.com/user-attachments/assets/59352fc2-0b9b-459f-b28a-1bc06f6aa08c
<img width="2477" height="1599" alt="image" src="https://github.com/user-attachments/assets/208de41c-df7a-4795-9a21-82a956f3e159" />
Evidence
The focused Unified Project Selector test suite passes:
```text
Test Suites: 1 passed, 1 total
Tests: 32 passed, 32 total
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Added project review mode that opens the selector with a newly created project highlighted.
Added clearer empty states, contextual help, project counts, and project-creation options in the selector.
Added Create project and Cancel actions to the empty-project screen when available.
Bug Fixes
Creating a project now shows a single success notification without automatically selecting it or displaying the previous working-project update notification.
* Improved project-list scrolling and kept the available-project header visible while browsing.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->