feat(WP-0009): IHF GAAF Compliance Foundation — type registries, extension manifests, architectural contracts
Implements IHUB-WP-0009: closes four GAAF-2026 gaps before domain hub work begins.
- TypeRegistry helper + controllers/views (hub_kind, hub_capability_manifest)
- HubCapabilityManifest entity with validation and registry linkage
- ARCHITECTURE-LAYERS.md + CI-enforced boundary contracts
- Alembic migration 1743724800, fitness tests (Test/Architecture/)
- GAAF spec, Operational Architecture spec, domain hub extension guide
- Updates to CLAUDE.md, SCOPE.md, Schema.sql, Routes, FrontController, Types
state_hub_sync: pending (tunnel was STALE at completion time; run fix-consistency)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 21:17:39 +00:00
|
|
|
module Web.View.HubCapabilityManifests.New where
|
|
|
|
|
|
2026-04-11 23:40:31 +00:00
|
|
|
import Web.View.Prelude
|
2026-04-04 09:55:12 +00:00
|
|
|
import Web.Routes ()
|
feat(WP-0009): IHF GAAF Compliance Foundation — type registries, extension manifests, architectural contracts
Implements IHUB-WP-0009: closes four GAAF-2026 gaps before domain hub work begins.
- TypeRegistry helper + controllers/views (hub_kind, hub_capability_manifest)
- HubCapabilityManifest entity with validation and registry linkage
- ARCHITECTURE-LAYERS.md + CI-enforced boundary contracts
- Alembic migration 1743724800, fitness tests (Test/Architecture/)
- GAAF spec, Operational Architecture spec, domain hub extension guide
- Updates to CLAUDE.md, SCOPE.md, Schema.sql, Routes, FrontController, Types
state_hub_sync: pending (tunnel was STALE at completion time; run fix-consistency)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 21:17:39 +00:00
|
|
|
|
|
|
|
|
data NewView = NewView
|
|
|
|
|
{ manifest :: !HubCapabilityManifest
|
|
|
|
|
, hubs :: ![Hub]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
instance View NewView where
|
|
|
|
|
html NewView { .. } = [hsx|
|
|
|
|
|
<div class="mb-4">
|
|
|
|
|
<a href={HubCapabilityManifestsAction} class="text-sm text-gray-500 hover:text-gray-700">
|
|
|
|
|
← Capability Manifests
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<h1 class="text-xl font-semibold mb-6">New Capability Manifest</h1>
|
|
|
|
|
<div class="bg-amber-50 border border-amber-200 rounded p-4 mb-6 text-sm text-amber-800">
|
|
|
|
|
A capability manifest lets a domain or shared hub declare the widget types, event types,
|
|
|
|
|
annotation categories, and policy scopes it owns. Create a draft, declare your types,
|
|
|
|
|
then activate to register them with the framework.
|
|
|
|
|
</div>
|
2026-04-04 09:55:12 +00:00
|
|
|
<div class="bg-white rounded-lg border border-gray-200 p-6 max-w-lg">
|
|
|
|
|
{renderManifestForm manifest hubs}
|
|
|
|
|
</div>
|
feat(WP-0009): IHF GAAF Compliance Foundation — type registries, extension manifests, architectural contracts
Implements IHUB-WP-0009: closes four GAAF-2026 gaps before domain hub work begins.
- TypeRegistry helper + controllers/views (hub_kind, hub_capability_manifest)
- HubCapabilityManifest entity with validation and registry linkage
- ARCHITECTURE-LAYERS.md + CI-enforced boundary contracts
- Alembic migration 1743724800, fitness tests (Test/Architecture/)
- GAAF spec, Operational Architecture spec, domain hub extension guide
- Updates to CLAUDE.md, SCOPE.md, Schema.sql, Routes, FrontController, Types
state_hub_sync: pending (tunnel was STALE at completion time; run fix-consistency)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 21:17:39 +00:00
|
|
|
|]
|
|
|
|
|
|
2026-04-04 09:55:12 +00:00
|
|
|
renderManifestForm :: HubCapabilityManifest -> [Hub] -> Html
|
|
|
|
|
renderManifestForm manifest hubs = formFor manifest [hsx|
|
|
|
|
|
{selectField #hubId (hubOptions hubs)}
|
|
|
|
|
{(textareaField #capabilityDescription) { fieldLabel = "Capability Description" }}
|
|
|
|
|
{(textField #contact) { fieldLabel = "Contact (team or person)" }}
|
|
|
|
|
{submitButton { label = "Create Draft" }}
|
|
|
|
|
|]
|
|
|
|
|
|
feat(WP-0009): IHF GAAF Compliance Foundation — type registries, extension manifests, architectural contracts
Implements IHUB-WP-0009: closes four GAAF-2026 gaps before domain hub work begins.
- TypeRegistry helper + controllers/views (hub_kind, hub_capability_manifest)
- HubCapabilityManifest entity with validation and registry linkage
- ARCHITECTURE-LAYERS.md + CI-enforced boundary contracts
- Alembic migration 1743724800, fitness tests (Test/Architecture/)
- GAAF spec, Operational Architecture spec, domain hub extension guide
- Updates to CLAUDE.md, SCOPE.md, Schema.sql, Routes, FrontController, Types
state_hub_sync: pending (tunnel was STALE at completion time; run fix-consistency)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 21:17:39 +00:00
|
|
|
hubOptions :: [Hub] -> [(Text, Id Hub)]
|
|
|
|
|
hubOptions hubs = map (\h -> (h.name <> " (" <> h.hubKind <> ")", h.id)) hubs
|