Commit Graph

32 Commits

Author SHA1 Message Date
Baptiste Arnaud
0856c59b50 (billing) Improve past_due workspace checking webhook 2023-11-23 15:53:12 +01:00
Baptiste Arnaud
5b0073bb61 🚑 (billing) Fix stripe webhook "invoice.paid" typo 2023-11-23 15:43:02 +01:00
Baptiste Arnaud
ca79934ef5 🛂 (billing) Add isPastDue field in workspace (#1046)
Closes #1039

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
  - Workspaces now include additional status indicator: `isPastDue`.
- New pages for handling workspaces that are past due. Meaning, an
invoice is unpaid.

- **Bug Fixes**
- Fixed issues with workspace status checks and redirections for
suspended workspaces.

- **Refactor**
- Refactored workspace-related API functions to accommodate new status
fields.
- Improved permission checks for reading and writing typebots based on
workspace status.

- **Chores**
  - Database schema updated to include `isPastDue` field for workspaces.
- Implemented new webhook event handling for subscription and invoice
updates.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-11-23 08:16:23 +01:00
Baptiste Arnaud
35300eaf34 ♻️ Introduce typebot v6 with events (#1013)
Closes #885
2023-11-08 15:34:16 +01:00
Baptiste Arnaud
797751b418 (billing) Automatic usage-based billing (#924)
BREAKING CHANGE: Stripe environment variables simplified. Check out the
new configs to adapt your existing system.

Closes #906





<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

**New Features:**
- Introduced a usage-based billing system, providing more flexibility
and options for users.
- Integrated with Stripe for a smoother and more secure payment process.
- Enhanced the user interface with improvements to the billing,
workspace, and pricing pages for a more intuitive experience.

**Improvements:**
- Simplified the billing logic, removing additional chats and yearly
billing for a more streamlined user experience.
- Updated email notifications to keep users informed about their usage
and limits.
- Improved pricing and currency formatting for better clarity and
understanding.

**Testing:**
- Updated tests and specifications to ensure the reliability of new
features and improvements.

**Note:** These changes aim to provide a more flexible and user-friendly
billing system, with clearer pricing and improved notifications. Users
should find the new system more intuitive and easier to navigate.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-10-17 08:03:30 +02:00
Baptiste Arnaud
ccc34b3028 🚸 (whatsapp) Improve upgrade plan for whatsapp notice 2023-09-27 14:22:51 +02:00
Baptiste Arnaud
b81fcf0167 Auto continue bot on whatsApp if starting block is input (#849)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

**New Features:**
- Added WhatsApp integration feature to the Pro plan.

**Refactor:**
- Introduced the ability to exclude specific plans from being displayed
in the Change Plan Modal.
- Renamed the function `isProPlan` to `hasProPerks`, enhancing code
readability and maintainability.
- Updated the `EmbedButton` component to handle a new `lockTagPlan`
property and use the `modal` function instead of the `Modal` component.

**Chore:**
- Removed the `whatsAppPhoneNumberId` field from the `Typebot` model
across various files, simplifying the data structure of the model.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-25 17:20:42 +02:00
Baptiste Arnaud
d7dc5fb5fb ♻️ Remove storage limit related code 2023-09-20 16:06:53 +02:00
Baptiste Arnaud
7d57e8dd06 ♻️ Export bot-engine code into its own package 2023-09-20 15:42:34 +02:00
Baptiste Arnaud
786e5cb582 🧑‍💻 Improve env variables type safety and management (#718)
Closes #679
2023-08-28 09:13:53 +02:00
Baptiste Arnaud
6240fd982b 🐛 (billing) Fix cancel webhook when publishedTypebot does not exist 2023-08-22 10:55:32 +02:00
Baptiste Arnaud
53dd7ba499 🚸 (billing) Make sure customer is not created before launching checkout page 2023-08-22 10:40:34 +02:00
Baptiste Arnaud
3426d6689d Replace updates with updateManys when possible
Easy performance win to avoid triggering SELECT query after an UPDATE
2023-07-16 18:52:30 +02:00
Baptiste Arnaud
6f7ef820e2 📈 (billing) Track when workspace subscription is cancelled 2023-06-26 11:33:06 +02:00
Baptiste Arnaud
6864667297 🛂 (billing) Enable Published bot branding when plan cancelled 2023-06-24 10:26:07 +02:00
Baptiste Arnaud
de0b105276 🛂 (billing) Display branding when subscription… 2023-06-23 11:30:26 +02:00
Baptiste Arnaud
458d715648 🛂 (billing) Update claimable custom plan options 2023-04-28 10:55:15 +02:00
Baptiste Arnaud
c6983c952c 🛂 Reset isQuarantined when upgrading workspace 2023-04-23 21:03:14 +02:00
Baptiste Arnaud
49071b73b6 🚑 (auth) Fix bad requests with getSession on server side 2023-04-03 16:42:10 +02:00
Baptiste Arnaud
2dae4160bd 🩹 (billing) Also reset custom limits when plan is cancelled 2023-03-31 10:16:02 +02:00
Baptiste Arnaud
684e6338e2 🐛 (typebotLink) Fix linked typebot fetching error
Closes #429
2023-03-30 10:30:26 +02:00
Baptiste Arnaud
44d7a0bcb8 ♻️ (builder) Remove barrel export and flatten folder arch 2023-03-15 11:52:38 +01:00
Baptiste Arnaud
cbc8194f19 ♻️ Re-organize workspace folders 2023-03-15 08:35:16 +01:00
Baptiste Arnaud
9ca17e4e0b 📈 Add telemetry webhook
Closes #357
2023-03-14 14:20:21 +01:00
Baptiste Arnaud
b73282d810 ♻️ (billing) Refactor billing server code to trpc 2023-02-17 16:19:39 +01:00
Baptiste Arnaud
1a3869ae6d ⚗️ Implement bot v2 MVP (#194)
Closes #190
2022-12-22 17:02:34 +01:00
Baptiste Arnaud
68de7b720f 💚 Fix sentry not receiving events 2022-12-16 08:39:14 +01:00
Baptiste Arnaud
f9ffdbc4c5 🐛 (billing) Fix currency possible mismatch on sub update 2022-11-29 13:17:46 +01:00
Baptiste Arnaud
11695efb57 📝 Introduce auto generate API doc 2022-11-22 17:30:20 +01:00
Baptiste Arnaud
34cfd1db30 ⬆️ Upgrade dependencies 2022-11-21 19:08:14 +01:00
Baptiste Arnaud
451ffbcacf ♻️ Add shared eslint config 2022-11-21 11:18:58 +01:00
Baptiste Arnaud
643571fe7d ♻️ (builder) Change to features-centric folder structure 2022-11-15 15:14:38 +01:00