Skip to content

feat(v2): align Connectors with the Signal artboard - #1547

Merged
lilyshen0722 merged 6 commits into
mainfrom
feat/connectors-signal-restyle
Sep 4, 2026
Merged

lilyshen0722 merged 6 commits into
mainfrom
feat/connectors-signal-restyle

Conversation

@lilyshen0722

@lilyshen0722 lilyshen0722 commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • replace legacy connector tiles with the artboard’s single channel-row list and selected-channel aside
  • preserve Telegram and Slack lifecycle actions while keeping ledger-only conversation/count fields out of the UI
  • add CSS layout invariants for the desktop grid and phone collapse

Verification

  • npm test -- --watchAll=false — 581 passing (before final review-only CSS refinement)
  • focused Connectors/layout invariants — 101 passing
  • npm run typecheck
  • scoped ESLint — 0 errors
  • npm run build

Visual evidence

Mocked live Telegram + Slack awaiting confirmation, captured from the reviewed af588816 app build.

1440px:

1440px Connectors capture

390px (full page; scrollWidth === 390):

390px Connectors capture

@lilyshen0722
lilyshen0722 marked this pull request as ready for review September 4, 2026 21:47
@lilyshen0722

Copy link
Copy Markdown
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 screenshots/ files are noted in the pod; drop and fix, then Sam's look.

@samxu01
samxu01 force-pushed the feat/connectors-signal-restyle branch from 2af08da to a2cebf2 Compare September 4, 2026 23:08
@lilyshen0722
lilyshen0722 merged commit 840370b into main Sep 4, 2026
14 checks passed
@lilyshen0722
lilyshen0722 deleted the feat/connectors-signal-restyle branch September 4, 2026 23:19
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.
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