Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.74 KB

paw-theme.md

File metadata and controls

45 lines (32 loc) · 1.74 KB

Paw theme validation

Paw amber and grey row markers use darker colors for contrast on light table rows. Details-dot and panel-header colors remain unchanged.

Populated browser fixtures

The tests load the actual core and plugin stylesheets. Device names, measurements, poller totals, and alerts are synthetic. These are browser fixtures, not a live installation.

Paw dashboard with populated monitoring panels

The browser opens a real jQuery UI details dialog, checks its alert data, and closes it. All four severity colors are checked against odd, even, and plain rows and the dark details titlebars.

Paw details with synthetic warning and error rows

Reproduce

Use the setup in Cacti theme validation. Set CACTI_ROOT to the adjacent core checkout and run from the plugin root:

NODE_PATH="$CACTI_ROOT/tests/e2e/node_modules" mise exec node@22 -- node \
  "$CACTI_ROOT/tests/e2e/node_modules/@playwright/test/cli.js" test \
  --config tests/e2e/playwright.config.cjs

Set UPDATE_THEME_SCREENSHOTS=1 to regenerate screenshots. Contrast checks compose alpha and sample sRGB gradient stops and interiors. They do not prove contrast for arbitrary image backgrounds or every pixel.

After committing, measure changed CSS line coverage:

mise exec python@3.12 -- python "$CACTI_ROOT/tests/tools/report_changed_coverage.py" \
  --base fix/modern-theme-status-contrast --language css --minimum 100 \
  --browser-root tests/e2e/test-results

This layer extends the shared browser tests above Modern in the native theme stack. Use origin/develop after the lower layers merge. The gate measures executed changed CSS lines, not whole-plugin or branch coverage.