Closed
Conversation
…e signals - Create utils/react-fiber.ts: walk React fiber for component name, source file, line number - Create utils/tailwind.ts: parse Tailwind padding classes, spacing scale, compute new classes - Create utils/css-rules.ts: walk matched stylesheets for authored padding declarations - Extend Modification type with original 4-side padding, fullClassName, tailwind/css signals - Collect all signals at pick-time in tweaker.tsx (fiber, className, Tailwind, CSS rules) - Rewrite prompt.ts padding section with 3-tier system: Tier 1: Tailwind className find/replace diff Tier 2: CSS rule declaration find/replace Tier 3: Per-side before/after fallback with px values - Add getElementClassName to dom.ts (handles SVG elements) Co-authored-by: Ben MacLaurin <ben-million@users.noreply.github.com>
|
Cursor Agent can help with this pull request. Just |
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.
Overhauls padding prompt output to generate targeted, near-diff instructions, making them actionable for less capable LLMs.
This PR introduces a 3-tier system (Tailwind, CSS Rule, Fallback) for padding modifications, collecting real signals like React fiber source location, Tailwind class names, and authored CSS declarations to produce concrete find/replace suggestions instead of abstract descriptions.