2
0
Commit Graph

1314 Commits

Author SHA1 Message Date
Baptiste Arnaud
cb87a72cca 🐛 (editor) Fix old typebot flash when changing the typebot 2023-12-05 08:15:34 +01:00
Baptiste Arnaud
eeac493387 (wordpress) Add lib_version prop in shortcode
Closes #1035
2023-11-30 17:25:37 +01:00
Baptiste Arnaud
8ce4e4808d 🐛 (share) Fix duplicate folderId issue 2023-11-28 16:32:56 +01:00
Baptiste Arnaud
cf8df68186 🛂 Allow app admin to read a typebot 2023-11-27 15:09:31 +01:00
Baptiste Arnaud
4666fd8fa0 🔧 Increase builder request max size to 4MB 2023-11-26 11:12:13 +01:00
Baptiste Arnaud
993bc7900e 📝 Add new start and continue endpoints in the API runtime instructions 2023-11-24 08:00:34 +01:00
Baptiste Arnaud
0856c59b50 (billing) Improve past_due workspace checking webhook 2023-11-23 15:53:12 +01:00
Baptiste Arnaud
30b09e56a4 🐛 Fix processTelemetry endpoint not reachable 2023-11-23 15:48:39 +01:00
Baptiste Arnaud
5b0073bb61 🚑 (billing) Fix stripe webhook "invoice.paid" typo 2023-11-23 15:43:02 +01:00
Baptiste Arnaud
73d2e165bf 🔥 Remove VIEWER_URL_INTERNAL variable
BREAKING CHANGE: NEXT_PUBLIC_VIEWER_INTERNAL does not exist anymore as typebot.io now directly points to the viewer project
2023-11-23 15:34:19 +01:00
Baptiste Arnaud
bb41226a04 Allow user to share a flow publicly and make it duplicatable
Closes #360
2023-11-23 12:05:31 +01:00
Baptiste Arnaud
8a07392821 🚑 (editor) Fix typebot update permission 2023-11-23 08:28:18 +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
1a44bf4935 (openai) Add create speech OpenAI action
Closes #1025
2023-11-20 14:01:50 +01:00
Baptiste Arnaud
f6ac3891f8 🌐 Add es and ro support 2023-11-19 08:53:50 +01:00
Baptiste Arnaud
3a47a0fcbd 🐛 (editor) Fix AB test items not connectable 2023-11-16 16:41:02 +01:00
Baptiste Arnaud
00265af0cc ⬆️ (date) Upgrade date parser package 2023-11-14 17:27:02 +01:00
Baptiste Arnaud
bd198a4e0f 🐛 (fileUpload) Fix results file display if name contains comma
Closes #955
2023-11-14 17:15:21 +01:00
Baptiste Arnaud
a1d7415227 🐛 (billing) Set invoicing behavior to "always invoice" to fix double payment issue 2023-11-14 16:00:10 +01:00
Baptiste Arnaud
23625ad214 🐛 (textBubble) Fix variable parsing when starting or finishing by spaces 2023-11-14 15:14:36 +01:00
Baptiste Arnaud
084588a086 🧑‍💻 (chat) Introduce startChat and continueChat endpoints
Closes #1030
2023-11-13 15:27:36 +01:00
Baptiste Arnaud
dd4de582a9 Add more video supports (#1023)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
	- Introduced a new layout option for the TextInput component.
- Added support for GUMLET and TIKTOK video content types in
VideoBubbleContent.
- Enhanced VideoUploadContent to handle new properties like aspectRatio
and maxWidth.
- Updated VideoBubble to include aspect-ratio and max-width styles based
on content properties.
- **Refactor**
- Changed the extension used for internationalization (i18n) in the VS
Code environment.
	- Modified how environment variables are accessed in tolgee.tsx.
- Updated parseVideoUrl function to include a new property
videoSizeSuggestion.
- **Chores**
- Updated the tolgeeEnv object in env.ts and added a new optional
parameter to the getRuntimeVariable function.
- Expanded video handling capabilities by introducing new video content
types and associated regular expressions.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Closes #978 #936 #926
2023-11-10 11:17:14 +01:00
Baptiste Arnaud
df578417aa 📝 Add breaking changes and OpenAI block improvements docs 2023-11-09 16:04:40 +01:00
Baptiste Arnaud
e9a10c078f 🐛 Fix theme background and font default selection 2023-11-09 15:12:48 +01:00
Baptiste Arnaud
647afdb8fa 🐛 (editor) Fix edge delete with undefined groupIndex 2023-11-09 09:22:33 +01:00
Baptiste Arnaud
58b9e0b306 🚑 (editor) Fix move block with outgoing edge 2023-11-08 18:31:32 +01:00
Baptiste Arnaud
b73ca7a98a 🐛 Fix default initial items in TableList 2023-11-08 17:38:32 +01:00
Baptiste Arnaud
4b67f9e2e2 🐛 Fix typebot publishing endpoint events parsing 2023-11-08 17:12:58 +01:00
Baptiste Arnaud
64418df3a1 🚸 (typebotLink) Make "current" option work like typebot links instead of jump 2023-11-08 17:05:02 +01:00
Baptiste Arnaud
aceba0abd0 🐛 (import) Fix import typebot files that does not have name field 2023-11-08 16:42:59 +01:00
Baptiste Arnaud
35300eaf34 ♻️ Introduce typebot v6 with events (#1013)
Closes #885
2023-11-08 15:34:16 +01:00
Baptiste Arnaud
b2b82c48e1 ⬆️ Upgrade Sentry to mitigate security issue
https://github.com/getsentry/sentry-javascript/security?mkt_tok=Nzc2LU1KTi01MDEAAAGPNi0ooiOxT0sphdzXd6xHU63d5z5Sc75FNR8cH-6EK-zlvUsUuUqP1YsmnxivxEyXnGZS2cN8XkpuNNGi3NIfoDnwoHci-31tbyJQB8y0Cg
2023-11-06 16:24:26 +01:00
Baptiste Arnaud
0c22d858b7 📦 Add strict package versioning to avoid incompatibility in workspace 2023-11-06 16:22:25 +01:00
Baptiste Arnaud
a855d85d04 🚑 Move cache control header into the post policy 2023-11-02 15:09:08 +01:00
Baptiste Arnaud
bdf9faea78 ✏️ (billing) Fix plan name typo 2023-11-02 14:30:04 +01:00
Baptiste Arnaud
d1502f8300 Add cache-control header on newly uploaded files 2023-11-01 15:42:53 +01:00
Baptiste Arnaud
2d1ce73931 🐛 Fix group duplicate new title bug 2023-10-28 21:32:57 +02:00
Baptiste Arnaud
bed8b42a2e 🧑‍💻 Migrate to Tolgee (#976)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

### Summary by CodeRabbit

- Refactor: Transitioned to a new translation library (`@tolgee/react`)
across the application, enhancing the localization capabilities and
consistency.
- New Feature: Introduced a JSON configuration file for application
settings, improving customization and flexibility.
- Refactor: Updated SVG attribute naming convention in the
`WhatsAppLogo` component to align with React standards.
- Chore: Adjusted the `.gitignore` file and added a new line at the end.
- Documentation: Added instructions for setting up environment variables
for the Tolgee i18n contribution dev tool, improving the self-hosting
configuration guide.
- Style: Updated the `CollaborationMenuButton` to hide the
`PopoverContent` component by scaling it down to zero.
- Refactor: Simplified error handling logic for fetching and updating
typebots in `TypebotProvider.tsx`, improving code readability and
maintenance.
- Refactor: Removed the dependency on the `parseGroupTitle` function,
simplifying the code in several components.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-10-27 09:23:50 +02:00
neo773
f1e3836184 🐛 Fix graph flickering on high res displays (#959)
This PR fixes the flickering and improves the performance so panning
around the graph is much smoother than before.



https://github.com/baptisteArno/typebot.io/assets/62795688/56b91e20-1eb0-44b5-9a4a-c07525c2ba48


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

### Summary by CodeRabbit

- Refactor: Improved the Graph component's scaling calculation for
enhanced readability and maintenance.
- Style: Updated the Graph component's style properties to ensure better
compatibility and visual performance on webkit browsers.

These changes aim to enhance the user experience by ensuring the Graph
component displays consistently across different web browsers. The
refactoring of the scaling calculation also makes the code easier to
understand and maintain, potentially leading to quicker updates and bug
fixes in the future.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Baptiste Arnaud <contact@baptiste-arnaud.fr>
2023-10-26 14:37:28 +02:00
Baptiste Arnaud
53558dc303 🚑 Fix can invite new members in workspace bool
Closes #964
2023-10-25 17:57:13 +02:00
Prateek Kalra
eba52a5397 Fix audio content overflow in windows. (#944)
/claim #667

The volume slider in audio element in windows chrome overflows.
Possible fixes:
1. Change the width of audio blocks. (Not suggested, as the width of all
blocks should be consistent)
2. Adjust the audio sub elements, so it doesn't overflow.(IMPLEMENTED)

It's not so straightforward to apply customization to audio tag element.
The best possible way I could find, to make the app look good, is by
hiding the timeline track in the audio. It was showing up very small
anyway(due to block width), so there shouldn't be an issue.
Please look at the before & after videos below.


https://github.com/baptisteArno/typebot.io/assets/29385192/f61c5b58-834d-470f-b684-bd82181e07f4



https://github.com/baptisteArno/typebot.io/assets/29385192/88f932eb-dc7e-4346-bf64-6405a015013e


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

- Style: Improved the visual layout of the audio player on Windows. The
update includes a cleaner interface by hiding the track timeline and
adjusting the media controls panel. This change enhances the user
experience by providing a more streamlined and intuitive audio player
design.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-10-19 14:39:38 +02:00
Prateek Kalra
2c15662ef2 🐛 Fixed pinch zooming mouse issue (with ctrl key) (#940)
**Fixed the drastic zoom increase decrease on ctrl + mouse scroll.**

The issue was occuring due to the "scale" property in the pinch gesture.
The scale was getting bigger values, leading to more zooming.
What I did was, made sure that maximum scale difference between current
and last value cannot be more than the scaling factor used in
zoomin/zoomout buttons. That is. 0.2
Also, the pinch zoom would work as expected.

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

- Improvement: Enhanced zoom precision in the Graph component. This
update allows for more accurate scaling when adjusting the view in the
graph builder. The change ensures that the zoom level adjusts more
precisely, providing a smoother and more controlled user experience when
interacting with graphs.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-10-18 15:07:27 +02:00
Baptiste Arnaud
885dcecd8d 🐛 (results) Lower the max limit in getResults endpoint to avoid payload size error
Closes #908
2023-10-17 14:19:09 +02:00
Baptiste Arnaud
6b0c263f88 🚑 (billing) Fix chats pricing tiers incremental flat amou… 2023-10-17 08:32:41 +02: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
1d0aab71f9 🐛 (webhook) Fix webhook response data key number parsing 2023-10-16 14:33:13 +02:00
Baptiste Arnaud
ee685f14f3 (video) Allow changing video height when resolved to an iframe 2023-10-12 14:48:52 +02:00
Baptiste Arnaud
54788a828e 💚 Fix docker build when Sentry not enabled 2023-10-10 15:04:17 +02:00
Baptiste Arnaud
258de60bd2 🐛 (editor) Fix default branding settings on cre… 2023-10-09 08:24:11 +02:00
Baptiste Arnaud
3e7b9b3afd ⬆️ Upgrade sentry and improve its reliability 2023-10-07 12:40:43 +02:00