Skip to content

feat(mobile): adapt shared UI for phones (M1) - #382

Closed
Facilier wants to merge 1 commit into
feat/mobilefrom
feat/mobile-ui
Closed

Facilier wants to merge 1 commit into
feat/mobilefrom
feat/mobile-ui

Conversation

@Facilier

Copy link
Copy Markdown
Collaborator

M1: one native-backed platform module and feature flags adapt the shared React UI for Android/iOS. Host-only Git/worktree/editor/provider/file-drop controls are hidden; mobile startup stays disconnected until S2/S4. The shared sidebar becomes a modal drawer, panels/dialogs become sheets, and the composer uses visible-viewport sizing, safe-area insets and 44px touch controls. Desktop still renders the same components. M0 is #381; both target feat/mobile, never main or feat/desktop-app.

Verified on Windows/Edge headless: tests/render.html?demo at 1280×800 matches the unchanged desktop pixels except the fixture's variable render-time counter. Android and iOS fixture modes at 375×812: no page overflow, drawers open/close, Goal/Changes fill the viewport, visible buttons meet 44×44, Settings fills the viewport, composer remains visible at simulated 375×450 keyboard space. No browser errors. Evidence is in the task worktree's apps/desktop/target/mobile-preview/.

Checks: native cargo fmt --check, cargo clippy --locked --all-targets -- -D warnings, cargo test --locked (31 passed); UI pnpm typecheck, pnpm test (35 passed), pnpm build, pnpm check:version (0.1.8); cargo xtask check --base feat/mobile passed. Existing native dependency warnings and >500 kB bundle warning remain (JS 704.51 kB, gzip 216.36 kB).

Not tested: emulator, physical Android/iOS device, real software keyboards or notch safe areas. M2 native command exclusion/build scaffolding is separate; UI flags are not a native security boundary. No engine/protocol changes are included or needed for M1. Maintainers must merge ADR-0015/S2 and S4 TLS before pairing/remote use; no loopback token or HTTP remote workaround is added.

Open questions for maintainers:

  • Confirm the mobile capability restrictions and visual treatment in the preview?
  • Which physical Android/iOS devices will be used for native keyboard/safe-area qualification?
  • Who will supply the macOS runner and Apple developer account for iOS work?

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-21T20:11:56.317202Z
We couldn’t complete this review. Comment @codex review to try again.
5a0bca5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5a0bca5a5c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +66 to +68
<MenuBar menus={menus.map((menu) => ({
...menu, items: menu.items.filter((item) => item === "separator" || !item.desktopOnly),
}))} />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep mobile menu popups inside the viewport

On the documented 375px phone layout, placing the complete four-menu bar at the right edge causes its popups to extend off-screen. MenuBar still anchors every 248px-wide popup with absolute left-0 at the triggering button (TitleBar.tsx:283), so even the File popup is clipped and the View/Help popups are almost entirely outside the viewport; the page's hidden overflow prevents users from reaching the obscured actions. The mobile rendering needs viewport-aware alignment or a compact overflow menu.

Useful? React with 👍 / 👎.

</Section>}

<Section title="Keyboard shortcuts">
{!platform.mobile && <Section title="Keyboard shortcuts">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Hide or restore the mobile keyboard-shortcuts destination

On mobile, Help → Keyboard shortcuts still opens Settings, but this condition removes the entire Keyboard shortcuts section, so the named command displays unrelated appearance and diagnostics controls instead of its requested content. Either mark that Help item as desktopOnly when constructing the mobile menus or keep an appropriate shortcuts section available.

Useful? React with 👍 / 👎.

@lg2m
lg2m marked this pull request as draft October 21, 2026 03:05
@Facilier
Facilier marked this pull request as ready for review October 21, 2026 20:11
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@Facilier
Facilier deleted the branch feat/mobile November 3, 2026 17:56
@Facilier Facilier closed this Nov 3, 2026
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