Skip to content

mobile-connection-badges-layout -> Primary - #974

Merged
arul28 merged 3 commits into
mainfrom
ade/ok-couple-issues-fix-mobile-242318d0
Jul 31, 2026
Merged

mobile-connection-badges-layout -> Primary#974
arul28 merged 3 commits into
mainfrom
ade/ok-couple-issues-fix-mobile-242318d0

Conversation

@arul28

@arul28 arul28 commented Jul 31, 2026

Copy link
Copy Markdown
Owner

ADE   Open in ADE  ·  ade/ok-couple-issues-fix-mobile-242318d0 branch  ·  PR #974

Summary by CodeRabbit

  • UI Improvements
    • Simplified Account and Settings section headers by removing sign-in and connection hints.
    • Updated connection status headers with clearer vertical layout and improved transport badge placement.
    • Simplified machine connection labels for a cleaner display.
    • Redesigned machine rows to support renaming through a context menu.
  • Bug Fixes
    • Prevented attempts to reconnect to the machine that is already active.
    • Preserved safeguards against starting multiple connection attempts simultaneously.

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
ade Ignored Ignored Preview Jul 31, 2026 1:30am

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@arul28, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 36 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 750ee30d-1d1e-464a-9e9b-0e42ca63f86c

📥 Commits

Reviewing files that changed from the base of the PR and between 62a361b and de5afa1.

📒 Files selected for processing (5)
  • apps/ios/ADE/Views/Hub/HubComponents.swift
  • apps/ios/ADE/Views/Settings/ConnectionSettingsView.swift
  • apps/ios/ADE/Views/Settings/SettingsDiagnosticsSection.swift
  • apps/ios/ADE/Views/Settings/SettingsPairingSection.swift
  • apps/ios/ADE/Views/Settings/SettingsPushDeliverySection.swift
📝 Walkthrough

Walkthrough

The iOS connection UI removes explanatory section hints, simplifies connection-pill content, stacks connection status details vertically, adds context-menu renaming for machine rows, and prevents reconnecting to the already-current entry.

Changes

iOS connection UI

Layer / File(s) Summary
Connection settings interactions
apps/ios/ADE/Views/Settings/ConnectionSettingsView.swift, apps/ios/ADE/Views/Account/AccountConnectionsSection.swift
Section hints are removed, machine rows use context-menu rename actions, and connection requests ignore the already-current entry.
Connection status presentation
apps/ios/ADE/Views/Settings/SettingsConnectionHeader.swift
Status, detail text, and transport badge are displayed in a tighter vertical stack.
Connection pill content
apps/ios/ADE/Views/Hub/HubComponents.swift
Accessibility and visible pill content omit the transport route; the padding expression still references transportLabel.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

  • arul28/ADE#254: Also modifies SettingsConnectionHeader.swift and iOS connection-status presentation.
  • arul28/ADE#710: Earlier iOS connection-settings and status-presentation changes.
  • arul28/ADE#854: Also updates ConnectionSettingsView connection UI and actions.

Suggested labels: ios

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title identifies the main focus on mobile connection badge layouts, though the trailing “-> Primary” is unnecessary.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ade/ok-couple-issues-fix-mobile-242318d0

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.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/ios/ADE/Views/Hub/HubComponents.swift (1)

157-167: 🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win

Remove the stale transportLabel reference.

transportLabel was removed from HubConnectionPill, but Line 167 still uses it to calculate padding. This is a compile error. Replace it with fixed single-line padding or restore a valid property if dynamic padding is still required.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/ios/ADE/Views/Hub/HubComponents.swift` around lines 157 - 167, Remove
the stale transportLabel reference from HubConnectionPill’s vertical padding
calculation. Replace the conditional padding with fixed single-line padding, or
use an existing valid property only if dynamic padding remains required,
ensuring the view compiles.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/ios/ADE/Views/Settings/ConnectionSettingsView.swift`:
- Around line 885-911: Update the connection row Button around MachineRowView so
its enabled state matches tappable, preventing activation when the entry is
current or another connection is in progress. Preserve the existing visual
opacity and ensure the rename context menu remains available for non-connectable
rows.

---

Outside diff comments:
In `@apps/ios/ADE/Views/Hub/HubComponents.swift`:
- Around line 157-167: Remove the stale transportLabel reference from
HubConnectionPill’s vertical padding calculation. Replace the conditional
padding with fixed single-line padding, or use an existing valid property only
if dynamic padding remains required, ensuring the view compiles.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: a11d53a5-4289-40e7-baf4-4207bae72f8a

📥 Commits

Reviewing files that changed from the base of the PR and between 529925d and 62a361b.

📒 Files selected for processing (4)
  • apps/ios/ADE/Views/Account/AccountConnectionsSection.swift
  • apps/ios/ADE/Views/Hub/HubComponents.swift
  • apps/ios/ADE/Views/Settings/ConnectionSettingsView.swift
  • apps/ios/ADE/Views/Settings/SettingsConnectionHeader.swift

Comment thread apps/ios/ADE/Views/Settings/ConnectionSettingsView.swift Outdated
@arul28

arul28 commented Jul 31, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@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: bf72d13a57

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +107 to +110
SettingsNavigationRow(
title: "Connection details",
subtitle: "Route and connection performance",
systemImage: "point.3.connected.trianglepath.dotted"

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 connection details until content is available

On a fresh install or before the first successful connection, both connectionRoute and connectionPerformance are nil, but this navigation row remains visible. Opening it produces an entirely empty page because .connection suppresses the About section and the connection section renders only when either value exists; hide or disable the row, or provide a concrete empty state.

AGENTS.md reference: AGENTS.md:L59-L60

Useful? React with 👍 / 👎.

) {
presentedSheet = .scan
}
DisclosureGroup(isExpanded: $showsAddMachine) {

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 Expand pairing actions in the pairing-only flow

In the no-account onboarding path, MobileAccessGateView presents ConnectionSettingsView(pairingOnly: true) specifically so the user can pair a Mac. Since showsAddMachine defaults to false and the scanner and discovery actions were moved into this disclosure, that sheet now hides every pairing action behind an extra tap; keep the disclosure expanded for the pairing-only context or pass an initial expansion state.

AGENTS.md reference: AGENTS.md:L60-L60

Useful? React with 👍 / 👎.

@arul28

arul28 commented Jul 31, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: de5afa1d22

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@arul28
arul28 merged commit 1bf2621 into main Jul 31, 2026
3 checks passed
@arul28
arul28 deleted the ade/ok-couple-issues-fix-mobile-242318d0 branch July 31, 2026 01:56
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