Repository navigation
Matrix: no whole-table restyle when the filter island starts - #98
Merged
Merged
Conversation
…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
7 tasks done
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.
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 setdata-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
:targetthat 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):Code checklist
pnpm checkpasses.Generated by Claude Code