mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-06-21 06:13: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:
@@ -212,7 +212,7 @@ feedsRouter.post("/create", async (c) => {
|
||||
});
|
||||
}
|
||||
|
||||
return c.redirect(`/admin?view=${view}`);
|
||||
return c.redirect(`/admin?view=${view}#your-feeds`);
|
||||
} catch (error) {
|
||||
logger.error("Error creating feed", { error: String(error) });
|
||||
if (c.req.header("Content-Type")?.includes("application/json")) {
|
||||
|
||||
Reference in New Issue
Block a user