← Back to Pull requests

Spacing on the scale, and line icons instead of emoji #324

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Oct 28, 2026 20:01 UTC
Author

Two cleanups from a pass against common "vibe-coded" UI tells. Most of them (glows, gradient text, bubbly radii, emoji nav, "!!" copy) were already absent; these two weren't.

Spacing on the scale


DESIGN.md says every gap and padding is on the 4 / 8 / 12 / 16 / 24 / 32 / 48 px scale, but about half the stylesheet values weren't. 547 gap / padding / margin values across 18 stylesheets now snap to the nearest step (ties round up): mostly 10→12, 6→8, 14→16, 20→24, 18→16, 28→32.

Left alone: 1–3 px hairlines, layout sizes above 48 px in steps of 8, negative margins and calc() values.

scripts/check-spacing.cjs fails on any off-scale value so it stays this way (listed in the README; DESIGN.md's spacing rule points to it).

Line icons instead of emoji


DESIGN.md already bans emoji and Unicode glyphs as icons. These broke the rule and now use SVGs from components/shell/Icons.tsx:
  • Beacon like ♡/♥ → HeartIcon, comments 💬 → MessageIcon

  • Chat quick-mod 🗑 ⏱ ⛔ → new TrashIcon, ClockIcon, BanIcon (.chat-quick now inherits text color and centers its icon)

  • Go-live alert toggle 🔔/🔕 → BellIcon / MutedIcon

  • Profile song ♪ → new MusicIcon

  • The ✨ before Skill names in chat is dropped (the badge already names the Skill)
  • BoardEffects emoji (🎉 👑 and the rest) are viewer-triggered effects, not interface icons, and stay.

    Checks


  • pnpm typecheck and pnpm build pass; pnpm lint has 0 errors (the 15 warnings are already on main).

  • node scripts/check-spacing.cjs passes.

  • Not seen in place: the new icons on Beacons (none posted yet), the chat moderation buttons (need a moderator) and the alert toggle (need a signed-in user). The icons were rendered on their own instead (last image).
  • Screenshots (1440 px and 390 px)


    Left: live sver.tv. Right: this branch (dev server reading sver.tv's public API, signed out). Headless Chrome. Some differences come from main being ahead of what's deployed. Layouts hold everywhere; spacing is slightly roomier and more even.

    This changes spacing values everywhere, not one page's layout, so it isn't paired with each mockup in docs/design/mockups. The deliberate difference from the mockups is the snapped spacing itself. The Home hero headline overflowing at 390 px happens on live too.

    home

    !home 1440
    !home 390

    browse

    !browse 1440
    !browse 390

    sverplays

    !sverplays 1440
    !sverplays 390

    supporters

    !supporters 1440
    !supporters 390

    about

    !about 1440
    !about 390

    login

    !login 1440
    !login 390

    guilds

    !guilds 1440
    !guilds 390

    New icons

    !icons

    <!-- CURSOR_SUMMARY -->
    ---

    [!NOTE]

    Low Risk

    CSS and presentational React only—no API, auth, or data paths. Broad stylesheet touch could cause minor layout regressions worth a quick visual pass.

    > Overview

    Aligns the web UI with DESIGN.md in two ways: a repo-wide spacing pass and swapping emoji/Unicode glyphs for shared SVG icons.

    > Spacing — Hundreds of margin, padding, and gap values in globals.css and feature stylesheets (home, discovery, profiles, beacons, teams, etc.) are rounded to the 4 / 8 / 12 / 16 / 24 / 32 / 48 px scale (typical bumps like 10→12, 14→16, 20→24). Hairlines and large layout sizes are unchanged. README now lists node scripts/check-spacing.cjs alongside the other local checks so off-scale values fail in CI/dev.

    > Icons — Icons.tsx gains TrashIcon, ClockIcon, BanIcon, and MusicIcon, plus a filled option on HeartIcon. BeaconFeed uses heart/message SVGs for like and comments; Chat uses trash/clock/ban for quick-mod actions and drops the sparkle prefix on skill badges; Notifications uses bell/muted for go-live alert toggles; PersonaPreview uses MusicIcon for profile songs. profiles.css tweaks .chat-quick so mod buttons center the new icons and inherit color.

    > Visual-only change: layouts stay the same but read slightly roomier; interactive affordances match the rest of the chrome icon set.

    > <sup>Reviewed by Cursor Bugbot for commit 00a4be3ba76c8cace16a176c34745813ca0476e5. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

    <!-- /CURSOR_SUMMARY -->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: claude[bot] Review duration: 8m
    All Vouch review confidence checks passed
    Residual risk 0.36 = Change Risk (0.52) × (1 − Review Confidence (0.30)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 51% · Reviewer familiarity: 35%
    30%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #324"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 30.1% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 30.1% · Lower = rushed or shallow review
    30.1%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 36.4% · Moderate risk
    36.4%