Skip to content

Easy Invoice - Backport bug fixes from Request Commerce #203

@MantisClone

Description

@MantisClone

Problem

Request Commerce is being sunset. Some bug fixes were implemented in Request Commerce that were never backported to Easy Invoice.

Proposed Solution

  1. Identify all bug fixes in Request Commerce that don't exist in Easy Invoice ✅
  2. Backport those fixes to Easy Invoice
  3. Archive the Request Commerce repository

Bug Fixes to Backport

File Fix PR Reference
next.config.mjs Add typedRoutes: true experimental feature for compile-time route checking Commerce #8
src/components/invoice/invoice-form/invoice-form.tsx Add crypto-to-fiat validation - show error if enabled but no payment method selected Commerce #9
src/components/invoice/invoice-form/invoice-form.tsx Layout fix: change flex items-start to flex items-end for invoice item row alignment Commerce #9
src/app/(dashboard)/home/page.tsx Route fix: change /payments to /payouts Commerce #8
src/app/(dashboard)/subscriptions/_components/subscription-plan-link.tsx Use typed route paths with as const for type safety Commerce #8
src/app/(dashboard)/invoices/me/_components/invoice-me-link.tsx Use typed route paths with as const for type safety Commerce #8
src/components/version-badge.tsx Use <a> tag with rel="noopener noreferrer" for external links instead of Next.js Link Commerce #8
src/components/header.tsx Use <a> tag with rel="noopener noreferrer" for external links Commerce #8

Considerations

  • The repos diverged in both directions - Easy Invoice also has improvements Commerce doesn't have (better schema validation with superRefine, due date validation, payout confirmation components)
  • After backporting, archive the Request Commerce repository
  • Marketing needs Easy Invoice working well before website launch (end of Feb/early March)
  • The typed routes changes require enabling typedRoutes: true in next.config first

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions