Skip to content

fix: center Settings rows, refresh added peripherals, and surface release errors - #46

Merged
MegaManSec merged 1 commit into
mainfrom
fix/settings-row-polish
Jun 7, 2026
Merged

fix: center Settings rows, refresh added peripherals, and surface release errors#46
MegaManSec merged 1 commit into
mainfrom
fix/settings-row-polish

Conversation

@MegaManSec

Copy link
Copy Markdown
Owner

Summary

UI polish for the Settings Peripheral and Device tabs (plus one related store fix).

  • Vertical centering. Dropped the nested List inside the Form sections so the Form lays out the rows directly and keeps their content vertically centered — Registered/Available Peripherals and Connected/Available Devices. The nested List gave short rows a taller default height, which top-aligned their content (the "JJJJ… sits high in the pill" issue).
  • Live state on add. A peripheral added from Available Peripherals now resolves its actual connection state (and registers its disconnect observer) immediately, instead of reading as disconnected until the tab is reopened.
  • "Disconnect" → "Release". Renamed the connected-state button; tooltip unchanged.
  • Inline error in the Peripheral tab. The per-peripheral operation error (e.g. "Other Mac unreachable.") now shows inline under the row, mirroring the menu-bar dropdown. The store already auto-fades it after 5s, so there's no new state to manage.

Notes

  • No wire-protocol, pairing, or networking changes.
  • swift format-clean; builds with CODE_SIGNING_ALLOWED=NO.

Testing

Built and run locally (Debug). Verified in the running app: rows are centered in all four sections; adding an already-connected peripheral immediately shows Release; a failing Release/Connect surfaces the inline error for ~5s and then clears.

…ease errors

- Drop the nested List inside the Form sections so the Form lays out the rows
  and keeps their content vertically centered (Registered/Available
  Peripherals, Connected/Available Devices). The nested List gave short rows a
  taller default height, which top-aligned their content.
- Resolve a newly added peripheral's live connection state (and register its
  disconnect observer) immediately, instead of showing it as disconnected until
  the tab is reopened.
- Rename the connected-state peripheral button from "Disconnect" to "Release".
- Surface the per-peripheral operation error inline in the Settings Peripheral
  tab, mirroring the menu-bar dropdown. The store already auto-fades it after
  5s, so there's no extra state to manage.
@MegaManSec
MegaManSec merged commit 1e2c55c into main Jun 7, 2026
2 checks passed
@MegaManSec
MegaManSec deleted the fix/settings-row-polish branch June 7, 2026 22:04
@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.14.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant