-
Notifications
You must be signed in to change notification settings - Fork 492
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
Improve the file list checkboxes behavior #4859
Merged
Merged
Conversation
This file contains 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
Make it so that the indeterminate state of the checkbox matches the selected style
Create a module for array utilities. Add a function that determines what amount of items in an array satisfy a condition
If only some of the hunks have been selected, display the file checkbox as indeterminate
Deduplicate and move the chunk utility into the array utilities module
Refactor and clean-up the component, so that the newer, more readable Svelte 5 state APIs are used
Rename the `Ownership` class to `SelectedOwnership`, as it is only used to determine the selected state of the files to add to a commit. Renamed the methods as well to convey their actual purpose. The `SelectedOwnership` class will be updated in a way that the selected is persisted across file/hunk ownership updates
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
estib-vega
force-pushed
the
check-boxes-behavior
branch
from
September 9, 2024 13:53
df41345
to
87b8cbb
Compare
estib-vega
requested review from
PavelLaptev,
mtsgrd,
Caleb-T-Owens and
ndom91
September 9, 2024 13:59
estib-vega
force-pushed
the
check-boxes-behavior
branch
from
September 9, 2024 14:06
87b8cbb
to
da25785
Compare
Missing some style updates |
estib-vega
changed the title
check-boxes-behavior
Improve the file list checkboxes behavior
Sep 9, 2024
estib-vega
force-pushed
the
check-boxes-behavior
branch
from
September 9, 2024 15:02
da25785
to
908f4f0
Compare
estib-vega
force-pushed
the
check-boxes-behavior
branch
from
September 10, 2024 11:55
908f4f0
to
af12e19
Compare
estib-vega
force-pushed
the
check-boxes-behavior
branch
from
September 10, 2024 12:34
af12e19
to
351c6ed
Compare
estib-vega
force-pushed
the
check-boxes-behavior
branch
from
September 10, 2024 12:44
351c6ed
to
5c3c8ca
Compare
mtsgrd
approved these changes
Sep 10, 2024
estib-vega
force-pushed
the
check-boxes-behavior
branch
from
September 10, 2024 17:52
5c3c8ca
to
3ad6691
Compare
estib-vega
force-pushed
the
check-boxes-behavior
branch
2 times, most recently
from
September 11, 2024 08:34
650a20e
to
d203a3d
Compare
@PavelLaptev |
estib-vega
force-pushed
the
check-boxes-behavior
branch
2 times, most recently
from
September 11, 2024 08:51
4f43d03
to
aaae6e6
Compare
PavelLaptev
approved these changes
Sep 11, 2024
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.
Issue
As seen in #4846
There are some funky behaviors to our file checkboxes, this PR updates the style and behavior so that:
Changes
1. Update the Ownership class
Rename the
Ownership
class toSelectedOwnership
, as it is only used to determine the selected state of the files to add to a commit.Renamed the methods as well to convey their actual purpose.
The
SelectedOwnership
class will be updated in a way that the selected is persisted across file/hunk ownership updates2. Track whether a file is partially selected or not
If only some hunks are selected, display the
indeterminate
checkbox state for that file3. Design update
Update the style of the
indeterminate
checkbox state