Skip to content

fix(desktop): open gateway listen-address overflows its metric tile #1304

Closed

Description

@Astro-Han

Part of #1303 (pilot for the settings pages polish pass).

What happens

On Settings → Open Gateway, the listen-address metric tile's value (http://127.0.0.1:3939) overflows its card and bleeds into the neighboring "waiting for token" tile. See attached screenshot.

Where the fix belongs

Not page-local. The card is MetricCard (apps/desktop/src/renderer/settings/settings-metric-card.tsx), a thin alias over the shared StatTile primitive (packages/ui/src/primitives/stat-tile.tsx). The tile already has min-w-0, but the value text itself neither wraps nor truncates. Fix value containment in StatTile so every consumer (Open Gateway, Usage, Remote Access, …) gets it.

Reproduce / baseline

Open the Product/Settings/Pages → OpenGateway story (npm run storybook). If the mocked data doesn't reproduce the overflow, add the long-value variant to the story first — that variant is the baseline.

Image

Acceptance

  • Value stays inside its tile for long unbroken strings (URL, token).
  • New packages/ui/stories/stat-tile.stories.tsx covers the long-value variant (plus zero/tone/emphasis variants while we're here).
  • A computed-style contract test pins the invariant (value's scrollWidth <= clientWidth, or explicit wrap/truncate style) — apps/desktop/e2e/settings.spec.ts has the pattern.
  • One final-verification screenshot from the live app; confirm other StatTile consumers are not regressed.

Activity

  1. changed the title [-]Settings → Open Gateway: listen-address metric tile overflows its card[/-] [+]fix(desktop): open gateway listen-address overflows its metric tile[/+] on Jul 21, 2026
  2. added a commit that references this issue on Jul 22, 2026
    e8d37a9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions