Files
loki/scripts/preview/knowledge-map.fixture.ts
Cato 964777b7ac Make Memory explain projects, next actions and the research behind them (#1740)
* feat: connect project purpose, next actions and research in Memory

* test: resolve superseding essays through the real dynamic route
2026-11-30 05:51:51 +01:00

192 lines
4.9 KiB
TypeScript

import type { KnowledgeMap } from "../../src/lib/knowledge-map/model";
/** Synthetic records exercise the renderer; these are not portfolio claims. */
const at = "2026-11-15T12:00:00.000Z";
export const MAP_FIXTURE: KnowledgeMap = {
version: 1,
visibility: "private",
generatedAt: at,
notices: [],
programme: {
available: true,
tracks: [
{
title: "A connected workspace",
description: "Synthetic roadmap projection",
steps: [
{ title: "Recorded foundation", done: true },
{ title: "Owner walkthrough", done: false },
],
},
{
title: "Execution that proves its result",
description: "Synthetic roadmap projection",
steps: [{ title: "Capture real verification", done: false }],
},
],
},
nodes: [
{
id: "project:atlas",
name: "Atlas",
role: {
label: "Work & agents",
description: "Synthetic execution product: build and verify work privately.",
order: 1,
},
profile: {
nextStep: "Review the first guided project walkthrough with a customer.",
doneWhen: "A person can find a project, understand it and continue its work.",
},
kind: "project",
description: "A place to turn scattered ideas into a clear next step.",
href: "/projects/11111111-1111-4111-8111-111111111111",
source: "Project profile",
updatedAt: at,
work: {
date: "2026-11-15",
done: "Connected project records.",
next: "Review the first guided project walkthrough with a customer.",
tests: "Navigation checks passed.",
},
},
{
id: "project:canvas",
name: "Canvas",
role: {
label: "Economy & identity",
description: "Synthetic creative and economic product.",
order: 0,
},
kind: "project",
description: "A creative workspace for teams.",
href: "/projects",
source: "Project profile",
updatedAt: at,
},
{
id: "project:council",
name: "Council",
kind: "project",
description: "Shared decisions with a clear record.",
source: "Project profile",
updatedAt: at,
role: { label: "Shared decisions", description: "Synthetic governance product.", order: 2 },
href: "/projects",
},
{
id: "package:search",
name: "@example/search",
kind: "package",
description: "Shared discovery tools.",
href: "/packages",
source: "Package scan",
updatedAt: at,
},
{
id: "package:chat",
name: "@example/chat",
kind: "package",
description: "A shared conversation interface.",
href: "/packages",
source: "Package scan",
updatedAt: at,
},
{
id: "goal:launch",
name: "First paying customer",
kind: "goal",
description: "Validate that the workflow saves time.",
href: "/goals",
source: "Active goal",
updatedAt: at,
},
{
id: "entity:research",
name: "Customer research",
kind: "concept",
description: "Observed needs and interview notes.",
source: "Remembered entity",
updatedAt: at,
},
],
edges: [
{
id: "a",
from: "project:atlas",
to: "package:search",
label: "built with",
source: "Package scan",
observedAt: at,
detail: "1.2.0",
},
{
id: "b",
from: "project:canvas",
to: "package:search",
label: "built with",
source: "Package scan",
observedAt: at,
detail: "1.1.0",
},
{
id: "c",
from: "project:atlas",
to: "package:chat",
label: "built with",
source: "Package scan",
observedAt: at,
},
{
id: "d",
from: "project:atlas",
to: "goal:launch",
label: "working toward",
source: "Goal project link",
observedAt: at,
},
{
id: "e",
from: "project:atlas",
to: "project:canvas",
label: "integrates with",
source: "Recorded relationship",
observedAt: at,
},
{
id: "f",
from: "entity:research",
to: "project:atlas",
label: "informs",
source: "Recorded relationship",
observedAt: at,
},
],
};
/** Busy workspace: source grows while the visible neighborhood remains bounded. */
export const BUSY_MAP: KnowledgeMap = {
...MAP_FIXTURE,
nodes: [
...MAP_FIXTURE.nodes,
...Array.from({ length: 493 }, (_, i) => ({
id: `project:fixture-${i}`,
name: `Example project ${i}`,
kind: "project",
description: "Synthetic scale fixture",
source: "Project profile",
updatedAt: at,
})),
],
edges: [
...MAP_FIXTURE.edges,
...Array.from({ length: 493 }, (_, i) => ({
id: `fixture-edge-${i}`,
from: "project:atlas",
to: `project:fixture-${i}`,
label: "integrates with",
source: "Recorded relationship",
observedAt: at,
})),
],
};