Repository navigation
chore(web): remove dead front-end code left by the Foldkit migration - #2449
Conversation
Deletions only; nothing a user sees changes. Every symbol was confirmed unreferenced by a whole-word grep of apps, packages, lib, scripts and examples before removal. packages/ui - 70 style constants in components/ui/*.styles.ts with no reference anywhere (toast 13, sidebar 11, autocomplete 8, combobox 8, context-menu 6, item 3, sheet 3, and smaller sets in 11 more files). - Dead exports: linearYScale (and its scaleLinear import), BucketAxis, three sample-data sets, EMPTY_SERVICE_MAP_LAYOUT, DEFAULT_SERVICE_MAP_VIEW_PREFS, TimelineAction and three timeline constants, CACHE_OPERATION_COLORS, LATENCY_COLOR, ERROR_RATE_COLOR, getDepthColorClass (with CHART_BG_CLASSES, which only it read), sanitizeCssIdentifier. DECLUTTER_OFF moves into the one test that used it. LatencyLevel is no longer exported. packages/web-data - Drop the `.` and `./collections` exports and their two barrels: no importer. - Dead functions: getGcpCloudSqlInstancesOfDatabase, identityFromKey, orgScopedKeyPayload (and the timestamp-dropping branch only they reached), isAutomaticRetryError, toolSeriesMode. - Dead types: AlertsOverviewData, AiSessionSpansPage, CustomChartTimeSeriesResponse, TracesResponse, TracesFacetsResponse. UserDetailInput and WebAnalyticsFacetRow are no longer exported. apps/web - lib/anomalies/anomaly-filters.ts: only its own test imported it. - 17 exports only their tests used, with those test cases. Tests of live code that went through them now call the live function (formatAttributeClause, customLayoutOf, decorateRoutes). - VITE_MAPLE_CAPTURE: nothing sets it since the perf harness went. - Lab descriptions no longer advertise ?mode= and ?renderer= options that no bench reads. - The Vite override list gains the three VITE_* keys the app reads and the list missed. - theme.css: two selectors for a chart library that is gone. - index.html: the theme comment names the files that hold the store. Also: packages/widgets tsconfig no longer includes *.tsx (it has none), four unreferenced onboarding pixel glyphs, and the regenerated kit index.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 33 seconds. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🍁 Maple PR previewNote Preview resources were removed when the preview label came off. Final commit |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…ded runner Each run compiles a query of up to 2,000 items. Under the 5s default the test timed out twice in one day on shared CI runners while passing in about a second locally.
This comment has been minimized.
This comment has been minimized.
…ead-code # Conflicts: # apps/web/src/components/settings/audit-log-filters.test.ts
Maple review🟢 Confidence 10/10 · safe to merge. Dead-code deletion only: every removed export name has no reference at the head SHA, and no live caller changed. Removes unreferenced front-end code across
Before merge
|
|
Merged with 1 step from "Before merge" still open. If it is done, tick it on the review comment; if not, now is the time.
|
Stacked on #2448. Part of the audit stack that starts at #2434.
Deletions only. Nothing here changes what a user sees.
What is removed
packages/uiacross 18*.styles.tsfiles, plus a dozen other exports there, all with no reference anywhere.packages/web-data: the.and./collectionspackage exports and their two barrels had no importer. Five functions and five types with no user are gone.apps/web: one file and 17 exports that only their own tests imported. Where a removed helper was the only route to live code, the test now calls the live function.VITE_MAPLE_CAPTUREbuild flag and its branch. Nothing sets it since the perf harness was deleted.rechartsselectors intheme.css(no package depends on recharts), four pixel glyphs nothing references, and a**/*.tsxinclude in a package with no.tsxfile.What is fixed
definelist was missing three keys the app reads:VITE_CLERK_SIGN_IN_URL,VITE_CLERK_SIGN_UP_URLandVITE_MCP_URL.?mode=recharts|cursor,?renderer=...) that no bench code reads.Kept on purpose
VITE_MAPLE_REPLAY..env.exampledocuments it as a developer switch that turns self-recording off. Removing it would turn recording back on for anyone who set it.getCustomChartServiceDetail: a test uses it as the only coverage of a live function.Verification
packages/ui,packages/web-data,packages/widgets,packages/views,apps/webandapps/local-ui, on the branch and again with every layer of the stack combined.packages/ui133,packages/web-data75,packages/views45,apps/web283.ui:index:check,ui:patterns:checkandui:css:checkpass. Lint and format are clean.Left for a decision
.tsxfiles.tokens.cssthat are now orphaned.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.