Skip to content

Conversation

ansmonjol
Copy link
Collaborator

Context

We're introducing Custom pricing in the app. So customers can define their pricing without relying directly on a Fiat currency but on a ratio between a Fiat currency and a Pricing Unit.

Later this will impact all objects from plan to invoice including current usage.

Description

This PR is the first step of introducing this Pricing Unit feature in the app.

We have a new section in invoice settings that allows to create a new Pricing Unit.
This section is hidden behind a FE feature flag for now, until next parts are developed and QA is approved.

I took the opportunity to add the fetchMore logic on the existing custom section present in the invoice settings page.

We should not expect that much object to be created in those 2 sections but we never know. Better be handled.
So they both now have infinite scroll refetch and pagination in Apollo cache.

Tried to split in 2 commits but the diff is not prefect.

Fixes LAGO-879

This section was there before. The change shows addition but it's due to the DOM refactor within the next commit
@ansmonjol ansmonjol requested a review from stephenlago99 June 19, 2025 08:28
@ansmonjol ansmonjol self-assigned this Jun 19, 2025
@ansmonjol ansmonjol added the 🛠 feature New feature or request label Jun 19, 2025
@ansmonjol ansmonjol changed the title Create pricing units feat: create pricing units Jun 19, 2025
@ansmonjol ansmonjol changed the title feat: create pricing units feat: allow to create custom pricing Jun 19, 2025
@ansmonjol ansmonjol enabled auto-merge (squash) June 19, 2025 08:33
@ansmonjol ansmonjol merged commit 622014a into main Jun 23, 2025
8 checks passed
@ansmonjol ansmonjol deleted the create-pricing-units branch June 23, 2025 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛠 feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants