-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
chore: Add checkbox to clear all Variable
s
#666
base: main
Are you sure you want to change the base?
Conversation
Great change! I think my preference here would be to create a dialog that allows for selection of columns, in order to not clutter the top space with many options. What do you think? |
@typpo I hadn't thought of a dialogue, but that sounds like a good idea. I'll give it a try. |
d11140d
to
49be9ac
Compare
Dear @typpo, I replaced the |
I tried to upload some working images and gifs, but they won't upload due to Github's issue... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is coming together, thanks for setting up the dialog! If it's ok with you, I'll do a pass on the design/layout probably tomorrow. Then I'm happy to merge :)
<Checkbox checked={selectedColumns.indexOf(column.value) > -1} /> | ||
<ListItemText primary={column.label} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm noticing that clicking the checkbox should update the state (right now, you can't actually toggle the checkbox). Let's also connect the label with the checkbox, so that clicking it toggles the state too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I've noticed too. I'm trying to fix this now. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@typpo I've restored the original functionality of the checkbox.
Please let me know if I have additional corrections.
Thank you!
4551f63
to
efa752b
Compare
I rebased these commits to the |
99b5c63
to
790ec30
Compare
395b5af
to
54ba13e
Compare
b2323de
to
3ad344f
Compare
bb2ca8e
to
50b943f
Compare
Variable
sVariable
s
This fix is a suggestion that addresses a perhaps personal inconvenience for me. If you have a better solution, I'd love to hear it and hope you'll consider this positively.
The CSV file I use for testing has a lot of columns, not all of which are actually used in the prompt template, but all of which appear as
Variable
in the viewer. This makes it difficult to keep only the columns I want inSelect
.This fix adds a checkbox to either deselect all the
Variable
s at once or select them all. I couldn't figure out the right place for it, so I put it in the sameBox
as the columnSelect
for now, but if you have a better place, please let me know.Thanks for the great open source. I always appreciate it!