MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / screen

Function screen

__tests__/ui-screens-model.test.ts:72–82  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

70const R = (path: string): string => `route:${path}`;
71
72function screen(path: string): WireScreen {
73 return {
74 id: R(path),
75 path,
76 file: `src/app${path === '/' ? '/index' : path}.tsx`,
77 line: 1,
78 component: ref(path === '/' ? 'Index' : path.replace(/[^a-z0-9]/gi, '')),
79 incoming: 0,
80 outgoing: 0,
81 };
82}
83
84function origin(name: string, sharedBy?: number): WireScreenOrigin {
85 return { id: `function:${name}`, node: ref(name), outgoing: 1, ...(sharedBy ? { sharedBy } : {}) };

Callers 3

hubFunction · 0.70
fanFunction · 0.70

Calls 2

RFunction · 0.85
refFunction · 0.70

Tested by

no test coverage detected