codemod-com / codemod

The end-to-end platform for creating, sharing, and running codemods with engines like jscodeshift, ast-grep, ts-morph, and more. Automate code migrations, cleanups, and refactors for you, your team, and the community. AI-powered and CLI-first.
https://go.codemod.com/docs
Apache License 2.0
346 stars 30 forks source link

[studio] Synchronize position in Before/After/Output panels #1268

Open with-heart opened 3 weeks ago

with-heart commented 3 weeks ago

Issue Description

Select one of: [ ] Generated codemod is not correct [ ] Bug in Codemod Studio [x] UI/UX improvement request [?] Feature request

When working in one of the Before/After/Output panels in the studio, it would sometimes be helpful to automatically scroll to the corresponding position in the other panels. This is especially true when the input is thousands of lines of code as that requires lots of scrolling.

Actual Results

When reviewing Before/After/Output, comparing the contents of each panel requires scrolling in three separate panels.

Expected Results

When reviewing Before/After/Output, comparing the contents of each panel requires scrolling in only a single panel.

alexbit-codemod commented 3 weeks ago

absolutely genius! this was also brought up before... this makes things really really cool and easy to track. cc @mohebifar

mohab-sameh commented 3 weeks ago

@all-contributors add @with-heart for ideas

allcontributors[bot] commented 3 weeks ago

@mohab-sameh

I've put up a pull request to add @with-heart! :tada: