feat(admin): collapse create-feed form into accordion

Wrap the "Create New Feed" form in a native <details> accordion, collapsed
by default and auto-opened when no feeds exist. After creating a feed,
redirect to the "Your Feeds" anchor so the new feed is immediately visible.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Julien Herr
2026-05-23 21:41:25 +02:00
parent 5fc91a0be4
commit 3368b0d1d2
4 changed files with 44 additions and 6 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ describe("Admin Routes", () => {
});
expect(res.status).toBe(302); // Redirects back to dashboard
expect(res.headers.get("Location")).toBe("/admin?view=list");
expect(res.headers.get("Location")).toBe("/admin?view=list#your-feeds");
// Verify feed was created in KV
const feedList = (await mockEnv.EMAIL_STORAGE.get(