inter-hub-haskell/Web/Controller
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
..
Api/V2 fix(WP-0014): pre-flight compilation fixes, Tailwind pipeline, and admin seed 2026-04-04 09:55:12 +00:00
AdaptiveThresholds.hs feat(WP-0013): IHF Phase 12 — Platform Memory and Continuous Learning 2026-04-03 12:34:07 +00:00
AgentDelegations.hs feat: integrate llm-connect FR-1/FR-3/FR-4 into IHF bridge 2026-04-01 22:48:29 +00:00
AgentProposals.hs feat(P5): IHF Phase 5 complete — agent-assisted distillation 2026-03-29 15:54:33 +00:00
AgentRegistrations.hs feat(WP-0012): IHF Phase 11 — Advanced AI Federation 2026-04-01 20:57:17 +00:00
AiGovernancePolicies.hs feat(WP-0012): IHF Phase 11 — Advanced AI Federation 2026-04-01 20:57:17 +00:00
Annotations.hs feat(WP-0009): IHF GAAF Compliance Foundation — type registries, extension manifests, architectural contracts 2026-03-31 21:17:39 +00:00
AnnotationThreads.hs feat(P2+P3): IHF Phase 2 complete; register Phase 3 workplan 2026-03-29 10:42:56 +00:00
ApiConsumers.hs feat(WP-0010): IHF Phase 9 — External API Surface and Consumer SDKs 2026-04-01 19:52:20 +00:00
ApiDashboard.hs feat(WP-0010): IHF Phase 9 — External API Surface and Consumer SDKs 2026-04-01 19:52:20 +00:00
ApiInteractionEvents.hs fix(WP-0014): pre-flight compilation fixes, Tailwind pipeline, and admin seed 2026-04-04 09:55:12 +00:00
ApiKeys.hs feat(WP-0010): IHF Phase 9 — External API Surface and Consumer SDKs 2026-04-01 19:52:20 +00:00
ArchiveRecords.hs feat(P8): IHF Phase 8 complete — Federated Hub Maturity 2026-03-29 22:53:01 +00:00
CollectiveProposals.hs feat: integrate llm-connect FR-1/FR-3/FR-4 into IHF bridge 2026-04-01 22:48:29 +00:00
CrossHubPropagations.hs feat(P7): IHF Phase 7 complete — advanced observability and operational integration 2026-03-29 21:49:22 +00:00
DecisionRecords.hs feat(WP-0013): IHF Phase 12 — Platform Memory and Continuous Learning 2026-04-03 12:34:07 +00:00
DeploymentRecords.hs feat(P4): IHF Phase 4 complete — Outcome Observation and Antifragility Loop 2026-03-29 12:27:30 +00:00
EnvelopeEmissionContracts.hs feat(P6/T02-T03): EnvelopeEmissionContract and InteractionReportingContract 2026-03-29 21:11:03 +00:00
FederatedGovernance.hs feat(P8): IHF Phase 8 complete — Federated Hub Maturity 2026-03-29 22:53:01 +00:00
FederatedPolicyOverlays.hs feat(P8): IHF Phase 8 complete — Federated Hub Maturity 2026-03-29 22:53:01 +00:00
GovernanceTemplates.hs feat(WP-0011): IHF Phase 10 — Hub Registry and Widget Marketplace 2026-04-01 20:14:43 +00:00
HubCapabilityManifests.hs feat(WP-0009): IHF GAAF Compliance Foundation — type registries, extension manifests, architectural contracts 2026-03-31 21:17:39 +00:00
HubRegistry.hs fix(WP-0014): pre-flight compilation fixes, Tailwind pipeline, and admin seed 2026-04-04 09:55:12 +00:00
HubRoutingRules.hs feat(WP-0009): IHF GAAF Compliance Foundation — type registries, extension manifests, architectural contracts 2026-03-31 21:17:39 +00:00
Hubs.hs feat(WP-0009): IHF GAAF Compliance Foundation — type registries, extension manifests, architectural contracts 2026-03-31 21:17:39 +00:00
InstitutionalKnowledge.hs feat(WP-0013): IHF Phase 12 — Platform Memory and Continuous Learning 2026-04-03 12:34:07 +00:00
InteractionEvents.hs fix(WP-0014): pre-flight compilation fixes, Tailwind pipeline, and admin seed 2026-04-04 09:55:12 +00:00
InteractionReportingContracts.hs feat(P6/T02-T03): EnvelopeEmissionContract and InteractionReportingContract 2026-03-29 21:11:03 +00:00
LearningDashboard.hs feat(WP-0013): IHF Phase 12 — Platform Memory and Continuous Learning 2026-04-03 12:34:07 +00:00
LineageEnrichment.hs feat(WP-0013): IHF Phase 12 — Platform Memory and Continuous Learning 2026-04-03 12:34:07 +00:00
MarketplaceDashboard.hs feat(WP-0011): IHF Phase 10 — Hub Registry and Widget Marketplace 2026-04-01 20:14:43 +00:00
ModelRoutingPolicies.hs feat(WP-0012): IHF Phase 11 — Advanced AI Federation 2026-04-01 20:57:17 +00:00
OutcomeCorrelations.hs feat(WP-0013): IHF Phase 12 — Platform Memory and Continuous Learning 2026-04-03 12:34:07 +00:00
PatternPerformance.hs feat(WP-0013): IHF Phase 12 — Platform Memory and Continuous Learning 2026-04-03 12:34:07 +00:00
RequirementCandidates.hs fix: migrate DetectPolicySensitivityAction to routed agent pattern 2026-04-03 12:34:07 +00:00
Requirements.hs feat(P3): IHF Phase 3 complete — Governance and Decision Linkage 2026-03-29 10:42:56 +00:00
Sessions.hs feat(T02-T11): IHF Phase 1 schema, controllers, views, and helpers 2026-03-27 01:42:43 +00:00
StewardshipRoles.hs feat(P8): IHF Phase 8 complete — Federated Hub Maturity 2026-03-29 22:53:01 +00:00
TypeRegistries.hs fix(WP-0014): pre-flight compilation fixes, Tailwind pipeline, and admin seed 2026-04-04 09:55:12 +00:00
WebhookSubscriptions.hs feat(WP-0010): IHF Phase 9 — External API Surface and Consumer SDKs 2026-04-01 19:52:20 +00:00
WidgetAdapterSpecs.hs feat(P6/T04): WidgetAdapterSpecsController, registry, widget adapter integration 2026-03-29 21:14:57 +00:00
WidgetOwnerships.hs feat(P8): IHF Phase 8 complete — Federated Hub Maturity 2026-03-29 22:53:01 +00:00
WidgetPatterns.hs feat(WP-0011): IHF Phase 10 — Hub Registry and Widget Marketplace 2026-04-01 20:14:43 +00:00
Widgets.hs feat: integrate llm-connect FR-1/FR-3/FR-4 into IHF bridge 2026-04-01 22:48:29 +00:00