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 README and clean up demo assets (#205)

Vlad Sazonau7dae0e5c2889
diff --git a/.cursor/rules/agent-rules.mdc b/.cursor/rules/agent-rules.mdc
new file mode 100644
index 0000000..0895b0f
--- /dev/null
+++ b/.cursor/rules/agent-rules.mdc
@@ -0,0 +1,31 @@
+---
+description: Agent rules to cut token usage.
+alwaysApply: true
+---
+
+## Before Writing Code
+
+- Read all relevant files first. Never edit blind.
+- Understand the full requirement before writing anything.
+
+## While Writing Code
+
+- Test after writing. Never leave code untested.
+- Fix errors before moving on. Never skip failures.
+- Prefer editing over rewriting whole files.
+- Simplest working solution. No over-engineering.
+
+## Before Declaring Done
+
+- Run the code one final time to confirm it works.
+- Never declare done without a passing test.
+
+## Output
+
+- No sycophantic openers or closing fluff.
+- No em dashes, smart quotes, or Unicode. ASCII only.
+- Be concise. If unsure, say so. Never guess.
+
+## Override Rule
+
+User instructions always override this file.
diff --git a/.github/demos/instant-download.gif b/.github/demos/instant-download.gif
index 0d29959..119e04c 100644
Binary files a/.github/demos/instant-download.gif and b/.github/demos/instant-download.gif differ
diff --git a/.github/demos/invoice-template.gif b/.github/demos/invoice-template.gif
deleted file mode 100644
index 7ab8e4c..0000000
Binary files a/.github/demos/invoice-template.gif and /dev/null differ
diff --git a/.github/demos/lang-currency.gif b/.github/demos/lang-currency.gif
index 157c54a..04c6ccc 100644
Binary files a/.github/demos/lang-currency.gif and b/.github/demos/lang-currency.gif differ
diff --git a/.github/demos/qr-code.gif b/.github/demos/qr-code.gif
deleted file mode 100644
index cb9f219..0000000
Binary files a/.github/demos/qr-code.gif and /dev/null differ
diff --git a/.github/demos/share-link.gif b/.github/demos/share-link.gif
deleted file mode 100644
index 3ac7e8f..0000000
Binary files a/.github/demos/share-link.gif and /dev/null differ
diff --git a/.github/demos/shared-links.gif b/.github/demos/shared-links.gif
new file mode 100644
index 0000000..0af7e8a
Binary files /dev/null and b/.github/demos/shared-links.gif differ
diff --git a/.github/demos/tax-custom.gif b/.github/demos/tax-custom.gif
deleted file mode 100644
index a3686ae..0000000
Binary files a/.github/demos/tax-custom.gif and /dev/null differ
diff --git a/README.md b/README.md
index a432b68..65f9711 100644
--- a/README.md
+++ b/README.md
@@ -50,30 +50,6 @@ _**One-click PDF download** ready for printing or sending_
---
-### πŸ”— Shareable Links
-
-<img src=".github/demos/share-link.gif" width="800" alt="Shareable Links Demo">
-
-_**Send invoices directly to clients** without attachments_
-
----
-
-### πŸ“² QR Codes & Advanced Multi-Page PDF Support
-
-<img src=".github/demos/qr-code.gif" width="800" alt="QR Code Support Demo">
-
-_**Add payment QR codes** with any invoice-related information (payment links, UPI, contact details, custom data) and **seamless multi-page support** with automatic pagination and page breaks for large invoices_
-
----
-
-### 🏷️ Customizable Tax Settings
-
-<img src=".github/demos/tax-custom.gif" width="800" alt="Customizable Tax Settings Demo">
-
-_**Customize tax labels** (VAT, Sales Tax, IVA, etc.)_
-
----
-
### 🌍 Language & Currency
<img src=".github/demos/lang-currency.gif" width="800" alt="Language & Currency Demo">
@@ -82,11 +58,13 @@ _**Switch between 10 languages and 120+ currencies instantly** with live PDF pre
---
-### 🎨 Professional Invoice Templates
+### πŸ”— Shareable Links
-<img src=".github/demos/invoice-template.gif" width="800" alt="Invoice Templates Demo">
+<img src=".github/demos/shared-links.gif" width="800" alt="Shareable Links Demo">
-_**Choose between multiple professional templates** (Default and Stripe) to match your brand and style_
+_**Send invoices directly to clients** without attachments_
+
+---
| Default Invoice Template | Stripe Invoice Template |
| :-----------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------: |
diff --git a/src/app/(app)/components/invoice-form/sections/general-information.tsx b/src/app/(app)/components/invoice-form/sections/general-information.tsx
index bac71d5..c75ce73 100644
--- a/src/app/(app)/components/invoice-form/sections/general-information.tsx
+++ b/src/app/(app)/components/invoice-form/sections/general-information.tsx
@@ -723,7 +723,23 @@ function OutOfDateDatesHelper({
.format(selectedDateFormat);
const targetInvoiceNumber = `1/${CURRENT_MONTH_AND_YEAR}`;
- const staleItems = [
+ /**
+ * Array of items to check for staleness.
+ * Each item is either false (not stale) or an object containing:
+ * - label: Display name of the field
+ * - oldValue: Current/outdated value
+ * - newValue: Suggested updated value
+ * - hint: Description of what the new value represents
+ */
+ const ITEMS: (
+ | boolean
+ | {
+ label: string;
+ oldValue: string;
+ newValue: string;
+ hint: string;
+ }
+ )[] = [
isDateOfIssueStale && {
label: "Date of issue",
oldValue: formatDate(dateOfIssue),
@@ -740,7 +756,7 @@ function OutOfDateDatesHelper({
label: "Invoice number",
oldValue: invoiceNumberValue || "β€”",
newValue: targetInvoiceNumber,
- hint: undefined,
+ hint: "current month",
},
isPaymentDueStale && {
label: "Payment due",
@@ -748,11 +764,13 @@ function OutOfDateDatesHelper({
newValue: targetPaymentDue,
hint: "date of issue + 14 days",
},
- ].filter(Boolean) as {
+ ];
+
+ const staleItems = ITEMS.filter(Boolean) as {
label: string;
oldValue: string;
newValue: string;
- hint?: string;
+ hint: string;
}[];
return (
diff --git a/src/app/changelog/components/date-time.tsx b/src/app/changelog/components/date-time.tsx
index cc13e8f..fcff802 100644
--- a/src/app/changelog/components/date-time.tsx
+++ b/src/app/changelog/components/date-time.tsx
@@ -7,7 +7,7 @@ export function DateTime({
}) {
return (
<time
- className="inline-flex items-center rounded-md border border-gray-200 bg-white px-3 py-1.5 text-sm font-medium text-gray-800 shadow-sm transition-colors hover:bg-gray-50 hover:text-gray-950 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-200 dark:hover:bg-gray-700 dark:hover:text-gray-50"
+ className="inline-flex items-center rounded-md bg-blue-50/50 px-3 py-1.5 text-sm font-medium text-blue-800 shadow-sm ring-1 ring-blue-200 transition-colors hover:bg-blue-50 hover:text-blue-800/90 dark:bg-blue-950 dark:text-blue-100 dark:ring-blue-800 dark:hover:bg-blue-900 dark:hover:text-blue-50"
dateTime={dateTime}
>
{children}