generated from coulomb/repo-seed
- Schema.sql: add FK constraints for phases 6–12 so IHP generates Id X instead of UUID for FK columns (widget_adapter_specs, friction_scores, hub_routing_rules, agent_proposals, hub_capability_manifests, etc.) - HubHealth, ModelRouter, ApiInteractionEvents: remove toUUID() wrappers now that FK columns carry proper Id types - FederatedGovernance/Dashboard, HubRoutingRules/Index: same Id comparison fix - AgentProposals/Index, DecisionRecords/Index, ApiConsumers/Edit: Id type fixes - BottleneckDetector: add Data.Coerce import; CrossHubPropagation: add guard - ApiKeys: qualify cryptohash-sha256 import to resolve package ambiguity - WebhookDeliveryJob: use LBS.fromStrict; remove duplicate diffUTCTime - Sessions/New: use renderFlashMessages (IHP built-in) - ArchiveRecords/LineageInspector: simplify renderChainStep signature - static/app.css: Tailwind CSS output (2011 lines) — A3 confirmed - workplans/IHUB-WP-0015-local-deployment-intro-ui.md: add workplan Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
38 lines
1.6 KiB
Haskell
38 lines
1.6 KiB
Haskell
module Web.View.Sessions.New where
|
|
|
|
import Web.Types
|
|
import Generated.Types
|
|
import IHP.Prelude
|
|
import IHP.ViewPrelude
|
|
import Web.Routes ()
|
|
|
|
data NewView = NewView { user :: !User }
|
|
|
|
instance View NewView where
|
|
html NewView { .. } = [hsx|
|
|
<div class="max-w-sm mx-auto mt-16">
|
|
<h1 class="text-2xl font-semibold mb-6">Sign in to inter-hub</h1>
|
|
<form method="POST" action={CreateSessionAction} class="space-y-4">
|
|
{renderFlashMessages}
|
|
<div>
|
|
<label class="block text-sm font-medium text-gray-700 mb-1">Email</label>
|
|
<input type="email" name="email" required
|
|
class="w-full border border-gray-300 rounded px-3 py-2 text-sm
|
|
focus:outline-none focus:ring-2 focus:ring-indigo-500" />
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium text-gray-700 mb-1">Password</label>
|
|
<input type="password" name="password" required
|
|
class="w-full border border-gray-300 rounded px-3 py-2 text-sm
|
|
focus:outline-none focus:ring-2 focus:ring-indigo-500" />
|
|
</div>
|
|
<button type="submit"
|
|
class="w-full bg-indigo-600 text-white rounded px-4 py-2 text-sm font-medium
|
|
hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500">
|
|
Sign in
|
|
</button>
|
|
</form>
|
|
</div>
|
|
|]
|
|
|