Repository navigation
Remove unused frontend code - #13065
Merged
Merged
Conversation
This removes React mount points, components, hooks, utils, barrel files, i18n files and CSS that nothing in the app references any more. It also removes the bootcamp free coupon endpoint and command, because the deleted form was their only caller. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ihid-assistant
Bot
force-pushed
the
remove-unused-frontend-code
branch
from
November 18, 2026 07:07
403b1a8 to
fc9aa96
Compare
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.
This PR removes frontend code that nothing in the app references. Each item was checked against imports (including type imports, barrel re-exports, the
@/alias, dynamicimport()andlazy()), pack registrations against Ruby and HAML usage, the jest config, package.json scripts anddocs/.Mount points and their Ruby helpers
community-stories-grid: the helper, the pack registration and lazy import,components/community/stories-grid/,components/community/index.tsand thestoriesGrid.*keys in thecomponents/communityi18n file.profile-avatar-selector: the helper, the pack registration and the lazy import inapplication.tsx.components/profile/AvatarSelector.tsxstays, becausePhotoFormandNewProfileFormuse it.ReactComponents::Track::Creditsand the.c-react-wrapper-track-creditsrule inpages/article.css. No pack registerstrack-credits, and the views useReactComponents::Common::Credits.settings-bootcamp-free-coupon-form: the helper,BootcampFreeCouponForm.tsx, its i18n file and its entries inpacks/internal.tsx. The form was the only caller of thebootcamp_free_coupon_codeAPI route, so this also removes the route, its controller action,User::GenerateBootcampFreeCouponCodeand its test. Thebootcamp_free_coupon_codecolumn stays. The affiliate coupon form and its endpoint stay, because the bootcamp dashboard renders the form.Hooks, utils and other JS
use-stateful-tooltip,use-content-query,use-did-mount-effect,use-loggeranduse-scroll-to-top, plus their lines inhooks/index.ts.esbuild-helpers/(7 files).ClientSideTestRunner/jsTestRunner.tsandeditor/testComponents/TestList.tsx. The rest ofClientSideTestRunnerstays, becauseEditor.tsximports it dynamically.channels/index.tsandchannels/latestIterationStatusChannel.ts.utils/capitalize.ts, andutils/name-for-locale.tswith its test.common/AccordionHeader.tsx,common/StaticTooltip.tsx,impact/TopLearningCountries.tsx,impact/chart-elements/NumberOfStudentsLabel.tsx,journey/overview/learning-section/LearningStats.tsx,journey/contribution-results/OrderSwitcher.tsx, the track welcome modal'sButtonContainer.tsx,theme-preference-form/DisabledTooltip.tsx,MentoringRequestFormComponents/types.ts,donations/stripe-form/constants.tsanddig-deeper-components/mock-snippet.ts, along with their re-exports, the commented-out JSX that named them and their i18n files or keys.components/{community-solutions,journey,notifications,perks,track}/index.ts.components/mentoring/index.tsstays, because a test imports it.components/settings/useSettingsMutation.tsxandcomponents/student/ExerciseStatusDot.tsx(both empty), andcomponents/student/MentoringSession.tsx, whose namespace no component uses.CSS
highlighters/highlightjs-light.cssand the commented-out highlighter imports inwebsite.css.highlightjs-dark.cssstays, becauseSerializeHighlightjsThemereads it by path.components/completed-heading.css, which nothing imports.components/track/concept-nav.css,components/explainer.css,pages/maintaining/track.css,components/mentor-discussion-post-editor.cssandcomponents/spinner.css, with their@importlines. No view, component, serializer or markdown renderer uses their classes or IDs.Follow-up
The Ruby
LatestIterationStatusChanneland the broadcast to it inSolutionare still in place. Nothing on the frontend subscribes to the channel any more, so a separate PR can remove them.Checks
yarn i18n-check,yarn test,yarn buildandyarn build:cssall pass. The user preferences controller tests and the affiliate coupon command test pass.🤖 Generated with Claude Code