feat(notifications): add overlay notifications with position config (#110)

This commit is contained in:
2026-06-10 22:46:52 -07:00
committed by GitHub
parent c09d009a3e
commit 7be1843c41
177 changed files with 7524 additions and 440 deletions
@@ -0,0 +1,24 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import { withConfiguredOverlayNotificationPosition } from './overlay-notification-position';
test('overlay notification payloads inherit configured overlay position', () => {
assert.deepEqual(
withConfiguredOverlayNotificationPosition(
{ title: 'SubMiner', body: 'Ready' },
{ notifications: { overlayPosition: 'top' } },
),
{ title: 'SubMiner', body: 'Ready', position: 'top' },
);
});
test('overlay notification payload position can override configured position', () => {
assert.deepEqual(
withConfiguredOverlayNotificationPosition(
{ title: 'SubMiner', body: 'Ready', position: 'top-left' },
{ notifications: { overlayPosition: 'top-right' } },
),
{ title: 'SubMiner', body: 'Ready', position: 'top-left' },
);
});