@@ -297,13 +298,13 @@ function parseRecentChanges(md: string): RecentChange[] {
}
function renderOpsGraph(projects: PortalProject[]): string {
- // Build a small project-centric graph: hub "amp" + top N projects radially.
+ // Build a small project-centric graph: MemBerry hub + top N projects radially.
const W = 1200, H = 520, cx = W / 2, cy = H / 2;
const top = projects
.filter((p) => p.entities + p.facts + p.sessions > 0)
.sort((a, b) => (b.entities + b.facts + b.sessions) - (a.entities + a.facts + a.sessions))
.slice(0, 12);
- const hub = { id: 'amp', label: 'amp', x: cx, y: cy, size: 28, href: '/wiki/projects/amp/_index' };
+ const hub = { id: 'memberry', label: 'MemBerry', x: cx, y: cy, size: 28, href: '/wiki/_index' };
const nodes = top.map((p, i) => {
const angle = (2 * Math.PI * i) / top.length - Math.PI / 2;
const r = 200 + (i % 3) * 25;
@@ -322,13 +323,17 @@ function renderOpsGraph(projects: PortalProject[]): string {
`
`,
).join('');
- const renderNode = (n: typeof hub) => `
+ const renderNode = (n: typeof hub) => {
+ const diameter = n.size * 2;
+ const labelClass = n.id === 'memberry' ? 'node-label node-label-brand' : 'node-label';
+ return `