Skip to content

Chore/dev experience improvements#115

Draft
ConsciousEnergy wants to merge 4 commits intoEpisk-pos:mainfrom
ConsciousEnergy:chore/dev-experience-improvements
Draft

Chore/dev experience improvements#115
ConsciousEnergy wants to merge 4 commits intoEpisk-pos:mainfrom
ConsciousEnergy:chore/dev-experience-improvements

Conversation

@ConsciousEnergy
Copy link

This PR includes several developer experience improvements and bug fixes.

Changes:

  • Cross-platform database download script (Node.js, Windows compatible)
  • Proper error handling in download script (file write errors, response stream cleanup)
  • Ignore SpecStory test artifacts in .gitignore
  • Re-enable Network visualization E2E test with specific selector

Bug Fixes:

  • File write error handler prevents silent failures
  • Response stream destruction prevents resource leaks
  • File stream close event handling (Windows file deletion fix)
  • Premature promise resolution fix (proper file flush before resolve)
  • E2E test uses a specific selector to avoid false positives from icon SVGs

Testing:

  • ✅ Verified download script works on Windows
  • ✅ Verified Network test uses correct selector
  • ✅ Verified file stream cleanup works correctly

Files Changed:

  • scripts/download-db.js (new) - Cross-platform download script
  • package.json - Updated download script command
  • .gitignore - Added SpecStory ignore patterns
  • e2e/tests/cascade-visualizations.spec.ts - Re-enabled Network test with specific selector

ConsciousEnergy added 4 commits December 14, 2025 11:13
- Add cross-platform database download script (Node.js, Windows compatible)
- Add file write error handler to download script
- Ignore SpecStory test artifacts in .gitignore
- Re-enable Network visualization E2E test

Files:
- scripts/download-db.js (new)
- package.json
- .gitignore
- e2e/tests/cascade-visualizations.spec.ts
- Replace generic 'svg.first()' selector with container-specific selector
- Prevents false positives from icon SVGs that appear earlier in DOM
- Uses '.rounded-lg.border.relative.overflow-hidden' container to locate Network diagram
- Fix Windows file deletion issue: wait for 'close' event before unlinkSync()
- Fix premature promise resolution: wait for 'close' event before resolving
- Ensures file descriptor is fully closed and data flushed to disk
- Prevents issues with subsequent file operations (e.g. readFileSync)
- Applies fix to all error handlers and success handler
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.

1 participant