Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

refactor: update about page tests and improve invoice form components for clarity and consistency (#253)

Vlad Sazonaud8b4d4953522
diff --git a/e2e/about.test.ts b/e2e/about.test.ts
index 4cd7c88..78001ed 100644
--- a/e2e/about.test.ts
+++ b/e2e/about.test.ts
@@ -1,11 +1,6 @@
/* eslint-disable playwright/no-conditional-expect */
/* eslint-disable playwright/no-conditional-in-test */
-import {
- DISCORD_COMMUNITY_URL,
- GITHUB_URL,
- TWITTER_URL,
- VIDEO_DEMO_FALLBACK_IMG,
-} from "@/config";
+import { GITHUB_URL, TWITTER_URL, VIDEO_DEMO_FALLBACK_IMG } from "@/config";
import { LANGUAGE_TO_NATIVE_LABEL, SUPPORTED_LANGUAGES } from "@/app/schema";
import { expect, test } from "@playwright/test";
@@ -241,18 +236,6 @@ test.describe("About page", () => {
await expect(termsOfServiceLink).toHaveAttribute("href", "/tos");
await expect(termsOfServiceLink).not.toHaveAttribute("target", "_blank");
- const shareFeedbackLink = footerLinks.getByRole("link", {
- name: "Share feedback",
- exact: true,
- });
-
- await expect(shareFeedbackLink).toBeVisible();
- await expect(shareFeedbackLink).toHaveAttribute(
- "href",
- DISCORD_COMMUNITY_URL,
- );
- await expect(shareFeedbackLink).toHaveAttribute("target", "_blank");
-
const githubLink = footerLinks.getByRole("link", {
name: "GitHub",
exact: true,
diff --git a/e2e/invoice-form.test.ts b/e2e/invoice-form.test.ts
index d4e7650..ef65260 100644
--- a/e2e/invoice-form.test.ts
+++ b/e2e/invoice-form.test.ts
@@ -521,7 +521,7 @@ test.describe("Invoice Generator Page", () => {
// **Check INVOICE ITEMS section**
const invoiceItemsSection = page.getByTestId(`invoice-items-section`);
await expect(
- invoiceItemsSection.getByText("Invoice Items", { exact: true }),
+ invoiceItemsSection.getByText("Items and pricing", { exact: true }),
).toBeVisible();
// Check visibility toggles in settings
@@ -1160,7 +1160,7 @@ test.describe("Invoice Generator Page", () => {
{ id: "general-information-section", label: "General Information" },
{ id: "seller-information-section", label: "Seller Information" },
{ id: "buyer-information-section", label: "Buyer Information" },
- { id: "invoice-items-section", label: "Invoice Items" },
+ { id: "invoice-items-section", label: "Items and pricing" },
] as const;
// Verify all sections are initially visible and expanded
@@ -1180,7 +1180,7 @@ test.describe("Invoice Generator Page", () => {
await page
.getByTestId("invoice-items-section")
- .getByRole("button", { name: "Invoice Items" })
+ .getByRole("button", { name: "Items and pricing", exact: true })
.click();
// Verify mixed state: general and buyer expanded, seller and items collapsed
@@ -1205,7 +1205,7 @@ test.describe("Invoice Generator Page", () => {
await expect(
page
.getByTestId("invoice-items-section")
- .getByRole("region", { name: "Invoice Items" }),
+ .getByRole("region", { name: "Items and pricing", exact: true }),
).toBeHidden();
// Verify the state is saved in localStorage
@@ -1249,7 +1249,7 @@ test.describe("Invoice Generator Page", () => {
await expect(
page
.getByTestId("invoice-items-section")
- .getByRole("region", { name: "Invoice Items" }),
+ .getByRole("region", { name: "Items and pricing", exact: true }),
).toBeHidden();
// Toggle states after reload
@@ -1285,7 +1285,7 @@ test.describe("Invoice Generator Page", () => {
await expect(
page
.getByTestId("invoice-items-section")
- .getByRole("region", { name: "Invoice Items" }),
+ .getByRole("region", { name: "Items and pricing", exact: true }),
).toBeHidden();
// Verify updated state is saved in localStorage
diff --git a/e2e/stripe-invoice-template/stripe-invoice-template.test.ts b/e2e/stripe-invoice-template/stripe-invoice-template.test.ts
index 4c4310e..7223075 100644
--- a/e2e/stripe-invoice-template/stripe-invoice-template.test.ts
+++ b/e2e/stripe-invoice-template/stripe-invoice-template.test.ts
@@ -470,7 +470,7 @@ test.describe("Stripe Invoice Template", () => {
await expect(newPersonAuthorizedToIssueFieldset).toBeHidden();
});
- test("Invoice items fields and switches only appear for default template (except for Tax Settings field)", async ({
+ test("Items and pricing fields and switches only appear for default template (except for Tax Settings field)", async ({
page,
}) => {
// Verify default template is selected by default
@@ -482,7 +482,7 @@ test.describe("Stripe Invoice Template", () => {
// 1. Show Number Column switch
const showNumberColumnSwitch = invoiceItemsSection.getByRole("switch", {
- name: 'Show "Number" Column in the Invoice Items Table',
+ name: 'Show "Number" Column in the Items and pricing table',
});
await expect(showNumberColumnSwitch).toBeVisible();
diff --git a/messages/de.json b/messages/de.json
index 1d3a064..05df2d5 100644
--- a/messages/de.json
+++ b/messages/de.json
@@ -113,6 +113,18 @@
"sharing": {
"question": "Kann ich Rechnungen mit anderen teilen?",
"answer": "Ja. Sie erstellen einen teilbaren Link, damit Kunden die Rechnung sehen und das PDF herunterladen können. Nur Personen mit dem Link haben Zugriff."
+ },
+ "howItWorks": {
+ "question": "Wie funktioniert EasyInvoicePDF?",
+ "answer": "Geben Sie Ihre Rechnungsdaten ein, sehen Sie sich sofort eine Vorschau des PDFs an und laden Sie Ihre Rechnung anschließend herunter oder teilen Sie sie."
+ },
+ "whoItIsFor": {
+ "question": "Für wen ist EasyInvoicePDF gedacht?",
+ "answer": "EasyInvoicePDF wurde für Freiberufler, Berater, Agenturen, Auftragnehmer und kleine Unternehmen entwickelt, die schnell eine Rechnung ohne komplizierte Buchhaltungssoftware benötigen."
+ },
+ "whyEasyInvoicePdf": {
+ "question": "Warum EasyInvoicePDF wählen?",
+ "answer": "Anders als herkömmliche Rechnungsplattformen erfordert EasyInvoicePDF kein Konto und verarbeitet Ihre Rechnung vollständig in Ihrem Browser."
}
}
}
diff --git a/messages/en.json b/messages/en.json
index 1d2314a..db00d7b 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -113,6 +113,18 @@
"sharing": {
"question": "How do I share an invoice with a client?",
"answer": "Use the share action in the editor to copy a link. The link carries your invoice data so recipients can open it in their browser, review the invoice, and download the PDF without signing up. Anyone with the full link can open it, so only send it to people you trust."
+ },
+ "howItWorks": {
+ "question": "How does EasyInvoicePDF work?",
+ "answer": "Enter your invoice details, preview the PDF instantly, then download or share your invoice."
+ },
+ "whoItIsFor": {
+ "question": "Who is EasyInvoicePDF for?",
+ "answer": "EasyInvoicePDF is built for freelancers, consultants, agencies, contractors, and small businesses that need a fast invoice without complicated accounting software."
+ },
+ "whyEasyInvoicePdf": {
+ "question": "Why choose EasyInvoicePDF?",
+ "answer": "Unlike traditional invoicing platforms, EasyInvoicePDF requires no account and processes your invoice entirely inside your browser."
}
}
}
diff --git a/messages/es.json b/messages/es.json
index 64acac8..976e88f 100644
--- a/messages/es.json
+++ b/messages/es.json
@@ -113,6 +113,18 @@
"sharing": {
"question": "¿Puedo compartir facturas con otros?",
"answer": "Sí. Cree un enlace para compartir y sus clientes verán la factura y podrán descargar el PDF. Solo quien tenga el enlace puede abrirlo."
+ },
+ "howItWorks": {
+ "question": "¿Cómo funciona EasyInvoicePDF?",
+ "answer": "Introduzca los datos de la factura, obtenga al instante una vista previa del PDF y, después, descargue o comparta la factura."
+ },
+ "whoItIsFor": {
+ "question": "¿Para quién es EasyInvoicePDF?",
+ "answer": "EasyInvoicePDF está diseñado para autónomos, consultores, agencias, contratistas y pequeñas empresas que necesitan crear una factura rápidamente sin un programa de contabilidad complicado."
+ },
+ "whyEasyInvoicePdf": {
+ "question": "¿Por qué elegir EasyInvoicePDF?",
+ "answer": "A diferencia de las plataformas de facturación tradicionales, EasyInvoicePDF no requiere una cuenta y procesa la factura íntegramente en su navegador."
}
}
}
diff --git a/messages/fr.json b/messages/fr.json
index ef929c3..091e81c 100644
--- a/messages/fr.json
+++ b/messages/fr.json
@@ -113,6 +113,18 @@
"sharing": {
"question": "Puis-je partager des factures avec d'autres personnes ?",
"answer": "Oui. Vous créez un lien partageable pour que les clients consultent la facture et téléchargent le PDF. Seules les personnes disposant du lien peuvent l'ouvrir."
+ },
+ "howItWorks": {
+ "question": "Comment fonctionne EasyInvoicePDF ?",
+ "answer": "Saisissez les informations de votre facture, prévisualisez instantanément le PDF, puis téléchargez ou partagez votre facture."
+ },
+ "whoItIsFor": {
+ "question": "À qui s'adresse EasyInvoicePDF ?",
+ "answer": "EasyInvoicePDF est conçu pour les freelances, les consultants, les agences, les prestataires et les petites entreprises qui souhaitent créer rapidement une facture sans logiciel de comptabilité complexe."
+ },
+ "whyEasyInvoicePdf": {
+ "question": "Pourquoi choisir EasyInvoicePDF ?",
+ "answer": "Contrairement aux plateformes de facturation traditionnelles, EasyInvoicePDF ne nécessite aucun compte et traite votre facture entièrement dans votre navigateur."
}
}
}
diff --git a/messages/it.json b/messages/it.json
index 40fb1c7..80a5a2d 100644
--- a/messages/it.json
+++ b/messages/it.json
@@ -113,6 +113,18 @@
"sharing": {
"question": "Posso condividere le fatture con altri?",
"answer": "Sì. Crei un link condivisibile: i clienti vedono la fattura e scaricano il PDF. Solo chi ha il link può aprirlo."
+ },
+ "howItWorks": {
+ "question": "Come funziona EasyInvoicePDF?",
+ "answer": "Inserisci i dati della fattura, visualizza subito l'anteprima del PDF, quindi scarica o condividi la fattura."
+ },
+ "whoItIsFor": {
+ "question": "A chi è rivolto EasyInvoicePDF?",
+ "answer": "EasyInvoicePDF è pensato per freelance, consulenti, agenzie, professionisti e piccole imprese che devono creare rapidamente una fattura senza software di contabilità complicati."
+ },
+ "whyEasyInvoicePdf": {
+ "question": "Perché scegliere EasyInvoicePDF?",
+ "answer": "A differenza delle piattaforme di fatturazione tradizionali, EasyInvoicePDF non richiede un account ed elabora la fattura interamente nel tuo browser."
}
}
}
diff --git a/messages/nl.json b/messages/nl.json
index 69dfda6..42c7dea 100644
--- a/messages/nl.json
+++ b/messages/nl.json
@@ -113,6 +113,18 @@
"sharing": {
"question": "Kan ik facturen delen met anderen?",
"answer": "Ja. Je maakt een deelbare link zodat klanten de factuur zien en de PDF downloaden. Alleen mensen met de link kunnen deze openen."
+ },
+ "howItWorks": {
+ "question": "Hoe werkt EasyInvoicePDF?",
+ "answer": "Vul je factuurgegevens in, bekijk direct een voorbeeld van de PDF en download of deel daarna je factuur."
+ },
+ "whoItIsFor": {
+ "question": "Voor wie is EasyInvoicePDF bedoeld?",
+ "answer": "EasyInvoicePDF is gemaakt voor freelancers, consultants, bureaus, zzp'ers en kleine bedrijven die snel een factuur nodig hebben zonder ingewikkelde boekhoudsoftware."
+ },
+ "whyEasyInvoicePdf": {
+ "question": "Waarom kiezen voor EasyInvoicePDF?",
+ "answer": "In tegenstelling tot traditionele facturatieplatforms heb je voor EasyInvoicePDF geen account nodig en wordt je factuur volledig in je browser verwerkt."
}
}
}
diff --git a/messages/pl.json b/messages/pl.json
index 70efac1..11e8b4f 100644
--- a/messages/pl.json
+++ b/messages/pl.json
@@ -113,6 +113,18 @@
"sharing": {
"question": "Czy mogę udostępniać faktury innym?",
"answer": "Tak. Tworzysz link do udostępnienia, aby klienci zobaczyli fakturę i pobrali PDF. Dostęp mają tylko osoby z linkiem."
+ },
+ "howItWorks": {
+ "question": "Jak działa EasyInvoicePDF?",
+ "answer": "Wprowadź dane faktury, od razu zobacz podgląd pliku PDF, a następnie pobierz lub udostępnij fakturę."
+ },
+ "whoItIsFor": {
+ "question": "Dla kogo jest EasyInvoicePDF?",
+ "answer": "EasyInvoicePDF powstał z myślą o freelancerach, konsultantach, agencjach, wykonawcach i małych firmach, które potrzebują szybko wystawić fakturę bez skomplikowanego oprogramowania księgowego."
+ },
+ "whyEasyInvoicePdf": {
+ "question": "Dlaczego warto wybrać EasyInvoicePDF?",
+ "answer": "W przeciwieństwie do tradycyjnych platform do fakturowania EasyInvoicePDF nie wymaga konta i przetwarza fakturę w całości w Twojej przeglądarce."
}
}
}
diff --git a/messages/pt.json b/messages/pt.json
index a75ce8d..35a2c07 100644
--- a/messages/pt.json
+++ b/messages/pt.json
@@ -113,6 +113,18 @@
"sharing": {
"question": "Posso compartilhar faturas com outros?",
"answer": "Sim. Você cria um link compartilhável para clientes verem a fatura e baixarem o PDF. Só quem tem o link pode abrir."
+ },
+ "howItWorks": {
+ "question": "Como o EasyInvoicePDF funciona?",
+ "answer": "Insira os dados da sua fatura, visualize o PDF na hora e depois baixe ou compartilhe a fatura."
+ },
+ "whoItIsFor": {
+ "question": "Para quem é o EasyInvoicePDF?",
+ "answer": "O EasyInvoicePDF foi criado para freelancers, consultores, agências, prestadores de serviços e pequenas empresas que precisam emitir uma fatura rapidamente, sem um software de contabilidade complicado."
+ },
+ "whyEasyInvoicePdf": {
+ "question": "Por que escolher o EasyInvoicePDF?",
+ "answer": "Ao contrário das plataformas de faturamento tradicionais, o EasyInvoicePDF não exige conta e processa sua fatura inteiramente no navegador."
}
}
}
diff --git a/messages/ru.json b/messages/ru.json
index cd6c79a..4b9d00a 100644
--- a/messages/ru.json
+++ b/messages/ru.json
@@ -113,6 +113,18 @@
"sharing": {
"question": "Могу ли я делиться счетами с другими?",
"answer": "Да. Вы создаете ссылку для клиентов: они видят счет и скачивают PDF. Открыть может только тот, у кого есть ссылка."
+ },
+ "howItWorks": {
+ "question": "Как работает EasyInvoicePDF?",
+ "answer": "Введите данные счета, PDF будет мгновенно сгенерирован, а затем скачайте счет или поделитесь им."
+ },
+ "whoItIsFor": {
+ "question": "Для кого предназначен EasyInvoicePDF?",
+ "answer": "EasyInvoicePDF создан для фрилансеров, консультантов, агентств, подрядчиков и малого бизнеса, которым нужно быстро выставить счет без сложной бухгалтерской программы."
+ },
+ "whyEasyInvoicePdf": {
+ "question": "Почему стоит выбрать EasyInvoicePDF?",
+ "answer": "В отличие от традиционных платформ для выставления счетов, EasyInvoicePDF не требует аккаунта и полностью генерирует ваш счет в браузере."
}
}
}
diff --git a/messages/uk.json b/messages/uk.json
index b5cfa53..439164b 100644
--- a/messages/uk.json
+++ b/messages/uk.json
@@ -113,6 +113,18 @@
"sharing": {
"question": "Чи можу я ділитися рахунками з іншими?",
"answer": "Так. Ви створюєте посилання для клієнтів: вони бачать інвойс і завантажують PDF. Відкрити може лише той, у кого є посилання."
+ },
+ "howItWorks": {
+ "question": "Як працює EasyInvoicePDF?",
+ "answer": "Введіть дані інвойса, PDF буде миттєво згенеровано, а потім завантажте інвойс або поділіться ним."
+ },
+ "whoItIsFor": {
+ "question": "Для кого призначений EasyInvoicePDF?",
+ "answer": "EasyInvoicePDF створено для фрилансерів, консультантів, агенцій, підрядників і малого бізнесу, яким потрібно швидко виставити інвойс без складної бухгалтерської програми."
+ },
+ "whyEasyInvoicePdf": {
+ "question": "Чому варто обрати EasyInvoicePDF?",
+ "answer": "На відміну від традиційних платформ для виставлення рахунків, EasyInvoicePDF не потребує облікового запису та повністю генерує ваш інвойс у браузері."
}
}
}
diff --git a/src/app/(app)/components/index.tsx b/src/app/(app)/components/index.tsx
index e6c1e95..24de87f 100644
--- a/src/app/(app)/components/index.tsx
+++ b/src/app/(app)/components/index.tsx
@@ -120,6 +120,24 @@ const PdfViewer = ({
const TAB_INVOICE_FORM = MOBILE_TABS_VALUES[0];
const TAB_INVOICE_PREVIEW = MOBILE_TABS_VALUES[1];
+function LocalStorageNotice() {
+ return (
+ <CustomTooltip
+ trigger={
+ <button
+ type="button"
+ className="cursor-default text-zinc-700 transition-colors hover:text-zinc-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2"
+ >
+ Saved locally in your browser
+ </button>
+ }
+ content="No data is uploaded to the server"
+ side="bottom"
+ popoverOnMobile
+ />
+ );
+}
+
export function InvoiceClientPage({
invoiceDataState,
handleInvoiceDataChange,
@@ -266,12 +284,21 @@ export function InvoiceClientPage({
/>
</div>
{/** Mobile version */}
- {invoiceLastUpdatedAtFormatted ? (
- <div className="relative mt-2 text-center text-xs text-zinc-700 duration-500 animate-in fade-in slide-in-from-bottom-2">
- <span className="font-semibold">Invoice last updated:</span>{" "}
- {invoiceLastUpdatedAtFormatted}
- </div>
- ) : null}
+ <div className="relative mt-2 flex flex-wrap items-center justify-center gap-x-2 gap-y-1 text-center text-xs text-zinc-700 duration-500 animate-in fade-in slide-in-from-bottom-2">
+ <LocalStorageNotice />
+ {invoiceLastUpdatedAtFormatted ? (
+ <>
+ <span
+ className="hidden h-3 w-px bg-zinc-400 sm:block"
+ aria-hidden="true"
+ />
+ <span>
+ <span className="font-semibold">Invoice last updated:</span>{" "}
+ {invoiceLastUpdatedAtFormatted}
+ </span>
+ </>
+ ) : null}
+ </div>
<div
className="mt-5 flex flex-wrap justify-center gap-1 text-xs text-zinc-900"
@@ -341,14 +368,25 @@ export function InvoiceClientPage({
</div>
{/* Invoice preview section i.e. right column (Desktop version) */}
<div className="relative col-span-8 h-[620px] w-full max-w-full 2xl:h-[700px]">
- {invoiceLastUpdatedAtFormatted ? (
- <div className="relative">
- <div className="absolute -top-5 right-0 z-10 text-center text-xs text-zinc-700 duration-500 animate-in fade-in slide-in-from-bottom-2 md:-mb-5 lg:text-right">
- <span className="font-semibold">Invoice last updated:</span>{" "}
- {invoiceLastUpdatedAtFormatted}
- </div>
+ <div className="relative">
+ <div className="absolute -top-5 right-0 z-10 flex items-center gap-x-2 text-center text-xs text-zinc-700 duration-500 animate-in fade-in slide-in-from-bottom-2 md:-mb-5 lg:text-right">
+ <LocalStorageNotice />
+ {invoiceLastUpdatedAtFormatted ? (
+ <>
+ <span
+ className="hidden h-3 w-px bg-zinc-400 sm:block"
+ aria-hidden="true"
+ />
+ <span>
+ <span className="font-semibold">
+ Invoice last updated:
+ </span>{" "}
+ {invoiceLastUpdatedAtFormatted}
+ </span>
+ </>
+ ) : null}
</div>
- ) : null}
+ </div>
<PdfViewer
invoiceData={invoiceDataState}
errorWhileGeneratingPdfIsShown={errorWhileGeneratingPdfIsShown}
diff --git a/src/app/(app)/components/invoice-form/index.tsx b/src/app/(app)/components/invoice-form/index.tsx
index 6b6cbee..3ec598a 100644
--- a/src/app/(app)/components/invoice-form/index.tsx
+++ b/src/app/(app)/components/invoice-form/index.tsx
@@ -415,14 +415,14 @@ export const InvoiceForm = memo(function InvoiceForm({
</div>
</AccordionItem>
- {/* Invoice Items */}
+ {/* Items and pricing */}
<AccordionItem
value={ACCORDION_ITEMS}
className="rounded-lg border shadow"
data-testid={`invoice-items-section`}
>
<AccordionTrigger className="px-4 py-3">
- <Legend>Invoice Items</Legend>
+ <Legend>Items and pricing</Legend>
</AccordionTrigger>
<AccordionContent className="px-4 pb-4">
<InvoiceItems
@@ -470,8 +470,8 @@ export const InvoiceForm = memo(function InvoiceForm({
<ErrorMessage>{errors.total.message}</ErrorMessage>
) : (
<InputHelperMessage>
- Calculated automatically based on (Net Amount + VAT Amount) *
- Number of invoice items
+ Calculated automatically as the sum of each line item&apos;s
+ pre-tax amount (Net Amount + VAT Amount)
</InputHelperMessage>
)}
</div>
diff --git a/src/app/(app)/components/invoice-form/sections/invoice-items.tsx b/src/app/(app)/components/invoice-form/sections/invoice-items.tsx
index c9604bf..b8af1da 100644
--- a/src/app/(app)/components/invoice-form/sections/invoice-items.tsx
+++ b/src/app/(app)/components/invoice-form/sections/invoice-items.tsx
@@ -826,7 +826,7 @@ export const InvoiceItems = memo(function InvoiceItems({
htmlFor={`itemInvoiceItemNumberIsVisible0`}
className="text-balance font-medium"
>
- Show &quot;Number&quot; Column in the Invoice Items Table
+ Show &quot;Number&quot; Column in the Items and pricing table
</Label>
<Controller
diff --git a/src/app/(components)/footer-launch-badges.tsx b/src/app/(components)/footer-launch-badges.tsx
index a813acc..8f39482 100644
--- a/src/app/(components)/footer-launch-badges.tsx
+++ b/src/app/(components)/footer-launch-badges.tsx
@@ -122,7 +122,7 @@ export function FooterLaunchBadges() {
rx="12"
fill="#FFFDF7"
stroke="#78A7A2"
- stroke-width="3"
+ strokeWidth="3"
/>
<g transform="translate(13 9) scale(.104)">
<path
@@ -134,10 +134,10 @@ export function FooterLaunchBadges() {
x="64"
y="24"
fill="#FFA100"
- font-size="13"
- font-family="Avenir Next, Inter, ui-sans-serif, system-ui, sans-serif"
- font-weight="700"
- letter-spacing=".08em"
+ fontSize="13"
+ fontFamily="Avenir Next, Inter, ui-sans-serif, system-ui, sans-serif"
+ fontWeight="700"
+ letterSpacing=".08em"
>
TRENDING ON
</text>
@@ -145,10 +145,10 @@ export function FooterLaunchBadges() {
x="64"
y="43"
fill="#053F43"
- font-size="22"
- font-family="Avenir Next, Inter, ui-sans-serif, system-ui, sans-serif"
- font-weight="800"
- letter-spacing=".06em"
+ fontSize="22"
+ fontFamily="Avenir Next, Inter, ui-sans-serif, system-ui, sans-serif"
+ fontWeight="800"
+ letterSpacing=".06em"
>
BuildHop
</text>
diff --git a/src/app/(components)/footer.tsx b/src/app/(components)/footer.tsx
index a3bdf38..45ea354 100644
--- a/src/app/(components)/footer.tsx
+++ b/src/app/(components)/footer.tsx
@@ -259,11 +259,6 @@ function DefaultFooterLinks() {
<FooterLinkGroup
heading="Community"
links={[
- {
- href: DISCORD_COMMUNITY_URL,
- label: "Share feedback",
- external: true,
- },
{ href: DISCORD_COMMUNITY_URL, label: "Discord", external: true },
{ href: REDDIT_COMMUNITY_URL, label: "Reddit", external: true },
{ href: PRODUCT_TWITTER_URL, label: "X (Twitter)", external: true },
diff --git a/src/app/[locale]/about/__tests__/about-json-ld-graph.test.ts b/src/app/[locale]/about/__tests__/about-json-ld-graph.test.ts
index 8d7ffcd..0464705 100644
--- a/src/app/[locale]/about/__tests__/about-json-ld-graph.test.ts
+++ b/src/app/[locale]/about/__tests__/about-json-ld-graph.test.ts
@@ -55,7 +55,7 @@ describe("buildAboutJsonLdGraph", () => {
const mainEntity = faqPage.mainEntity as { name: string }[];
expect(Array.isArray(mainEntity)).toBe(true);
- expect(mainEntity.length).toBe(6);
+ expect(mainEntity.length).toBe(9);
expect(mainEntity[0].name).toBe(plMessages.FAQ.items.whatIs.question);
});
@@ -89,6 +89,6 @@ describe("buildAboutJsonLdGraph", () => {
const mainEntity = faqPage.mainEntity as { name: string }[];
expect(Array.isArray(mainEntity)).toBe(true);
- expect(mainEntity.length).toBe(6);
+ expect(mainEntity.length).toBe(9);
});
});
diff --git a/src/app/[locale]/about/about-faq-item-keys.ts b/src/app/[locale]/about/about-faq-item-keys.ts
index f14fc23..e8c62a7 100644
--- a/src/app/[locale]/about/about-faq-item-keys.ts
+++ b/src/app/[locale]/about/about-faq-item-keys.ts
@@ -9,4 +9,7 @@ export const ABOUT_FAQ_ITEM_KEYS = [
"customization",
"dataSecurity",
"sharing",
+ "howItWorks",
+ "whoItIsFor",
+ "whyEasyInvoicePdf",
] as const;
diff --git a/src/app/schema/i18n-schema.ts b/src/app/schema/i18n-schema.ts
index 8e448ea..0a202b0 100644
--- a/src/app/schema/i18n-schema.ts
+++ b/src/app/schema/i18n-schema.ts
@@ -129,6 +129,18 @@ const faqSchema = z
question: z.string(),
answer: z.string(),
}),
+ howItWorks: z.object({
+ question: z.string(),
+ answer: z.string(),
+ }),
+ whoItIsFor: z.object({
+ question: z.string(),
+ answer: z.string(),
+ }),
+ whyEasyInvoicePdf: z.object({
+ question: z.string(),
+ answer: z.string(),
+ }),
})
.strict(),
})
diff --git a/src/app/schema/index.ts b/src/app/schema/index.ts
index 906faf2..cb214c3 100644
--- a/src/app/schema/index.ts
+++ b/src/app/schema/index.ts
@@ -705,13 +705,19 @@ export const LANGUAGE_TO_NATIVE_LABEL = {
export const SUPPORTED_DATE_FORMATS = [
"YYYY-MM-DD", // 2024-03-20 (default template date format)
- "DD/MM/YYYY", // 20/03/2024
+ "YYYY/MM/DD", // 2024/03/20
+ "YYYY.MM.DD", // 2024.03.20
"MM/DD/YYYY", // 03/20/2024
+ "MM-DD-YYYY", // 03-20-2024
+ "M/D/YYYY", // 3/20/2024
"D MMMM YYYY", // 20 March 2024
+ "D MMM YYYY", // 20 Mar 2024
"MMMM D, YYYY", // March 20, 2024 (Stripe template default date format)
- "DD.MM.YYYY", // 20.03.2024
+ "MMM D, YYYY", // Mar 20, 2024
"DD-MM-YYYY", // 20-03-2024
- "YYYY.MM.DD", // 2024.03.20
+ "DD/MM/YYYY", // 20/03/2024
+ "DD.MM.YYYY", // 20.03.2024
+ "D/M/YYYY", // 20/3/2024
] as const;
export const DEFAULT_DATE_FORMAT = "YYYY-MM-DD";
diff --git a/src/components/ui/accordion.tsx b/src/components/ui/accordion.tsx
index 44935d9..7ab31d5 100644
--- a/src/components/ui/accordion.tsx
+++ b/src/components/ui/accordion.tsx
@@ -29,7 +29,7 @@ const AccordionTrigger = React.forwardRef<
<AccordionPrimitive.Trigger
ref={ref}
className={cn(
- "flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180",
+ "group flex flex-1 items-center justify-between py-4 font-medium transition-all",
className,
)}
{...props}
@@ -37,7 +37,7 @@ const AccordionTrigger = React.forwardRef<
{children}
<CustomTooltip
trigger={
- <ChevronDown className="h-6 w-6 shrink-0 rounded-full p-1 transition-all duration-200 hover:bg-gray-200" />
+ <ChevronDown className="size-6 shrink-0 rounded-full bg-gray-200/70 p-1 transition-all duration-200 group-hover:bg-gray-200 group-data-[state=open]:rotate-180" />
}
content="Expand/Collapse Section"
/>
diff --git a/src/components/ui/faq-accordion.tsx b/src/components/ui/faq-accordion.tsx
index 5616038..335ded3 100644
--- a/src/components/ui/faq-accordion.tsx
+++ b/src/components/ui/faq-accordion.tsx
@@ -31,7 +31,7 @@ function FaqAccordionItem({
)}
>
<summary className="flex cursor-pointer select-none list-none appearance-none items-center justify-between gap-2 py-3 text-left [&::-webkit-details-marker]:hidden">
- <h3 className="text-base font-medium text-stone-900">{question}</h3>
+ <h3 className="text-base font-medium text-stone-950">{question}</h3>
<PlusIcon
className="size-5 shrink-0 text-stone-400 transition-all duration-200 will-change-transform group-open:rotate-45 group-hover:text-stone-900"
aria-hidden="true"
@@ -39,7 +39,7 @@ function FaqAccordionItem({
</summary>
<div className="overflow-hidden">
<div className="pb-4 pr-4">
- <p className="cursor-default text-pretty text-sm leading-relaxed text-stone-600">
+ <p className="cursor-default text-pretty text-sm leading-relaxed text-stone-700">
{children}
</p>
</div>