-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 version naming UI #35080
Add version naming UI #35080
Conversation
@jancborchardt or @nimishavijay for early design review :)
|
c5a7016
to
b094abd
Compare
de06c86
to
461a65e
Compare
87d69f0
to
3c0ff2c
Compare
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.
Very nice! :) Some design feedback:
- The pencil icon for "Name this version" is a bit complex, just use the regular "pencil" material design icon
- "Restore version" can go before "Download version" in the menu
- The modal needs a heading inside, saying "Version name"
- The "Named versions are persisted …" info text should go below the input field, and be in
color-text-maxcontrast
- Is the "Version name" input field focused by default?
- If there is no version name or if the field is empty, the "Remove version name" button can be disabled?
- Let’s use a better icon than the floppy for saving :D Just the "done" checkmark is fine
I did not add a "Cancel" button" in the name version modal, as it seems like we do not do that in other place.
I’d say an "x" in the top right would be nice though. :)
Should I add a "Create new version" at the top of the list or something ?
I’d say no, since the current version is already there? You can name the current version, right? So that is enough.
Great work @artonge! :)
Now you can :) |
ef378f4
to
22b5f09
Compare
Very very nice @artonge! One last thing: Both "Current version" and "Initial version" i'd consider "virtual" names, not actual version names, so I'd label the action "Name this version" and have an empty input field in the modal. (But if the name is left empty for either the initial or current version, ofc this "virtual" name stays displayed in the version list.) Does that make sense? :D |
"Initial version" is a "random" name I set myself for testing. Do you want to have this "virtual" label for the first version as well ? The other part makes sense :)
Edit: I've implemented the "Initial version" thing. |
22b5f09
to
29415e4
Compare
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.
Signed-off-by: Louis Chemineau <[email protected]>
29415e4
to
551c83c
Compare
Ah, forgot to properly set the condition for initial version. |
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.
That should probably be fixed in nc-vue, no ?
Yes, unless @jancborchardt says otherwise :) |
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 so the user can remove the name. From Jan:
If we disable "Remove version name" then we can't also disable "Save version name". |
@artonge thanks a lot! I really appriciate this approach to add version naming (and make such versions persistent)! I was looking for such a feature for quite some time. Topics which might be considered:
|
|
@artonge in general I think feature flags, if we do them, should be done on capability level now, if the backend is close to MVP maybe we can just merge the two PRs first and no need for a flag |
Closing as it will get merged with #35160 |
New elements are not visible by default. Need to set
OC.experimental = true
in the console before opening the sidebar.Need #34769