- api-auth.ts was al aanwezig; demo-check toegevoegd per endpoint (ST-401) - Token aanmaken (SHA-256 hash, eenmalig tonen), intrekken, max 10 (ST-402) - GET /api/products actieve productenlijst (ST-403) - GET /api/products/:id/next-story hoogst geprioriteerde open story (ST-404) - GET /api/sprints/:id/tasks met limit parameter (ST-405) - PATCH /api/stories/:id/tasks/reorder met ID-validatie (ST-406) - POST /api/stories/:id/log met discriminatedUnion per type (ST-407) - PATCH /api/tasks/:id status bijwerken met cross-user bescherming (ST-408) - POST /api/todos via API aanmaken (ST-409) - StoryLog component met kleurcodering per type in story slide-over (ST-410) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
1.4 KiB
TypeScript
34 lines
1.4 KiB
TypeScript
import { cookies } from 'next/headers'
|
|
import { getIronSession } from 'iron-session'
|
|
import { SessionData, sessionOptions } from '@/lib/session'
|
|
import Link from 'next/link'
|
|
|
|
export default async function SettingsPage() {
|
|
const session = await getIronSession<SessionData>(await cookies(), sessionOptions)
|
|
|
|
return (
|
|
<div className="p-6 max-w-2xl mx-auto w-full space-y-6">
|
|
<h1 className="text-xl font-medium text-foreground">Instellingen</h1>
|
|
|
|
<div className="bg-surface-container-low border border-border rounded-xl p-5 space-y-3">
|
|
<h2 className="text-sm font-medium text-foreground">Account</h2>
|
|
<p className="text-sm text-muted-foreground">
|
|
Ingelogd als <span className="text-foreground font-medium">{session.userId}</span>
|
|
{session.isDemo && <span className="ml-2 text-warning text-xs">(demo)</span>}
|
|
</p>
|
|
</div>
|
|
|
|
<div className="bg-surface-container-low border border-border rounded-xl p-5 space-y-3">
|
|
<div className="flex items-center justify-between">
|
|
<h2 className="text-sm font-medium text-foreground">API Tokens</h2>
|
|
<Link href="/settings/tokens" className="text-xs text-primary hover:underline">
|
|
Beheren →
|
|
</Link>
|
|
</div>
|
|
<p className="text-sm text-muted-foreground">
|
|
Gebruik API tokens om Scrum4Me te koppelen aan Claude Code.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|