2026-03-27 01:36:18 +00:00
|
|
|
module Main where
|
|
|
|
|
import IHP.Prelude
|
|
|
|
|
|
|
|
|
|
import Config
|
|
|
|
|
import qualified IHP.Server
|
|
|
|
|
import IHP.RouterSupport
|
|
|
|
|
import IHP.FrameworkConfig
|
|
|
|
|
import IHP.Job.Types
|
feat(T02-T11): IHF Phase 1 schema, controllers, views, and helpers
- Schema: hubs, widgets, widget_versions, interaction_events (append-only
trigger), annotations, users — single migration file
- Web layer: Types, Routes, FrontController with auth + AutoRefresh layout
- Controllers: Hubs (CRUD), Widgets (CRUD + versioning), InteractionEvents
(JSON capture, canonical event_type validation), Annotations (threaded,
append-only)
- Sessions controller for IHP auth
- Views: Hubs (index/show/new/edit), Widgets (index/show/new/edit),
Annotations (index/new), Sessions (login)
- widgetEnvelope helper with full data-* governance attributes
- Integration tests: Hub CRUD, Widget versioning, event capture, append-only
guard, annotation threading, validation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-27 01:42:43 +00:00
|
|
|
import Web.FrontController
|
|
|
|
|
import Web.Types
|
2026-03-27 01:36:18 +00:00
|
|
|
|
|
|
|
|
instance FrontController RootApplication where
|
feat(T02-T11): IHF Phase 1 schema, controllers, views, and helpers
- Schema: hubs, widgets, widget_versions, interaction_events (append-only
trigger), annotations, users — single migration file
- Web layer: Types, Routes, FrontController with auth + AutoRefresh layout
- Controllers: Hubs (CRUD), Widgets (CRUD + versioning), InteractionEvents
(JSON capture, canonical event_type validation), Annotations (threaded,
append-only)
- Sessions controller for IHP auth
- Views: Hubs (index/show/new/edit), Widgets (index/show/new/edit),
Annotations (index/new), Sessions (login)
- widgetEnvelope helper with full data-* governance attributes
- Integration tests: Hub CRUD, Widget versioning, event capture, append-only
guard, annotation threading, validation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-27 01:42:43 +00:00
|
|
|
controllers =
|
|
|
|
|
[ mountFrontController WebApplication
|
|
|
|
|
]
|
2026-03-27 01:36:18 +00:00
|
|
|
|
|
|
|
|
instance Worker RootApplication where
|
|
|
|
|
workers _ = []
|
|
|
|
|
|
|
|
|
|
main :: IO ()
|
|
|
|
|
main = IHP.Server.run config
|