Repository navigation
migrate-css: catch pg- classes it was missing - #47
Merged
Merged
Conversation
Pegasus has pg- classes in Python code too (template tag HTML strings, form widget attrs), which the tool was silently skipping. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pegasus's standalone React frontend has pg- classes too. Since frontend/ has its own node_modules, prune it (anywhere) so we don't walk or rewrite vendored code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Classes like pg-select are defined in tailwind.css but with nested rules rather than a single @apply, so they can't be auto-mapped. Previously they were reported as having "no mapping", which was misleading. Report them separately so users know to migrate them by hand. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Follow-up to a report that migrate-css missed some pg- leftovers from 2026.9. Most of those leftovers are in Pegasus itself and will be fixed there. This PR closes the gaps in the tool's own coverage.
.pyfiles. Pegasus has pg- classes in Python code too, e.g. HTML strings intailwind_form_tags.pyand form widgetattrs.frontend/by default (the standalone React frontend), and skipnode_moduleseverywhere so vendored code is never walked or rewritten.pg-selectare defined intailwind.csswith nested rules instead of a single@apply, so they can't be mapped automatically. They used to be listed as "no mapping", which was misleading. They now get their own "migrate by hand" group.Tested with new tests in
tests/test_migrate_css.py, and with a dry run against the Pegasus template source.🤖 Generated with Claude Code