diff --git a/.gitignore b/.gitignore
index fb8b6478..af852bee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -67,3 +67,5 @@ __screenshots__/
# NS8 Robot Framework test output (output.xml, log.html, report.html, screenshots)
packaging/ns8/tests/outputs/
__pycache__/
+calnode.key
+FUTURE_FEATURES.md
diff --git a/frontend/src/app.css b/frontend/src/app.css
index e0921169..4ce8c248 100644
--- a/frontend/src/app.css
+++ b/frontend/src/app.css
@@ -1,7 +1,7 @@
@import "tailwindcss";
@import "tw-animate-css";
-@custom-variant dark (&:is(.dark *));
+@custom-variant dark (&:where(.dark, .dark *));
/*
* Tailwind v4 has built-in data-* variants: `data-foo:` targets `[data-foo]`.
@@ -57,17 +57,17 @@
:root {
--radius: 0.5rem;
- --background: oklch(1 0 0);
- --foreground: oklch(0.141 0.005 285.823);
- --card: oklch(1 0 0);
- --card-foreground: oklch(0.141 0.005 285.823);
- --popover: oklch(1 0 0);
- --popover-foreground: oklch(0.141 0.005 285.823);
+ --background: #F7F8FA;
+ --foreground: #111827;
+ --card: #FFFFFF;
+ --card-foreground: #111827;
+ --popover: #FFFFFF;
+ --popover-foreground: #111827;
--primary: oklch(0.21 0.006 285.885);
--primary-foreground: oklch(0.985 0 0);
- --secondary: oklch(0.967 0.001 286.375);
- --secondary-foreground: oklch(0.21 0.006 285.885);
- --muted: oklch(0.967 0.001 286.375);
+ --secondary: #F1F3F5;
+ --secondary-foreground: #111827;
+ --muted: #F1F3F5;
--muted-foreground: oklch(0.552 0.016 285.938);
--accent: oklch(0.967 0.001 286.375);
--accent-foreground: oklch(0.21 0.006 285.885);
@@ -139,4 +139,30 @@ body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
+ transition: background-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1), color 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
+}
+
+button,
+a,
+input,
+select,
+textarea {
+ transition-duration: 160ms;
+ transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
+}
+
+:focus-visible {
+ outline: 2px solid var(--ring);
+ outline-offset: 2px;
+}
+
+@media (prefers-reduced-motion: reduce) {
+ *,
+ *::before,
+ *::after {
+ animation-duration: 0.01ms !important;
+ animation-iteration-count: 1 !important;
+ transition-duration: 0.01ms !important;
+ scroll-behavior: auto !important;
+ }
}
diff --git a/frontend/src/app.html b/frontend/src/app.html
index 4fdc6b00..4f69454c 100644
--- a/frontend/src/app.html
+++ b/frontend/src/app.html
@@ -5,6 +5,16 @@
+
diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts
index cd6c8723..213c0499 100644
--- a/frontend/src/lib/api.ts
+++ b/frontend/src/lib/api.ts
@@ -54,6 +54,8 @@ export type EventType = {
min_notice_minutes: number;
max_future_days: number;
max_active_bookings: number;
+ max_per_day?: number | null;
+ max_per_week?: number | null;
price_cents: number; // 0 = free
currency: string; // ISO 4217, lowercase (e.g. "usd")
created_at: string;
@@ -93,6 +95,22 @@ export type EventTypeHost = {
archived: boolean;
};
+export type SingleUseLink = {
+ id: string;
+ token: string;
+ url: string;
+ event_type_id: string;
+ created_by_user_id: string;
+ expires_at: string | null;
+ used_at: string | null;
+ booking_id: string | null;
+ created_at: string;
+};
+
+export type CreateSingleUseLinkPayload = {
+ expires_in_hours?: number;
+};
+
export type Question = {
id: string;
event_type_id: string;
diff --git a/frontend/src/lib/components/event-types/BookingPreviewCard.svelte b/frontend/src/lib/components/event-types/BookingPreviewCard.svelte
new file mode 100644
index 00000000..8d55c8e1
--- /dev/null
+++ b/frontend/src/lib/components/event-types/BookingPreviewCard.svelte
@@ -0,0 +1,153 @@
+
+
+
+
+ Live Preview
+ Interactive
+
+
+
+
+
+ {#if hostAvatar}
+

+ {:else}
+
+ {(hostName || 'H').slice(0, 1).toUpperCase()}
+
+ {/if}
+
{hostName}
+
+
{name || 'Untitled Event'}
+ {#if description}
+
{description}
+ {/if}
+
+
+ {duration || 30}m
+
+
+ {locationLabel}
+
+
+
+
+ {#if mode === 'form'}
+
+
+ Fri, Nov {selectedDay} · 10:00 AM
+ UTC
+
+
+
+
Your name *
+
Jane Doe
+
+
+
Email address *
+
jane@example.com
+
+ {#if allowPhoneCall}
+
+
Phone number (optional)
+
+1 (555) 000-0000
+
+ {/if}
+ {#each questions as q (q.id)}
+
+ {#if q.type === 'checkbox'}
+
+
+
{q.label}{#if q.required} *{/if}
+
+ {:else if q.type === 'select'}
+
{q.label}{#if q.required} *{/if}
+
+ {q.options?.[0] ?? 'Choose an option'}
+ ▾
+
+ {:else}
+
{q.label}{#if q.required} *{/if}
+
Answer...
+ {/if}
+
+ {/each}
+
+
+
+ {:else}
+
+
+ November 2026
+ UTC
+
+
+ {#each weekdays as wd}
+
{wd}
+ {/each}
+ {#each days as d}
+ {@const isWeekend = d % 7 === 0 || d % 7 === 6}
+
+ {/each}
+
+
+ {/if}
+
+
diff --git a/frontend/src/lib/components/event-types/QuestionsPanel.svelte b/frontend/src/lib/components/event-types/QuestionsPanel.svelte
index 8036ff9b..a6e7adb7 100644
--- a/frontend/src/lib/components/event-types/QuestionsPanel.svelte
+++ b/frontend/src/lib/components/event-types/QuestionsPanel.svelte
@@ -1,288 +1,824 @@
-
-
-
{$t('eventTypeEditor.questions.title')}
-
{$t('eventTypeEditor.questions.subtitle')}
+
+
+
+ Booking form
+
+
+ {$t("eventTypeEditor.questions.subtitle")}
+
+
+
+
+
+
+
+
Email address
+
Email
+
+
Required
+
+ {#if allowPhoneCall}
+
+ {/if}
+
-
- {#if qLoading}
-
{$t('common.loading')}
- {:else if questions.length > 0}
-
-
-
- | {$t('eventTypeEditor.questions.table.number')} |
- {$t('eventTypeEditor.questions.table.question')} |
- {$t('eventTypeEditor.questions.table.type')} |
- {$t('eventTypeEditor.questions.table.required')} |
- |
-
-
-
- {#each questions as q}
- {#if editingQId === q.id}
-
- | {q.position + 1} |
-
-
-
-
-
-
-
-
- { if (v) editQForm.type = v as 'text'|'select'|'checkbox'; }}>
-
- {QUESTION_TYPES.find((t) => t.value === editQForm.type)?.label ?? $t('common.select')}
-
-
- {#each QUESTION_TYPES as qt}
- {qt.label}
- {/each}
-
-
-
- {#if editQForm.type === 'select'}
-
-
-
-
- {/if}
-
-
-
-
-
- |
-
-
-
-
-
- |
-
- {:else}
-
- | {q.position + 1} |
-
- {q.label}
- {#if q.type === 'select' && q.options?.length}
- {q.options.join(', ')}
- {/if}
- |
-
-
- {typeLabel(q.type)}
-
- |
- {q.required ? '✓' : $t('common.emDash')} |
-
-
-
-
- startEditQ(q)}
- >
-
-
-
- {$t('eventTypeEditor.questions.tooltip.edit')}
-
-
- deleteQuestion(q)}
- >
-
-
-
- {$t('eventTypeEditor.questions.tooltip.remove')}
-
-
-
- |
-
- {/if}
- {/each}
-
-
- {:else}
-
{$t('eventTypeEditor.questions.empty')}
- {/if}
+
+ Custom questions
+
-
-
-
-
-
-
-
-
-
- { if (v) qForm.type = v as 'text'|'select'|'checkbox'; }}>
-
- {QUESTION_TYPES.find((t) => t.value === qForm.type)?.label ?? $t('common.select')}
-
-
- {#each QUESTION_TYPES as qt}
- {qt.label}
- {/each}
-
-
-
- {#if qForm.type === 'select'}
-
-
-
-
- {/if}
-
-
-
-
-
-
-
-
+
+ {#if qLoading}
+
+ {$t("common.loading")}
+
+ {:else if questions.length > 0}
+
+
+ {#each questions as q, idx (q.id)}
+ {#if editingQId === q.id}
+
+
+
+
+
+
+
+ {
+ if (v) editQForm.type = v as "text" | "select" | "checkbox";
+ }}
+ >
+
+ {QUESTION_TYPES.find((t) => t.value === editQForm.type)
+ ?.label ?? $t("common.select")}
+
+
+ {#each QUESTION_TYPES as qt}
+ {qt.label}
+ {/each}
+
+
+
+ {#if editQForm.type === "select"}
+
+
+
+
+ {/if}
+
+
+
+
+
+
+
+
+
+ {:else}
+
+
+
+
+ {idx + 1}. {q.label}
+
+
+ {typeLabel(q.type)}
+ {q.required ? "Required" : "Optional"}
+
+
+
+
+
+
+
+
+
+
+ {/if}
+ {/each}
+
+
+
+
+
+
+ | {$t("eventTypeEditor.questions.table.number")} |
+ {$t("eventTypeEditor.questions.table.question")} |
+ {$t("eventTypeEditor.questions.table.type")} |
+ {$t("eventTypeEditor.questions.table.required")} |
+ |
+
+
+
+ {#each questions as q, idx (q.id)}
+ {#if editingQId === q.id}
+
+ | {q.position + 1} |
+
+
+
+
+
+
+
+
+ {
+ if (v)
+ editQForm.type = v as
+ | "text"
+ | "select"
+ | "checkbox";
+ }}
+ >
+
+ {QUESTION_TYPES.find(
+ (t) => t.value === editQForm.type,
+ )?.label ?? $t("common.select")}
+
+
+ {#each QUESTION_TYPES as qt}
+ {qt.label}
+ {/each}
+
+
+
+ {#if editQForm.type === "select"}
+
+
+
+
+ {/if}
+
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+ {:else}
+ (dragIdx = idx)}
+ ondragover={(e) => e.preventDefault()}
+ ondrop={(e) => {
+ e.preventDefault();
+ if (dragIdx !== null) reorderQuestions(dragIdx, idx);
+ dragIdx = null;
+ }}
+ ondragend={() => (dragIdx = null)}
+ class="transition-colors hover:bg-muted/30 {dragIdx === idx
+ ? 'opacity-50'
+ : ''}"
+ >
+ |
+
+
+
+
+ {idx + 1}
+
+ |
+
+ {q.label}
+ {#if q.type === "select" && q.options?.length}
+
+ {q.options.join(", ")}
+
+ {/if}
+ |
+
+
+ {typeLabel(q.type)}
+
+ |
+ {q.required ? "Required" : "Optional"} |
+
+
+
+
+
+
+ startEditQ(q)}
+ >
+
+
+
+ {$t(
+ "eventTypeEditor.questions.tooltip.edit",
+ )}
+
+
+ deleteQuestion(q)}
+ >
+
+
+
+ {$t(
+ "eventTypeEditor.questions.tooltip.remove",
+ )}
+
+
+
+ |
+
+ {/if}
+ {/each}
+
+
+ {:else}
+
+ {$t("eventTypeEditor.questions.empty")}
+
+ {/if}
+
+
+
+
+
+
+
+
+
+
+ {$t("eventTypeEditor.questions.add")}
+ Add a custom question to the booking form.
+
+
+
+
+ {
+ if (v) qForm.type = v as "text" | "select" | "checkbox";
+ }}
+ >
+
+ {QUESTION_TYPES.find((t) => t.value === qForm.type)?.label ??
+ $t("common.select")}
+
+
+ {#each QUESTION_TYPES as qt}
+ {qt.label}
+ {/each}
+
+
+
+
+
+
+
+ {#if qForm.type === "select"}
+
+
+
+
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/lib/theme.svelte.ts b/frontend/src/lib/theme.svelte.ts
new file mode 100644
index 00000000..20d762ef
--- /dev/null
+++ b/frontend/src/lib/theme.svelte.ts
@@ -0,0 +1,89 @@
+export type ThemeMode = 'light' | 'dark' | 'system';
+
+const STORAGE_KEY = 'fp-theme';
+const DARK_QUERY = '(prefers-color-scheme: dark)';
+
+function readStoredMode(): ThemeMode {
+ if (typeof window === 'undefined') return 'system';
+ try {
+ const raw = window.localStorage.getItem(STORAGE_KEY);
+ if (raw === 'light' || raw === 'dark' || raw === 'system') return raw;
+ } catch {
+ // Ignore storage access errors.
+ }
+ return 'system';
+}
+
+function readSystemDark(): boolean {
+ if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') return false;
+ return window.matchMedia(DARK_QUERY).matches;
+}
+
+class ThemeStore {
+ mode = $state
(readStoredMode());
+ systemDark = $state(readSystemDark());
+ resolved = $derived<'light' | 'dark'>(
+ this.mode === 'system' ? (this.systemDark ? 'dark' : 'light') : this.mode
+ );
+
+ private initialized = false;
+ private mediaCleanup: (() => void) | null = null;
+
+ init() {
+ if (typeof window === 'undefined') return;
+ this.mode = readStoredMode();
+ this.systemDark = readSystemDark();
+ this.apply();
+
+ if (this.initialized || typeof window.matchMedia !== 'function') return;
+ this.initialized = true;
+
+ const mq = window.matchMedia(DARK_QUERY);
+ const onChange = (e: MediaQueryListEvent) => {
+ this.systemDark = e.matches;
+ this.apply();
+ };
+ mq.addEventListener('change', onChange);
+
+ const onStorage = (e: StorageEvent) => {
+ if (e.key === STORAGE_KEY) {
+ this.mode = readStoredMode();
+ this.apply();
+ }
+ };
+ window.addEventListener('storage', onStorage);
+
+ this.mediaCleanup = () => {
+ mq.removeEventListener('change', onChange);
+ window.removeEventListener('storage', onStorage);
+ };
+ }
+
+ destroy() {
+ this.mediaCleanup?.();
+ this.mediaCleanup = null;
+ this.initialized = false;
+ }
+
+ set(next: ThemeMode) {
+ this.mode = next;
+ if (typeof window !== 'undefined') {
+ try {
+ window.localStorage.setItem(STORAGE_KEY, next);
+ } catch {
+ // Ignore storage access errors.
+ }
+ }
+ this.apply();
+ }
+
+ apply() {
+ if (typeof document === 'undefined') return;
+ const isDark = this.resolved === 'dark';
+ const root = document.documentElement;
+ root.classList.toggle('dark', isDark);
+ root.style.colorScheme = isDark ? 'dark' : 'light';
+ }
+}
+
+export const theme = new ThemeStore();
diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte
index 8c48c731..8b893cbd 100644
--- a/frontend/src/routes/+layout.svelte
+++ b/frontend/src/routes/+layout.svelte
@@ -6,6 +6,7 @@
import { api, type User } from '$lib/api';
import { currentUser, authStatus, type AuthStatus } from '$lib/stores';
import { prefs, prefsFromUser } from '$lib/prefs';
+ import { theme, type ThemeMode } from '$lib/theme.svelte';
import { t } from '$lib/i18n';
import { Toaster } from '$lib/components/ui/sonner';
import { buttonVariants } from '$lib/components/ui/button';
@@ -134,6 +135,14 @@
adminOnly: false,
icon: ``
},
+ {
+ id: 'payments',
+ section: null,
+ href: `${base}/settings/payments`,
+ label: $t('settings.nav.payments'),
+ adminOnly: true,
+ icon: ``
+ },
{
id: 'settings',
section: null,
@@ -173,6 +182,7 @@
});
onMount(async () => {
+ theme.init();
// Close the drawer if the viewport grows past md while it is open, so it cannot
// linger as an active overlay over the desktop layout. Specified in rem, not px:
// every `md:` class compiles to 48rem, which only equals 768px at the 16px
@@ -242,6 +252,21 @@
{#if isPublicRoute}
+
+
+ {#each (['light', 'dark', 'system'] as ThemeMode[]) as modeOption}
+
+ {/each}
+
+
{@render children()}
{:else if checking}
@@ -337,6 +362,31 @@