Skip to content

feat: add breadcrumbs to admin settings pages #15865

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

Merged
merged 19 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
chore: add avatar next to organization name
  • Loading branch information
jaaydenh committed Dec 18, 2024
commit 69cce6b1e7083bbd914b8615a4a4eaa5f041ff5f
2 changes: 1 addition & 1 deletion site/src/components/Breadcrumb/Breadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const BreadcrumbPage = forwardRef<
<span
ref={ref}
aria-current="page"
className={cn("text-content-secondary", className)}
className={cn("flex items-center gap-2 text-content-secondary", className)}
{...props}
/>
));
Expand Down
7 changes: 7 additions & 0 deletions site/src/modules/management/OrganizationSettingsLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { useDashboard } from "modules/dashboard/useDashboard";
import { type FC, Suspense, createContext, useContext } from "react";
import { Outlet, useParams } from "react-router-dom";
import { OrganizationSidebar } from "./OrganizationSidebar";
import { UserAvatar } from "components/UserAvatar/UserAvatar";

export const OrganizationSettingsContext = createContext<
OrganizationSettingsValue | undefined
Expand Down Expand Up @@ -89,6 +90,12 @@ const OrganizationSettingsLayout: FC = () => {
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbPage className="text-content-primary">
<UserAvatar
key={organization.id}
size="xs"
username={organization.display_name}
avatarURL={organization.icon}
/>
{organization?.name}
</BreadcrumbPage>
</BreadcrumbItem>
Expand Down