inter-hub-haskell/Application/Migration
Bernd Worsch f1978c3888 fix(WP-0014): pre-flight compilation fixes, Tailwind pipeline, and admin seed
A2 — Compilation fixes:
- Remove inline FK constraints from Schema.sql; IHP schema compiler cannot
  parse them. Add 1744329600-restore-fk-constraints.sql migration to restore
  referential integrity at the DB level.
- Rename `#label` → `#label_` throughout to avoid clash with Haskell built-in.
- Fix `hub.id == hid` UUID comparisons to use `toUUID hub.id`.
- Replace non-existent `setStatus`/`respondJson` calls with
  `renderJsonWithStatusCode` throughout Api controllers.
- Fix qualified package import for `cryptohash-sha256` in Auth.hs.
- Add `CanSelect (Text, Text)` instance in Helper.View.
- Refactor HSX inline lambdas to named helper functions in 100+ views
  (GHC cannot infer types for anonymous functions inside quasi-quoted HSX).
- Fix missing imports (IHP.QueryBuilder, IHP.Fetch, Web.Routes, Only, etc.)
  across helpers and controllers.
- Remove duplicate `diffUTCTime` definition in BottleneckDetector.
- Change `createEventForHub` return type from `IO ResponseReceived` to `IO ()`.
- Seed type-registry vocabulary via 1744502400-seed-type-registries.sql
  (moved from Schema.sql where IHP does not execute INSERT statements).

A3 — Tailwind build pipeline:
- Add `tailwindcss` to flake.nix native packages.
- Uncomment `tailwind.exec` process in devenv shell config.
- Add tailwind/tailwind.config.js (scans Web/View/**/*.hs).
- Add tailwind/app.css with @tailwind directives.

A4 — Admin user seed:
- Add 1744416000-seed-admin-user.sql: inserts admin@inter-hub.local
  with bcrypt-hashed password admin1234! (cost 10).
- Add .env.example documenting all required environment variables
  and default admin credentials.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 09:55:12 +00:00
..
1743034800-ihf-phase1-initial-schema.sql feat(T02-T11): IHF Phase 1 schema, controllers, views, and helpers 2026-03-27 01:42:43 +00:00
1743120000-ihf-phase2-feedback-triage.sql feat(P2+P3): IHF Phase 2 complete; register Phase 3 workplan 2026-03-29 10:42:56 +00:00
1743206400-ihf-phase3-governance.sql feat(P3): IHF Phase 3 complete — Governance and Decision Linkage 2026-03-29 10:42:56 +00:00
1743292800-ihf-phase4-outcome-observation.sql feat(P4): IHF Phase 4 complete — Outcome Observation and Antifragility Loop 2026-03-29 12:27:30 +00:00
1743379200-ihf-phase5-agent-distillation.sql feat(P5): IHF Phase 5 complete — agent-assisted distillation 2026-03-29 15:54:33 +00:00
1743465600-ihf-phase6-cross-framework-adaptation.sql feat(P6/T01): Phase 6 schema — WidgetAdapterSpec, contracts, widgets.adapter_spec_id 2026-03-29 21:03:00 +00:00
1743552000-ihf-phase7-advanced-observability.sql feat(P7): IHF Phase 7 complete — advanced observability and operational integration 2026-03-29 21:49:22 +00:00
1743638400-ihf-phase8-federated-hub-maturity.sql feat(P8): IHF Phase 8 complete — Federated Hub Maturity 2026-03-29 22:53:01 +00:00
1743724800-ihf-gaaf-compliance-foundation.sql feat(WP-0009): IHF GAAF Compliance Foundation — type registries, extension manifests, architectural contracts 2026-03-31 21:17:39 +00:00
1743811200-ihf-phase9-external-api.sql feat(WP-0010): IHF Phase 9 — External API Surface and Consumer SDKs 2026-04-01 19:52:20 +00:00
1743897600-ihf-phase10-hub-registry.sql feat(WP-0011): IHF Phase 10 — Hub Registry and Widget Marketplace 2026-04-01 20:14:43 +00:00
1744156800-ihf-phase11-ai-federation.sql feat(WP-0012): IHF Phase 11 — Advanced AI Federation 2026-04-01 20:57:17 +00:00
1744243200-ihf-phase12-platform-memory.sql feat(WP-0013): IHF Phase 12 — Platform Memory and Continuous Learning 2026-04-03 12:34:07 +00:00
1744329600-restore-fk-constraints.sql fix(WP-0014): pre-flight compilation fixes, Tailwind pipeline, and admin seed 2026-04-04 09:55:12 +00:00
1744416000-seed-admin-user.sql fix(WP-0014): pre-flight compilation fixes, Tailwind pipeline, and admin seed 2026-04-04 09:55:12 +00:00
1744502400-seed-type-registries.sql fix(WP-0014): pre-flight compilation fixes, Tailwind pipeline, and admin seed 2026-04-04 09:55:12 +00:00