Files
system-control/firmware/.github/prompts/website-change-check.prompt.md
T
2026-03-17 20:19:24 +01:00

1.5 KiB

description, name, argument-hint, agent
description name argument-hint agent
Validate frontend changes: build, test, and check for regressions against API expectations and existing features. Website Change Check Summary of changes made (e.g., routing update, new component, dependency upgrade) agent

Website Change Check

Run a quick validation pass on frontend changes:

Steps:

  1. Build Check: Run npm run build and report any TypeScript/Svelte errors
  2. Test Check: Run npm run test and report test coverage or failures
  3. API Compatibility: Verify endpoint usage (search codebase for /api calls) matches current routes in README-API.md
  4. Asset Integrity: Confirm static asset paths and fetch patterns still work with firmware's static-file server (including gzip fallback)
  5. Summary: List any breaking changes or build artifacts that need cleanup

Context:

  • Website builds and tests must pass for firmware flashing
  • Static assets are served by api-server with potential gzip variants
  • Captive portal access (AP mode) expects /, /index.html → redirect to /captive.html

Reference:

Expected Output:

  • or for each check
  • Specific error messages or warnings
  • Suggested fixes (if any)