mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-06-20 22:03:48 +00:00
feat(admin): per-feed Subscribe chips with copy/open/validate for RSS/Atom/JSON
Replace the stacked RSS/Atom URL rows in the dashboard with a compact "Subscribe" chip block exposing all three feed formats — including JSON Feed, previously absent from the admin UI. Each chip carries copy, open, and validate actions; validation links to the W3C Feed Validator (RSS/Atom) and validator.jsonfeed.org (JSON). The Table view's RSS+Atom columns fold into a single Formats column. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -189,6 +189,13 @@ describe("Admin Routes", () => {
|
||||
expect(html).toContain(`${mailboxId}@test.getmynews.app`);
|
||||
expect(html).toContain(`/rss/${feedId}`);
|
||||
expect(html).not.toContain(`/rss/${mailboxId}`);
|
||||
|
||||
// The feed-formats block surfaces all three formats (incl. JSON Feed)
|
||||
// plus per-format validator links.
|
||||
expect(html).toContain(`/atom/${feedId}`);
|
||||
expect(html).toContain(`/json/${feedId}`);
|
||||
expect(html).toContain("validator.jsonfeed.org");
|
||||
expect(html).toContain("validator.w3.org/feed");
|
||||
});
|
||||
|
||||
it("should reject feed creation with missing title", async () => {
|
||||
|
||||
Reference in New Issue
Block a user