Labels: frontend admin instagram routing
Area: frontend/app/(auth)/admin/instagram/new/page.tsx, frontend/app/(auth)/admin/instagram/[id]/page.tsx
Difficulty: Intermediate
Description
The Instagram section needs create and edit route pages that both wrap the shared InstagramForm component. The edit page fetches the existing post by ID; the create page passes no initial data.
Acceptance Criteria
Technical Notes
Labels:
frontendadmininstagramroutingArea:
frontend/app/(auth)/admin/instagram/new/page.tsx,frontend/app/(auth)/admin/instagram/[id]/page.tsxDifficulty: Intermediate
Description
The Instagram section needs create and edit route pages that both wrap the shared
InstagramFormcomponent. The edit page fetches the existing post by ID; the create page passes no initial data.Acceptance Criteria
frontend/app/(auth)/admin/instagram/new/page.tsx:metadata: { title: "Add Instagram Post" }<InstagramForm mode="create" />frontend/app/(auth)/admin/instagram/[id]/page.tsx:"use client"componentidfromuseParams<InstagramForm mode="edit" initialData={post} />once loaded/admin/instagramafter successful submission (handled insideInstagramForm)Technical Notes
InstagramFormis pre-built in@/components/admin/instagram/InstagramForm