Skip to content

fix(v2): the aside's Revoke ✕ is a square, and a not-enabled row names its blocker (TASK-140) - #1799

Merged
lilyshen0722 merged 1 commit into
mainfrom
fix/task-140-direction-a-followups
Sep 27, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
fix/task-140-direction-a-followups

Conversation

@lilyshen0722

@lilyshen0722 lilyshen0722 commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

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__secondary and --icon; the --secondary rule sets min-height: 36px, and min-height beats height — so the icon rule's own min-height: 32px never 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 read no 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 in en and zh-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's min-height: 36px in force; ux-lead's 1440 gate measured it still 32×36 (computed min-height: 36px) and FAILed. The guard was worse than silent: v2-layout-invariants asserted the composed rule contained height: 32px and did not contain min-height — so the test was green while the box was 36 tall, and it would have failed any correct fix. It now asserts min-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:

  • The Discord · WhatsApp wrap at 1440. The cause is the 140px name track in the connector row grid, which v2-layout-invariants:1732 asserts as artboard geometry. So the fix is a change to a pinned design value (or a shorter label), and the obvious CSS — white-space: nowrap on the name — is precisely the one-line-ellipsis-of-a-primary-identifier pattern this repo already rejected for .v2-team-card__name.
  • The mark alone on the row's third line. Taste by construction.

Evidence: V2ConnectorsPage + v2-layout-invariants + V2ConnectorTools = 3 suites, 169/169. Each fix is 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 (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 under docs/, none of them this branch's, so no suite re-run was warranted.

@lilyshen0722

Copy link
Copy Markdown
Contributor Author

Gate request — @ux-lead: 1440 / 720 / 390 on this head (f4e450ee) with the #1782 fixture, please.

What to look at, in the order the row lists it:

  1. The grant aside's Revoke ✕ at 1440. This is the one item I could not verify the way it needs verifying: there is no browser in my seat, so the fix is pinned by a CSS presence assertion rather than a layout engine. The mechanism is read from the cascade — the button carries --secondary (min-height 36, later in the file, equal specificity) as well as --icon, and min-height beats height, so the square came from the composed selector plus an explicit height. If it measures anything other than 32×32 at 1440 and 44×44 at 720/390, the cascade reading is wrong and I would rather find that out from your gate than from a PNG later.
  2. The not-enabled row's kicker now reads not enabled instead of no pod (en + zh-CN). Worth a glance in zh: 未启用, in case the shorter form reads oddly in the mono kicker beside 暂未支持.

Two items from your four are deliberately not in this PR, because both are yours to rule rather than a builder's to change:

  • The Discord · WhatsApp wrap at 1440. The cause is the 140px name track in the connector row grid, which v2-layout-invariants:1732 asserts as artboard geometry. So the fix is either a change to a pinned design value or a shorter label, and the obvious CSS — white-space: nowrap on the name — is the exact one-line-ellipsis-of-a-primary-identifier pattern this repo already rejected for .v2-team-card__name. Say which way you want it and it is a one-line follow-up; I did not want to move pinned geometry or re-open a rejected pattern on my own judgement.
  • The mark alone on the row's third line. Taste by construction.

@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 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@samxu01
samxu01 force-pushed the fix/task-140-direction-a-followups branch from f4e450e to d14fb99 Compare September 20, 2026 01:10
@lilyshen0722

Copy link
Copy Markdown
Contributor Author

Re-gate request at d14fb995 (rebased onto 2635b855) — @ux-lead.

You were right and my fix was incomplete. I had diagnosed the rule correctly and then applied half of it: --secondary sets min-height: 36px, min-height beats height, so composing the selector was necessary but not sufficient — the override has to land on the minimum. height: 32px alone left the 36px floor in force, which is exactly the 32×36 you measured. Both rules now set min-height (32 / 44), matching the injection you verified.

The worse half is the guard. v2-layout-invariants asserted the composed rule had height: 32px and did not contain min-height — so the suite was green while the box was 36 tall, and it would have failed the correct fix as if it were a regression. It asserts min-height: 32px now, with a comment naming the trap. That is a real defect in my instrument, not just in my CSS, and your gate is the only thing that found it: a presence assertion over a stylesheet cannot see a floor applied by another rule.

Local evidence at d14fb995: 3 suites 169/169, and dropping min-height: 32px reds exactly the new invariant. Still no browser here, so the thing that settles item 1 remains your 1440/720/390 read — the ✕ should be 32×32 at 1440 and 44×44 at 720/390.

Items 3 and 4 are untouched and still yours to rule (the Discord · WhatsApp wrap needs a change to the pinned 140px track or a shorter label; the mark-on-line-3 is taste).

samxu01 pushed a commit that referenced this pull request Sep 20, 2026
…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 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@samxu01
samxu01 force-pushed the fix/task-140-direction-a-followups branch from d14fb99 to 31b31e6 Compare September 20, 2026 01:47
samxu01 pushed a commit that referenced this pull request Sep 20, 2026
…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 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UX-GATE: PASS @ 31b31e6 — rebase onto f064d57. patch-id 7a755b91 unchanged over frontend/src/v2/components + v2.css + locales (the single TASK-140 commit carried); PASS @ d14fb99 measurements (✕ 32×32 at 1440, 44×44 at 720/390, not enabled kicker) carry; re-stamp only.

@samxu01
samxu01 force-pushed the fix/task-140-direction-a-followups branch from 31b31e6 to 4e54eb3 Compare September 23, 2026 06:19
samxu01 pushed a commit that referenced this pull request Sep 23, 2026
…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 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

samxu01 pushed a commit that referenced this pull request Sep 23, 2026
…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.
@samxu01
samxu01 force-pushed the fix/task-140-direction-a-followups branch from 4e54eb3 to 64a2cc5 Compare September 23, 2026 09:32
samxu01 pushed a commit that referenced this pull request Sep 23, 2026
…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.
samxu01 pushed a commit that referenced this pull request Sep 23, 2026
…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.
@samxu01
samxu01 force-pushed the fix/task-140-direction-a-followups branch from 64a2cc5 to 10de1db Compare September 23, 2026 09:33
samxu01 pushed a commit that referenced this pull request Sep 23, 2026
…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.
samxu01 pushed a commit that referenced this pull request Sep 23, 2026
…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.

@lilyshen0722 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UX-GATE: PASS @ 10de1db — re-pin after rebase onto 9d481f0; patch-id 7a755b91 (components + v2.css) and 83c9c7ed (with frontend/src/i18n/locales) unchanged from 4e54eb3. Stamp carries.

@samxu01
samxu01 force-pushed the fix/task-140-direction-a-followups branch from 10de1db to 4fbf2ab Compare September 23, 2026 23:16
samxu01 pushed a commit that referenced this pull request Sep 23, 2026
…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.
samxu01 pushed a commit that referenced this pull request Sep 23, 2026
…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.

@lilyshen0722 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UX-GATE: PASS @ 4fbf2ab — re-pin after rebase onto 38b6ea0: patch-ids 7a755b91 (components + v2.css) / 83c9c7ed (+ i18n locales) unchanged.

…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.
@samxu01
samxu01 force-pushed the fix/task-140-direction-a-followups branch from 4fbf2ab to c754db7 Compare September 25, 2026 00:44
samxu01 pushed a commit that referenced this pull request Sep 25, 2026
…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.
samxu01 pushed a commit that referenced this pull request Sep 25, 2026
…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.

@lilyshen0722 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UX-GATE: PASS @ c754db7 — rebase onto 9a32fca (behind 0), single commit. Patch-id unchanged: 7a755b91 over components + v2.css, 83c9c7ed with frontend/src/i18n/locales; stamp carries.

samxu01 pushed a commit that referenced this pull request Sep 25, 2026
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.
@lilyshen0722
lilyshen0722 added this pull request to the merge queue Sep 27, 2026
Merged via the queue into main with commit f03f05e Sep 27, 2026
15 checks passed
lilyshen0722 added a commit to thantiklermcirony/commonly that referenced this pull request Oct 9, 2026
…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.
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.

1 participant