Skip to content

Matrix: no whole-table restyle when the filter island starts - #98

Merged
jbspeakr merged 1 commit into
mainfrom
claude/matrix-idle-restyle
Nov 11, 2026
Merged

jbspeakr merged 1 commit into
mainfrom
claude/matrix-idle-restyle

Conversation

@jbspeakr

Copy link
Copy Markdown
Collaborator

Requested by Jan · project thread

What this changes

This makes room in the /mcp/ Lighthouse budget so #97 (13 more servers) can land. When the matrix island mounted, it set data-view="all" on .matrix-view. The stylesheet already draws "All" when that attribute is missing, so the page looked the same, but the change made the browser re-match the view's :has() selectors (.matrix-view:is([data-view="all"], :not([data-view]):not(:has(…:target)))) on every cell. That cost one long task at idle, roughly 230–280 ms with 52 servers. Removing the island from the page took total blocking time from about 260 ms to 12–113 ms, which pointed to the island.

The island now leaves the attribute unset on load. It sets it only when a reader picks a group, or when a group anchor is the :target that the attribute has to override, so "All" after a #mx-<group> link still works.

Local Lighthouse on /mcp/ with #97's 52 servers (unpinned Chromium, so treat the numbers as relative):

build performance TBT
before 0.90–0.97 187–374 ms
after 0.99–1.00 48–97 ms

Code checklist

  • pnpm check passes.
  • Pages still read fully without JavaScript; the island stays within the JS budget. (One condition added; the no-JS path is unchanged.)
  • Both themes checked; screenshots updated only for intended changes. (No visual change, so no new baselines. Locally all 406 non-screenshot end-to-end tests pass across the three projects, including the phone view-switching tests. The screenshot tests need CI's pinned Chromium.)

Generated by Claude Code

…the table

On load the island set data-view="all" on the matrix view. The stylesheet
already draws "All" without the attribute, but setting it re-matches the
view's :has() selectors on every cell: one long task (230-280 ms with 52
servers) at idle, enough to drop /mcp/ below the Lighthouse budget. The
attribute is now set only when a reader picks a group, or when a group
anchor is the :target the attribute has to override.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0175Hbpmje7EM58uss74fYXG
@jbspeakr jbspeakr self-assigned this Nov 11, 2026
@jbspeakr jbspeakr mentioned this pull request Nov 11, 2026
7 tasks done
@jbspeakr
jbspeakr merged commit 409583e into main Nov 11, 2026
2 checks passed
@jbspeakr
jbspeakr deleted the claude/matrix-idle-restyle branch November 11, 2026 12:57
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.

2 participants