--- id: task-13 title: Plugin detail view with sandboxed iframe UI pages status: pending wave: 3 depends_on: [task-12] plan: docs/plans/plugins/plan.md --- # Plugin detail view with sandboxed iframe UI pages ## Title A plugin detail route rendering the plugin's declared `ui.pages` as sandboxed iframes served via the UI proxy, with a minimal postMessage theme/context bridge. ## Inputs - Detail route `/settings/plugins/:id` (linked from task-12); register in `src/settings-routes.tsx` like the `[id]`-style routes there. - UI proxy endpoint (task-08/09): iframe `src={/api/plugins/${id}/ui${page.path}}`. - `ui.pages[]` come from the plugin record (task-11 types): `{key,title,path,surface}`. - Theme source: existing theme store/hook (grep `useTheme`/`theme` in apps/web). ## Acceptance 1. `apps/web/app/settings/plugins/[id]/page.tsx`: header (name, status, config summary), a tab/section per `ui.pages` entry with `surface: settings`, each rendering `