Skip to content

Commit

Permalink
Merge pull request #644 from zenml-io/staging
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
Cahllagerfeld authored Aug 5, 2024
2 parents f612772 + 9e795cb commit fb9a6c8
Show file tree
Hide file tree
Showing 79 changed files with 3,016 additions and 584 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@dagrejs/dagre": "^1.1.2",
"@fontsource/inter": "^5.0.18",
"@hookform/resolvers": "^3.5.0",
"@radix-ui/react-tabs": "^1.1.0",
"@tanstack/react-query": "^5.40.1",
"@tanstack/react-table": "^8.17.3",
"@tisoap/react-flow-smart-edge": "^3.0.0",
Expand Down
103 changes: 88 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions src/app/settings/LayoutSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { Avatar, AvatarFallback, AvatarImage, Skeleton } from "@zenml-io/react-c
import { SettingsMenu } from "./Menu";

export function DisplayServer() {
const { data, isError, isPending } = useServerSettings({ throwOnError: true });
const { data, isError, isPending } = useServerSettings({
throwOnError: true
});

if (isPending) return <Skeleton className="h-9 w-full" />;
if (isError) return null;
Expand Down Expand Up @@ -38,7 +40,9 @@ export function ServerSettingsMenu() {
},
{
name: "Secrets",
href: routes.settings.secrets.overview
href: routes.settings.secrets.overview,
isActiveOverride: (pathname: string) =>
pathname.startsWith(routes.settings.secrets.overview)
},
{
name: "Connectors",
Expand Down
3 changes: 2 additions & 1 deletion src/app/settings/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import NavLink from "@/components/NavLink";
type MenuItem = {
name: string;
href: string;
isActiveOverride?: (pathname: string) => boolean;
};

type MenuProps = {
Expand All @@ -15,7 +16,7 @@ export function SettingsMenu({ items }: MenuProps) {
<ul className="flex w-full flex-row flex-wrap items-center gap-1 lg:flex-col lg:items-start">
{items.map((item) => (
<li key={item.name} className="lg:w-full">
<NavLink end to={item.href}>
<NavLink end to={item.href} isActiveOverride={item.isActiveOverride}>
{item.name}
</NavLink>
</li>
Expand Down
Loading

0 comments on commit fb9a6c8

Please sign in to comment.