fix(desktop): usability wiring — rubric fixture ids + cell-jump listener + artifact seed + empty panel

+ docs/integration-final-check.md — 5-item integration gate PASS
This commit is contained in:
ZiyaZhang
2026-07-19 06:06:47 -07:00
parent 52a2493495
commit 084cbd1208
16 changed files with 844 additions and 70 deletions

View File

@@ -0,0 +1,27 @@
#!/usr/bin/env node
// Regenerates src/renderer/artifact-board-seed.js from
// docs/artifact-board-fixture.json. Renderer runs at file:// so we inline
// the fixture instead of fetch().
//
// Usage: node scripts/regen-artifact-board-seed.js
'use strict'
const fs = require('fs')
const path = require('path')
const root = path.resolve(__dirname, '..')
const src = path.join(root, 'docs', 'artifact-board-fixture.json')
const dst = path.join(root, 'src', 'renderer', 'artifact-board-seed.js')
const j = JSON.parse(fs.readFileSync(src, 'utf8'))
const body = "// Auto-inlined artifact-board fixture. Renderer runs at file:// so we\n" +
"// inline docs/artifact-board-fixture.json here instead of relying on fetch().\n" +
"// To refresh: node scripts/regen-artifact-board-seed.js\n" +
"\n" +
"'use strict'\n" +
";(function () {\n" +
" if (typeof window === 'undefined') return\n" +
" window.__dshArtifactBoardSeed = " + JSON.stringify(j, null, 2) + ";\n" +
"})()\n"
fs.writeFileSync(dst, body)
console.log('wrote', dst, '(' + body.length + ' bytes)')

View File

@@ -0,0 +1,27 @@
#!/usr/bin/env node
// Regenerates src/renderer/rubric-fusion-seed.js from
// docs/rubric-fusion-fixture.json. Renderer runs at file:// so we inline
// the fixture instead of fetch().
//
// Usage: node scripts/regen-rubric-fusion-seed.js
'use strict'
const fs = require('fs')
const path = require('path')
const root = path.resolve(__dirname, '..')
const src = path.join(root, 'docs', 'rubric-fusion-fixture.json')
const dst = path.join(root, 'src', 'renderer', 'rubric-fusion-seed.js')
const j = JSON.parse(fs.readFileSync(src, 'utf8'))
const body = "// Auto-inlined fusion fixture. Renderer runs at file:// so we inline\n" +
"// docs/rubric-fusion-fixture.json here instead of relying on fetch().\n" +
"// To refresh: node scripts/regen-rubric-fusion-seed.js\n" +
"\n" +
"'use strict'\n" +
";(function () {\n" +
" if (typeof window === 'undefined') return\n" +
" window.__dshRubricFusionSeed = " + JSON.stringify(j, null, 2) + ";\n" +
"})()\n"
fs.writeFileSync(dst, body)
console.log('wrote', dst, '(' + body.length + ' bytes)')