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
services: Redesign service states #11846
Comments
BTW: The dialogs show up in cases where an action is not a simple enable/disable + start/stop, but would require more changes (changing a preset, masking, or unmasking). Language may change. And I should probably make the masking dialog styled more like a warning, as it could break the system. |
I'm just lurking here, but FWIW, I find the wording in the "Mask Service" dialog confusing.
Which service does "the service" refer to? (The dependent service, or the "dependee") What's the impact of this choice? Also how does one "disable" (rather than "mask") a service from these dialogs? Or maybe I'm misunderstanding? (Is there a state transition diagram somewhere?) Thanks; hope this is constructive. |
@davidmalcolm: Thanks for your feedback! Yeah, you're right. I threw together the dialogs quickly to illustrate the concept. They need more work, especially with the language. After talking a bit more with others, including people from the systemd team, I think we might drop the whole masking and unmasking actions from within Cockpit. Lennart says it's for "super gurus", after all. Of course, we still need to have masked states represented in Cockpit, but it would probably just be read-only. I'll adjust the mockup to match next week (Monday, most likely). A state transition diagram is a good idea. I have one trapped in my head; I just need to draw it out. 😉 |
In the string Unmask(enable running) is that related to systemctl enable? |
From systemctl's man page:
|
We could flip the wording around to be friendly with a verb first and have the actual command be in parenthesis. Perhaps re-word "enable" too, as it would be overloaded.
But still, if Lennart thinks we should drop masking, then perhaps we should. Or we could have a compromise and have the actions in the dropdown only (and not be reflected in the toggle whatsoever). |
Sounds good to me. |
Added refreshed services list in the main comment. I cleaned up a few details while I was at it. Comments are on the mockup itself, in purple, with arrows. We can re-order and drop the Context menu would be the same as in the details page. The actions are a shortcut, eliminating the need to visit the details page, unless one wants to see actual details. This should make starting/stopping/enabling/disabling/restarting/reloading services much clearer & easier. |
Hmm, perhaps the filter clear "link" should be a button? It doesn't go anywhere, unless you consider the full list as a place... which you could. It's debatable. A link happens to be less heavyweight too; that's why I used it. We could just ignore that part of the design (or I could remove it), as it looks like it is not in PF4. |
I've updated the service details mockup with tweaks suggested in this issue thread. As the mockups are hotlinked above, they should both be at the latest versions. |
@marusak: Is this something you would be interested in implementing? |
Yes, very much so :) |
Mostly implemented by #12265, the "vendor" stuff was not yet implemented nor changes on the overview page. |
It would be nice to complete the redesign. Right now, the overview and status pages are out of sync. |
When redesigning and getting dirty with the code, it is definitely worth writing it in react. |
@marusak I've added it to the agenda for today's weekly meeting. I'd like it to be a card in the sprint. Also, as the design is from the PF3 era, we might need to reconsider what it would look like in PF4 too. This would probably affect the header area and such. The general design would probably still stand just fine. We'll probably want to attach the filtering to the list like this PF pattern, as seen in the toolbar design docs: It could wind up resembling something kind of like this (old) PF4 mockup: Disregard the style and the actual contents of the mockup (especially the list). The important parts, which still stand, are:
I strongly suggest we do not do pagination. It causes all sorts of issues and is unneded for our use. It's in the PF4 mockup because some apps use pagination, so they're showing all the possibilities together. |
I've updated the list mockup to be more in line with PF4. It now includes correct fonts and the tertiary (in-page, nav "tabs") navigation. |
This has been implemented in #13695 |
The service page should unify the concept of starting and enabling, make the current status clear, and show easier to understand messaging using simple explanations.
Anything done from Cockpit should keep both enable/disable and start/stop in unison. The status area can show when the two states are desynchronized and provides ways to bring them back into alignment (often with the toggle, but sometimes with a dropdown action or a contextual button).
The overall list needs to be reworked to reflect these changes too. I'll design that next and add it to this issue soon.
Details Page
This should show pretty much every state possible:
Services List
Refreshed to bring it in line with the details page:
The text was updated successfully, but these errors were encountered: