Skip to content

web: codemod `CommunitySearchContextPage` to CSS modules

Created by: valerybugakov

Context

This PR results from the global-css-to-css-modules codemod application with some manual fixes, caused by the usage of global CSS classes tied to a React component in other parts of the codebase: e.g., .sidebar class used outside of the <Sidebar /> component.

Steps to product this PR

  1. Prepare codemod package locally:
git clone https://github.com/sourcegraph/codemod 
cd codemod && yarn
  1. Apply the codemod to the CommunitySearchContextPage component:
1. yarn transform -t globalCssToCssModule --write true --format true "/sourcegraph/client/web/src/communitySearchContexts/CommunitySearchContextPage.tsx"
  1. Go through Post codemod steps in the codemod README.md

Changes

  • The CommunitySearchContextPage stylesheet is converted to CSS module.

Merge request reports

Loading