Repository navigation
fix(ui): bring the context-menu family back under its byte budgets - #401
Merged
Merged
Conversation
#395 made CMenu scroll only its own list and scroll the page only after a key press. That grew the context-menu family's JavaScript to 164,595 raw bytes against the 160 KiB budget, and 35,772 gzip bytes against 34 KiB, so test_context_menu_assets_stay_within_the_family_budgets fails on main. The new code is now shorter: one helper computes the least scroll for both axes, and the comments say the same things in fewer words. The raw size is 163,292 bytes, under its budget. The gzip size is 35,475 bytes, which is still over 34 KiB, so that one budget goes to 35 KiB, with the reason in the test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
citry_ui/quality/tests/test_asset_report.py::test_context_menu_assets_stay_within_the_family_budgetsfails on main since #395.The added JS and the CSS budgets were never over.
Evidence, run locally:
🤖 Generated with Claude Code