mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-08-05 17:14:16 +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 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
5fc91a0be4
commit
3368b0d1d2
@@ -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