Skip to content

Refactor template JavaScript into static assets - #794

Merged
itsDNNS merged 4 commits into
mainfrom
refactor/external-template-scripts
Aug 15, 2026
Merged

Refactor template JavaScript into static assets#794
itsDNNS merged 4 commits into
mainfrom
refactor/external-template-scripts

Conversation

@itsDNNS

@itsDNNS itsDNNS commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • move dashboard, setup, settings, and connection-monitor behavior from executable template scripts into versioned static JavaScript assets
  • pass server data through inert application/json bootstrap blocks with validated browser-side contracts
  • add native Node 22 tests for bootstrap, URL, state, formatting, and service-worker policy behavior
  • preserve path-prefix routing and offline/PWA behavior without injecting executable inline JavaScript
  • add the pinned Node CI job and contributor test instructions

Verification

  • npm ci && npm test (9 passed)
  • python -m pytest tests/ -q --tb=short --ignore=tests/e2e (3730 passed, 2 skipped)
  • selected Chromium E2E for setup, settings, connection monitor, PWA, path prefixes, security, and mobile quality (170 passed)
  • 34 templates scanned with zero executable inline script bodies
  • browser runtime audit of dashboard, settings, and mobile setup with no page, console, or request errors
  • python scripts/i18n_check.py --validate (69 languages)

Tracking: https://github.com/itsDNNS/docsight-optimization-offensive/issues/3

Comment thread tests/test_static_contracts.py Fixed
Comment thread tests/test_static_contracts.py Fixed
@itsDNNS
itsDNNS merged commit 2ca7315 into main Aug 15, 2026
15 checks passed
@itsDNNS
itsDNNS deleted the refactor/external-template-scripts branch August 15, 2026 01:27
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