Commit Graph

5 Commits

Author SHA1 Message Date
davide f4c47a72ac Fix hashrate chart: auto-scale tooltip units, remove green block lines
- layout.pug: formatNetworkChartValue now calls scaleFromGH() for
  Hashrate labels instead of appending the fixed (GH/s) unit, so
  tooltip values match the Y-axis auto-scaled unit (MH/s…PH/s)
- custom.js: promote HASH_UNITS and scaleFromGH to global scope so
  layout.pug inline scripts can reuse them; fix unused 'mutations' param
- settings.json.tmpl: disable block_line on both charts (was green
  rgba(0,128,0)); color updated to purple rgba(120,60,220,0.25)
2026-04-29 22:21:07 +02:00
davide 88cba13e77 Redesign Purple theme with proper contrast and professional chart axes
Rebuilt the purple color palette from scratch using a 4-level luminance
scale (~3-5x jump per level: #06000f → #110028 → #1d0845 → #3a158a),
matching the approach of high-contrast Bootswatch dark themes (Darkly,
Cyborg). All contrast ratios are now WCAG-compliant: body text 16:1,
card header white text 8.5:1, primary button 5.5:1.

Chart axis improvements: Y-axis large numbers abbreviated (1.4M, 568K),
X-axis max 6 ticks at 30° rotation, Inter font throughout, dark-glass
tooltips, network_charts settings added to settings.json.tmpl with
transparent canvas background
2026-04-28 14:55:58 +02:00
davide 6f03cf10b3 Add Purple theme with custom UX design
- New 'Purple' theme based on Vapor with deep violet palette
- custom.scss: full UX redesign — pill search bar, gradient tables,
  card hover effects, purple badges, contrasted placeholder text
- Fix btn-success → purple gradient (was green)
- Switch default theme to Purple in settings template
2026-04-28 14:08:51 +02:00
davide e6c34a748b Fix coin supply: use TXOUTSET instead of GETINFO
BitcoinPurple does not implement getinfo; gettxoutsetinfo.total_amount
is the correct source for circulating supply
2026-04-28 13:49:55 +02:00
davide 306f494cd8 Add Docker setup for BitcoinPurple explorer
- Dockerfile: node:20-alpine, compiles SCSS at build time, single image
  used for web server and all sync modes (blocks, peers, markets)
- docker-compose.yml: explorer + MongoDB (bind-mounted ./db) on shared
  'purple' network alongside bitcoinpurpled and electrumx
- docker/entrypoint.sh: generates settings.json from env vars via
  envsubst, dispatches to web/sync-blocks/sync-peers/reindex modes
- docker/settings.json.tmpl: minimal settings template parametrized
  for BitcoinPurple (coin, wallet RPC, MongoDB, theme)
- docker/mongo-init.sh: creates app user in explorerdb on first start
- .env.example: pre-filled defaults for BitcoinPurple
- CLAUDE.md: codebase guidance for Claude Code
- .gitignore: add db/ (MongoDB bind-mount data directory)
2026-04-28 13:39:53 +02:00