Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept/Reject - Grouping changeing #292

Open
PraveenAsh opened this issue Feb 24, 2025 · 4 comments
Open

Accept/Reject - Grouping changeing #292

PraveenAsh opened this issue Feb 24, 2025 · 4 comments

Comments

@PraveenAsh
Copy link
Contributor

The hunks for the [Accept] and [Reject] are very dispersed across lines instead of chunks. Grouping them will make it accept/reject fast.

The Problem:
IMAGE Linked below
The UX is bad as the number of clicks to get this one function accepted is 4 Clicks. that's expensive!

Possible Solution:
Without either LCS (Longest Contiguous Sequence) or just grouping anything with a buffer range ie squash the hunks into one based on distance from each other.

Image

@mathewpareles
Copy link
Contributor

mathewpareles commented Feb 24, 2025

Thanks for pointing this out!

Does the current version you're using have Accept All and Reject All buttons? This should allow you to do a single click to accept the changes.

We could merge nearby hunks as you suggested. I'm not convinced this would improve the UX. In the above screenshot, we'd either end up merging all the diffs together which doesn't seem ideal (using a merging distance of 2), or we'd only eliminate one of the diffs (using a merging distance of 1).

@PraveenAsh
Copy link
Contributor Author

Yeah, this is with Accept All and Reject All, but the UX is broken.

Most edits are function/class/method-specific. Look at the picture—handleGoogleSignIn got changed, and applying does 4 edits. Now imagine a failed Apply on another function(with 4 clicks) in the same file.

Right now, Accept All takes 8 clicks instead of 1. And if a user wants to accept the first function and reject the second? That’s 4 accepts + 4 rejects instead of just 2 clicks. Bad UX.

@mathewpareles
Copy link
Contributor

Can you try reinstalling Void? Sounds like you're on an earlier version.

@PraveenAsh
Copy link
Contributor Author

Just updated. I see no difference. Although, this kinda makes sense for imports, but definitely not for code blocks.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants