Repository navigation
feat(v2): align Connectors with the Signal artboard - #1547
Merged
Merged
Conversation
lilyshen0722
marked this pull request as ready for review
September 4, 2026 21:47
Contributor
Author
|
Before/after beside the artboard: https://claude.ai/code/artifact/6e55ebfb-9e88-4844-a3ae-278d3027c89f (Connectors section). Two layout deltas at 1440 (meta wrapping into the date column; content card not filling the frame) and the committed |
samxu01
force-pushed
the
feat/connectors-signal-restyle
branch
from
September 4, 2026 23:08
2af08da to
a2cebf2
Compare
lilyshen0722
added a commit
to thantiklermcirony/commonly
that referenced
this pull request
Oct 9, 2026
…Commonly#1869) * fix(connectors): a list card is as tall as its rows (TASK-156) Team-Commonly#1547 stretched the channel list to fill the page; Team-Commonly#1669 then put Tools under it and the stretch carried on, so at 1200 the channel card was 564px around 262px of rows, and with the GitHub grant open the Tools card was 718px around one 86px row — 630px of empty card. The page scrolls; a card does not hold empty space. - .v2-connectors: drop min-height: calc(100vh - 86px) and its comment. - .v2-connectors__content: drop flex: 1 / min-height: 0 and switch stretch to start; .v2-connectors__rows: drop flex: 1 / min-height: 0 (keep overflow: hidden, it clips the row corners). - The now-dead opt-outs go with them: .v2-tools { flex: none }, and the 1010px and 760px undo rules. - The Slack row names its workspace: a linked Slack stores teamName, never chatTitle, so the row read "Slack · linked to Ops" beside the word Slack. chatTitle still wins when both are set. Guards invert with the decision: v2-layout-invariants asserted the old stretch (and its undo rules); it now asserts no min-height on .v2-connectors, align-items: start with no flex: 1 on the content grid, no flex: 1 on the rows, and that no .v2-tools rule opts out. The Tools opt-out is matched as a regex on the Connectors section rather than through ruleBody, because with the rule gone ruleBody returns '' and the assertion would have passed without reading anything. Three page cases cover the Slack title precedence. * test(connectors): scan every block for the stretch rules, not just the first (TASK-156) sprint-review's gate passed Team-Commonly#1869 at 9e64a12 and named one route it does not cover: `not.toContain('min-height')` reads ruleBody's FIRST line-start `.v2-connectors` match, so a second `.v2-connectors { min-height: … }` written later in the sheet passes every assertion while the browser paints the stretch again — equal specificity, later rule wins. layoutBlocks() instead scans the whole sheet for every declaration block whose last compound carries the class, and the three selectors that hold the decision (`.v2-connectors`, `__content`, `__rows`) are asserted empty of the declarations that would stretch them. A non-vacuity check per selector keeps the filters from passing on an empty scan. Additive only: every assertion sprint-review gated is byte-identical, so their PASS still describes this tree; what is new is a stronger instrument beside it. A rule scoped another way than the last compound (e.g. `.v2-connectors > div`) is still not covered — said in the comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
npm test -- --watchAll=false— 581 passing (before final review-only CSS refinement)npm run typechecknpm run buildVisual evidence
Mocked live Telegram + Slack awaiting confirmation, captured from the reviewed
af588816app build.1440px:
390px (full page;
scrollWidth === 390):