Skip to content

fix: improve organization switcher and share chat dialog responsiveness - #2303

Merged
smakosh merged 1 commit into
theopenco:mainfrom
amelitoalcuitas:fix/shared-dialog-mobile
May 16, 2026
Merged

smakosh merged 1 commit into
theopenco:mainfrom
amelitoalcuitas:fix/shared-dialog-mobile

Conversation

@amelitoalcuitas

@amelitoalcuitas amelitoalcuitas commented May 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

Release Notes

  • Style & UI Improvements
    • Organization switcher now automatically closes the mobile sidebar when users select an organization, providing a smoother and more intuitive mobile navigation experience.
    • Share chat dialog UI has been refined with improved responsive design, better spacing and sizing adjustments for the social share section, improved icon sizing, and a more constrained layout for organization sharing features.

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 16, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 1dc2ccb6-bfdb-4305-ab72-f8466f1ae34d

📥 Commits

Reviewing files that changed from the base of the PR and between b159332 and 0f5a283.

📒 Files selected for processing (2)
  • apps/playground/src/components/playground/organization-switcher.tsx
  • apps/playground/src/components/playground/share-chat-dialog.tsx

Walkthrough

Organization switcher now closes the mobile sidebar when users select an organization or Personal view. Share dialog refines responsive layout with improved truncation handling, updated button spacing, and constrained widths across social buttons, copy controls, and shared organization lists.

Changes

Playground Organization and Sharing UI

Layer / File(s) Summary
Organization Switcher Mobile Sidebar Handling
apps/playground/src/components/playground/organization-switcher.tsx
Organization switcher integrates useSidebar() to derive mobile state and wraps selection handlers with handleSelectOrganization, which closes the mobile sidebar before invoking the existing callback. "Personal" and organization selection handlers updated to use the wrapper.
Share Dialog Responsive Layout Refinements
apps/playground/src/components/playground/share-chat-dialog.tsx
Share dialog updates responsive sizing, truncation, and spacing: DialogContent gains responsive width constraints and improved overflow behavior; social button styling refactored; public-share and organization-share sections adjusted with min-w-0 constraints on URLs and organization rows; copy and social button layouts reorganized with tighter padding and icon sizing.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • theopenco/llmgateway#2240: Both PRs modify share-chat-dialog.tsx to adjust dialog responsive/mobile layout and share button styling.
  • theopenco/llmgateway#2288: Both PRs modify share-chat-dialog.tsx component layout, styling, and link display behavior.
  • theopenco/llmgateway#2294: Both PRs touch playground organization-sharing UI in organization-switcher.tsx and share-chat-dialog.tsx for org-scoped shared chats.

Suggested reviewers

  • smakosh
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main changes: improving responsiveness in the organization switcher and share chat dialog components.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@smakosh
smakosh added this pull request to the merge queue May 16, 2026
Merged via the queue into theopenco:main with commit 0157762 May 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants