Skip to content
Draft
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
14 changes: 14 additions & 0 deletions ui/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -296,3 +296,17 @@
opacity: 0;
}
}

/* Compose canvas (prototype): smooth live-traffic transitions. Edge width
and color track the simulated per-boundary rps/error figures, so they
ease between ticks instead of snapping. */
.compose-canvas .react-flow__edge-path {
transition:
stroke 700ms ease,
stroke-width 700ms ease,
opacity 700ms ease;
}

.compose-canvas .react-flow__node {
transition: transform 500ms cubic-bezier(0.33, 1, 0.68, 1);
}
16 changes: 16 additions & 0 deletions ui/studio/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,22 @@ export function Navigation({ className }: NavigationProps) {
</a>
</Navigation.Item>
)}
<Navigation.Item
asChild
isActive={viewParam === "compose"}
className={navigationItemClasses}
>
<a
href={createUrl({
schemaParam,
viewParam: "compose",
})}
className="w-full"
data-testid="navigation-compose-item"
>
Compose
</a>
</Navigation.Item>
</Navigation.Block>

<Navigation.SearchableBlock
Expand Down
2 changes: 2 additions & 0 deletions ui/studio/Studio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { StudioContextProvider, useStudio } from "./context";
import { IntrospectionStatusNotice } from "./IntrospectionStatusNotice";
import { Navigation } from "./Navigation";
import { StudioHeader } from "./StudioHeader";
import { ComposeView } from "./views/compose/ComposeView";
import { ConsoleView } from "./views/console/ConsoleView";
import { MigrationsView } from "./views/migrations/MigrationsView";
import { QueriesView } from "./views/queries/QueriesView";
Expand Down Expand Up @@ -118,6 +119,7 @@ const views: Record<string, (props: ViewProps) => JSX.Element | null> = {
console: ConsoleView,
sql: SqlView,
migrations: MigrationsView,
compose: ComposeView,
default: BasicView,
};

Expand Down
Loading