Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/components/pipelines-overview/NamespaceDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,15 @@ const NameSpaceDropdown: React.FC<NameSpaceDropdownProps> = ({
items.push({ title: selected, key: selected }); // Add current namespace if it isn't included
}
items.sort((a, b) => alphanumericCompare(a.title, b.title));
if (canListNS) {

// Always show "All" option - behavior depends on user permissions:
// - Admins (canListNS=true): See all cluster namespaces
// - Non-admins (canListNS=false): See all their accessible namespaces
if (projects.length > 0) {
items.unshift({ title: allNamespacesTitle, key: ALL_NAMESPACES_KEY });
}
return items;
}, [projects, projectsLoaded]);
}, [projects, projectsLoaded, allNamespacesTitle]);

return (
<>
Expand Down
5 changes: 2 additions & 3 deletions src/components/pipelines-overview/PipelinesOverviewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ const PipelinesOverviewPage: React.FC = () => {
loadFormat: parsePrometheusDuration,
});

if (!canListNS && activeNamespace === ALL_NAMESPACES_KEY) {
return <AllProjectsPage pageTitle={t('Overview')} />;
}
// Remove restriction - allow all users to see "All" namespaces view
// The data will be scoped to namespaces they have access to based on their permissions

return (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ const PipelinesOverviewPageK8s: React.FC = () => {
loadFormat: parsePrometheusDuration,
});

if (!canListNS && activeNamespace === ALL_NAMESPACES_KEY) {
return <AllProjectsPage pageTitle={t('Overview')} />;
}
// Remove restriction - allow all users to see "All" namespaces view
// The data will be scoped to namespaces they have access to based on their permissions

return (
<>
Expand Down
Loading