-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Add an Edit Now
option to project dialog to allow opting out of immediately opening a project after creation/import/install
#95600
Add an Edit Now
option to project dialog to allow opting out of immediately opening a project after creation/import/install
#95600
Conversation
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.
Edit Now should be a CheckBox, not a CheckButton, as it doesn't have an immediate effect on the form itself (the effect only applies when confirming the dialog).
I also suggest moving it so that it's centered, as it can be hard to spot currently.
e2e0c6f
to
3669eb0
Compare
Hey @Calinou your requested changes have been made. Mind taking another look? |
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.
Tested locally (rebased on top of master
77d6283), it works as expected.
Does this look fine for 4.4? |
I'm concerned about making the Create New Project bigger vertically. It's already pretty big on smaller screens, notably on Android phones, and this might make it extend out of bounds again.
Based on the above, I feel this might be a worthwhile alternative to explore. Pros:
Cons:
|
If it's possible to move the checkbox to the right side of the buttons, would that be an acceptable alternative as well? That would eliminate the vertical expansion but keep the pros of the input modality. |
In my mind, this should be added buttons. "Create and Edit", "Import and Edit", and "Install and Edit". No need for a new check button. |
@adamscott Just to make sure I'm understanding you correctly: are you proposing another approach that has not already been mentioned, or are you just expressing your support for the 3-button approach that has already been mentioned? |
Sorry @MajorMcDoom, yes that's what I meant. I didn't read all the comments before commenting, sorry. 🙇 |
The two different UX schemes suggested here appear superficially trivial in difference, but would actually require quite a bit of refactoring. The project manager code has the two-button layout pretty much baked into the API, such that all the dialogs are configured and listened to via abstracted concepts of "ok" and "cancel". UX-wise, my gut feeling is that the three button approach would cause confusion, and it's a strong enough gut feeling that I couldn't in good conscience just concede it in this case, so I just want to make sure the three-button approach is worth the extra refactoring (i.e. if we have good reason to believe the checkbox isn't good). In comparison, it would be simple to move the checkbox to the right-side of the buttons (in the same row) in order to alleviate the crowding concern. It would also be the smaller UX change overall, preserving most of the current layout and functionality. IMO that is less work, and less risk. I'd like to give the smaller change a try, and if someone really wants to try the three-button approach, they can make a different PR for that. |
Well I personally think the proposal is useful, I've wanted that behavior a few times myself. |
I propose though that we merge with the edit now checkbox for now.
I could take a look at this. |
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.
Let's go with this, and see if someone is bothered enough by the additional clutter to find a proper UX solution.
Thanks! |
I can understand the use case when importing a project, but why would you need to be able to not edit a project when creating the project? |
That's an interesting point. If it's a niche enough use-case, perhaps it could be selectively hidden from the project creation dialog, which is currently the most crowded dialog. Is that what you're suggesting, @aaronfranke ? |
This PR adds a little check button to the project dialog so the user can opt out of immediately opening a project after creation/import/install, which is useful when you want to perform multiple imports or installs or creations without interruption/restarting.
The check button is checked by default, so the current default behaviour is unchanged.
I've opted to maintain the state of this checkbox per session. i.e. if you uncheck it while doing an import, it will remain unchecked if you try to perform another import right after. I believe this makes sense for the intended workflow of potential consecutive operations. The current "edit-immediately" workflow will not be impacted by this decision because once the project opens, the project manager is closed anyway, and the option will once again be on the default true state the next time the project manager is opened.
Adding a third button to the dialog was an option that I considered, but I decided that keeping the two buttons would be the less confusing change for users who like the current flow (they don't have to remember/choose which new button to press).
Fixes #88891