diff --git a/docs/superpowers/plans/2026-06-04-agenda-author-display.md b/docs/superpowers/plans/2026-06-04-agenda-author-display.md new file mode 100644 index 0000000..fc4175f --- /dev/null +++ b/docs/superpowers/plans/2026-06-04-agenda-author-display.md @@ -0,0 +1,131 @@ +# Agenda Author Display Implementation Plan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** Show the presenter's linked name beneath each item in the published agenda schedule on the event detail page. + +**Architecture:** The backend's `GET /agenda/schedule` now returns `ServiceAgendaAgendaListItem[]` (includes `user_profile`). We fix the stale `DataAgendaDoc` type references and add a conditional author link in the `AgendaSchedule` component. + +**Tech Stack:** SvelteKit, Svelte 5 runes, TypeScript, DaisyUI 5, `$app/paths` resolve + +--- + +## Files + +- Modify: `src/routes/(app)/events/[eventId]/+page.server.ts` — fix import + type annotation +- Modify: `src/lib/components/AgendaSchedule.svelte` — fix import/type, add author link + +--- + +### Task 1: Fix type references in `+page.server.ts` + +`DataAgendaDoc` was removed from the SDK. The load function still references it in the import and the `agendaSchedule` variable type. + +**Files:** +- Modify: `src/routes/(app)/events/[eventId]/+page.server.ts` + +- [ ] **Step 1: Update the import** + +On line 14, change: +```ts +import type { DataAgenda, DataAgendaDoc } from '$lib/api'; +``` +to: +```ts +import type { DataAgenda, ServiceAgendaAgendaListItem } from '$lib/api'; +``` + +- [ ] **Step 2: Update the variable type annotation** + +On line 73, change: +```ts +let agendaSchedule: Array = []; +``` +to: +```ts +let agendaSchedule: Array = []; +``` + +- [ ] **Step 3: Verify types compile** + +```bash +pnpm check +``` +Expected: no errors mentioning `DataAgendaDoc`. + +--- + +### Task 2: Update `AgendaSchedule.svelte` — fix type and add author link + +**Files:** +- Modify: `src/lib/components/AgendaSchedule.svelte` + +- [ ] **Step 1: Fix the import and type alias** + +Replace the current `