mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-09 15:17:59 -05:00
## Changes 🏗️ ### Design updates Design updates on the new Library page. New empty views with illustration and overall changes on the sidebar and selected run sections... <img width="800" height="871" alt="Screenshot 2025-12-03 at 14 03 45" src="https://github.com/user-attachments/assets/6970af99-dda8-4cd8-a9b5-97fe5ee2032e" /> <img width="800" height="844" alt="Screenshot 2025-12-03 at 14 03 52" src="https://github.com/user-attachments/assets/92e6af79-db9f-4098-961f-9ae3b3300ffa" /> <img width="800" height="816" alt="Screenshot 2025-12-03 at 14 03 57" src="https://github.com/user-attachments/assets/7e23e612-b446-4c53-8ea2-f0e2b1574ec3" /> <img width="800" height="862" alt="Screenshot 2025-12-03 at 14 04 07" src="https://github.com/user-attachments/assets/e3398232-e74b-4a06-8702-30a96862dc00" /> ### Architecture - Make selected tabs/items synced with the URL via `?activeTab=` and `?activeItem=`, so it is easy and predictable to change their state... - Some minor updates on the design system I missed on previous PRs ... ## Checklist 📋 ### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: - [x] Run the app locally and check the new page ( still wip )
35 lines
912 B
TypeScript
35 lines
912 B
TypeScript
import { Link } from "@/components/atoms/Link/Link";
|
|
import { Text } from "@/components/atoms/Text/Text";
|
|
import * as React from "react";
|
|
|
|
interface BreadcrumbItem {
|
|
name: string;
|
|
link: string;
|
|
}
|
|
|
|
interface Props {
|
|
items: BreadcrumbItem[];
|
|
}
|
|
|
|
export function Breadcrumbs({ items }: Props) {
|
|
return (
|
|
<div className="mb-4 flex h-auto flex-wrap items-center justify-start gap-2 md:mb-0 md:gap-2">
|
|
{items.map((item, index) => (
|
|
<React.Fragment key={index}>
|
|
<Link
|
|
href={item.link}
|
|
className="text-[0.75rem] font-[400] text-zinc-600 transition-colors hover:text-zinc-900 hover:no-underline"
|
|
>
|
|
{item.name}
|
|
</Link>
|
|
{index < items.length - 1 && (
|
|
<Text variant="small-medium" className="text-zinc-600">
|
|
/
|
|
</Text>
|
|
)}
|
|
</React.Fragment>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|