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 <[email protected]>
This commit is contained in:
1 parent
5fc91a0be4
commit
3368b0d1d2
4 files changed
+44
-6
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user