feat: add python analysis scripts and HTML reporting templates for nap and attendance data
CI Verification / Lint & Extension Integrity Check (push) Successful in 2m58s

This commit is contained in:
2026-08-23 22:28:01 -07:00
parent fb73590c3e
commit 0e23532113
5 changed files with 3448 additions and 5 deletions
+18 -5
View File
@@ -10,16 +10,28 @@ DIST_DIR := dist
ZIP_NAME := brightwheel-exporter-v$(VERSION).zip
ZIP_PATH := $(DIST_DIR)/$(ZIP_NAME)
.PHONY: all build zip check clean help
.PHONY: all build zip check clean help analyze-naps analyze-attendance
all: build
## help: Display this help message
help:
@echo "Available commands:"
@echo " make build (or make zip) - Build the Chrome Web Store production ZIP package"
@echo " make check - Verify JavaScript syntax and manifest validity"
@echo " make clean - Remove the dist directory and build artifacts"
@echo " make build (or make zip) - Build the Chrome Web Store production ZIP package"
@echo " make check - Verify JavaScript syntax and manifest validity"
@echo " make analyze-naps - Run nap analysis (e.g. make analyze-naps INPUT=path/to/export)"
@echo " make analyze-attendance - Run attendance analysis (e.g. make analyze-attendance INPUT=path/to/export)"
@echo " make clean - Remove the dist directory and build artifacts"
## analyze-naps: Run the nap & sleep data analyzer on any exported dataset
INPUT ?= exports/
OUTDIR ?= $(INPUT)
analyze-naps:
@python3 tools/analyze_naps.py --input $(INPUT) --outdir $(OUTDIR)
## analyze-attendance: Run the attendance & daily schedule analyzer on any exported dataset
analyze-attendance:
@python3 tools/analyze_attendance.py --input $(INPUT) --outdir $(OUTDIR)
## check: Verify JavaScript syntax and manifest validity
check:
@@ -40,10 +52,11 @@ build: check
-x ".githooks/*" \
-x ".github/*" \
-x "$(DIST_DIR)/*" \
-x "emmy/*" \
-x "tools/*" \
-x "exports/*" \
-x "data/*" \
-x "test_data/*" \
-x "*_export/*" \
-x "screenshots/*" \
-x "Makefile" \
-x "*.md" \