Skip to content

Use a floating action button for new workspace on mobile - #6710

Merged
AmethystLiang merged 1 commit into
mainfrom
use-floating-button-for-mobile-new-worktree
Jun 29, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
use-floating-button-for-mobile-new-worktree

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replaces the small toolbar "+" button on the mobile host (worktree list) screen with a phone-only floating action button (FAB) for creating a new workspace.

  • New NewWorkspaceFab component: absolutely-positioned circular "+" button, bottom-right, lifted above the home indicator via safe-area insets. Monochrome crisp near-white surface with a dark icon so it reads as the primary action against the dark canvas.
  • mobile/app/h/[hostId]/index.tsx: removes the old toolbar "+" (phone), renders the FAB when !embedded, and reserves matching bottom padding on the list so the last row stays tappable above the FAB. Embedded sidebars keep their toolbar "+".
  • mobile/src/theme/mobile-theme.ts: adds surfaceBright token for the FAB surface.

Notes

  • Accessibility: button role + "New workspace" label + hitSlop.
  • disabled state wired to connection state.
  • Removed the now-dead newButton style left over from the old toolbar button.

🤖 Generated with Claude Code

Made with Orca 🐋

Co-authored-by: Orca <help@stably.ai>
@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

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: 2e67fe77-8a75-459c-a2c0-f1e0eb0993a5

📥 Commits

Reviewing files that changed from the base of the PR and between b776506 and 4da040b.

📒 Files selected for processing (3)
  • mobile/app/h/[hostId]/index.tsx
  • mobile/src/components/NewWorkspaceFab.tsx
  • mobile/src/theme/mobile-theme.ts

📝 Walkthrough

Walkthrough

A new NewWorkspaceFab component is added as an absolutely positioned floating action button with safe-area bottom inset support, press and disabled visual states, and an exported FAB_SIZE constant of 48. A surfaceBright color token is added to the theme. In the host worktree list screen, the toolbar's dedicated "new workspace" pressable button and its stylesheet entry are removed; instead, NewWorkspaceFab is rendered conditionally for non-embedded (phone) layouts. The SectionList bottom padding is updated to account for FAB_SIZE on phones versus standard spacing on embedded sidebars.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers Summary and Notes, but omits the required Screenshots, Testing, AI Review Report, and Security Audit sections. Add the missing sections with screenshots or 'No visual change', testing status, AI review findings, a security audit, and any platform-specific follow-up notes.
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. 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 matches the main change: replacing the mobile new-workspace button with a floating action button.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

@AmethystLiang
AmethystLiang merged commit a8e6a91 into main Jun 29, 2026
3 checks passed
@AmethystLiang
AmethystLiang deleted the use-floating-button-for-mobile-new-worktree branch June 29, 2026 06:57
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Co-authored-by: Orca <help@stably.ai>
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