Web: sub-community drill-down dropdown on community breadcrumbs#9229
Web: sub-community drill-down dropdown on community breadcrumbs#9229kevinortiz43 wants to merge 6 commits into
Conversation
Adds a searchable MUI dropdown next to the community-page breadcrumbs that lists the current community's direct sub-communities and navigates to the selected one, letting users move down the geographic tree (not just up via the existing breadcrumb links). The dropdown is hidden on leaf communities, its label is derived from the children's node type, and it reuses the existing ListCommunities query. Also mocks that query in DiscussionPage's test since it renders the shared community sub-header. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
MobileInstall the Dev Tool (iOS via TestFlight, iOS Simulator, or Android .apk) here. Scan the QR with your phone camera, or tap Open in Dev Tool on the device, to open this branch in the installed Dev Tool dev client.
Deep linksiOS Android Web (Vercel)View the Vercel web preview for this branch. Backend
Other
|
jesseallhands
left a comment
There was a problem hiding this comment.
I really like how this is looking! Great job!
I agree with the points Nicole made. I would suggest that the "leave community"/"join community" button not only appears in a separate row below the breadcrumbs on mobile, but also is a button with a single line of text rather than a button with 2 rows of text since two rows result in it taking up more real estate.
|
I think when I checked the android version I didn't think to check the other languages. let me fix or see what I can do @nabramow |
- Mobile: stack the join/leave button onto its own row below the breadcrumbs so long translated labels (e.g. German) no longer overlap the dropdown trigger. - Keep the join/leave button label on a single line. - Give the search menu a fixed width so it no longer reflows while typing. - Shorten the mobile search placeholder to "Location". Addresses review feedback on #9229. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
@nabramow I have fixed the mobile width for German, and other languages. Can you double check. |
|
@kevinortiz43 I fear this still looks a bit awkward on mobile. For example with the "select area" having a gap in space on the left, and the way it's going on 3 lines. What if we:
Also wondering if @jesseallhands has any better ideas. I think a slightly smaller font will help it wrap a bit though. |
|
@nabramow I think decreasing the font size should help but I am wondering if for mobile would it be worth calling the countries by their abbreviations. Such as EU for Europe, AFR for Africa, etc. |
Address review feedback on the sub-community dropdown: on mobile the breadcrumb chain now stays on a single line and scrolls horizontally instead of wrapping (the "Select area" dropdown no longer drops to its own line), the breadcrumb font is slightly smaller, and the join/leave button sits on its own centered row below. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Let the community breadcrumb wrap whole crumbs onto the next line on mobile rather than horizontally scrolling, so a long current-community name is never truncated and the "Select area" dropdown stays visible. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
@nabramow I think the issue is specifically europa africa and middle east is way too long. I tried setting it up in one line but it looks bad. This is the fix I did.
|
|
@nabramow this is the other recommendation we can do for 320px
|
|
@kevinortiz43 I think the smaller font where it goes 2 rows instead of 3 is okay and left-aligns. The "Join/Leave Community" button centered looks fine enough, but don't center the tabs, leave that as it is. |











Adds a searchable dropdown as the last item inside the community-page breadcrumbs. It lists the current community's direct sub-communities and navigates to the selected one.
Fixes #5545
SubCommunitiesDropdown— a MUIButton+Menuwith a search field and a filterable item list.useListSubCommunities/listCommunitiesquery and its pages are drained viafetchNextPageso all children load, then the count gates rendering.Testing
Verified against online staging (
next.couchershq.org) with Playwright, logged in:SubCommunitiesDropdown.test.tsx(5 tests). Added alistCommunitiesmock toDiscussionPage.test.tsxsince it renders the shared sub-headerWeb frontend checklist
For maintainers
This PR was created with the Couchers PR skill.