undef-dice
2026-02-05
Operational excellence pass: ErrorBoundary, escape-html utility, logging standardization, and ESLint tightening
127 files · 13,816+ · 4,629-
New capabilities
4 files changed
REVIEW_CHECKLIST.mdOperational excellence review criteria checklistErrorBoundary.tsxReact error boundary for graceful error handlingescape-html.tsHTML escaping utility for safe renderingdefaults.tsNew defaults configuration
- Added
REVIEW_CHECKLIST.mdwith operational excellence review criteria specify internal1 file
REVIEW_CHECKLIST.md
- Created
ErrorBoundary.tsxcomponent for graceful React error handling harden behavioral1 file
ErrorBoundary.tsx
- Added
src/utils/escape-html.tsutility for safe HTML rendering harden internal1 file
escape-html.ts
- Added new defaults configuration in
src/config/defaults.tsbaseline internal1 file
defaults.ts
Code quality refactoring
14 files changed
roll.tsCleaner roll orchestration logic (~385 line diff)main.tsSimplified by removing ~80 lines of redundant initializationmessaging.tsStandardized loggingbootstrap.tsStandardized loggingui-setup.tsStandardized loggingmesh-factory.tsExtracted mesh-factory helper logicpresets.tsImproved preset handlingDiceRoller.tsxMinor type and import fixesDiceScene.tsxMinor type and import fixesDie.tsxMinor type and import fixesPlaybackDie.tsxMinor type and import fixesUndefDiceApp.tsxMinor type and import fixesuseDiceStore.tsCleaner store interfaceuseEffectsStore.tsCleaner store interface
- Overhauled
src/game/roll.ts(~385 line diff) with cleaner roll orchestration logic remediate internal1 file
roll.ts
- Simplified
src/main.tsby removing ~80 lines of redundant initialization remediate internal1 file
main.ts
- Standardized logging across
messaging.ts,bootstrap.ts,ui-setup.ts, and other modules to use the centralized logger remediate internal3 files
messaging.tsbootstrap.tsui-setup.ts
- Extracted mesh-factory helper logic in
src/dice/mesh-factory.tsremediate internal1 file
mesh-factory.ts
- Updated
src/ui/presets.tswith improved preset handling remediate behavioral1 file
presets.ts
- Cleaned up
src/react-app/components with minor type and import fixes remediate internal3 files
DiceRoller.tsxDiceScene.tsxDie.tsx
Tooling and dependencies
4 files changed
eslint.config.jsStricter ESLint rulespackage.jsonRemoved unused fuse.js dependencyvite.config.tsBuild configuration updatestsconfig.build.jsonTypeScript build configuration updates
- Expanded ESLint config with stricter rules
baseline
internal
1 file
eslint.config.js
- Removed unused
fuse.jsdependency frompackage.jsonbaseline internal1 file
package.json
- Fixed ESLint errors across test files and source
remediate
internal
3 files
eslint.config.jsuseCameraStore.test.tsuseDiceStore.test.ts