Skip to content

feat(settings): Mobile app card backed by /api/mobile-access - #327

Closed
RoyaLemonade wants to merge 3 commits into
ompweb-dev:mainfrom
RoyaLemonade:pr/mobile-access
Closed

RoyaLemonade wants to merge 3 commits into
ompweb-dev:mainfrom
RoyaLemonade:pr/mobile-access

Conversation

@RoyaLemonade

Copy link
Copy Markdown
Contributor

Settings -> System -> Mobile app, backed by a read-only endpoint:

  • GET /api/mobile-access reports the bind address and exposure mode, whether a password is
    configured (never the hash), the candidate addresses to type (Tailscale MagicDNS, 100.64/10, LAN;
    loopback addresses are never offered) and the exact commands to expose the server for each launch
    method (CLI, Windows tray, systemd, launchd).
  • The card is what a phone user actually needs: the address to type and how to make the server
    reachable, without reading the README.

Tests: lib/mobile-access.test.mjs (classifier fixtures use synthetic private ranges).

Context: used by the native Android client's setup docs (separate PR to follow) as the place to look
up the server address.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 726cf0fb-eb62-466b-bf4e-c95c79b00c75
Commits

Reviewing files that changed from the base of the PR and between 1317bf3 and 942acec.

Files selected for processing: 9
  • CHANGELOG.md
  • app/api/mobile-access/route.ts
  • components/SettingsConfig.tsx
  • lib/api-contract.test.mjs
  • lib/i18n/locales/en.json
  • lib/i18n/locales/ja.json
  • lib/i18n/locales/zh-CN.json
  • lib/mobile-access.test.mjs
  • lib/mobile-access.ts
  • Autofix · 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.

@kilo-code-bot

kilo-code-bot Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Code Review Roast 🔥

Verdict: No Issues Found | Recommendation: Merge

Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything.

📊 Overall: Like finding a unicorn in production — I didn't think clean PRs existed anymore, but here we are.

Files Reviewed (9 files)
  • CHANGELOG.md
  • app/api/mobile-access/route.ts
  • components/SettingsConfig.tsx
  • lib/api-contract.test.mjs
  • lib/i18n/locales/en.json
  • lib/i18n/locales/ja.json
  • lib/i18n/locales/zh-CN.json
  • lib/mobile-access.test.mjs
  • lib/mobile-access.ts
Previous Review Summary (commit a0c2a8b)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit a0c2a8b)

Verdict: No Issues Found | Recommendation: Merge

Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything.

📊 Overall: Like finding a unicorn in production — I didn't think clean PRs existed anymore, but here we are.

Files Reviewed (9 files)
  • CHANGELOG.md
  • app/api/mobile-access/route.ts
  • components/SettingsConfig.tsx
  • lib/api-contract.test.mjs
  • lib/i18n/locales/en.json
  • lib/i18n/locales/ja.json
  • lib/i18n/locales/zh-CN.json
  • lib/mobile-access.test.mjs
  • lib/mobile-access.ts

Reviewed by free · Input: 99.4K · Output: 1.5K · Cached: 104.4K

@kahme247 kahme247 added the needs rebase Rebase onto current main; needs re-review label Nov 5, 2026
@kahme247

kahme247 commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

The Bun server/daemon architecture has landed on main, so this PR needs to be rebased and re-reviewed against the new architecture before it can be merged. Please rebase onto current main, resolve the conflicts, and request re-review once CI is green.

@RoyaLemonade

Copy link
Copy Markdown
Contributor Author

Superseded by #412, which carries the same change as a Bun-server PR against current main (this branch was written for the Next.js server and no longer applies).

The new PR keeps the scope of this one, with its own tests and a description of what changed. Closing this in favour of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Rebase onto current main; needs re-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants