Skip to content
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

chore(dashboard): rename relation dependency graph to relation graph #18612

Merged
merged 2 commits into from
Sep 23, 2024
Merged
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
2 changes: 1 addition & 1 deletion dashboard/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function Layout({ children }: { children: React.ReactNode }) {
</Section>
<Section>
<NavTitle>Streaming</NavTitle>
<NavButton href="/dependency_graph/">Relation Graph</NavButton>
<NavButton href="/relation_graph/">Relation Graph</NavButton>
<NavButton href="/fragment_graph/">Fragment Graph</NavButton>
</Section>
<Section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const rowMargin = 50
export const nodeRadius = 12
const layoutMargin = 50

export default function RelationDependencyGraph({
export default function RelationGraph({
nodes,
selectedId,
setSelectedId,
Expand Down
2 changes: 1 addition & 1 deletion dashboard/components/Relations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const dependentsColumn: Column<Relation> = {
name: "Depends",
width: 1,
content: (r) => (
<Link href={`/dependency_graph/?id=${r.id}`}>
<Link href={`/relation_graph/?id=${r.id}`}>
<Button
size="sm"
aria-label="view dependents"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ import _, { reverse, sortBy } from "lodash"
import Head from "next/head"
import { parseAsInteger, useQueryState } from "nuqs"
import { Fragment, useCallback, useEffect, useMemo, useState } from "react"
import RelationDependencyGraph, {
nodeRadius,
} from "../components/RelationDependencyGraph"
import RelationGraph, { nodeRadius } from "../components/RelationGraph"
import Title from "../components/Title"
import useErrorToast from "../hook/useErrorToast"
import useFetch from "../lib/api/fetch"
Expand Down Expand Up @@ -305,7 +303,7 @@ export default function StreamingGraph() {
>
<Text fontWeight="semibold">Relation Graph</Text>
{relationDependency && (
<RelationDependencyGraph
<RelationGraph
nodes={relationDependency}
selectedId={selectedId?.toString()}
setSelectedId={(id) => setSelectedId(parseInt(id))}
Expand Down
Loading