Commit Graph
7 Commits
Author SHA1 Message Date
s0lrayandPaperclip b52bfbcbe2 feat(ui): responsive SVG viewport, Inter typography, expanded CSS tokens (THE-72)
- Replace fixed SVG width/height attrs with viewBox + preserveAspectRatio so the
  tree scales naturally across screen sizes
- Switch font-family to Inter/system-font stack via --font-family token
- Add spacing tokens (--space-1 through --space-6, 4px scale)
- Add border-radius tokens (--radius-sm, --radius-md)
- Add shadow tokens (--shadow-sm, --shadow-md) with light-mode overrides
- Add --color-accent and --color-border for future theming use
- Add font-size tokens (--font-size-sm/base/lg/xl)
- Wire up new tokens throughout existing CSS rules

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-24 18:46:05 -04:00
s0lrayandPaperclip 05c15eaf47 feat(ui): implement dark mode as default with CSS variables and theme persistence
Closes THE-34, THE-35, THE-36.

- Replaces all hardcoded colors in arf.css with CSS custom properties
- Dark palette defined on :root (default); light palette on body.light-mode
- Removes old .dark-Mode class; D3 inline styles now read CSS vars at render time
- goDark() toggles light-mode class and persists preference to localStorage
- Flash-prevention inline script in body applies stored theme before first paint
- Toggle button label reflects current theme state

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-24 07:27:28 -04:00
0e83fdc121 Fix D3 tree not rendering: remove null entry in arf.json
d3.hierarchy() in D3 v7 does not tolerate null entries in children
arrays (v3 was lenient). A null element at Username.children[1] caused
the entire tree to fail silently.

- Remove the null entry from arf.json
- Add a defensive children filter in d3.hierarchy() call so future
  null entries degrade gracefully instead of breaking the tree

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 18:21:53 -04:00
s0lrayandPaperclip 82a9c32850 Migrate D3 v3 to v7: update arf.js, index.html, and CI
- Replace d3.layout.tree() with d3.tree()
- Replace d3.svg.diagonal() with d3.linkHorizontal() (x/y accessors swap coords)
- Replace d3.json(url, cb) with d3.json(url).then(cb)
- Replace d3.hierarchy() for root node; use .descendants() and .links()
- Strip svg: namespace prefixes from append/insert calls
- Update xlink:href to href on anchor elements
- Update data accessors to use d.data.name, d.data.url, etc.
- Fix .style("fill") call (was malformed in v3 code)
- Update event handler signature to (event, d) for D3 v7
- Use node.merge(nodeEnter) and link.merge(linkEnter) for v5+ update pattern
- Add public/js/d3.min.js (v7.9.0) copied from node_modules
- Update index.html to load d3.min.js instead of d3.v3.min.js
- Update CI smoke test to check for d3.min.js
- Keep d3.v3.min.js in place until visual parity confirmed

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-23 17:28:56 -04:00
Kyle Matthews 9c5e4caaea Added Dark Mode/Fixed file placement problem 2024-10-02 19:22:42 -04:00
s0lray 4a32c697ba site updates
site updates
2017-01-19 21:35:47 -05:00
treefort f7a6d43aee moved dist files into /public
…updating relative paths commensurately
2016-08-19 00:08:00 -04:00