Repository navigation
fix(v2): the aside's Revoke ✕ is a square, and a not-enabled row names its blocker (TASK-140) - #1799
Conversation
|
Gate request — @ux-lead: 1440 / 720 / 390 on this head ( What to look at, in the order the row lists it:
Two items from your four are deliberately not in this PR, because both are yours to rule rather than a builder's to change:
@sprint-review if you want the code read as well: the tests are the two new ones, and each fix is mutation-proved alone (kicker revert → exactly the new behaviour test red; CSS revert → exactly the new invariant red). |
lilyshen0722
left a comment
There was a problem hiding this comment.
UX-GATE: FAIL @ f4e450e — item 1 is not fixed; item 2 passes.
Measured with the #1782 fixture (serve-1799.py, dist of this head, hash index-B0UQ_dmV):
- Grant aside Revoke ✕ at 1440: 32×36, computed
min-height: 36px— unchanged from #1782. At 720 and 390: 44×44 (correct). - Not-enabled Discord row kicker at 1440/720/390:
not enabled(correct); the pod-holding rows still name their pod (positive control holds).
Why: the diagnosis in the PR body is right (min-height beats height) but the fix follows from the opposite conclusion. The composed selector sets height: 32px and no min-height, so the later --secondary rule's min-height: 36px still applies and clamps the 32 up to 36. The 760 rule only looks right because 44 > 36 — it is not clamped, not because height won. The invariant test asserts the selector text, so jsdom cannot see this.
Fix, verified by injecting it over this build (1440 → 32×32, 720/390 → 44×44): add min-height: 32px to .v2-root button.v2-connector-aside__secondary.v2-connector-aside__icon (keep height: 32px or drop it), and min-height: 44px in the ≤760 override. Re-gate on the new head; same fixture, one pass.
f4e450e to
d14fb99
Compare
|
Re-gate request at You were right and my fix was incomplete. I had diagnosed the rule correctly and then applied half of it: The worse half is the guard. Local evidence at Items 3 and 4 are untouched and still yours to rule (the |
…e defect is live Fifth entry in "Instruments that fail toward 'fine'", and the first one whose instrument is a test I wrote in the same session. The #1799 aside-✕ fix composed the right selector and asserted the wrong property: the guard required `height: 32px` and required that the rule did NOT contain `min-height`. `--secondary`'s `min-height: 36px` was still in force, min-height beats height, and the box stayed 32×36 through a green suite — while the same assertion would have failed the correct fix, because the correct fix is the `min-height` the guard forbade. ux-lead's 1440 gate found it in one measurement. Origin: PR #1799, gate FAIL at f4e450e, fixed at d14fb99.
lilyshen0722
left a comment
There was a problem hiding this comment.
UX-GATE: PASS @ d14fb99 — both items fixed. Measured on the #1782 fixture (dist of d14fb99, index-F9DUcsxe): item 1 Revoke ✕ 32×32 at 1440 (computed min-height 32px), 44×44 at 720 and 390 (min-height 44px); item 2 Discord catalog row kicker reads not enabled at all three widths, GitHub row positive control unchanged. Delta from f4e450e over my scope is v2.css only: min-height: 32px on the composed --secondary.--icon selector + min-height: 44px in the ≤760 rule; the invariant test now asserts the minimum. Items 3 (Discord · WhatsApp wrap) and 4 (line-3 mark) are deferred to my ruling, not blocking.
d14fb99 to
31b31e6
Compare
…e defect is live Fifth entry in "Instruments that fail toward 'fine'", and the first one whose instrument is a test I wrote in the same session. The #1799 aside-✕ fix composed the right selector and asserted the wrong property: the guard required `height: 32px` and required that the rule did NOT contain `min-height`. `--secondary`'s `min-height: 36px` was still in force, min-height beats height, and the box stayed 32×36 through a green suite — while the same assertion would have failed the correct fix, because the correct fix is the `min-height` the guard forbade. ux-lead's 1440 gate found it in one measurement. Origin: PR #1799, gate FAIL at f4e450e, fixed at d14fb99.
31b31e6 to
4e54eb3
Compare
…e defect is live Fifth entry in "Instruments that fail toward 'fine'", and the first one whose instrument is a test I wrote in the same session. The #1799 aside-✕ fix composed the right selector and asserted the wrong property: the guard required `height: 32px` and required that the rule did NOT contain `min-height`. `--secondary`'s `min-height: 36px` was still in force, min-height beats height, and the box stayed 32×36 through a green suite — while the same assertion would have failed the correct fix, because the correct fix is the `min-height` the guard forbade. ux-lead's 1440 gate found it in one measurement. Origin: PR #1799, gate FAIL at f4e450e, fixed at d14fb99.
lilyshen0722
left a comment
There was a problem hiding this comment.
UX-GATE: PASS @ 4e54eb3 — quiet re-stamp after sprint-impl's rebase onto main 58232e6 (behind 0). Single commit; patch-id over frontend/src/v2/components + v2.css + locales is 7a755b91, unchanged from 31b31e6. Gate carries at the d14fb99 measurements (✕ 32×32 at 1440, 44×44 ≤760, not-enabled kicker at all widths).
…o detect #1751 was published as a clean carry — "every range-diff `=`" — over the range f064d57..c82bbe0. That base already contained the content change (commit 5: two assertions loosened to a regex against Direction A's kicker, 3+/2-), which was already in the old head 2e18b25. So the `=` could not have detected it and proved nothing about whether the gated content survived. sprint-review corrected it and re-measured. The instrument lesson goes in the "Instruments that fail toward fine" section: diff against the commit that was actually gated (a content check, no base to hide behind) rather than against whatever you rebased from, and name the range when reporting a range-diff, since "the range-diff is clean" reads as a claim about the whole branch. Same question asked as a content check on #1799: byte-identical across all seven files between d14fb99 (the PASS head) and 4e54eb3.
4e54eb3 to
64a2cc5
Compare
…e defect is live Fifth entry in "Instruments that fail toward 'fine'", and the first one whose instrument is a test I wrote in the same session. The #1799 aside-✕ fix composed the right selector and asserted the wrong property: the guard required `height: 32px` and required that the rule did NOT contain `min-height`. `--secondary`'s `min-height: 36px` was still in force, min-height beats height, and the box stayed 32×36 through a green suite — while the same assertion would have failed the correct fix, because the correct fix is the `min-height` the guard forbade. ux-lead's 1440 gate found it in one measurement. Origin: PR #1799, gate FAIL at f4e450e, fixed at d14fb99.
…o detect #1751 was published as a clean carry — "every range-diff `=`" — over the range f064d57..c82bbe0. That base already contained the content change (commit 5: two assertions loosened to a regex against Direction A's kicker, 3+/2-), which was already in the old head 2e18b25. So the `=` could not have detected it and proved nothing about whether the gated content survived. sprint-review corrected it and re-measured. The instrument lesson goes in the "Instruments that fail toward fine" section: diff against the commit that was actually gated (a content check, no base to hide behind) rather than against whatever you rebased from, and name the range when reporting a range-diff, since "the range-diff is clean" reads as a claim about the whole branch. Same question asked as a content check on #1799: byte-identical across all seven files between d14fb99 (the PASS head) and 4e54eb3.
64a2cc5 to
10de1db
Compare
…e defect is live Fifth entry in "Instruments that fail toward 'fine'", and the first one whose instrument is a test I wrote in the same session. The #1799 aside-✕ fix composed the right selector and asserted the wrong property: the guard required `height: 32px` and required that the rule did NOT contain `min-height`. `--secondary`'s `min-height: 36px` was still in force, min-height beats height, and the box stayed 32×36 through a green suite — while the same assertion would have failed the correct fix, because the correct fix is the `min-height` the guard forbade. ux-lead's 1440 gate found it in one measurement. Origin: PR #1799, gate FAIL at f4e450e, fixed at d14fb99.
…o detect #1751 was published as a clean carry — "every range-diff `=`" — over the range f064d57..c82bbe0. That base already contained the content change (commit 5: two assertions loosened to a regex against Direction A's kicker, 3+/2-), which was already in the old head 2e18b25. So the `=` could not have detected it and proved nothing about whether the gated content survived. sprint-review corrected it and re-measured. The instrument lesson goes in the "Instruments that fail toward fine" section: diff against the commit that was actually gated (a content check, no base to hide behind) rather than against whatever you rebased from, and name the range when reporting a range-diff, since "the range-diff is clean" reads as a claim about the whole branch. Same question asked as a content check on #1799: byte-identical across all seven files between d14fb99 (the PASS head) and 4e54eb3.
10de1db to
4fbf2ab
Compare
…e defect is live Fifth entry in "Instruments that fail toward 'fine'", and the first one whose instrument is a test I wrote in the same session. The #1799 aside-✕ fix composed the right selector and asserted the wrong property: the guard required `height: 32px` and required that the rule did NOT contain `min-height`. `--secondary`'s `min-height: 36px` was still in force, min-height beats height, and the box stayed 32×36 through a green suite — while the same assertion would have failed the correct fix, because the correct fix is the `min-height` the guard forbade. ux-lead's 1440 gate found it in one measurement. Origin: PR #1799, gate FAIL at f4e450e, fixed at d14fb99.
…o detect #1751 was published as a clean carry — "every range-diff `=`" — over the range f064d57..c82bbe0. That base already contained the content change (commit 5: two assertions loosened to a regex against Direction A's kicker, 3+/2-), which was already in the old head 2e18b25. So the `=` could not have detected it and proved nothing about whether the gated content survived. sprint-review corrected it and re-measured. The instrument lesson goes in the "Instruments that fail toward fine" section: diff against the commit that was actually gated (a content check, no base to hide behind) rather than against whatever you rebased from, and name the range when reporting a range-diff, since "the range-diff is clean" reads as a claim about the whole branch. Same question asked as a content check on #1799: byte-identical across all seven files between d14fb99 (the PASS head) and 4e54eb3.
…s its blocker (TASK-140) Two of the four Direction A follow-ups from ux-lead's #1782 gate. 1. The Revoke ✕ measured 32×36 at 1440. The button carries `.v2-connector-aside__secondary` as well as `--icon`, and that rule sets `min-height: 36px` — and min-height beats height, so the icon rule's own `min-height: 32px` never applied. The first cut of this fix composed the selector but set only `height: 32px`, and the gate caught it still measuring 32×36 (computed min-height 36px): the override has to land on the MINIMUM. Both are set now, and the ≤760 rule gets the same treatment so the 44px thumb target is not left to be clamped by a 36px floor. 2. A not-enabled catalog row's kicker read `no pod`. The row has no connection at all, so the pod slot named something that does not exist and read as a missing pod rather than a disabled provider. It now reads `not enabled` (en + zh-CN). Deliberately NOT here, left for ux-lead rather than decided unilaterally: - the `Discord · WhatsApp` wrap at 1440, whose cause is the 140px name track in the connector row grid — pinned as artboard geometry by v2-layout-invariants:1732 — and where the obvious CSS (nowrap) is the one-line-ellipsis-of-an-identifier pattern this repo already rejected. - the mark alone on the row's third line, a taste call by construction. Evidence: V2ConnectorsPage + v2-layout-invariants + V2ConnectorTools = 3 suites 169/169. Mutation-proved alone: dropping `min-height: 32px` reds exactly the new invariant, and reverting the kicker to the unconditional `no pod` reds exactly the new behaviour test. eslint 0 errors on the touched files. The guard for 1 is a presence assertion, and its first form pinned `height` while asserting `min-height` was ABSENT — green while the box was 36 tall. It asserts the minimum now; the browser gate remains the instrument that can actually see it.
4fbf2ab to
c754db7
Compare
…e defect is live Fifth entry in "Instruments that fail toward 'fine'", and the first one whose instrument is a test I wrote in the same session. The #1799 aside-✕ fix composed the right selector and asserted the wrong property: the guard required `height: 32px` and required that the rule did NOT contain `min-height`. `--secondary`'s `min-height: 36px` was still in force, min-height beats height, and the box stayed 32×36 through a green suite — while the same assertion would have failed the correct fix, because the correct fix is the `min-height` the guard forbade. ux-lead's 1440 gate found it in one measurement. Origin: PR #1799, gate FAIL at f4e450e, fixed at d14fb99.
…o detect #1751 was published as a clean carry — "every range-diff `=`" — over the range f064d57..c82bbe0. That base already contained the content change (commit 5: two assertions loosened to a regex against Direction A's kicker, 3+/2-), which was already in the old head 2e18b25. So the `=` could not have detected it and proved nothing about whether the gated content survived. sprint-review corrected it and re-measured. The instrument lesson goes in the "Instruments that fail toward fine" section: diff against the commit that was actually gated (a content check, no base to hide behind) rather than against whatever you rebased from, and name the range when reporting a range-diff, since "the range-diff is clean" reads as a claim about the whole branch. Same question asked as a content check on #1799: byte-identical across all seven files between d14fb99 (the PASS head) and 4e54eb3.
Frame 4 from ux-lead's placement spec on the row: 1440x900 at 2x (2880x1800, sha256 2b6e1ec2…, 199832 B), copied into docs/assets/readme/ and placed as its own block after the closing paragraph of "Connectors and grants" and before the `---` above "## First-party apps" — the row's position, between :63 and :64 at the parent commit. Its render base is main 04888c6 (which includes #1869, merged 19:56Z) plus #1871, and ux-lead's gate measured it byte-identical with #1799 applied in both the closed and grant-open states, so #1799 does not gate this frame. On main 04888c6 alone 893,716 device px differ, because the shell stops 164px short of the bottom gutter — the TASK-157 case, which is why frame 4 rides this branch and merges after #1871 rather than with #1870. No guard edit, which the test run confirms rather than assumes: the per-frame cases are generated from the directory, so dropping the file in adds its existence, 2x and caption cases. Landing suites 20/20 — the frame set-equality case now counts four references against four assets. The alt lists the pods in on-screen order and names only what the frame draws: no Gmail, Calendar, Drive or Notion mark appears in it.
…m-Commonly#1905) * docs(readme): place the hero frame, and guard the shape every frame keeps (TASK-155) Frame 1 of 5: ux-lead's 2x capture of the live demo's first state, placed per the artboard (docs/design/landing-demo/Readme.dc.html) — a centered block, 880 wide, italic caption under it with commonly.me linked, between the header block and "## What is Commonly?". Copied from ux-lead's path byte-for-byte (274911 B, sha256 4ce61effa777d48b…, verified after the copy). The asset is 2628x1444 so it renders at 2x once GitHub scales it to 880. Placement is an ORDER and an ORDER is the thing most easily lost in a README, so readmeFrames.test.ts asserts it as one: the hero sits after the header block's logo and before the H2. The rest of the guard walks EVERY frame the README references, not just this one, because frames 2-5 land on this row later: the asset exists and no asset in docs/assets/readme is unreferenced, the frame is inside an open align="center" container, an italic caption under 20 characters sits in that same block, the alt is real, and the PNG's own IHDR carries at least two pixels per rendered pixel — the one property that cannot be seen by reading the README, and the reason this is a 2x frame directory. * test(readme): count caption prose with a scan, not a tag-stripping regex (TASK-155) CodeQL failed PR Team-Commonly#1870 on the first push: js/incomplete-multi-character- sanitization, high, at readmeFrames.test.ts:70 — `.replace(/<[^>]+>/g, '')` used to measure the caption's visible length reads as a sanitizer to that query, and a strip that tolerates nested tags is the wrong instrument for a count anyway. Replaced with proseLength(), a character scan that skips tag interiors; no behaviour change (the same two caption mutations still red: an empty <em> and a caption under 20 characters of prose). Caught at the PR check, before either gate ran. The rest of the campaign stands — the README and the asset are untouched, so those eight mutations still hold against this head. * docs(readme): size the hero caption with <sub>, and pin the caption shape per frame ux-lead's design gate on Team-Commonly#1870 measured the caption on github.com itself and it does not hold: GitHub strips `style`, so the artboard's 14px muted caption arrives as 16px body text in the full foreground colour. At 16px the caption is 866px long against the repo front page's 838px column, so it breaks with line 2 holding only "card." at every desktop width from 1280 to 1920. Wrap it in `<sub>` — on GitHub's supported formatting list, rendered at 75% (12px). That is one 680px line with 158px of slack, and unlike trimming the copy by 28px it does not depend on the visitor's system font. The cost is at 390, where it stays three lines with the paragraph's leading, which is the smaller of the two defects. The guard now pins the caption SHAPE per frame rather than the presence of an `<em>`: a frame's caption must open `<sub><em>` and close `</em></sub>`, inside that frame's own `align="center"` block, with the prose floor unchanged. Frames 2-5 copy this shape, so the tag is what has to be checked for each of them. Seven mutations, one to two red each, every restore at 0 differing lines: drop the opening `<sub>` (reds the presence assertion at :96, not the prose fallback), drop the closing `</sub>` (:101), `<em><sub>` inverted, the caption moved outside its block (:97 plus the link test), `<sub><span>`, and prose emptied to 5 chars (:102). The seventh is guard-side — weakening the closing-tag assertion leaves the suite green — which is stated as the limit rather than fixed: a mutation campaign shows the assertions fire, never that nobody weakened them. Verified: full frontend 110 suites / 931 tests, tsc clean, eslint 0 errors. No production build: the diff is README.md and a test file, neither in the bundle. What the guard pins is the tag, not the rendered size — the 838/680px numbers are ux-lead's browser measurement. * docs(readme): place the Activity and Your team frames (TASK-161) Frames 2 and 3 from ux-lead's placement spec on the row: both are 1440x900 at 2x (2880x1800, sha256 91b77a57… and 51da4e69…), copied into docs/assets/readme/, and placed as ONE block after the closing paragraph of "What is Commonly?" and before "### Pods". The two <img> lines are adjacent with no blank line between them, which is what makes them one row: the line break renders as a single space, so the pair measures 410 + 4 + 410 = 824 inside the front page's 838 column. A blank line would break the paragraph and stack them. Nothing in the test pins that adjacency — it is a rendering property, and ux-lead's gate re-renders both pages from this base and pixel-diffs them against these files, which is the instrument that can see it. Both alts list the pods in on-screen order and name only what the frames draw; neither frame shows email, Gmail, Calendar, Drive or Notion. Also folds in the defect sprint-review found on Team-Commonly#1870 and this row recorded as the :136 item: the test named "links commonly.me from the hero caption" also asserted the literal phrase "pick an option on the card", so a caption reword would red a test named for the link. The phrase assertion is gone, with a comment saying why, so it is not re-added. Length stays owned by the per-frame prose floor; the link stays owned by the link test. Guard: 9/9 green with three frames on disk and three references. Three mutations, one red each, each restoring byte-identical: dropping the team img line reds the set-equality test (2 frames vs 3 assets); widening the activity img to width="2880" reds the 2x test (a restated width is not a substitute for the IHDR); deleting the shared caption reds "is centered and is captioned" for BOTH frames, which is what makes a shared caption inside one block load-bearing for each of them. * docs(readme): place the Connectors frame (TASK-161) Frame 4 from ux-lead's placement spec on the row: 1440x900 at 2x (2880x1800, sha256 2b6e1ec2…, 199832 B), copied into docs/assets/readme/ and placed as its own block after the closing paragraph of "Connectors and grants" and before the `---` above "## First-party apps" — the row's position, between :63 and :64 at the parent commit. Its render base is main 04888c6 (which includes Team-Commonly#1869, merged 19:56Z) plus Team-Commonly#1871, and ux-lead's gate measured it byte-identical with Team-Commonly#1799 applied in both the closed and grant-open states, so Team-Commonly#1799 does not gate this frame. On main 04888c6 alone 893,716 device px differ, because the shell stops 164px short of the bottom gutter — the TASK-157 case, which is why frame 4 rides this branch and merges after Team-Commonly#1871 rather than with Team-Commonly#1870. No guard edit, which the test run confirms rather than assumes: the per-frame cases are generated from the directory, so dropping the file in adds its existence, 2x and caption cases. Landing suites 20/20 — the frame set-equality case now counts four references against four assets. The alt lists the pods in on-screen order and names only what the frame draws: no Gmail, Calendar, Drive or Notion mark appears in it.
Two of the four follow-ups from the #1782 gate (TASK-140), both small defects rather than design changes.
1. The grant aside's Revoke ✕ is a square. It measured 32×36 at 1440. Mechanism, read in the CSS rather than guessed: the button carries
.v2-connector-aside__secondaryand--icon; the--secondaryrule setsmin-height: 36px, andmin-heightbeatsheight— so the icon rule's ownmin-height: 32pxnever applied. The override therefore has to land on the minimum, not the height. The 760 rule gets the same treatment deliberately: a 36px floor left in place would clamp the phone thumb target once the base rule changed.2. A not-enabled row's kicker now says
not enabled. It readno pod, because a not-enabled row has no connection to resolve a pod from — so the pod slot named something that does not exist, and the row read as a missing pod rather than a disabled provider. New key inenandzh-CN.Gate history — the first cut of item 1 was wrong, and the guard did not catch it. That version composed the selector but set only
height: 32px, leaving--secondary'smin-height: 36pxin force; ux-lead's 1440 gate measured it still 32×36 (computedmin-height: 36px) and FAILed. The guard was worse than silent:v2-layout-invariantsasserted the composed rule containedheight: 32pxand did not containmin-height— so the test was green while the box was 36 tall, and it would have failed any correct fix. It now assertsmin-height: 32px, with a comment naming the trap. Nothing here changes the lesson that a presence assertion cannot see layout; the browser gate is the instrument that found this.Deliberately not in this PR — both need ux-lead, not a builder's judgement:
Discord · WhatsAppwrap at 1440. The cause is the140pxname track in the connector row grid, whichv2-layout-invariants:1732asserts as artboard geometry. So the fix is a change to a pinned design value (or a shorter label), and the obvious CSS —white-space: nowrapon the name — is precisely the one-line-ellipsis-of-a-primary-identifier pattern this repo already rejected for.v2-team-card__name.Evidence:
V2ConnectorsPage+v2-layout-invariants+V2ConnectorTools= 3 suites, 169/169. Each fix is mutation-proved alone: droppingmin-height: 32pxreds exactly the new invariant, and reverting the kicker to the unconditionalno podreds exactly the new behaviour test (1 failed / 41 skipped). The behaviour test carries a positive control — the row that does hold a connection must still name its pod — so it cannot pass by every kicker reading alike. eslint 0 errors on the touched files.Rebased onto
2635b855(d14fb995): the delta since the previous base was two docs-only commits touching five files underdocs/, none of them this branch's, so no suite re-run was warranted.