Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.
TypeScript fintechinvoiceinvoice-generatorinvoice-pdfinvoice-templateinvoicesnextjsopen-sourcequotesreactreact-pdf-rendererself-hostedshadcn-uitailwindcsstypescript
Vldszn/2026 09 26 02 23 judicial scallop (#275)
Vlad Sazonau2a4e6b5f5d2b
diff --git a/e2e/how-it-works.test.ts b/e2e/how-it-works.test.tsindex 8bb4ec3..4f26ffe 100644--- a/e2e/how-it-works.test.ts+++ b/e2e/how-it-works.test.ts@@ -48,17 +48,21 @@ test.describe("How it works page", () => {await expectYouTubeEmbedToShow({ embed, embedUrl: VIDEO_DEMO_YOUTUBE_URL });await expect(embed).toHaveAttribute("title", "EasyInvoicePDF Demo Video");- const sellerTab = page.getByTestId("how-it-works-tab-add-seller");+ const sellerItem = page.getByTestId(+ "how-it-works-playlist-item-add-seller",+ );- await sellerTab.click();+ await sellerItem.click();await expectYouTubeEmbedToShow({embed,embedUrl: YOUTUBE_VIDEO_HOW_TO_ADD_SELLER,});- await expect(sellerTab).toBeVisible();- await expect(sellerTab).toHaveAttribute("role", "tab");- await expect(sellerTab).toHaveAttribute("aria-selected", "true");+ await expect(sellerItem).toBeVisible();+ await expect(sellerItem).toHaveAttribute("aria-current", "true");+ await expect(+ page.getByTestId("how-it-works-playlist-item-overview"),+ ).not.toHaveAttribute("aria-current");const discordLink = page.getByTestId("how-it-works-discord");const redditLink = page.getByTestId("how-it-works-reddit");@@ -103,11 +107,9 @@ test.describe("How it works page", () => {embedUrl: YOUTUBE_VIDEO_HOW_TO_ADD_BUYER,});- const buyerTab = page.getByTestId("how-it-works-tab-add-buyer");- await expect(buyerTab).toBeVisible();-- await expect(buyerTab).toHaveAttribute("role", "tab");+ const buyerItem = page.getByTestId("how-it-works-playlist-item-add-buyer");+ await expect(buyerItem).toBeVisible();- await expect(buyerTab).toHaveAttribute("aria-selected", "true");+ await expect(buyerItem).toHaveAttribute("aria-current", "true");});});diff --git a/e2e/invoice-form.test.ts b/e2e/invoice-form.test.tsindex cdf36e5..a59c719 100644--- a/e2e/invoice-form.test.ts+++ b/e2e/invoice-form.test.ts@@ -170,7 +170,7 @@ test.describe("Invoice Generator Page", () => {await expectYouTubeEmbedToShow({ embed, embedUrl: VIDEO_DEMO_YOUTUBE_URL });await expect(embed).toHaveAttribute("title", "EasyInvoicePDF Demo Video");- await dialog.getByTestId("how-it-works-tab-add-seller").click();+ await dialog.getByTestId("how-it-works-playlist-item-add-seller").click();await expectYouTubeEmbedToShow({embed,embedUrl: YOUTUBE_VIDEO_HOW_TO_ADD_SELLER,diff --git a/src/app/(main)/(app)/components/changelog-update-popup.tsx b/src/app/(main)/(app)/components/changelog-update-popup.tsxindex e489718..3a72886 100644--- a/src/app/(main)/(app)/components/changelog-update-popup.tsx+++ b/src/app/(main)/(app)/components/changelog-update-popup.tsx@@ -27,10 +27,9 @@ interface ChangelogUpdatePopupProps {releaseSlug?: string;/*** Where the popup sits. `floating` is the desktop card in the bottom-right corner, with- * the mascot. `dock` is the compact mobile notice rendered inside the bottom dock, above- * the Edit/Preview tabs: no mascot and no fixed positioning, so it can never cover the- * dock's own buttons, and it takes the phone's full width instead of a sliver beside a- * 200px illustration.+ * the mascot. `dock` is the compact mobile card, rendered inside the bottom dock and+ * floated just above it: out of the flow, so the dock doesn't grow (and the page doesn't+ * shift) when it appears 1.5s after load, and it never covers the dock's own buttons.*/layout?: "floating" | "dock";}@@ -279,9 +278,10 @@ interface DockNoticeProps {}/**- * The popup as a compact notice for the mobile dock: one sentence with its action at the- * end, and a close button. There is no "Continue" button here -- on a phone it would only- * repeat the close button and cost the dock a whole row.+ * The popup as a compact card floating just above the mobile dock: one sentence with its+ * action at the end, and a close button. It must render inside the (sticky) dock, which it+ * is positioned against. There is no "Continue" button here -- on a phone it would only+ * repeat the close button and cover more of the form.*/function DockNotice({variant,@@ -303,7 +303,7 @@ function DockNotice({data-testid="changelog-update-popup"data-layout="dock"className={cn(- "relative w-full rounded-md bg-slate-50 py-2.5 pl-3 pr-10 ring-1 ring-slate-200",+ "absolute inset-x-0 bottom-full mb-2 rounded-lg bg-white py-2.5 pl-3 pr-10 shadow-[0_4px_16px_rgba(0,0,0,0.12)] ring-1 ring-slate-200","duration-300 ease-out animate-in fade-in slide-in-from-bottom-2 motion-reduce:animate-none",)}>diff --git a/src/app/(main)/(app)/components/how-it-works-videos.tsx b/src/app/(main)/(app)/components/how-it-works-videos.tsxindex efafe2e..acd33bf 100644--- a/src/app/(main)/(app)/components/how-it-works-videos.tsx+++ b/src/app/(main)/(app)/components/how-it-works-videos.tsx@@ -1,9 +1,9 @@"use client";+import { PlayIcon } from "lucide-react";import { useSearchParams } from "next/navigation";-import { useState } from "react";+import { type CSSProperties, useState } from "react";-import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";import { YouTubeEmbed } from "@/components/youtube-embed";import {DISCORD_COMMUNITY_URL,@@ -17,6 +17,9 @@ type HowItWorksVideoId = (typeof HOW_IT_WORKS_VIDEOS)[number]["id"];const DEFAULT_VIDEO_ID = HOW_IT_WORKS_VIDEOS[0].id;+/** Rows per column once the playlist splits in two. */+const PLAYLIST_ROWS = Math.ceil(HOW_IT_WORKS_VIDEOS.length / 2);+const VALID_VIDEO_IDS = new Set(HOW_IT_WORKS_VIDEOS.map((video) => {return video.id;@@ -41,7 +44,7 @@ interface HowItWorksVideosProps {}/**- * Tabbed video player for "How it works" tutorials.+ * Video player for "How it works" tutorials, with the full playlist under it.* Shared by the in-app dialog and the dedicated /how-it-works page.*/export function HowItWorksVideos({@@ -85,10 +88,10 @@ export function HowItWorksVideos({return video.id === activeVideoId;}) ?? HOW_IT_WORKS_VIDEOS[0];- function handleTabChange(value: string) {- const videoId = value as HowItWorksVideoId;+ function handleVideoChange(videoId: HowItWorksVideoId) {setSelectedVideoId(videoId);- umamiTrackEvent(`how-it-works-video-tab-${value}`);+ // The event keeps its "tab" name so the analytics series stays continuous.+ umamiTrackEvent(`how-it-works-video-tab-${videoId}`);onVideoChange?.(videoId);}@@ -116,28 +119,6 @@ export function HowItWorksVideos({</p></div>- <div className="flex justify-center px-4 pb-3 sm:px-6 sm:pb-4">- <div className="-mx-4 overflow-x-auto px-4 [scrollbar-width:none] sm:mx-0 sm:overflow-visible sm:px-0 [&::-webkit-scrollbar]:hidden">- <Tabs value={activeVideoId} onValueChange={handleTabChange}>- <TabsList className="inline-flex h-auto w-max min-w-full justify-center gap-0.5 sm:min-w-0 sm:gap-1">- {HOW_IT_WORKS_VIDEOS.map((video) => {- return (- <TabsTrigger- key={video.id}- value={video.id}- className="shrink-0 whitespace-nowrap px-2.5 py-1 text-xs sm:px-3 sm:py-1.5 sm:text-sm"- data-testid={`how-it-works-tab-${video.id}`}- >- <span className="sm:hidden">{video.tabLabelShort}</span>- <span className="hidden sm:inline">{video.tabLabel}</span>- </TabsTrigger>- );- })}- </TabsList>- </Tabs>- </div>- </div>-<div className="aspect-video min-h-[300px] w-full shrink-0 overflow-hidden">{showIframe ? (<YouTubeEmbed@@ -149,6 +130,64 @@ export function HowItWorksVideos({) : null}</div>+ {/* A list rather than tabs: every tutorial keeps its full title and length at any+ width, and the list grows with the catalog instead of running out of row. From+ `sm` it splits into two columns that fill top to bottom, so the numbers read+ down the first column and then the second, as a playlist should. */}+ <ol+ className="grid shrink-0 gap-1 border-t border-slate-200 p-2 sm:grid-flow-col sm:grid-cols-2 sm:grid-rows-[repeat(var(--playlist-rows),auto)] sm:p-3"+ style={{ "--playlist-rows": PLAYLIST_ROWS } as CSSProperties}+ aria-label="Tutorials"+ data-testid="how-it-works-playlist"+ >+ {HOW_IT_WORKS_VIDEOS.map((video, index) => {+ const isActive = video.id === activeVideoId;++ return (+ <li key={video.id}>+ <button+ type="button"+ onClick={() => {+ return handleVideoChange(video.id);+ }}+ aria-current={isActive ? "true" : undefined}+ className={cn(+ "flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left text-sm transition-colors",+ "focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-slate-900",+ isActive+ ? "bg-slate-200 text-slate-950"+ : "text-slate-600 hover:bg-slate-100 hover:text-slate-900",+ )}+ data-testid={`how-it-works-playlist-item-${video.id}`}+ >+ <span+ aria-hidden+ className="flex w-4 shrink-0 justify-center text-xs font-medium tabular-nums text-slate-400"+ >+ {isActive ? (+ <PlayIcon className="size-3 translate-x-px fill-slate-900 stroke-slate-900" />+ ) : (+ index + 1+ )}+ </span>+ <span+ className={cn(+ "min-w-0 flex-1 truncate",+ isActive ? "font-medium" : null,+ )}+ >+ <span className="sm:hidden">{video.shortTitle}</span>+ <span className="hidden sm:inline">{video.title}</span>+ </span>+ <span className="shrink-0 text-xs tabular-nums text-slate-500">+ {formatDuration(video.durationSeconds)}+ </span>+ </button>+ </li>+ );+ })}+ </ol>+<div className="shrink-0 border-t border-slate-200 px-4 py-3 text-center text-xs leading-relaxed text-slate-600 sm:px-6 sm:py-4 sm:text-left sm:text-sm">Questions or feedback? Join our{" "}<a@@ -181,3 +220,11 @@ export function HowItWorksVideos({</div>);}++/** `79` → `"1:19"`, the way YouTube labels a video's length. */+function formatDuration(totalSeconds: number) {+ const minutes = Math.floor(totalSeconds / 60);+ const seconds = totalSeconds % 60;++ return `${minutes}:${String(seconds).padStart(2, "0")}`;+}diff --git a/src/app/(main)/(app)/components/index.tsx b/src/app/(main)/(app)/components/index.tsxindex b899440..f88da5f 100644--- a/src/app/(main)/(app)/components/index.tsx+++ b/src/app/(main)/(app)/components/index.tsx@@ -153,6 +153,7 @@ export function InvoiceClientPage({canShareInvoice,currentInvoiceFormDataRef,mobileDockNotice,+ onMobileTabChange,}: {invoiceDataState: InvoiceData;handleInvoiceDataChange: (invoiceData: InvoiceData) => void;@@ -161,10 +162,12 @@ export function InvoiceClientPage({canShareInvoice: boolean;currentInvoiceFormDataRef: RefObject<(() => InvoiceData | null) | null>;/**- * Shown at the top of the mobile dock, above the Edit/Preview tabs -- the welcome and- * "What's new" popup on phones. Ignored on desktop, where the popup floats instead.+ * Rendered inside the mobile dock, which it positions itself against to float just above+ * it -- the welcome popup on phones. Ignored on desktop, where the popup floats instead.*/mobileDockNotice?: ReactNode;+ /** Called when the user switches between the Edit/Preview tabs on mobile */+ onMobileTabChange?: () => void;}) {const appMetadata = useAppMetadata();@@ -230,6 +233,7 @@ export function InvoiceClientPage({flushPendingFormChangesRef.current?.();setActiveMobileTab(newValue);+ onMobileTabChange?.();setOpenedMobileTabs((current) => {return current.includes(newValue)diff --git a/src/app/(main)/(app)/hooks/__tests__/use-changelog-update-popup.test.ts b/src/app/(main)/(app)/hooks/__tests__/use-changelog-update-popup.test.tsindex 6111541..bb0ede5 100644--- a/src/app/(main)/(app)/hooks/__tests__/use-changelog-update-popup.test.ts+++ b/src/app/(main)/(app)/hooks/__tests__/use-changelog-update-popup.test.ts@@ -41,12 +41,14 @@ function renderChangelogPopupHook(overrides: Partial<{latestChangelog: ChangelogSummary | null;isViewingSharedInvoice: boolean;+ canShowChangelog: boolean;}> = {},) {return renderHook(() => {return useChangelogUpdatePopup({latestChangelog: null,isViewingSharedInvoice: false,+ canShowChangelog: true,...overrides,});});@@ -85,6 +87,7 @@ describe("useChangelogUpdatePopup", () => {return useChangelogUpdatePopup({latestChangelog: latest,isViewingSharedInvoice: false,+ canShowChangelog: true,});},{ initialProps: { latest: null as ChangelogSummary | null } },@@ -118,6 +121,7 @@ describe("useChangelogUpdatePopup", () => {return useChangelogUpdatePopup({latestChangelog: latest,isViewingSharedInvoice: false,+ canShowChangelog: true,});},{ initialProps: { latest: null as ChangelogSummary | null } },@@ -182,6 +186,7 @@ describe("useChangelogUpdatePopup", () => {return useChangelogUpdatePopup({latestChangelog: latest,isViewingSharedInvoice: false,+ canShowChangelog: true,});},{ initialProps: { latest: previousChangelog } },@@ -233,6 +238,38 @@ describe("useChangelogUpdatePopup", () => {expect(result.current.variant).toBeNull();});+ it("should not show changelog popup when it is disabled (mobile)", () => {+ vi.mocked(hasSeenWelcomePopup).mockReturnValue(true);++ const { result } = renderChangelogPopupHook({+ latestChangelog,+ canShowChangelog: false,+ });++ act(() => {+ vi.advanceTimersByTime(1500);+ });++ expect(result.current.isOpen).toBe(false);+ expect(result.current.variant).toBeNull();+ // left unseen, so the next desktop visit still shows it+ expect(markChangelogAsSeen).not.toHaveBeenCalled();+ });++ it("should still show welcome popup when changelog is disabled (mobile)", () => {+ const { result } = renderChangelogPopupHook({+ latestChangelog,+ canShowChangelog: false,+ });++ act(() => {+ vi.advanceTimersByTime(1500);+ });++ expect(result.current.isOpen).toBe(true);+ expect(result.current.variant).toBe("welcome");+ });+it("should not show popup when viewing a shared invoice", () => {const { result } = renderChangelogPopupHook({isViewingSharedInvoice: true,@@ -262,4 +299,21 @@ describe("useChangelogUpdatePopup", () => {expect(result.current.isOpen).toBe(false);});++ it("should ignore dismiss before the popup is shown", () => {+ const { result } = renderChangelogPopupHook();++ // e.g. switching the mobile Edit/Preview tabs within the show delay+ act(() => {+ result.current.dismiss();+ });++ act(() => {+ vi.advanceTimersByTime(1500);+ });++ expect(markWelcomePopupSeen).toHaveBeenCalledOnce();+ expect(result.current.isOpen).toBe(true);+ expect(result.current.variant).toBe("welcome");+ });});diff --git a/src/app/(main)/(app)/hooks/use-changelog-update-popup.ts b/src/app/(main)/(app)/hooks/use-changelog-update-popup.tsindex 75f6fbd..b5bcf4d 100644--- a/src/app/(main)/(app)/hooks/use-changelog-update-popup.ts+++ b/src/app/(main)/(app)/hooks/use-changelog-update-popup.ts@@ -20,6 +20,12 @@ export type AppUpdatePopupVariant = "welcome" | "changelog";interface UseChangelogUpdatePopupOptions {latestChangelog: ChangelogSummary | null;isViewingSharedInvoice: boolean;+ /**+ * Whether the "What's new" popup may show. Off on mobile, where it costs the dock a row+ * for news nobody opened a phone to read; the welcome popup is unaffected. A release that+ * wasn't shown stays unseen, so it still appears on the next desktop visit.+ */+ canShowChangelog: boolean;}interface UseChangelogUpdatePopupResult {@@ -28,14 +34,25 @@ interface UseChangelogUpdatePopupResult {variant: AppUpdatePopupVariant | null;}-function resolvePopupVariant(- latestChangelog: ChangelogSummary | null,-): AppUpdatePopupVariant | null {+interface ResolvePopupVariantOptions {+ latestChangelog: ChangelogSummary | null;+ /** Whether the "What's new" popup is allowed at all, see `canShowChangelog` on the hook */+ canShowChangelog: boolean;+}++function resolvePopupVariant({+ latestChangelog,+ canShowChangelog,+}: ResolvePopupVariantOptions): AppUpdatePopupVariant | null {if (!hasSeenWelcomePopup()) {return "welcome";}- if (latestChangelog && shouldShowChangelogPopup(latestChangelog.slug)) {+ if (+ canShowChangelog &&+ latestChangelog &&+ shouldShowChangelogPopup(latestChangelog.slug)+ ) {return "changelog";}@@ -46,7 +63,8 @@ function resolvePopupVariant(* Hook to manage showing welcome or changelog update popup to user.** Shows welcome popup on first visit, then changelog popup when a new- * changelog version is unseen. Never shows when viewing a shared invoice.+ * changelog version is unseen (desktop only). Never shows when viewing a shared+ * invoice.** It decides only *whether* a popup shows; where it sits is up to the page --* a floating card on desktop, a notice inside the bottom dock on mobile.@@ -59,6 +77,7 @@ function resolvePopupVariant(export function useChangelogUpdatePopup({latestChangelog,isViewingSharedInvoice,+ canShowChangelog,}: UseChangelogUpdatePopupOptions): UseChangelogUpdatePopupResult {/** The popup the timer below decided to show, if any */const [shownVariant, setShownVariant] =@@ -68,6 +87,12 @@ export function useChangelogUpdatePopup({const hasShownPopupRef = useRef(false);const dismiss = useCallback(() => {+ // Nothing to dismiss before the timer shows a popup. Latching `isDismissed` early would+ // hide the popup the timer then marks as seen, so the user would never get to see it+ if (!hasShownPopupRef.current) {+ return;+ }+setIsDismissed(true);}, []);@@ -87,7 +112,10 @@ export function useChangelogUpdatePopup({// show is decided when the timer fires, so the decision reflects what the user// has seen by then.const timer = window.setTimeout(() => {- const nextVariant = resolvePopupVariant(latestChangelog);+ const nextVariant = resolvePopupVariant({+ latestChangelog,+ canShowChangelog,+ });// Mark as seen on show, not on dismiss: the user got their one look at it// even if they navigate away without touching it@@ -108,7 +136,7 @@ export function useChangelogUpdatePopup({return () => {window.clearTimeout(timer);};- }, [isViewingSharedInvoice, latestChangelog]);+ }, [canShowChangelog, isViewingSharedInvoice, latestChangelog]);return {isOpen: shownVariant !== null && !isDismissed,diff --git a/src/app/(main)/(app)/page.client.tsx b/src/app/(main)/(app)/page.client.tsxindex b68c5a8..abc0daa 100644--- a/src/app/(main)/(app)/page.client.tsx+++ b/src/app/(main)/(app)/page.client.tsx@@ -149,6 +149,7 @@ export function AppPageClient({} = useChangelogUpdatePopup({latestChangelog,isViewingSharedInvoice,+ canShowChangelog: !isMobile,});const [isHowItWorksDialogOpen, setIsHowItWorksDialogOpen] = useState(false);@@ -810,6 +811,9 @@ export function AppPageClient({canShareInvoice={canShareInvoice}currentInvoiceFormDataRef={currentInvoiceFormDataRef}mobileDockNotice={isMobile ? changelogPopup : null}+ // switching tabs means the user found their way around, so the welcome+ // notice has done its job+ onMobileTabChange={dismissChangelogPopup}/></div></div>diff --git a/src/app/(main)/how-it-works/build-how-it-works-json-ld.test.ts b/src/app/(main)/how-it-works/build-how-it-works-json-ld.test.tsindex bffbb1f..9cf49de 100644--- a/src/app/(main)/how-it-works/build-how-it-works-json-ld.test.ts+++ b/src/app/(main)/how-it-works/build-how-it-works-json-ld.test.ts@@ -19,6 +19,7 @@ describe("buildHowItWorksJsonLd", () => {item: {uploadDate?: string;thumbnailUrl?: string;+ duration?: string;};}>;};@@ -31,6 +32,25 @@ describe("buildHowItWorksJsonLd", () => {webPage.mainEntity.itemListElement.forEach(({ item }, index) => {expect(item.uploadDate).toBe(HOW_IT_WORKS_VIDEOS[index].uploadDate);expect(item.thumbnailUrl).toBe(HOW_IT_WORKS_VIDEOS[index].thumbnailUrl);+ expect(item.duration).toMatch(/^PT(\d+M)?\d+S$/);});});++ it("writes durations as ISO 8601", () => {+ const graph = buildHowItWorksJsonLd() as unknown as {+ "@graph": Array<Record<string, unknown>>;+ };+ const webPage = graph["@graph"].find((node) => {+ return node["@type"] === "WebPage";+ }) as {+ mainEntity: { itemListElement: Array<{ item: { duration: string } }> };+ };+ const durations = webPage.mainEntity.itemListElement.map(({ item }) => {+ return item.duration;+ });++ // 70s overview and 19s tax tutorial: a minute part, and none under a minute+ expect(durations[0]).toBe("PT1M10S");+ expect(durations[4]).toBe("PT19S");+ });});diff --git a/src/app/(main)/how-it-works/build-how-it-works-json-ld.ts b/src/app/(main)/how-it-works/build-how-it-works-json-ld.tsindex 4e82688..2c84d1e 100644--- a/src/app/(main)/how-it-works/build-how-it-works-json-ld.ts+++ b/src/app/(main)/how-it-works/build-how-it-works-json-ld.ts@@ -25,6 +25,7 @@ export function buildHowItWorksJsonLd(baseUrl = PROD_WEBSITE_URL): Graph {name: video.title,description: video.description,uploadDate: video.uploadDate,+ duration: toIsoDuration(video.durationSeconds),thumbnailUrl: video.thumbnailUrl,// `embedUrl` alone: `contentUrl` is for the video file's own bytes, which// YouTube never hands out, and the watch page is what it must not be@@ -69,3 +70,11 @@ export function buildHowItWorksJsonLd(baseUrl = PROD_WEBSITE_URL): Graph {],};}++/** `79` → `"PT1M19S"`, the ISO 8601 form schema.org's `duration` takes. */+function toIsoDuration(totalSeconds: number) {+ const minutes = Math.floor(totalSeconds / 60);+ const seconds = totalSeconds % 60;++ return minutes > 0 ? `PT${minutes}M${seconds}S` : `PT${seconds}S`;+}diff --git a/src/app/(main)/how-it-works/page.tsx b/src/app/(main)/how-it-works/page.tsxindex ea44170..439c502 100644--- a/src/app/(main)/how-it-works/page.tsx+++ b/src/app/(main)/how-it-works/page.tsx@@ -74,7 +74,7 @@ export default function HowItWorksPage() {All tutorials</h2><p className="mx-auto mt-2 max-w-md text-pretty text-sm text-slate-600">- Four minutes of video, start to finish. Pick the one you need.+ Five minutes of video, start to finish. Pick the one you need.</p></div>diff --git a/src/config.ts b/src/config.tsindex a6bd04d..7b0d312 100644--- a/src/config.ts+++ b/src/config.ts@@ -57,80 +57,97 @@ const YOUTUBE_VIDEO_HOW_TO_ADD_INVOICE_FOR_ONE_WEEK =const YOUTUBE_VIDEO_HOW_TO_CUSTOMIZE_TAX ="https://www.youtube.com/embed/F_iJxZ3PHbk";+/** A vertical YouTube Short; the 16:9 player pillarboxes it. */+const YOUTUBE_VIDEO_MOBILE_DEMO = "https://www.youtube.com/embed/TKOegsmNnKM";+/*** Video catalog for the "How it works" dialog*/export const HOW_IT_WORKS_VIDEOS = [{id: "overview",- tabLabel: "Overview",- tabLabelShort: "Overview",title: "How EasyInvoicePDF Works",+ shortTitle: "Overview",description: "Learn how to create and customize your invoices.",embedUrl: VIDEO_DEMO_YOUTUBE_URL,watchUrl: "https://www.youtube.com/watch?v=iAROeCIcZ40",uploadDate: "2026-04-16T15:49:53-07:00",+ durationSeconds: 70,thumbnailUrl: "https://i.ytimg.com/vi/iAROeCIcZ40/maxresdefault.jpg",iframeTitle: "EasyInvoicePDF Demo Video",},{id: "add-seller",- tabLabel: "Add seller",- tabLabelShort: "Seller",title: "How to add a seller",+ shortTitle: "Add a seller",description: "Save seller details and reuse them on future invoices.",embedUrl: YOUTUBE_VIDEO_HOW_TO_ADD_SELLER,watchUrl: "https://www.youtube.com/watch?v=xfSF35c0vfU",uploadDate: "2026-06-13T13:06:34-07:00",+ durationSeconds: 42,thumbnailUrl: "https://i.ytimg.com/vi/xfSF35c0vfU/maxresdefault.jpg",iframeTitle: "How to add a seller - EasyInvoicePDF",},{id: "add-buyer",- tabLabel: "Add buyer",- tabLabelShort: "Buyer",title: "How to add a buyer",+ shortTitle: "Add a buyer",description: "Save buyer details and reuse them on future invoices.",embedUrl: YOUTUBE_VIDEO_HOW_TO_ADD_BUYER,watchUrl: "https://www.youtube.com/watch?v=XxAY0YGgXIk",uploadDate: "2026-06-13T13:17:28-07:00",+ durationSeconds: 45,thumbnailUrl: "https://i.ytimg.com/vi/XxAY0YGgXIk/maxresdefault.jpg",iframeTitle: "How to add a buyer - EasyInvoicePDF",},{id: "weekly-invoices",- tabLabel: "Weekly invoices",- tabLabelShort: "Weekly",title: "How to create invoices for one week",+ shortTitle: "Weekly invoices",description: "Learn how to generate invoices for a week of work.",embedUrl: YOUTUBE_VIDEO_HOW_TO_ADD_INVOICE_FOR_ONE_WEEK,watchUrl: "https://www.youtube.com/watch?v=6KzDBBiAJmg",uploadDate: "2026-06-13T13:23:38-07:00",+ durationSeconds: 35,thumbnailUrl: "https://i.ytimg.com/vi/6KzDBBiAJmg/maxresdefault.jpg",iframeTitle: "How to create weekly invoices - EasyInvoicePDF",},{id: "custom-tax",- tabLabel: "Customizable tax",- tabLabelShort: "Tax",title: "How to customize tax",+ shortTitle: "Customize tax",description:"Rename VAT to GST, Sales Tax, or any label, and set a rate per item.",embedUrl: YOUTUBE_VIDEO_HOW_TO_CUSTOMIZE_TAX,watchUrl: "https://www.youtube.com/watch?v=F_iJxZ3PHbk",uploadDate: "2026-09-08T16:22:57-07:00",+ durationSeconds: 19,thumbnailUrl: "https://i.ytimg.com/vi/F_iJxZ3PHbk/maxresdefault.jpg",iframeTitle: "How to customize tax on an invoice - EasyInvoicePDF",},+ {+ id: "mobile",+ title: "How to use EasyInvoicePDF on mobile",+ shortTitle: "Use on mobile",+ description: "Create, preview, and download an invoice from your phone.",+ embedUrl: YOUTUBE_VIDEO_MOBILE_DEMO,+ watchUrl: "https://www.youtube.com/shorts/TKOegsmNnKM",+ uploadDate: "2026-09-25T17:18:51-07:00",+ durationSeconds: 79,+ thumbnailUrl: "https://i.ytimg.com/vi/TKOegsmNnKM/maxresdefault.jpg",+ iframeTitle: "EasyInvoicePDF mobile demo",+ },] as const satisfies {id: string;- tabLabel: string;- tabLabelShort: string;title: string;+ /** Shown in the playlist on phones, where the full title would not fit a row. */+ shortTitle: string;description: string;embedUrl: string;watchUrl: string;uploadDate: string;+ /** Length on YouTube, shown in the playlist and emitted as the JSON-LD `duration`. */+ durationSeconds: number;thumbnailUrl: string;iframeTitle: string;}[];