From d2dc6ff4f754df660fcebd28830a74089961947d Mon Sep 17 00:00:00 2001 From: "n.siegfried" Date: Mon, 15 Jun 2026 10:16:42 -0700 Subject: [PATCH] Remove discipline from WP types; prep for firewall hosting + feedback collection WP type discipline removal: - SOP WP Types step now has Enabled / Special Rules-Notes / WO Complete Approval columns (discipline column and DISCIPLINES/type-discipline maps gone) - WP Creator: drop the derived Discipline field, the type-trade number code, and discipline from saved packages and output; number tokens are now generic - Default WP number format no longer includes [Discipline] - Harden buildConstraints against object-shaped constraint names Firewall hosting: - Remove external Google Fonts @import; fall back to system fonts (no outbound calls, runs fully behind a firewall) Feedback collection: - Add shared feedback-config.js with a single FEEDBACK_ENDPOINT hook + best-effort postFeedback() (backend or Power Automate/SharePoint) - Add Export / Import to home and SOP feedback; wire central-post on all three surfaces (home, SOP step comments, WP review comments) - Add DEPLOYMENT.md documenting hosting and both feedback paths Co-Authored-By: Claude Opus 4.8 (1M context) --- DEPLOYMENT.md | 114 ++++++++++++++++++++++++++++++++++ feedback-config.js | 42 +++++++++++++ index.html | 43 ++++++++++++- work-package-suite-app.js | 91 +++++++++++++++------------ work-package-suite-styles.css | 18 +++++- work-package-suite.html | 16 +++-- wp-creation-app.js | 32 ++-------- wp-creation-index.html | 2 +- wp-creation-styles.css | 8 ++- 9 files changed, 288 insertions(+), 78 deletions(-) create mode 100644 DEPLOYMENT.md create mode 100644 feedback-config.js diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md new file mode 100644 index 0000000..12e99dd --- /dev/null +++ b/DEPLOYMENT.md @@ -0,0 +1,114 @@ +# Deployment & Feedback Collection + +The Work Package Suite is a **static client-side app** — plain HTML, CSS, and +JavaScript. There is no build step and no database. + +## Hosting it behind the firewall + +Copy the whole folder to any internal web server and serve it over HTTP(S): + +- **IIS / Apache / nginx** — drop the files in the site root. `index.html` is the + entry point. +- **SharePoint / network share** — works too, as long as the files are served + over `http(s)://` (not opened as `file://...`). Serving over HTTP makes + `localStorage` and the embedded Work Package Creator (an `