-
Couldn't load subscription status.
- Fork 3
Adding Accept and Reject All buttons for bulk code changes. #28
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
base: main
Are you sure you want to change the base?
Conversation
|
Thanks for looking into this! While they would do the job, these buttons seem to be taking a lot of space in the notebook toolbar. Also, they push the other toolbar buttons to the left when they are added, which causes a bit of a distraction. So maybe they should be a bit smaller, or be placed somewhere else in the notebook toolbar. Another idea would be to have them somewhere "hovering" in the notebook itself. Not sure yet which one of these different approaches would be the best in terms of UX though. |
|
Thanks for taking this on @nakul-py!
Yes, I would agree with @jtpio on this approach instead. I think it should be a little pop up in the bottom right corner of the notebook—similar to a (toast) notification. We shouldn't actually use the notification UI in JupyterLab, though, since it persists when you switch notebooks. But we can use a similar UX, where a small hovering panel appears in the bottom right corner and follows the notebook panel (meaning if switch notebook panels and come back, it's still there). |
|
@Zsailer and @jtpio This is how Buttons looks now Screencast.From.2025-10-26.14-25-27.mp4Any other suggestion Or i have a question is that we should see Because one cell changes can be done by init buttons. And what about if user accept changes within cell buttons so we have to hide our button floating panel which can be done in follow up PR. |
|
@nakul-py we're getting closer! Thank you for making these changes! Okay, I'm going to be super annoying here again 😅 – really sorry for the additional minor styling requests... Your video helped me spot a couple more alignment issues:
Thanks for being patient with my pixel-pushing! 🙏 |
Probably not. It should only appear if multiple cells have been changed.
That's right. This button should be responsive to actions taken within the cells. If the user addresses the diffs directly in the cells, once they get to their last cell, this modal should go away on it's own. |
OK! i will done these in separate PRs. :) |
|
@Zsailer Is this looks OK now?
|
|
Yes, this looks great to me! Thank you! |
Ok then i am pushing the commit :) |
|
Why these checks were failing now 🤷♂️ |
This seems to be the TypeScript build issue according to CI: |
Thanks @jtpio the error is fixed now. Idk why this error not comes in when i was building it with |
| private _isInitialized: boolean; | ||
| private _isDisposed: boolean; | ||
| private _diffCompartment: Compartment; | ||
| public _originalSource: string; |
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.
Does this attribute need to be public?
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 think we need to use it as public as we are using _originalSource in hasPendingChanges() in unified-cell.ts.

Adding Accept and Reject All buttons for bulk code changes.
Screencast.From.2025-10-25.22-19-13.mp4
Closes #23
CC @jtpio @Zsailer