← Back to Pull requests

#1611 Settings: Store details boxes line up when only one field of a row has a hint #1711

Merged
mamataingole merged 2 files (37 lines) on Nov 24, 2026 13:14 UTC
View on GitHub
mamataingole mamataingole commented on Nov 24, 2026 13:05 UTC
Author

Closes #1611

What was wrong


On Settings › Store details, a field without a hint line had its box right under its label, higher than its neighbour's: Contact email / Phone, and State / Country.

The fix


CSS only. In the two Store details grids (the two-column one and the three-column Time zone row), each field takes four rows of the grid (label, hint, box, message) through subgrid. The fields of a grid row share those rows, so their boxes line up whether or not a hint is there, however a hint wraps, and while a validation message shows under Name or the next order number. A row's spacing is the same as before when no message shows.

  • settings.css: new .df-set-grid--aligned rules.

  • StoreInfoTab.tsx: the class on the two grids.
  • Scoped to these grids because .df-set-field is shared by the other Settings tabs, which are not in this card.

    Checks


  • Rendered in headless Chrome with a page that uses the real settings.css and phone.css and the Store details markup. Compared with dev's CSS:

  • - Before: Contact email's box is 18px lower than Phone's, and Country's lower than State's.
    - After: every box in a row has the same top and bottom, at desktop width, at phone width (one column), and with both validation messages showing.
    - With no message showing, every box and the grid's height sit at the same pixel positions as on dev, except the two rows that were misaligned. At phone width the whole layout is identical.
  • Not run in the real portal, so the real fonts, the real translated hint text and the Markets/other tabs' own rows are not checked.

  • @dripfunnel/store build, typecheck, lint pass; tests: 1,360 pass, 4 files failed to start a worker under load (editor, studio, customers, imports) and pass on their own (304 tests). The second commit changes only CSS.
  • 🤖 Generated with Claude Code

    Diff: 37 lines (+35 / -2) across 2 files Reviewer: mamataingole Review duration: 8m
    All Vouch review confidence checks passed
    Residual risk 0.10 = Change Risk (0.50) × (1 − Review Confidence (0.79)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 37 lines diff across 2 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.95 · 4 substantive comment(s)
    0.95
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    79%
    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.218
    Self Review self_review
    0.140
    Rapid Merge rapid_merge
    0.100
    Real PR Conversation Timeline
    5 items
    github-actions[bot] github-actions[bot] commented on code on Nov 24, 2026 13:06 UTC
    Code Review
    apps/ui/store/src/features/settings/settings.css:1
    @@ -68,6 +68,12 @@
       grid-column: 1 / -1;
     }
     
    +/* Boxes sit at the bottom of their field, so a row lines up whether or not each field has a hint (#1611). */
    +.df-set-grid--aligned > .df-set-field > :is(input, select, .df-set-pair, .df-phone) {

    This rule introduces a regression in a designed state: Name and Legal name both have hints and lined up before. When the Name validation message (.df-set-problem) renders, that field becomes taller than Legal name. Legal name's box then drops to the bottom of the taller row, so it no longer lines up with Name's box. The PR description admits this and leaves it unfixed. Please fix it rather than ship it: put the control and its message in one bottom-aligned wrapper, or reserve the message row, or align with subgrid (grid-template-rows: subgrid with each field spanning rows). Then show it in the error state.

    github-actions[bot] github-actions[bot] commented on Nov 24, 2026 13:06 UTC
    Bot

    Read both pieces (StoreInfoTab.tsx, settings.css), AGENTS.md and WORKFLOW.md §7. Ran no tests. The change is CSS and a class name only, so there is no tenancy, authorisation, secrets or layer impact. One change requested, inline on settings.css:72: the new bottom-alignment misaligns Name and Legal name whenever the Name validation message shows. They lined up before, so this is a regression. The description says the row alignment was not checked in a browser, and the error state is not covered at all.

    mamataingole mamataingole commented on code on Nov 24, 2026 13:11 UTC
    Code Review
    apps/ui/store/src/features/settings/settings.css:1
    @@ -68,6 +68,12 @@
       grid-column: 1 / -1;
     }
     
    +/* Boxes sit at the bottom of their field, so a row lines up whether or not each field has a hint (#1611). */
    +.df-set-grid--aligned > .df-set-field > :is(input, select, .df-set-pair, .df-phone) {

    Fixed in 3099c6f01. The boxes are no longer pushed to the bottom: each field takes four grid rows (label, hint, box, message) through subgrid, shared by the fields of a row. I rendered the Store details markup with the real CSS in headless Chrome: with Name's message and the next-order message showing, Name and Legal name have the same top and bottom (102-146), and so do every other row, at desktop and phone width. With no message, positions match dev's.

    github-actions[bot] github-actions[bot] commented on Nov 24, 2026 13:12 UTC
    Bot

    Nothing to change. Read both files (CSS-only fix plus two class additions); checked that every selector in the new rules (label, .df-set-label, .df-set-help, input, select, .df-set-pair, .df-phone, .df-set-problem) matches the real markup in StoreInfoTab.tsx and PhoneInput.tsx, and that the change is scoped to the two Store details grids. No tenancy, authorisation, data, layer or text changes. Ran no tests and did not render it.

    Reviewers
    Assignees
    mamataingole mamataingole
    Labels
    risk: low confidence: 79.3% 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: 50.2% (MEDIUM) · Higher = larger blast radius
    50.2%
    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: 79.3% · Lower = rushed or shallow review
    79.3%
    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: 10.4% · Safe to merge
    10.4%