Skip to content

Add shared workspace settings note and prevent filter modal expansion - #25300

Merged
AmethystLiang merged 3 commits into
mainfrom
mobile-manual-sort-copy
Oct 4, 2026
Merged

AmethystLiang merged 3 commits into
mainfrom
mobile-manual-sort-copy

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​29 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​25

Problem

Users may not understand that workspace sort, grouping, and filter settings are shared across devices on the same host. The filter modal heading can expand unexpectedly with longer content.

Solution

Add a subtitle to the sort, group, and filter picker modals explaining "Shared with other devices on this host". Prevent the filter modal heading from expanding by setting flexShrink: 1. Update the manual sort subtitle from "Server order" to "Desktop drag order" for clarity.

Testing

  • I manually tested these changes locally
  • Verified subtitle displays in all picker and filter modals
  • Confirmed filter modal heading no longer expands
  • Tested across different device widths (if applicable)

Review

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Fixes #

The Manual sort option was subtitled 'Server order', but it orders by the
desktop's drag ranks. Sort, grouping, and filters on the phone all write the
host's shared view settings, so changing them also changes every other
device on that host, which the screen never said. Relabel Manual as 'Desktop
drag order' and add 'Shared with other devices on this host' under the Sort
By, Group By, and Filter titles. The note avoids naming a desktop sidebar
because headless hosts have none.
Add flexShrink: 1 to allow the heading container to shrink when
space is constrained. Update comment to clarify why workspace view
is shared across devices.
@coderabbitai

coderabbitai Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

🧰 Additional context used
📚 Code guidelines (1)
AGENTS.md — auto-discovered

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bd9dcc74-5f52-4beb-ac1d-b2e2c76b56a8
📥 Commits

Reviewing files that changed from the base of the PR and between b99d28e and 5e02d08.

📒 Files selected for processing (5)
  • mobile/src/components/PickerModal.tsx
  • mobile/src/host-screen/host-screen-overlays.tsx
  • mobile/src/host-screen/host-screen-secondary-styles.ts
  • mobile/src/worktree/workspace-list-picker-options.ts
  • mobile/src/worktree/workspace-view-settings.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

PickerModal now accepts an optional subtitle and displays it below the title when provided. The sort and group pickers and the filter header display a shared workspace-view note. The Manual sort subtitle and a comment about manual sorting now describe ordering by desktop drag ranks. The sort behavior is unchanged.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 5e02d

These changes add explanatory text and subtitle layout; the shared controls target host UI settings, and Manual mode primarily follows desktop drag ranks. No material user-facing impact warrants holding the change.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the problem and solution, but it omits the required Visual Proof section for a UI change. Testing items are unchecked, and “Fixes #” has no issue number or link. Add before-and-after screenshots or video, or state “N/A” with a reason if there is no visual or interaction change. Add the issue link if applicable, and report which checks were run or explain that CI will cover them.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 5 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly names the shared workspace settings note and the filter modal layout change.
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.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Shared-settings note: adds WORKSPACE_VIEW_SHARED_NOTE ("Shared with other devices on this host") and surfaces it in the Sort and Group pickers plus the Filter modal.
  • PickerModal subtitle prop: optional subtitle renders under the title in the header; it is opt-in, so other callers are unaffected.
  • Filter heading layout guard: wraps the title/subtitle in a flexShrink: 1 heading so the two-line header shrinks rather than overflowing the space-between row next to "Clear filters".
  • Manual sort copy: "Server order" → "Desktop drag order", with the matching comment in workspace-view-settings.ts updated.

The copy is accurate: view settings live in the host's shared PersistedUIState (workspace-view-settings.ts), and manual sort really consumes desktop drag ranks via manualOrder ?? sortOrder (workspace-list-ordering.ts:59), pinned by workspace-list-sections.test.ts:272. No tests referenced the old strings.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@AmethystLiang
AmethystLiang merged commit 0971479 into main Oct 4, 2026
6 of 22 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.

1 participant