easy-invoice-pdf/TODO.md
Vlad Sazonau cb1045c75b
feat: expand TODO list with discounts feature and improve e2e workflow (#186)
* Added detailed requirements for implementing a per-item discount feature in the TODO list, including design considerations and examples.
* Updated e2e workflow to ensure concurrency management, allowing only one Playwright test workflow to run per branch or pull request at a time.
* Simplified Playwright test execution steps by removing unnecessary duration calculations, enhancing clarity and efficiency.
* Improved test reliability by adjusting URL handling in e2e tests.
2026-03-09 00:05:50 +01:00

2.2 KiB

TODO list

DISCOUNTS FEATURE:

  • should be per item based discount, not total based discount
  • display discount below each item, if applied (check stripe example image below)
  • when discount is applied, in tax column + tax summary table we should show (total amount - discount amount), check stripe example image below
  • think about design for default template (check default template example image below)

example: Per-item default template discount example

example: Per-item stripe template discount example


  • when adding invoice item, generate unique id for the item and store in local storage (should be backward compatible with existing invoice items)

  • [] on mobile, when switching between tabs, scroll to the last position of the invoice form section for better UX

  • add unit test for next js api routes (for generate-invoice route)

  • run playwright tests in docker, add local docker UBUNTU setup and re-use docker setup on ci

IMPORTANT:

  • double check all invoice translations and fix them (if needed)
  • we can now try to update to latest Next.js version + react, react-dom, because fix for @react-pdf/renderer which was causing issues during PDF regeneration and toggling on/off of some invoice fields is now available (https://github.com/diegomura/react-pdf/pull/3261)

etc:

  • Double check if we need to save to local storage in the page.client.tsx (line: 235)

useful stuff:

react-pdf/renderer quirks:

react-pdf quirks (non-desktop pdf viewer):

issues to follow:


To create GIFs for README.md, you can use: