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
feat: release video in What's new popup + item discounts tutorial (#288)
Vlad Sazonau231e1128aa47
diff --git a/README.md b/README.mdindex 2b3e7d7..4112ae4 100644--- a/README.md+++ b/README.md@@ -128,6 +128,32 @@ _**Add payment QR codes** with any invoice-related information (payment links, U## 📢 What's New+### EasyInvoicePDF v1.0.6 - Item Discounts (October 20, 2026)++- **Discounts on invoice items** - take a percentage (`10%`) or a fixed amount (`50.00 EUR`) off any line+- **Your own label** - name the discount, e.g. `Charitable donation`, and it shows on the invoice+- **Tax on the discounted amount** - VAT, totals and amount in words all use the discounted figures+- **Both templates** - a **Discount** column in the default template, and a separate discount row in the Stripe template++[](https://www.youtube.com/watch?v=8lYei_9mo6o)++[Full release notes for v1.0.6](https://easyinvoicepdf.com/changelog/item-discounts)++---++### EasyInvoicePDF v1.0.5 - Number Formats & Brazilian Portuguese (September 24, 2026)++- **Number format setting** - choose how amounts are punctuated, separately from the invoice language, including a new **International** format (`321 200.00`)+- **Keep format when language changes** - write an invoice in your client's language and keep your own number formatting+- **Brazilian Portuguese invoices** - a new `Portuguese (Brazil)` PDF language with `CNPJ/CPF` and Brazilian amounts in words+- **Large amounts fit their columns** - wide amounts wrap at a thousands boundary instead of overlapping the next column++[](https://www.youtube.com/watch?v=hZM2DYXo63k)++[Full release notes for v1.0.5](https://easyinvoicepdf.com/changelog/number-format-and-brazilian-portuguese)++---+### EasyInvoicePDF v1.0.4 - Faster PDF Preview & Mobile Polish (September 4, 2026)- **Faster, flicker-free preview** - the invoice PDF is generated **once** and shared by the desktop preview, the mobile viewer and the download buttondiff --git a/public/how-it-works.md b/public/how-it-works.mdindex c6141f6..c5c7baf 100644--- a/public/how-it-works.md+++ b/public/how-it-works.md@@ -3,7 +3,7 @@> Canonical page: https://easyinvoicepdf.com/how-it-works> Invoice editor: https://easyinvoicepdf.com/> Language: English-> Last updated: 2026-09-17+> Last updated: 2026-10-21EasyInvoicePDF lets users create a professional PDF invoice in the browser: enter seller and buyer information, add invoice items and tax settings, customize the document, review the live preview, and download the PDF. No account or sign-up is required.@@ -55,6 +55,13 @@ Shows how to rename the tax label (VAT, GST, Sales Tax, IVA, or any text) and se- [Watch on the tutorial page](https://easyinvoicepdf.com/how-it-works?video=custom-tax)- [Watch on YouTube](https://www.youtube.com/watch?v=F_iJxZ3PHbk)+### Add discounts to invoice items++Shows how to take a percentage or fixed amount off any invoice item, with tax calculated on the discounted price.++- [Watch on the tutorial page](https://easyinvoicepdf.com/how-it-works?video=item-discounts)+- [Watch on YouTube](https://www.youtube.com/watch?v=8lYei_9mo6o)+## Data handlingNormal editing, preview, and PDF generation run in the browser. EasyInvoicePDF does not store invoice content on its servers during the normal edit-and-download workflow. A shareable invoice URL contains a compressed copy of the invoice data and should be treated as sensitive.diff --git a/src/app/(main)/(app)/components/__tests__/changelog-update-popup.test.tsx b/src/app/(main)/(app)/components/__tests__/changelog-update-popup.test.tsxindex ac8c76c..81c7c3b 100644--- a/src/app/(main)/(app)/components/__tests__/changelog-update-popup.test.tsx+++ b/src/app/(main)/(app)/components/__tests__/changelog-update-popup.test.tsx@@ -62,6 +62,76 @@ describe("ChangelogUpdatePopup", () => {).not.toBeInTheDocument();});+ it("previews the release video and links to it on YouTube", () => {+ render(+ <ChangelogUpdatePopup+ variant="changelog"+ isOpen+ onDismiss={vi.fn()}+ releaseVideoId="8lYei_9mo6o"+ />,+ );++ const videoLink = screen.getByRole("link", {+ name: "Watch the release video on YouTube",+ });++ expect(videoLink).toHaveAttribute(+ "href",+ "https://www.youtube.com/watch?v=8lYei_9mo6o",+ );+ expect(videoLink).toHaveAttribute("target", "_blank");+ expect(videoLink.querySelector("img")).toHaveAttribute(+ "src",+ "https://i.ytimg.com/vi/8lYei_9mo6o/mqdefault.jpg",+ );+ });++ it("has no video preview without a release video or on the welcome popup", () => {+ const { rerender } = render(+ <ChangelogUpdatePopup variant="changelog" isOpen onDismiss={vi.fn()} />,+ );++ expect(+ screen.queryByTestId("changelog-update-video-link"),+ ).not.toBeInTheDocument();++ rerender(+ <ChangelogUpdatePopup+ variant="welcome"+ isOpen+ onDismiss={vi.fn()}+ releaseVideoId="8lYei_9mo6o"+ />,+ );++ expect(+ screen.queryByTestId("changelog-update-video-link"),+ ).not.toBeInTheDocument();+ });++ it("shows the mascot on the welcome popup but not on What's new", () => {+ const { rerender } = render(+ <ChangelogUpdatePopup variant="welcome" isOpen onDismiss={vi.fn()} />,+ );++ expect(+ screen+ .getByTestId("changelog-update-popup")+ .querySelector('img[src*="mascot"]'),+ ).not.toBeNull();++ rerender(+ <ChangelogUpdatePopup variant="changelog" isOpen onDismiss={vi.fn()} />,+ );++ // Queried again, so this checks the What's new popup and not the welcome one+ const changelogPopup = screen.getByTestId("changelog-update-popup");++ expect(changelogPopup).toHaveTextContent("What's new");+ expect(changelogPopup.querySelector('img[src*="mascot"]')).toBeNull();+ });+it("keeps the welcome copy for first-time visitors", () => {render(<ChangelogUpdatePopup@@ -107,6 +177,21 @@ describe("ChangelogUpdatePopup", () => {expect(popup.querySelector("img")).toBeNull();});+ it("ends the welcome sentence with the How it works link", () => {+ render(+ <ChangelogUpdatePopup+ variant="welcome"+ isOpen+ onDismiss={vi.fn()}+ layout="dock"+ />,+ );++ expect(screen.getByTestId("changelog-update-popup")).toHaveTextContent(+ "Welcome: Create PDF invoices in your browser. New here? See How it works",+ );+ });+it("opens How it works from the welcome notice and dismisses it", async () => {const user = userEvent.setup();const onDismiss = vi.fn();diff --git a/src/app/(main)/(app)/components/changelog-update-popup.tsx b/src/app/(main)/(app)/components/changelog-update-popup.tsxindex 3a72886..d523ec4 100644--- a/src/app/(main)/(app)/components/changelog-update-popup.tsx+++ b/src/app/(main)/(app)/components/changelog-update-popup.tsx@@ -1,6 +1,6 @@"use client";-import { XIcon } from "lucide-react";+import { PlayIcon, XIcon } from "lucide-react";import Link from "next/link";import { useEffect } from "react";@@ -25,6 +25,11 @@ interface ChangelogUpdatePopupProps {* that post follows the message; without it there is no link.*/releaseSlug?: string;+ /**+ * YouTube video ID of the latest release. On the "What's new" variant its thumbnail sits+ * above the buttons and opens the video on YouTube; without it there is no preview.+ */+ releaseVideoId?: string;/*** Where the popup sits. `floating` is the desktop card in the bottom-right corner, with* the mascot. `dock` is the compact mobile card, rendered inside the bottom dock and@@ -67,10 +72,19 @@ function CommunityLinks() {);}+/**+ * Temporarily off on the "What's new" popup, which shows without the mascot; the welcome+ * popup always has it. Flip back to `true` to bring it back to "What's new" too, along+ * with the right-hand column the card keeps free for it.+ */+const SHOW_CHANGELOG_POPUP_MASCOT = false as boolean;+const POPUP_CONTENT = {welcome: {title: "Welcome",bodyPrefix: "Create professional PDF invoices in your browser.",+ // The dock has no button row: "How it works" is a link that ends this sentence.+ dockBodyPrefix: "Create PDF invoices in your browser. New here? See",continueTestId: "welcome-update-continue",secondaryTestId: "welcome-update-how-it-works",},@@ -85,6 +99,11 @@ const POPUP_CONTENT = {{title: string;bodyPrefix: string;+ /**+ * The mobile dock's sentence, which runs straight into its action link. Falls back to+ * `bodyPrefix`.+ */+ dockBodyPrefix?: string;continueTestId: string;secondaryTestId: string;}@@ -97,6 +116,7 @@ export function ChangelogUpdatePopup({onHowItWorksClick,releaseSummary,releaseSlug,+ releaseVideoId,layout = "floating",}: ChangelogUpdatePopupProps) {useEffect(() => {@@ -123,14 +143,21 @@ export function ChangelogUpdatePopup({const content = POPUP_CONTENT[variant];+ const defaultBodyPrefix =+ layout === "dock" && "dockBodyPrefix" in content+ ? content.dockBodyPrefix+ : content.bodyPrefix;+const bodyPrefix =variant === "changelog" && releaseSummary? releaseSummary- : content.bodyPrefix;+ : defaultBodyPrefix;const analyticsPrefix =variant === "welcome" ? "welcome-popup" : "changelog-update-popup";+ const showMascot = variant === "welcome" || SHOW_CHANGELOG_POPUP_MASCOT;+if (layout === "dock") {return (<DockNotice@@ -153,7 +180,10 @@ export function ChangelogUpdatePopup({aria-atomic="true"data-testid="changelog-update-popup"className={cn(- "pointer-events-auto relative w-[min(27rem,calc(100vw-2rem))] overflow-visible rounded-2xl bg-white px-5 py-5 pr-36 text-slate-950 shadow-[0_18px_50px_rgba(0,0,0,0.16)] ring-1 ring-slate-300 sm:pr-40",+ "pointer-events-auto relative overflow-visible rounded-2xl bg-white px-5 py-5 text-slate-950 shadow-[0_18px_50px_rgba(0,0,0,0.16)] ring-1 ring-slate-300",+ showMascot+ ? "w-[min(27rem,calc(100vw-2rem))] pr-36 sm:pr-40"+ : "w-[min(21rem,calc(100vw-2rem))]","origin-bottom-right duration-300 ease-out motion-reduce:animate-none","animate-in fade-in zoom-in-95 slide-in-from-bottom-4",)}@@ -177,7 +207,12 @@ export function ChangelogUpdatePopup({<p className="text-[18px] font-semibold leading-tight text-slate-950 sm:text-[19px]">{content.title}</p>- <p className="mt-1.5 max-w-[14rem] text-sm leading-snug text-slate-600 sm:max-w-[15.5rem]">+ <p+ className={cn(+ "mt-1.5 text-sm leading-snug text-slate-600",+ showMascot ? "max-w-[14rem] sm:max-w-[15.5rem]" : null,+ )}+ >{bodyPrefix}{variant === "changelog" && releaseSlug ? (<>@@ -199,6 +234,15 @@ export function ChangelogUpdatePopup({<br /><CommunityLinks /></p>+ {variant === "changelog" && releaseVideoId ? (+ <ReleaseVideoPreview+ videoId={releaseVideoId}+ className={showMascot ? "w-48" : "w-full"}+ onClick={() => {+ umamiTrackEvent(`${analyticsPrefix}-video`);+ }}+ />+ ) : null}<div className="mt-5 flex items-center gap-2"><Buttontype="button"@@ -249,24 +293,87 @@ export function ChangelogUpdatePopup({</div></div>- <div- aria-hidden="true"- title=""- className="pointer-events-none absolute bottom-[-1.25rem] flex size-52 shrink-0 items-center justify-center overflow-visible sm:bottom-[-20px] sm:right-[-25px] sm:size-60"- >- <img- alt=""- src="/easyinvoice-mascot-popup-1.png"- loading="lazy"- decoding="async"- className="relative z-10 h-full w-full object-contain drop-shadow-[0_16px_28px_rgba(0,0,0,0.18)]"- />- </div>+ {showMascot ? (+ <div+ aria-hidden="true"+ title=""+ className="pointer-events-none absolute bottom-[-1.25rem] flex size-52 shrink-0 items-center justify-center overflow-visible sm:bottom-[-20px] sm:right-[-25px] sm:size-60"+ >+ <img+ alt=""+ src="/easyinvoice-mascot-popup-1.png"+ loading="lazy"+ decoding="async"+ className="relative z-10 h-full w-full object-contain drop-shadow-[0_16px_28px_rgba(0,0,0,0.18)]"+ />+ </div>+ ) : null}</section></div>);}+interface ReleaseVideoPreviewProps {+ videoId: string;+ /** Sets the width; the height follows at 16:9. */+ className?: string;+ onClick: () => void;+}++/**+ * The release video's YouTube thumbnail with a play button, opening the video in a new+ * tab. A link and not an embed: an iframe would load YouTube's player (and its cookies)+ * for everyone who sees the popup, not just those who want to watch.+ */+function ReleaseVideoPreview({+ videoId,+ className,+ onClick,+}: ReleaseVideoPreviewProps) {+ return (+ <a+ href={`https://www.youtube.com/watch?v=${videoId}`}+ target="_blank"+ rel="noopener noreferrer"+ aria-label="Watch the release video on YouTube"+ data-testid="changelog-update-video-link"+ onClick={onClick}+ className={cn(+ "group relative mt-4 block aspect-video overflow-hidden rounded-lg bg-slate-900 outline-offset-2",+ "focus-visible:outline focus-visible:outline-2 focus-visible:outline-slate-900",+ className,+ )}+ >+ {/* mqdefault is 320x180 with no letterbox bars; maxresdefault covers 2x screens. It only+ exists for 720p+ uploads (otherwise YouTube serves a grey 120x90 placeholder), which+ every release video is */}+ <img+ alt=""+ src={`https://i.ytimg.com/vi/${videoId}/mqdefault.jpg`}+ srcSet={`https://i.ytimg.com/vi/${videoId}/mqdefault.jpg 1x, https://i.ytimg.com/vi/${videoId}/maxresdefault.jpg 2x`}+ width={320}+ height={180}+ loading="lazy"+ decoding="async"+ className="size-full object-cover transition-transform duration-300 ease-out group-hover:scale-[1.03] motion-reduce:transition-none"+ />+ {/* An inset ring instead of a border, so it sits on the image edge */}+ <span+ aria-hidden="true"+ className="pointer-events-none absolute inset-0 rounded-lg ring-1 ring-inset ring-black/10"+ />+ <span+ aria-hidden="true"+ className="absolute inset-0 flex items-center justify-center"+ >+ <span className="flex size-11 items-center justify-center rounded-full bg-red-600 shadow-lg transition-transform duration-150 ease-out group-hover:scale-110 group-active:scale-95 motion-reduce:transition-none">+ <PlayIcon className="size-5 translate-x-px fill-white stroke-white" />+ </span>+ </span>+ </a>+ );+}+interface DockNoticeProps {variant: AppUpdatePopupVariant;title: string;diff --git a/src/app/(main)/(app)/page.client.tsx b/src/app/(main)/(app)/page.client.tsxindex 85b8bdd..98a50da 100644--- a/src/app/(main)/(app)/page.client.tsx+++ b/src/app/(main)/(app)/page.client.tsx@@ -175,6 +175,7 @@ export function AppPageClient({onDismiss={dismissChangelogPopup}releaseSummary={latestChangelog?.popupSummary}releaseSlug={latestChangelog?.slug}+ releaseVideoId={latestChangelog?.youtubeVideoId}layout={isMobile ? "dock" : "floating"}onHowItWorksClick={() => {return setIsHowItWorksDialogOpen(true);diff --git a/src/app/(main)/changelog/content/item-discounts.mdx b/src/app/(main)/changelog/content/item-discounts.mdxindex 8412c74..30d2b41 100644--- a/src/app/(main)/changelog/content/item-discounts.mdx+++ b/src/app/(main)/changelog/content/item-discounts.mdx@@ -7,8 +7,25 @@ export const metadata = {type: "minor",popupSummary:"Add a percentage or fixed-amount discount to any invoice item.",+ youtubeVideoId: "8lYei_9mo6o",};+<iframe+ src={`https://www.youtube-nocookie.com/embed/${metadata.youtubeVideoId}`}+ title="EasyInvoicePDF: Add percentage or fixed-amount discounts to invoice items"+ allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"+ referrerPolicy="strict-origin-when-cross-origin"+ allowFullScreen+ loading="lazy"+ style={{+ width: "100%",+ aspectRatio: "16 / 9",+ border: 0,+ borderRadius: "8px",+ marginTop: "1.5rem",+ }}+/>+## ✨ Highlights- **Discounts on invoice items** - click **Add discount** under an item's net price and take a percentage (`10%`) or a fixed amount (`50.00 EUR`) off that line. A fixed amount comes off the whole line, whatever the quantitydiff --git a/src/app/(main)/changelog/content/number-format-and-brazilian-portuguese.mdx b/src/app/(main)/changelog/content/number-format-and-brazilian-portuguese.mdxindex 7febd63..346237a 100644--- a/src/app/(main)/changelog/content/number-format-and-brazilian-portuguese.mdx+++ b/src/app/(main)/changelog/content/number-format-and-brazilian-portuguese.mdx@@ -7,10 +7,11 @@ export const metadata = {type: "minor",popupSummary:"Choose your preferred number format and create invoices in Brazilian Portuguese.",+ youtubeVideoId: "hZM2DYXo63k",};<iframe- src="https://www.youtube-nocookie.com/embed/hZM2DYXo63k"+ src={`https://www.youtube-nocookie.com/embed/${metadata.youtubeVideoId}`}title="EasyInvoicePDF: Customize number formatting and create invoices in Brazilian Portuguese"allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerPolicy="strict-origin-when-cross-origin"diff --git a/src/app/(main)/changelog/utils.ts b/src/app/(main)/changelog/utils.tsindex f6be235..77ed3c6 100644--- a/src/app/(main)/changelog/utils.ts+++ b/src/app/(main)/changelog/utils.ts@@ -13,6 +13,8 @@ export interface ChangelogSummary {date: string;/** A few words about the release for the "What's new" popup, see `popupSummary` below. */popupSummary?: string;+ /** YouTube video for the release, see `youtubeVideoId` below. */+ youtubeVideoId?: string;}/** Maps metadata `version` (e.g. "1.0.1") to the GitHub release tag name. */@@ -50,6 +52,13 @@ interface ChangelogMetadata {* sentence; leave it out and the popup falls back to the generic line.*/popupSummary?: string;+ /**+ * ID of the release's YouTube video (the `v=` part of its URL). The "What's new" popup+ * shows its thumbnail, linking to the video; leave it out and the popup has no preview.+ * Upload at 720p or higher: the popup uses YouTube's `maxresdefault` thumbnail on 2x+ * screens, which YouTube only makes for HD videos.+ */+ youtubeVideoId?: string;}export interface ChangelogEntry {@@ -66,6 +75,10 @@ const changelogEntryMetadataSchema = z.object({version: z.string().optional(),type: z.enum(["major", "minor", "patch"]).optional(),popupSummary: z.string().min(1).max(80).optional(),+ youtubeVideoId: z+ .string()+ .regex(/^[\w-]{11}$/, "Expected an 11-character YouTube video ID")+ .optional(),});/**@@ -87,6 +100,7 @@ export async function getLatestChangelogSummary(): Promise<ChangelogSummary | nuversion: metadata.version,date: metadata.date,popupSummary: metadata.popupSummary,+ youtubeVideoId: metadata.youtubeVideoId,};}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 e10f547..fc91c26 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@@ -10,8 +10,9 @@ import {const PAGE_TITLE = "How EasyInvoicePDF Works | Video Tutorials";-const PAGE_DESCRIPTION =- "Watch step-by-step video tutorials on creating invoices, saving seller and buyer details, customizing tax, and generating weekly invoices with EasyInvoicePDF.";+/** Also the page's meta description, so search results and the JSON-LD say the same. */+export const HOW_IT_WORKS_PAGE_DESCRIPTION =+ "Watch short video tutorials on creating invoices, saving seller and buyer details, customizing tax, adding discounts, and weekly invoices with EasyInvoicePDF.";export function buildHowItWorksJsonLd(baseUrl = PROD_WEBSITE_URL): Graph {const pageUrl = `${baseUrl}/how-it-works`;@@ -48,7 +49,7 @@ export function buildHowItWorksJsonLd(baseUrl = PROD_WEBSITE_URL): Graph {"@id": pageWebPageId(pageUrl),url: pageUrl,name: PAGE_TITLE,- description: PAGE_DESCRIPTION,+ description: HOW_IT_WORKS_PAGE_DESCRIPTION,inLanguage: "en",isPartOf: {"@id": JSON_LD_IDS.website,diff --git a/src/app/(main)/how-it-works/layout.tsx b/src/app/(main)/how-it-works/layout.tsxindex e84d706..e019ce3 100644--- a/src/app/(main)/how-it-works/layout.tsx+++ b/src/app/(main)/how-it-works/layout.tsx@@ -8,18 +8,16 @@ import {TWITTER_CREATOR,} from "@/config";+import { HOW_IT_WORKS_PAGE_DESCRIPTION } from "./build-how-it-works-json-ld";import { HowItWorksJsonLd } from "./how-it-works-json-ld";const HOW_IT_WORKS_PAGE_URL = "https://easyinvoicepdf.com/how-it-works";const PAGE_TITLE = "How EasyInvoicePDF Works | Video Tutorials";-const PAGE_DESCRIPTION =- "Watch step-by-step video tutorials on creating invoices, saving seller and buyer details, customizing tax, and generating weekly invoices with EasyInvoicePDF.";-export const metadata: Metadata = {title: PAGE_TITLE,- description: PAGE_DESCRIPTION,+ description: HOW_IT_WORKS_PAGE_DESCRIPTION,keywords: ["how easyinvoicepdf works","invoice generator tutorial",@@ -29,6 +27,8 @@ export const metadata: Metadata = {"custom tax invoice","vat invoice tutorial","weekly invoices",+ "add discount to invoice",+ "invoice discount tutorial","easyinvoicepdf demo","pdf invoice generator guide",],@@ -54,7 +54,7 @@ export const metadata: Metadata = {},openGraph: {title: PAGE_TITLE,- description: PAGE_DESCRIPTION,+ description: HOW_IT_WORKS_PAGE_DESCRIPTION,siteName: "EasyInvoicePDF.com | Free Invoice PDF Generator",type: "website",locale: "en_US",@@ -72,7 +72,7 @@ export const metadata: Metadata = {twitter: {card: "summary_large_image",title: PAGE_TITLE,- description: PAGE_DESCRIPTION,+ description: HOW_IT_WORKS_PAGE_DESCRIPTION,creator: TWITTER_CREATOR,images: [{diff --git a/src/app/(main)/how-it-works/page.tsx b/src/app/(main)/how-it-works/page.tsxindex 439c502..f922fe0 100644--- a/src/app/(main)/how-it-works/page.tsx+++ b/src/app/(main)/how-it-works/page.tsx@@ -14,6 +14,13 @@ const SURFACE_SHADOW = "shadow-sm ring-1 ring-black/[0.06]";const SURFACE_SHADOW_HOVER = "hover:shadow-lg hover:ring-black/[0.08]";+/** Length of the whole playlist, rounded to the minute, so the copy follows the catalog. */+const TOTAL_TUTORIAL_MINUTES = Math.round(+ HOW_IT_WORKS_VIDEOS.reduce((total, video) => {+ return total + video.durationSeconds;+ }, 0) / 60,+);+const linkClassName ="font-medium text-slate-950 underline decoration-slate-400 underline-offset-2 transition-colors hover:text-slate-950/90 hover:decoration-slate-500";@@ -74,7 +81,8 @@ export default function HowItWorksPage() {All tutorials</h2><p className="mx-auto mt-2 max-w-md text-pretty text-sm text-slate-600">- Five minutes of video, start to finish. Pick the one you need.+ About {TOTAL_TUTORIAL_MINUTES} minutes of video, start to finish.+ Pick the one you need.</p></div>diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsxindex a7463a9..c0c601c 100644--- a/src/components/ui/dialog.tsx+++ b/src/components/ui/dialog.tsx@@ -48,7 +48,7 @@ const DialogContent = React.forwardRef<>{children}<DialogPrimitive.Close- className="focus-visible:outline-ring/70 group absolute right-3 top-3 flex size-7 items-center justify-center rounded-lg outline-offset-2 transition-colors focus-visible:outline focus-visible:outline-2 disabled:pointer-events-none"+ className="focus-visible:outline-ring/70 group absolute right-3 top-3 flex size-7 items-center justify-center rounded-lg border border-slate-200 outline-offset-2 transition-[color,background-color,border-color,transform] focus-visible:outline focus-visible:outline-2 active:scale-[98%] disabled:pointer-events-none dark:border-slate-800"title="Close"><Xdiff --git a/src/config.ts b/src/config.tsindex daedbf7..4ab02be 100644--- a/src/config.ts+++ b/src/config.ts@@ -57,6 +57,9 @@ const YOUTUBE_VIDEO_HOW_TO_ADD_INVOICE_FOR_ONE_WEEK =const YOUTUBE_VIDEO_HOW_TO_CUSTOMIZE_TAX ="https://www.youtube.com/embed/F_iJxZ3PHbk";+const YOUTUBE_VIDEO_HOW_TO_ADD_DISCOUNTS =+ "https://www.youtube.com/embed/8lYei_9mo6o";+const YOUTUBE_VIDEO_HOW_TO_IMPORT_EXPORT_CONTACTS ="https://www.youtube.com/embed/Vf2-QN-mB1c";@@ -144,6 +147,19 @@ export const HOW_IT_WORKS_VIDEOS = [thumbnailUrl: "https://i.ytimg.com/vi/F_iJxZ3PHbk/maxresdefault.jpg",iframeTitle: "How to customize tax on an invoice - EasyInvoicePDF",},+ {+ id: "item-discounts",+ title: "How to add discounts to invoice items",+ shortTitle: "Add discounts",+ description:+ "Take a percentage or fixed amount off any item, with tax calculated on the discounted price.",+ embedUrl: YOUTUBE_VIDEO_HOW_TO_ADD_DISCOUNTS,+ watchUrl: "https://www.youtube.com/watch?v=8lYei_9mo6o",+ uploadDate: "2026-10-20T16:59:50-07:00",+ durationSeconds: 33,+ thumbnailUrl: "https://i.ytimg.com/vi/8lYei_9mo6o/maxresdefault.jpg",+ iframeTitle: "How to add discounts to an invoice - EasyInvoicePDF",+ },{id: "number-format",title: "How to customize number formatting",