Replace the 3.0 upgrade notices with a thank-you / support modal

The 3.0 "what's new" notices have served their purpose, so swap them for a single thank-you notice that comes back once on every fresh install and version bump. It carries Buy Me a Coffee and Ko-fi buttons and only shows on desktop. Adds a per-version recurring mode (new dismissed_app_version column) plus external-link CTAs to support it; the 3.0.14 whitespace-collision admin notice stays active.
This commit is contained in:
Maurice
2026-06-27 19:18:01 +02:00
committed by Maurice
parent aa91f009ad
commit f0877a2e7d
30 changed files with 420 additions and 207 deletions
@@ -30,9 +30,10 @@ const noticeHighlightSchema = z.object({
iconName: z.string().optional(),
});
/** Call-to-action: either a navigation link or an in-app action. */
/** Call-to-action: an internal nav, an external link (new tab), or an in-app action. */
const noticeCtaSchema = z.discriminatedUnion('kind', [
z.object({ kind: z.literal('nav'), labelKey: z.string(), href: z.string() }),
z.object({ kind: z.literal('link'), labelKey: z.string(), href: z.string() }),
z.object({
kind: z.literal('action'),
labelKey: z.string(),
@@ -53,6 +54,8 @@ export const systemNoticeDtoSchema = z.object({
media: noticeMediaSchema.optional(),
highlights: z.array(noticeHighlightSchema).optional(),
cta: noticeCtaSchema.optional(),
secondaryCta: noticeCtaSchema.optional(),
desktopOnly: z.boolean().optional(),
dismissible: z.boolean(),
});
export type SystemNoticeDto = z.infer<typeof systemNoticeDtoSchema>;