fix(users): readable MQTT permissions hint banner (Catppuccin vars)#3109
Conversation
The hint banner under the MQTT-scope permissions grid used `var(--bg-soft)` and `var(--accent)` — variables that aren't defined in the MeshMonitor theme. Both fell back to the literal hex defaults (`#f5f5f5` background, `#2563eb` border), and no `color` was set, so the text inherited whatever the surrounding panel used — invisible light-blue-on-white in light mode and wrong contrast in dark mode. Switch to the project's Catppuccin variables (`--ctp-surface0`, `--ctp-text`, `--ctp-blue`) and set an explicit `color` so the hint is readable in both themes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Claude finished @Yeraze's task —— View job PR Review: MQTT permissions hint banner readability fixTodo List:
Review Feedback✅ Excellent Fix - Addresses Core Issue Well This is a solid, focused fix that addresses the exact problem described. The changes correctly replace undefined CSS variables with proper Catppuccin theme variables. Code Quality & Best Practices ⭐Strengths:
CSS Variable Usage:
Theme Compatibility ✅Verified against all 4 Catppuccin themes in App.css:
All combinations provide excellent readability and proper contrast. Performance & Security ✅
Minor Suggestions
Test Coverage
|
* chore(release): bump version to 4.6.3 Five user-visible files bumped per the CLAUDE.md version recipe: package.json, package-lock.json (regenerated), helm/meshmonitor/Chart.yaml, desktop/src-tauri/tauri.conf.json, desktop/package.json. CLAUDE.md banner line bumped to match. CHANGELOG entry covers the five PRs since 4.6.2-1: - #3105 unified tapback metadata fix - #3106 docs: drop worktree restriction - #3107 meshcore contact advType persistence - #3108 MQTT channel permissions via channel_database - #3109 hint banner Catppuccin restyle - #3110 node.channel ingest + traceroute/neighbor channel gate Companion blog post (docs/blog/2026-05-20-v4.6.3-permissions.md) walks operators through the new Virtual Channel Permissions flow, the map-visibility behavior change, and the floating-lines fix. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(release): regenerate desktop/package-lock.json for 4.6.3 The desktop sub-project carries its own lockfile and the bump to 4.6.3 left it pinned to 4.6.1. The Windows Desktop CI job runs `npm install` without `--legacy-peer-deps` and fails on the package.json / package-lock.json version mismatch. Regenerate to match. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Summary
The MQTT-scope hint banner under the permissions grid (added in #3108) used
var(--bg-soft)andvar(--accent)— variables that aren't defined in MeshMonitor's Catppuccin theme. Both fell back to their hex defaults (#f5f5f5bg,#2563ebborder), and nocolorwas set, so the text inherited the surrounding panel's color. Result: light-blue-on-white, unreadable in light mode; wrong contrast in dark mode.Fix: switch to the project's Catppuccin vars (
--ctp-surface0bg,--ctp-textcolor,--ctp-blueborder) and add an explicitcolorso the hint reads correctly in both themes.Test plan
🤖 Generated with Claude Code