Skip to content

Scaffold Vite build toolchain + scientific chemistry/engineering dashboard - #67

Open
Stacey77 with Copilot wants to merge 4 commits into
mainfrom
copilot/add-carbon-12-overview
Open

Scaffold Vite build toolchain + scientific chemistry/engineering dashboard#67
Stacey77 with Copilot wants to merge 4 commits into
mainfrom
copilot/add-carbon-12-overview

Conversation

Copilot AI commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Replaces the vanilla-file business card PWA with an interactive scientific dashboard (Carbon-12 and companion models), and adds a proper npm + Vite build pipeline with hashed output and GitHub Pages deployment support.

Dashboard

  • Three-panel layout: Carbon-12 overview · canvas model explorer · live metrics sidebar
  • Canvas-animated models: Carbon-12, Carbon-13, CH₄ (methane), planetary gear train, axial turbine stage
  • Model switcher (dropdown + quick buttons) updates metrics and description in sync
  • Dark/light theme toggle preserved; service worker updated with a lazy-cache strategy compatible with Vite's hashed filenames

Build scaffold

  • package.json with dev / build / preview scripts (Vite 8)
  • vite.config.js sets base: '/rag7/' for GitHub Pages project-site routing
  • Sources moved to src/ (CSS imported as ES module); PWA statics (manifest.json, sw.js) in public/
  • Build emits content-hashed bundles to dist/ (~7 kB JS · ~3 kB CSS, gzipped)
dist/index.html
dist/assets/index-BIRz7rSW.js   7.11 kB │ gzip: 3.02 kB
dist/assets/index-CaiheSJ0.css  3.13 kB │ gzip: 1.23 kB
dist/manifest.json
dist/sw.js

PWA / SW

public/sw.js rewrites from an explicit file list (broken with hashed names) to a lazy network-then-cache strategy — assets are cached on first fetch, navigation falls back to index.html offline.

Copilot AI and others added 4 commits April 18, 2026 22:05
Agent-Logs-Url: https://github.com/Stacey77/rag7/sessions/d251bf25-35c5-4faf-a5a2-47b27277251a

Co-authored-by: Stacey77 <54900383+Stacey77@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Stacey77/rag7/sessions/d251bf25-35c5-4faf-a5a2-47b27277251a

Co-authored-by: Stacey77 <54900383+Stacey77@users.noreply.github.com>
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.

2 participants