[8454] Improve the "More Items" alignment in the side bar #4909
[8454] Improve the "More Items" alignment in the side bar #4909jvega190 wants to merge 2 commits into
Conversation
…e identation to be correct
|
Warning Review limit reached
Next review available in: 39 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe "more" entry in PathNavigatorTreeItem.tsx was changed from a Box-wrapped Button to a proper MUI TreeItem node with a dedicated itemId. The click handler now stops event propagation before invoking onMoreClick, and styling was rewritten to target TreeItem internal classnames. ChangesMore Entry TreeItem Refactor
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related issues
Suggested labels: ui, enhancement Suggested reviewers: none 🐰 A "more" node hops from Box to Tree, 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 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 `@ui/app/src/components/PathNavigatorTree/PathNavigatorTreeItem.tsx`:
- Around line 202-204: The focus styling for the selectable TreeItem is removing
all visible keyboard focus feedback, which is an accessibility regression.
Update the styling in PathNavigatorTreeItem so the `treeItemClasses.focused`
state still shows a clear focus indicator instead of suppressing it with
`background: 'none !important'`, and keep the behavior aligned with the
now-focusable `TreeItem` row.
🪄 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 50b361ef-bb61-47bc-9564-d12538dd310f
📒 Files selected for processing (1)
ui/app/src/components/PathNavigatorTree/PathNavigatorTreeItem.tsx
|
@coderabbitai can you check if everything looks good? Please give it a final review before I hand over for human review |
🧩 Analysis chain🏁 Script executed: #!/bin/bash
gh pr view 4909 --repo craftercms/studio-ui --json title,body,files,additions,deletions,commits
echo "----DIFF----"
gh pr diff 4909 --repo craftercms/studio-uiLength of output: 4372 🏁 Script executed: #!/bin/bash
cd ui 2>/dev/null || true
fd PathNavigatorTreeItem.tsx
echo "---"
cat -n app/src/components/PathNavigatorTree/PathNavigatorTreeItem.tsx 2>/dev/null | sed -n '1,260p'Length of output: 10212 🏁 Script executed: #!/bin/bash
fd PathNavigatorTree.tsx
echo "---"
rg -n "selectedItem|onNodeSelect|selected|expandedItems|onItemSelectionToggle|apiRef|itemId" app/src/components/PathNavigatorTree/PathNavigatorTree.tsx | head -80Length of output: 514 🏁 Script executed: #!/bin/bash
rg -n "selectedItem|onNodeSelect|selected|expandedItems|onItemSelectionToggle|apiRef|itemId|SimpleTreeView|RichTreeView" ui/app/src/components/PathNavigatorTree/PathNavigatorTree.tsx | head -100Length of output: 345 🏁 Script executed: #!/bin/bash
rg -n "SimpleTreeView|RichTreeView|TreeView" ui/app/src/components/PathNavigatorTree/ -l
echo "---"
rg -n "selectedItem|onSelectedItemsChange|expandedItems|onExpandedItemsChange|itemId" ui/app/src/components/PathNavigatorTree/*.tsxLength of output: 778
Looks good:
One minor thing worth a quick manual check (not blocking):
Otherwise this is a clean, well-scoped fix — good to hand off for human review. ✅ Action performedReview finished.
|
|
@CodeRabbit you're right, since we have disableSelection then it is a pre-existing limitation, that's how we're handling it right now. Considering that, please give it a final review before I hand over for human review |
|
Final take: the fix is clean and well-scoped — using an actual ✅ Action performedComments resolved. Approval is disabled; enable |
Updated the 'N more items' entry of the tree to be a
TreeIteminstead of aBoxso it gets indented properly with the rest of items.craftercms/craftercms#8454
Summary by CodeRabbit