-
Notifications
You must be signed in to change notification settings - Fork 17
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
Use card for repository setting #339
Conversation
@@ -25,7 +25,6 @@ Cockpit component for managing software updates for ostree based systems. | |||
|
|||
%files | |||
%doc README.md | |||
%license LICENSE dist/ostree.js.LICENSE.txt.gz |
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.
oops :)
What you've implemented is a very rough first pass I did a few years ago. Not the current design. The current design supposed to be like this (from #176 (comment)): And editing it would open a modal. I had several modals implemented, but didn't get to finish the rebase (branch selection) due to context switching (being pulled in different directions all the time), so since you're working on this now, I spent time today getting back to this to share what the modal would look like. The biggest change I've made is splitting out repo management from an all-in-one UI, as you don't really edit repos all that frequently. Generally, you're more concerned with branches. Branch rebasing is usually not a frequent action either, but it's much more common (especially on Silverblue) than repo editing. As a result, the revised main page would look like this (the change is removing the edit button and making it a kebab): And here's what's hiding there in the menu: And these are the dialogs for the actions:
|
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.
Please change according the the new mockups, based on the current mockups (and not the 2 year old mockups).
Thanks! 👍
COCKPIT-908: Use card for repository setting
@garrett what about "edit" repo action? How would user pick which repo they want to edit? |
@marusak: It'd use the modal dialogs, as mocked up above? I spec'd it out as a kebab menu with rebase, add, and remove. The point of the redesign is that we were trying to do everything at the same time, which doesn't make sens, so I refactored it all in the mockups in the immediately previous comment @ #339 (comment). Start with "As a result, the revised main page would look like this". |
Oh, you mean edit an already added repo instead of adding and removing? Would people really use that in practice? Adding would have a validation, so you wouldn't be able to add something that doesn't exist, so therefore, you wouldn't need to edit it really, IMO. |
I think that editing is always a good practice. If we don't add it it is just matter of time before someone will come and ask for it. Same as with timers, firewall services... If user can create something from UI they should be able to edit it. Nobody likes to delete and create new one when they realize they actually need something bit different. Moreover right now if you want to add more keys you need to do it in the edit option. This seems weird and should be fixed but for example that is usecase where you might want to edit repo when you need to use different gpg key. |
So the question is if you can only edit the currently active repo or any repo. If it's only the current, it would be rather straightforward:
I literally had this mocked up and thought I exported and shared it here. Anyway, here's a fresh export: However, remove has you select a repo to remove that isn't the current. And editing the current one might not work (you might need to rebase into anthing that's edited). If that's the case, then we'd need to have some way to select the repo. It could be indeterminate in length, and might be very long. Considering this and that you're acting only on one and not multiple, I guess we could use a dropdown select and then have the form items below it prefilled, much like the above suggestion. However, if we're selecting on name and also changing the name, that could be problematic — I suppose in this case, we just keep the previous name in the modal for the time being as it won't become active until the edits are saved anyway. It'd look like this: There's an intentional separation between the repository dropdown and the edit area. The menu would be like the one above, but it would only say "Edit repository", as you can only edit one at a time. |
Looks like this:
Tests is broken and trying to understand why. Posting for now for design review
COCKPIT-908: Use card for repository setting