add trial period ending banner + server logic (#11389)

Solution : 
- if user reaches his workflow usage cap + in trial period > display
banner
- end trial period if user has payment method (if not, not possible)

<img width="941" alt="Screenshot 2025-04-04 at 10 27 32"
src="https://github.com/user-attachments/assets/d7a1d5f7-9b12-4a92-a7c7-15ef8847c790"
/>
This commit is contained in:
Etienne
2025-04-07 15:28:02 +02:00
committed by GitHub
parent a627eff5c2
commit 361b7682dd
26 changed files with 414 additions and 64 deletions

View File

@ -53,6 +53,19 @@ export const USER_QUERY_FRAGMENT = gql`
id
status
interval
billingSubscriptionItems {
id
hasReachedCurrentPeriodCap
billingProduct {
name
description
metadata {
planKey
priceUsageBased
productKey
}
}
}
}
billingSubscriptions {
id