refactor: reorganize code + optimization

This commit is contained in:
2025-01-26 17:17:37 +00:00
parent 672917ac92
commit 1bc4206e39
11 changed files with 378 additions and 228 deletions

24
app/home/graph.ts Normal file
View File

@@ -0,0 +1,24 @@
interface Node {
key: string
outs: Record<string, Connection>
}
interface Entry {
name: string
stages: Node["key"][]
}
interface Connection {
nodeKey: Node["key"]
weight: number
}
const DEFAULT_NODE = {
applicationSubmittedNode: {
key: "Application submitted",
outs: {},
},
} as const
export { DEFAULT_NODE }
export type { Node, Entry, Connection }