-
Notifications
You must be signed in to change notification settings - Fork 667
Remove Status and move view to Projects > Workloads #1694
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
Conversation
nice! |
spadgett
left a comment
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.
Nice work!
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.
Love seeing us able to get rid of so much CSS
|
@rhamilto I left comments inline based on your notes. FYI @spadgett @alimobrem @serenamarie125
Sam, Ali and I discussed this a bit. It is a little strange but would improve the experience. Is it possible to make an exception for the project case?
We do need to update these actions whether it's in this PR or another. We are changing this +Add dropdown to simply be a +Import YAML link as deploy image and browse catalog are not primary actions for the admin.
We do need to update these actions as well. Currently we have 2 different ways to access the project details and actions do not align. We would like "Deploy Image, Edit Role Binding, Edit Project, and Delete Project to be the actions available for projects. These should match the kebab actions on the projects table as well.
We intentionally wanted to handle the case where both action drop downs were present at once to avoid confusion so users are clear what is being acted on. We thought about hiding the top level one but figured that would seem like a bug. Disabling with a tooltip may help explain why it's disabled at least. Open to other ideas as well. Maybe naming the top one project actions?
Regarding the empty state, the change to the current implementation was intentional. The developer catalog is moving to the dev console so that action no longer makes sense. We were thinking of making this page more consistent with other pages, especially since it is not a true empty state as it's not the default tab. I'm happy to stray from other pages and keep the secondary buttons there though. Something like this? |
It'd be inconsistent with all other resources. We only show the project bar for resources that are scoped to a namespace. Projects are cluster-scoped. This would break that pattern. We'd need a really compelling reason to do something different imo.
I don't see a problem with deploy image simply moving to dev console if dev console is always enabled. What do you think? It's also still on the deployment config page.
Deploy image is not an action on a project. I personally prefer it on the deployment config list / developer console. It seems out of place here. I also think the actions that just switch tabs are confusing. I'd suggest removing "Edit Role Binding" here and "Edit Environment" from the workloads actions. I feel like there are too many actions for many resources, and the ones that just switch tabs have unclear benefit.
I understand the concern, but I feel like the proposed change is just as confusing. It would be better to change one of the buttons so that they don't look the same. Maybe tweaking the label, location, switching to a kebab, etc. Maybe even removing one of the buttons. In general, I believe we should strive for simplicity and consistency. The shared components we use for every details page make it hard to special case behavior to a specific page, and that's good! It ensures that we have consistent behavior across the UI. |
|
@beanh66 IMO, it makes sense to make all the actions changes (including workloads empty state) in a separate PR so we don't end up with a piecemeal changes (this PR simply moves the overview view to its new home and a separate PR changes the workflows). You good with that? |
|
Maybe the resource actions should be a kebab on the list row, which would eliminate some confusion. |
|
That was my next question @rhamilto 😄 Separate PR for action changes makes sense! What about the empty state? That still needs to be updated I think. Can you change to this: For the follow on PR summarizing the changes to get some consensus. This sound right?:
|
I am proposing the empty state changes go with the actions changes so those are all grouped in the same PR. |
|
@rhamilto and I were wondering if it shouldn't simply be a simple "No workloads found" empty state message in that case like other lists. Part of the reason for the fancy empty state before is it was the first thing you saw when you created a new project. Now you see the project dashboard, and this empty state is only behind one tab. I see less value in it now, particularly if we are removing things like the Developer Catalog link. |
|
Why did we lose the project picker? it should be a quick way to jump to other projects... |
Because it's inconsistent with other pages. Namespaced resources have the picker. Cluster-scoped resources do not. The code is structured in a way to enforce this (and imo that's a good thing). The project details page should act like other details pages. You have to go back to the list to pick a different item in all other details pages. |
|
Ok no project picker, but can we get a breadcrumb back to the project list? |
I think we should be consistent on all details pages. We can add a breadcrumb to all details pages if we think that's better than the current owner references. |
eb47975 to
3367d92
Compare
|
Note: I updated the PR to include the removal of the Project > Workloads empty state actions so as to keep all the overview changes in this PR. Will open additional PRs to address remaining todos. |
|
/test e2e-aws-console |
|
@beanh66, @alimobrem, @spadgett, thoughts on how to proceed with the resource action dropdown in the sidebar?
|
|
@rhamilto I'd suggest making it a follow on. In general, I'm a fan of breaking work down into separate PRs as long as we're not leaving something in a broken state (which we're not here) |
|
Follow on PR sounds good @spadgett! The changes to this page specifically will also impact the dev console so just making sure whatever we do works for @serenamarie125 as well. The resource actions are very important for the developer persona. Making it a kebab on this view will make those actions less discoverable. Project actions are less common especially if the only one for now is delete project. Can we alder that dropdown instead? I would be fine hiding it when on the workloads tab but also open to renaming it or any other ideas @serenamarie125? |
To be clear, the proposal is to add a kabeb to the list rows like we have on list pages. I feel like it might actually be more discoverable because it's visible without opening the details sidebar. You might not know the details sidebar even exists unless you click. It's also how we did it in 3.x and would be familiar to those users.
I'd rather not change the project actions dropdown because it is the same on all details pages. It would make projects inconsistent with all other details pages. |
Sorry, I missed @rhamilto's screenshot earlier. I think either change is reasonable, but I like the kebab on the list row. I'm open to other ideas as well. |
|
The details panel is shared with the topology view - we are counting on using that for actions for the selected nodes in the view. I feel like changing the Actions dropdown to a kebab in the side panel would have a negative effect on the Developer console side. |
spadgett
left a comment
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.
/lgtm
Thanks @rhamilto. We'll address additional feedback in follow on PRs. (I see a few of the follow on items have already merged!)
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhamilto, spadgett The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Makes sense. We haven't made any changes there yet. Let us know what you think. |
|
@rhamilto is looking at the breadcrumbs change now. It sounds like the only item left is figuring out what to do with the Actions button. I'm open to ideas @beanh66 @serenamarie125 if you have thoughts. |
|
@spadgett can we just hide the project actions when on the workloads tab? Also, is there a reason "Edit Labels" is not in that actions dropdown today? |
Honestly, I'd rather hide the actions menu always if we're considering this. Anything that changes the behavior of the actions menu depending on the tab you're on is super weird and confusing imo.
You can't edit labels on projects. |




Resolves https://jira.coreos.com/browse/CONSOLE-1477
Note this PR deviates from the design in a few ways:
Follow on PR todos:
Resource > Resource Detailsbreadcrumb to resource det… #1725