Repository navigation
Color menubar status dots by domain state - #31
Merged
Merged
Conversation
- Render menu dots as attributed titles: lime for ok/on, red for error, secondary label for off/down - Shrink dots to 50% of menu font and center them on the text baseline - Show filled dot plus ", error" suffix for domains in the error state
- Darken the lime status dot in Light Mode to hold contrast against bright menus - Append "(error)" to service titles so a failing dnsmasq or Caddy is visible without the tooltip - Route service rows and domain dots through one loop and a shared effectiveStatus helper
- Service rows use a custom view so a click flips the service and keeps the menu open - Status dot and tooltip update optimistically, then reconcile with a fresh refresh - Discard ls snapshots that started before a pending toggle so the dot never reverts
- reuse existing menu rows so toggling a service updates its dot without rebuilding the menu - roll the row back to its previous state when `lodo service` fails - track pending mutations per service instead of a single counter - expose service rows as menuItem accessibility elements - keep hover tracking active during menu drag and widen rows for longer titles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
statusDotScale) and center it vertically with a baseline offset.ok/on,.systemRedforerror,.secondaryLabelColorfordown/off.makeStatusMenuTitleto apply the dot styling throughattributedTitleon both the Services items and every domain row, leaving label text unstyled so it keeps the nativeNSMenucolor and hover inversion.formatLsDomainRowandformatServiceTitle:●for ok/on/error,○otherwise; error domains now show, errorin the parenthetical instead of a!badge.offhandling by deriving aneffectiveStatusfromenabledbefore building the row text.Testing
cargo fmt --all -- --checkcargo clippy --all-targets --locked -- -D warningscargo test --locked— 136 unit tests passed, includingmenubar::tests::swift_self_tests; 2 hermetic E2E tests passed; destructivee2e_systemtest remains#[ignore].lodo-menubarbinary takes precedence over a locally compiledmenubar.swift, so the new dot rendering needs abrew unlink lodorun or a directswiftcbuild to look at on screen.