mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-06-20 22:03:48 +00:00
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:
@@ -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