Skip to content

fix(webui): prevent Scan Now tooltip clipping at right edge - #407

Merged
Dumbris merged 1 commit into
mainfrom
fix/scan-now-tooltip-clipping
Apr 25, 2026
Merged

Dumbris merged 1 commit into
mainfrom
fix/scan-now-tooltip-clipping

Conversation

@Dumbris

@Dumbris Dumbris commented Apr 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds DaisyUI tooltip-left to the Scan Now button so the tooltip extends inward instead of outward
  • Fixes the global overflow-x: hidden on #app and .drawer-content clipping the tooltip when the button sits near the right edge of the viewport
  • Disabled-gate logic and Docker requirement unchanged — presentation-only fix

Test plan

  • npm run build clean (134 modules, 1.71s)
  • Manually verify in browser: full tooltip text visible on disabled Scan Now button (Docker unavailable / no scanners enabled)

🤖 Generated with Claude Code

…pping

The DaisyUI tooltip extends past the viewport and is cut off by the
global `overflow-x: hidden` on `#app` and `.drawer-content`.
`tooltip-left` makes it open inward instead.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 25, 2026 •

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: fix/scan-now-tooltip-clipping

Available Artifacts

  • archive-darwin-amd64 (26 MB)
  • archive-darwin-arm64 (23 MB)
  • archive-linux-amd64 (15 MB)
  • archive-linux-arm64 (13 MB)
  • archive-windows-amd64 (26 MB)
  • archive-windows-arm64 (23 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (19 MB)
  • installer-dmg-darwin-arm64 (17 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 24931402606 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@Dumbris
Dumbris merged commit 907815a into main Apr 25, 2026
24 checks passed
@Dumbris
Dumbris deleted the fix/scan-now-tooltip-clipping branch April 25, 2026 16:23
Dumbris added a commit that referenced this pull request Apr 26, 2026
#420)

The PKG postinstall script ran `open -a /Applications/MCPProxy.app` which
propagated the entire PKInstallSandbox environment (PATH=/bin:/sbin:/usr/bin:
/usr/sbin:/usr/libexec, SHELL=/bin/sh, INSTALLER_*) into the launched tray
and every child process it spawned, including the long-running mcpproxy core.
With no Docker locations on PATH, the core's docker probe failed; sync.Once
then permanently cached that failure for the lifetime of the daemon — so
the Web UI's "Scan Now" button stayed disabled, the security scan CLI
returned "all scanners failed" with "Docker image is not available locally"
even when every image was present, and `docker_status.error` showed `exec:
"docker": executable file not found in $PATH`.

Apple's recommended fix (per launchctl docs and packaging guidelines) is to
launch the app in the user's GUI bootstrap context with a clean env. Both
postinstall scripts now use:

    /bin/launchctl asuser <uid> /usr/bin/env -i \
        HOME=... USER=... LOGNAME=... \
        PATH=/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin \
        /usr/bin/open -a "$APP" --env MCPPROXY_LAUNCHED_BY=installer

This mirrors what users get when they double-click the app from Finder.

Defense-in-depth in shellwrap.ResolveDockerPath:

  - Replace sync.Once with a TTL'd cache. Successful resolutions still
    cache forever; failures cache only 60s so a transient install-time
    failure self-heals instead of poisoning the daemon.
  - Add well-known-paths probe between the exec.LookPath fast path and
    the login-shell slow path. Probes the canonical Docker Desktop bundle
    binary first (always present when Docker Desktop is installed),
    /usr/local/bin/docker, ~/.docker/bin/docker (Docker's documented
    fallback when /usr/local/bin is not writable), Apple Silicon Homebrew,
    OrbStack, snap. Cheap (just os.Stat) and bypasses the fragile
    login-shell dance entirely for the common case.

Web UI: revert the tooltip-left fix from #407 to tooltip-bottom. The Scan
Now button sits on the LEFT of the security tab content (`flex sm:justify-
between`) inside drawer-content with `lg:pl-64`, so tooltip-left pushed
the long tooltip text under the sidebar. Bottom orientation has plenty of
vertical room and is free of horizontal viewport edges.

Tests: TestResolveDockerPath_NegativeTTLRetry covers the self-heal path,
TestResolveDockerPath_WellKnownPathFallback covers the new probe.

Co-authored-by: Claude Code <[email protected]>
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.

2 participants