Add skeleton, updates to client email formatting

This commit is contained in:
2026-05-04 16:30:05 +12:00
parent d1dd103a6e
commit bf9331bb5b
10 changed files with 875 additions and 20 deletions
+20 -1
View File
@@ -31,7 +31,12 @@ export function createMockPage(
}
export const pageStore = writable<MockPageStoreValue>(createMockPage());
export const navigatingStore = writable<null>(null);
export type MockNavigatingStoreValue = {
from: { url: URL } | null;
to: { url: URL } | null;
} | null;
export const navigatingStore = writable<MockNavigatingStoreValue>(null);
const updatedWritable = writable(false);
export const updatedStore = {
@@ -46,3 +51,17 @@ export function setMockPage(url: string, overrides: Partial<MockPageStoreValue>
export function resetMockPage() {
pageStore.set(createMockPage());
}
export function setMockNavigating(
to: string,
from = 'https://www.goodwalk.co.nz/'
) {
navigatingStore.set({
from: { url: new URL(from) },
to: { url: new URL(to) }
});
}
export function resetMockNavigating() {
navigatingStore.set(null);
}