Enable the project switcher bar at the top of the management page and wizard, handle all-projects state properly #106
Labels
blocked
needs-kind
needs-priority
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
See early attempt at this that was closed: #66
By changing the URL prefix to
/k8s/ns/:namespace/*
the console automatically shows this project switcher at the top of the page. However, when doing this, if the user selects "All projects" in the bar the UI ends up on a 404 page. We can likely work around this by handling thatall-namespaces
route, but there is a bug in the console that prevents this (BZ coming soon for that, will edit it in here).However, the URL prefix change is possibly not the best way of implementing this. Comparing to the Add page and Pipelines page, we see they do this without using
/k8s
in their URL (which is intended for pages representing individual k8s resources) by using components that are not currently exposed by the plugin SDK,CreateProjectListPage
andNamespacedPage
. I attempted a PR to add these to the SDK but it needs reevaluation: openshift/console#11823Also, currently when you reach the management page without a project selected, you reach a stub page that just directs you to the Projects page where you can select and create a project, then you have to navigate back to our management page. Using
CreateProjectListPage
to handle the "all projects" state is a better solution.The text was updated successfully, but these errors were encountered: