mirror of
https://github.com/VladSez/easy-invoice-pdf
synced 2026-04-21 21:47:52 +00:00
* feat: add customizable VAT label * Introduced a new feature allowing users to customize the VAT label text in the invoice form. * Updated the invoice form, PDF templates, and related components to utilize the customizable VAT label. * Enhanced validation for VAT input to accept both numeric values and specific strings. * Improved user interface messages for clarity regarding VAT input requirements. * chore: update README and .env.example for clarity and new features * Revised README.md to enhance project description, add links, and improve feature presentation. * Updated .env.example comments for better understanding of invoice generation functionality. * Added new screenshots for default and Stripe templates, while removing outdated images. * Enhanced localization files with HTML span tags for better styling in descriptions across multiple languages. * refactor: rename VAT label to Tax label and update related components * Changed all instances of VAT to Tax in the invoice form, PDF templates, and related components for consistency. * Updated validation and schema to reflect the new tax label terminology. * Removed the dynamic local storage view component as it was no longer needed. * Cleaned up unused imports and components to streamline the codebase. * chore: update .env.example and package.json for dotenv integration * Removed the local storage debug variable from .env.example for clarity. * Added dotenv package to package.json to manage environment variables more effectively. * Updated Playwright configuration to load environment variables from .env.local for improved testing setup. * Enhanced VSCode settings for better TypeScript development experience. * Cleaned up and organized various components and localization files for consistency. * feat: implement customizable Tax Number label in invoice forms * Added support for a customizable Tax Number label in the buyer and seller information sections. * Updated related components, forms, and validation schemas to accommodate the new label functionality. * Refactored existing tests to ensure proper handling of the Tax Number label in various scenarios. * Enhanced user interface to allow users to set and display custom labels for Tax Number in the invoice PDF templates. * feat: enhance Playwright testing and update project metadata * Added a new e2e test for the About page to ensure content visibility and proper screenshot generation. * Introduced a new command in package.json for non-flaky end-to-end tests. * Updated Playwright configuration to improve timeout settings and worker management. * Revised README to clarify key features and project details. * Added a TODO file for future enhancements and refinements. * Updated various localization files and metadata for consistency across languages. * Refactored components for better organization and improved user experience. * refactor: update Playwright tests and improve screenshot handling * Changed import of 'path' to 'node:path' in Playwright configuration for better compatibility. * Updated GitHub Actions workflow to run e2e tests on macOS for consistent snapshot generation. * Simplified screenshot assertions in various test files by removing unnecessary path joins. * Added new snapshot images for various invoice and template tests to ensure visual consistency. * Removed commented-out code related to tax field visibility in invoice items for cleaner codebase. * Introduced new type for mobile tab values in schema to enhance type safety. * minor fix * chore: update Playwright configuration and GitHub Actions workflow * Modified dotenv configuration to load environment variables quietly. * Updated GitHub Actions workflow to use macOS 14 for improved compatibility with Playwright snapshot generation. * chore: update e2e tests and GitHub Actions workflow * Changed the GitHub Actions workflow to use macOS-latest for improved compatibility with Playwright. * Updated screenshot assertions in various test files to include maxDiffPixelRatio for better visual comparison. * Enhanced screenshot handling in tests for the About page and Default Invoice Template to ensure consistency. * update gh runner to macos-14 * chore: update e2e tests and GitHub Actions workflow * Updated GitHub Actions workflow to specify macOS 14 for consistency with local environment. * Modified e2e tests to check total value after invoice generation and adjusted wait times for better stability. * Changed URL assertions in Not Found page tests to include template parameter for accurate routing. * Added comments to clarify updates in seller and buyer information sections in the Default Invoice Template tests. * chore: update e2e tests and Playwright configuration * Updated Playwright configuration to use iPhone 13 Pro for mobile testing. * Removed outdated About page snapshot tests and their associated images. * Enhanced PDF rendering in invoice tests by implementing a new utility function for canvas rendering. * Adjusted screenshot assertions to ensure consistency across different templates and locales. * Updated GitHub Actions workflow to run tests on Ubuntu for improved compatibility. * chore: update e2e workflow and PDF rendering imports * Changed GitHub Actions workflow to run on macOS-latest for consistency with local environment. * Updated PDF.js imports to use a specific version from CDN for improved stability and reliability in rendering. * chore: update Playwright configuration and enhance e2e tests * Renamed the Chromium project to Desktop Chrome for clarity in Playwright configuration. * Updated GitHub Actions workflow to use macOS 14 for consistency with local environment. * Adjusted retention days for Playwright reports from 3 to 1 day. * Enhanced PDF download tests by adding new scenarios for Stripe template and improved screenshot assertions for better visual consistency across different templates and languages. * chore: enhance Playwright configuration and update e2e tests * Added launch options to disable GPU rendering in headless mode for improved stability in Playwright tests. * Updated GitHub Actions workflow to use macOS-latest for consistency with local development. * Increased wait time in PDF tests to ensure proper rendering after data changes. * Downgraded PDF.js imports to a stable version for better compatibility and performance. * Adjusted canvas rendering settings to enhance PDF display quality. * chore: enhance PDF rendering utility with documentation and font face option * Added documentation link for PDF.js API to improve developer reference. * Updated PDF rendering function to disable font face for better compatibility during rendering. * chore: update PDF snapshots for invoice and template tests * chore: increase timeout for visibility checks in Stripe invoice sharing tests * Updated timeout for Unable to Share Invoice visibility checks from 3000ms to 6000ms in mobile and desktop scenarios to improve test reliability. * chore: increase timeout for PDF download visibility checks in invoice tests * Updated timeout for visibility checks of download buttons in various language templates from 600ms to 700ms to improve test reliability and ensure proper rendering after data changes. * chore: enhance PDF screenshot assertions in invoice tests * Added maxDiffPixels option to screenshot assertions in both Default and Stripe invoice template tests to improve visual comparison accuracy and reduce false positives in test results. * chore: update PDF snapshots for invoice and template tests * Updated various PDF snapshots for both Default and Stripe invoice templates to reflect recent changes in rendering and layout across different browsers and devices. * chore: configure tests to run in serial mode for invoice templates * Updated both Default and Stripe invoice template tests to run in serial mode, preventing race conditions and ensuring consistent test execution. Removed maxDiffPixels option from screenshot assertions to streamline the comparison process. * chore: adjust Playwright configuration and refine invoice template tests * Changed the number of workers in Playwright configuration for CI from 2 to 1 to enhance stability during test execution. * Removed serial mode configuration from Default and Stripe invoice template tests to allow parallel execution, improving test efficiency. * Updated assertions in the Default invoice template tests to ensure proper visibility and value persistence after page reloads. * fix tests * refactor: streamline Stripe invoice sharing tests * Removed unnecessary localStorage clearing after each test to improve test performance. * Simplified share button click actions by removing force option. * Consolidated logo upload logic for clarity and consistency across tests. * Increased debounce timeout for localStorage updates to enhance reliability of test assertions. * test: enhance logo upload assertions in Stripe invoice template tests * Added visibility checks for logo upload success messages and previews to ensure proper feedback during testing. * Increased debounce timeout for localStorage updates to improve reliability of test assertions. * chore: update timeout and enhance tax label handling in invoice templates * Increased timeout for local testing from 35 seconds to 40 seconds to improve reliability. * Added functionality to dynamically update tax label text based on selected language in invoice templates. * Updated various invoice item and VAT summary table labels to support custom tax labels for better localization. * chore: update PDF font handling and app redirects * Added new PDF font files for Inter and Open Sans to improve document rendering. * Updated font source paths in invoice templates to reference the new PDF fonts. * Configured caching headers for PDF fonts to enhance loading performance. * Adjusted app redirects to accommodate the new structure of the application. * style: enhance FeaturesSection layout and styling * Updated the FeaturesSection component to include a subtle border and shadow for improved visual separation. * Adjusted padding and margin for better alignment and spacing of content within the section. * chore: update PDF snapshots * chore: update package dependencies and CI configuration * Upgraded package manager from pnpm@10.26.2 to pnpm@10.27.0. * Updated @playwright/test dependency from version 1.56.1 to 1.57.0 in package.json and pnpm-lock.yaml. * Changed CI runner from macos-latest to macos-14 in e2e workflow for consistency with local environment. * chore: downgrade @playwright/test dependency to version 1.56.1 * Updated package.json and pnpm-lock.yaml to revert @playwright/test from version 1.57.0 to 1.56.1 for compatibility reasons. * Adjusted related dependencies in pnpm-lock.yaml to reflect the downgrade. * chore: restore dotenv dependency and update CI runner * Re-added dotenv dependency in package.json and pnpm-lock.yaml to ensure environment variable management. * Updated CI runner from macos-14 to macos-15 in e2e workflow for consistency with local development environment. * chore: update PDF test snapshots and remove obsolete images * Updated PDF test snapshots for various invoice templates to reflect recent changes. * Removed outdated snapshot images related to the Stripe template for mobile and desktop environments. * Ensured consistency in snapshot naming and organization for better maintainability. * chore: refactor PDF font handling and update asset URLs * Commented out the headers function in next.config.mjs for future reference. * Updated font source paths in invoice templates to use STATIC_ASSETS_URL for better asset management. * Added documentation comments in config.ts to clarify the purpose of STATIC_ASSETS_URL and IMAGEKIT_CDN_URL. * fix pdf screenshot tests and cleanup * feat: cleanup files and i18n translations * chore: update e2e tests and CI configuration * Changed CI runner from macos-15 to macos-latest for consistency with GitHub Actions. * Renamed e2e test files * style: update README header and logo size * chore: upgrade @playwright/test to version 1.57.0 and adjust CI worker settings * Updated @playwright/test dependency from version 1.56.1 to 1.57.0 in package.json and pnpm-lock.yaml. * Increased CI worker count from 1 to 2 for improved test execution. * Updated README header size and adjusted link text for clarity. * chore: adjust CI worker settings for improved test stability * Changed the number of CI workers from 2 to 1 to address flaky tests during execution. * chore: downgrade @playwright/test to version 1.56.1 for compatibility * style: enhance README layout and content for clarity and engagement * docs: update README to enhance user engagement and provide additional resources * refactor: update asset URLs and improve footer links for consistency * Changed the video demo URL to use IMAGEKIT_CDN_URL for better asset management. * Updated fallback image URL in the about page to reflect the new video demo structure. * Replaced hardcoded links to the author's website with a dynamic TWITTER_URL in multiple components for consistency. * remove commented out code * refactor: update video demo URLs and fallback image for consistency * Changed the video demo URL to a new format for better asset management. * Updated the fallback image used in the about page video component to align with the new demo structure. * Removed the static assets URL import as it is no longer needed. * fix: append version query to video demo URL for cache busting * chore: add test for static assets * refactor: reorganize static asset tests and update asset URLs * Moved static asset tests from the about page to a dedicated static-assets.test.ts file for better organization. * Updated asset URLs in the config to use STATIC_ASSETS_URL for consistency. * Registered fonts in invoice templates using the new INVOICE_PDF_FONTS structure for improved maintainability. * refactor: update video source and fallback image URLs for consistency * Revised video source and fallback image URLs in the config to include versioning for better asset management. * Ensured all demo video links follow the new naming convention for improved organization. * refactor: enhance invoice item tax label helper text * fix: update error message for invoice link generation to include refresh suggestion
33 lines
939 B
JSON
33 lines
939 B
JSON
{
|
|
"compilerOptions": {
|
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "preserve",
|
|
"incremental": true,
|
|
"allowArbitraryExtensions": true,
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
// this breaks autoimports/intellisense in VS Code now https://github.com/lazarv/typescript-plugin-directives/issues/2
|
|
// TODO: reinstall this package when the issue is fixed `pnpm -D typescript-plugin-directives`
|
|
// {
|
|
// "name": "typescript-plugin-directives"
|
|
// },
|
|
],
|
|
"paths": {
|
|
"@/*": ["./src/*"]
|
|
},
|
|
"target": "es2022"
|
|
},
|
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
"exclude": ["node_modules"]
|
|
}
|