Skip to content

feat(charts): Charts module + ServiceMap with degree sizing, focus hi…#1

Merged
aksOps merged 4 commits intomainfrom
feat/charts-and-service-map
Apr 28, 2026
Merged

feat(charts): Charts module + ServiceMap with degree sizing, focus hi…#1
aksOps merged 4 commits intomainfrom
feat/charts-and-service-map

Conversation

@aksOps
Copy link
Copy Markdown
Contributor

@aksOps aksOps commented Apr 28, 2026

No description provided.

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Apr 28, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedcytoscape-cose-bilkent@​4.1.09910010075100
Added@​deck.gl/​layers@​9.3.1981007898100
Added@​deck.gl/​core@​9.3.1961007998100
Addeduplot@​1.6.329910010080100
Addedd3-hierarchy@​3.1.210010010082100
Addedd3-force@​3.0.010010010082100
Addedcytoscape@​3.33.210010010092100

View full report

aksOps and others added 2 commits April 28, 2026 12:48
…files

The PR previously imported chart prop types from "../components" but
never declared them — typecheck failed with ~50 errors. This commit
makes the branch buildable end-to-end against current main.

src/components.ts — add chart prop interfaces (CHARTS section):
  RenderEngine, ChartType, ChartPoint, ChartSeries, ChartProps,
  SparklineProps, DonutSegment, DonutProps, RadialGaugeProps,
  UptimeStatus, UptimeCell, UptimeBarProps, TreemapNode, TreemapProps,
  ServiceNode, ServiceEdge, ServiceMapProps.

src/charts/Chart.tsx, ServiceMap.tsx, renderer.ts — remove unused
@ts-expect-error directives now that types resolve; cast cytoscape
through unknown for the extension registration; widen CytoElement
fields to overlap with cytoscape's EdgeSingular type.

src/components.d.ts — delete (stale duplicate of components.ts; main
renamed it in b43d802 and the PR branch had reintroduced it).

README.md.bundle — delete (transit artifact, not for git).

pnpm-lock.yaml — regenerate to add the 7 new chart peer-deps
(uplot, d3-hierarchy, d3-force, cytoscape, cytoscape-cose-bilkent,
@deck.gl/core, @deck.gl/layers).

tests/unit/setup.ts — stub ResizeObserver (jsdom doesn't implement
it; charts use it to track container width).

tests/unit/ServiceMap.test.tsx — new smoke test for the headline
chart component.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@aksOps aksOps force-pushed the feat/charts-and-service-map branch from 902e367 to 2030f79 Compare April 28, 2026 12:49
aksOps and others added 2 commits April 28, 2026 12:51
The design system uses Bricolage Grotesque (display), Plus Jakarta Sans
(body), and Geist Mono (code) — declared via @font-face in
colors_and_type.css. The Inter and JetBrainsMono woff2 files added by
the PR are not referenced in any @font-face, CSS rule, preview HTML,
or source file, so they're dead weight in the repo.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Until now the auto-generators only saw runtime exports from src/index.tsx,
so charts had source files, README copy, and CHANGELOG entries — but were
absent from the live docs site, llms.txt, and llms-full.txt. AI agents
querying llms.txt couldn't discover charts at all.

scripts/parse-source.mjs:
- Add parseChartsExports() that reads src/charts/index.ts and returns
  Map<name, fileBasename>. Restricted to files with a capitalised
  basename so utility re-exports (./theme, ./renderer) don't surface
  as components.

scripts/build-llms.mjs:
- New "Charts (subpath)" category with a CHART_PEER_DEPS map.
- llms.txt header counts core + chart components separately and notes
  the subpath. Usage example imports from both entry points.
- llms-full.txt entries for charts include source path under
  src/charts/, the import line with the /charts subpath, and a
  per-component peer-deps callout.

scripts/build-docs.mjs:
- New "Charts" docs category. Chart pages live at /docs/<Name>/
  alongside core components but render with subpath-aware metadata:
  src/charts/<Name>.tsx in the source line, /charts in the import,
  a Peer dependencies block, and a CHART_DEMOS map providing the
  canonical static example. Live preview is intentionally skipped
  (charts aren't in the IIFE bundle) — replaced with a deck-pattern
  placeholder that links to the matching preview/components-charts-*
  spec card.
- New CSS for .demo-render--static, .demo-static-note, ul.peer-deps.
- Final log line shows the core/chart split.

package.json: bump 0.2.1 → 0.3.0 to match the [0.3.0] CHANGELOG entry
that the original feature commit had already prepared.

Verified: typecheck clean, 143/143 unit tests pass, build:site emits
58 component pages (51 core + 7 charts) across 9 categories;
llms.txt grows from 6.8 KB to 7.8 KB and lists every chart under the
new section; llms-full.txt grows from 27 KB to 34.7 KB and includes
prop tables, import lines, and peer-dep callouts for all 7 charts.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@aksOps aksOps merged commit fb7f411 into main Apr 28, 2026
6 checks passed
@aksOps aksOps deleted the feat/charts-and-service-map branch April 28, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant