From 2f5e5c681b31d274cb31d6f31abe0fb34a515694 Mon Sep 17 00:00:00 2001 From: Mkkbeydoun Date: Tue, 13 Oct 2026 07:18:22 -0400 Subject: [PATCH] Match the console spacing, release 1.0.1 --- CHANGELOG.md | 4 ++++ extension.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/client/announcements.spec.tsx | 8 ++++++++ src/client/components/AnnouncementList.tsx | 2 +- 6 files changed, 17 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9993786..602e66e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.0.1 + +- The banners above the server console and the dashboard now have a 12px gap below them, the same as Connect Buttons, Custom Links and Next Wipe. + ## 1.0.0 - First release. diff --git a/extension.json b/extension.json index 59b2b04..9edd216 100644 --- a/extension.json +++ b/extension.json @@ -2,7 +2,7 @@ "$schema": "./node_modules/@pterodactyl/sdk/manifest.schema.json", "id": "announcements", "name": "Announcements", - "version": "1.0.0", + "version": "1.0.1", "description": "Show scheduled announcements to everyone, or only to servers on chosen nodes, locations or eggs.", "author": "RustixDev", "icon": "megaphone", diff --git a/package-lock.json b/package-lock.json index d909135..cda2421 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "announcements", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "announcements", - "version": "1.0.0", + "version": "1.0.1", "devDependencies": { "@base-ui/react": "^1.6.0", "@pterodactyl/sdk": "file:./sdk/pterodactyl-sdk-2.0.0-beta.4.tgz", diff --git a/package.json b/package.json index 72329be..da487b0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "announcements", "private": true, - "version": "1.0.0", + "version": "1.0.1", "type": "module", "scripts": { "build": "vite build", diff --git a/src/client/announcements.spec.tsx b/src/client/announcements.spec.tsx index 2c666f3..a432a92 100644 --- a/src/client/announcements.spec.tsx +++ b/src/client/announcements.spec.tsx @@ -66,6 +66,14 @@ test('the server banner reads the server announcements query', async () => { expect(await screen.findByText('Egg update')).toBeTruthy(); }); +test('the banner block has 12px below it and no top margin, like the other console rows', async () => { + render(, { wrapper: host.Wrapper }); + + const block = (await screen.findByText('Dismiss')).closest('div.rxan\\:flex-col')!; + expect(block.className).toContain('rxan:mb-3'); + expect(block.className).toContain('rxan:mt-0'); +}); + test('datetime-local values round-trip through ISO', () => { const iso = fromLocalInput('2026-11-05T14:30'); expect(iso).not.toBeNull(); diff --git a/src/client/components/AnnouncementList.tsx b/src/client/components/AnnouncementList.tsx index ffee7c5..4a76193 100644 --- a/src/client/components/AnnouncementList.tsx +++ b/src/client/components/AnnouncementList.tsx @@ -30,7 +30,7 @@ export default function AnnouncementList({ items }: { items: Announcement[] }) { }; return ( -
+
{visible.map((a) => (