mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-06 19:35:44 +02:00
exclude meetings from graph view
This commit is contained in:
parent
e408f859d6
commit
484231b224
1 changed files with 8 additions and 3 deletions
|
|
@ -3480,12 +3480,17 @@ function App() {
|
|||
return
|
||||
}
|
||||
|
||||
const nodeSet = new Set(knowledgeFilePaths)
|
||||
const graphFilePaths = knowledgeFilePaths.filter((p) => {
|
||||
const normalized = stripKnowledgePrefix(p)
|
||||
return !normalized.toLowerCase().startsWith('meetings/')
|
||||
})
|
||||
|
||||
const nodeSet = new Set(graphFilePaths)
|
||||
const edges: GraphEdge[] = []
|
||||
const edgeKeys = new Set<string>()
|
||||
|
||||
const contents = await Promise.all(
|
||||
knowledgeFilePaths.map(async (path) => {
|
||||
graphFilePaths.map(async (path) => {
|
||||
try {
|
||||
const result = await window.ipc.invoke('workspace:readFile', { path })
|
||||
return { path, data: result.data as string }
|
||||
|
|
@ -3544,7 +3549,7 @@ function App() {
|
|||
}
|
||||
}
|
||||
|
||||
const nodes = knowledgeFilePaths.map((path) => {
|
||||
const nodes = graphFilePaths.map((path) => {
|
||||
const degree = degreeMap.get(path) ?? 0
|
||||
const radius = 6 + Math.min(18, degree * 2)
|
||||
const { group, depth } = getNodeGroup(path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue