AdPilot · Corpus
T-025 — Studio Pro: advanced panel, brand kit, creative templates
T-025 — Studio Pro: advanced panel, brand kit, creative templates
Frozen spec for the T-025 build: the power-user layer that keeps the default creative surface one prompt box — plus the brand kit that makes generations and previews read on-brand.
Decisions
- Scope (Q1): a Studio Pro page in the web-next console with three
sections. Bounds are hard-validated server-side: palette ≤ 5 hex colors,
one curated font pair, logo a ≤ 100 KB
data:image/URI. Generation consumption of the kit lands with the provider wiring; the page stores and previews it today. - Implementer — persistence:
brand_kittable keyed unique per workspace (default row),GET/PUT/DELETE /v1/brandkit; follow-kit toggle defaults on. - Implementer — templates handoff: the 7-entry creative templates
gallery (product launch, local service, app install, seasonal sale,
founder story, problem solver, customer review) hands off through the
adpilot.studioSessionlocalStorage channel that/previewsconsumes — the same channel Edit-in-Studio uses. - Implementer — advanced panel: collapsed by default; platform aspect presets (meta 4:5/1:1/9:16, tiktok 9:16, google 1.91:1/1:1), hook style (whitelisted), variant count 1–4, negative prompt.
Surface-area deltas
services/api/internal/domain/brandkit.go— schema, validation, presets, hook whitelist, the ≥7-entryCreativeTemplateGallery, key lookup.services/api/internal/domain/brandkit_test.go— palette/hex/font/logo validation, gallery completeness + aspect validity.services/api/internal/store/brandkit.go+services/api/internal/store/migrations/0011_brandkit.sql— one-kit-per- workspace CRUD (unique workspace index).services/api/internal/api/handlers_brandkit.go— GET/PUT/DELETE kit, templates list + by-key; 5 new routes inservices/api/internal/api/server.go.apps/web-next/app/studio-pro/page.tsx— the page (brand kit editor, advanced panel, templates grid with handoff).apps/web-next/app/layout.tsx— nav link.apps/web-next/lib/api.ts— brand kit + creative templates methods.apps/web-next/lib/types.ts—BrandKit+CreativeTemplatetypes.- Endpoint tests:
services/api/internal/api/brandkit_test.go. - Bookkeeping: the card's git-mv sides
tasks/00-backlog/T-025-studio-pro-brandkit-templates.md/tasks/10-in-progress/T-025-studio-pro-brandkit-templates.mdand this specdocs/tech-spec/T-025.md.
Verification
Go gates: go test ./... (6/6 packages; 5 new test functions incl. the
endpoint suite). Web gates: npm run build (strict), jest, eslint.
Out of scope
Generation-side brand application (lands with the provider wiring), multi-workspace administration, logo storage in the DAM (data URI today).