Skip to content

Commit

Permalink
chore(dashboard): rename relation dependency graph to relation graph (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel authored Sep 23, 2024
1 parent 039af9d commit 8fa0468
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
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

0 comments on commit 8fa0468

Please sign in to comment.