Commit Graph

1547 Commits

Author SHA1 Message Date
Baptiste Arnaud
64fc59bd3a 🚑 Fix invalid timeout for long running integrations 2023-12-19 14:24:36 +01:00
Baptiste Arnaud
655b32ef75 🛂 (radar) Add isVerified field in workspace 2023-12-19 14:14:47 +01:00
Baptiste Arnaud
deab1a12e9 (sheets) Use Google Drive picker and remove sensitive OAuth scope
BREAKING CHANGE: The Google Picker API needs to be enabled in the Google Cloud console. You also need to enable it in
your NEXT_PUBLIC_GOOGLE_API_KEY. You also need to add the drive.file OAuth scope.
2023-12-18 15:44:57 +01:00
Baptiste Arnaud
2dec0b88c2 🐛 (results) Fix result modal answers order 2023-12-18 10:39:54 +01:00
Baptiste Arnaud
7e3edfc0f2 🔒 (radar) Improve scam detection by analyzing the entire typebot 2023-12-18 09:12:34 +01:00
Baptiste Arnaud
3bd07c60da (webhook) Add Orimon in long request whitelist 2023-12-13 10:55:51 +01:00
Baptiste Arnaud
5e019bbb22
Introducing The Forge (#1072)
The Forge allows anyone to easily create their own Typebot Block.

Closes #380
2023-12-13 10:22:02 +01:00
Baptiste Arnaud
c373108b55 🐛 Fix next/image not loading in self-hosting
Closes #1083
2023-12-12 14:15:23 +01:00
Baptiste Arnaud
fcfbd63443
🛂 Auto ban IP on suspected bot publishing (#1095)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced sign-in error handling with specific messages for different
error types.
- Implemented IP-based restrictions for authentication and publishing
actions.

- **Bug Fixes**
- Updated the retrieval of user session information to improve
reliability.

- **Documentation**
- Updated usage instructions for `getServerSession` to reflect the new
authentication options.

- **Refactor**
- Replaced direct usage of `authOptions` with a new function
`getAuthOptions` to dynamically generate authentication options.
- Improved IP address extraction logic to handle various header formats.

- **Chores**
- Added a new `BannedIp` model to the database schema for managing
IP-based restrictions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-12-11 13:40:07 +01:00
Baptiste Arnaud
eedb7145ac 📈 Only send suspicious bot alert if risk level is below 100 2023-12-11 10:56:56 +01:00
Victor Santos
619a548fba
📝 (docs): fix typo in Unsplash description (#1094)
Documentation

This PR updates the documentation to fix an incorrect description for
the Unsplash configuration.

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

## Summary by CodeRabbit

- **Documentation**
- Corrected a hyperlink and associated text in the self-hosting
configuration guide, changing "Giphy" to "Unsplash" for image search
references.

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

Signed-off-by: Victor Santos <vsantos.py@gmail.com>
2023-12-11 08:48:03 +01:00
Baptiste Arnaud
248cee8865
Update publishTypebot.ts 2023-12-08 18:32:15 +00:00
Baptiste Arnaud
4fdc1bfe5c Introducing Radar, fraud detection 2023-12-08 18:16:07 +00:00
Baptiste Arnaud
0b93c2b239 🐛 Fix change language not working in the editor 2023-12-08 15:48:05 +00:00
Baptiste Arnaud
7fcc4fb748 🐛 (sheets) Init OAuth client inside a function to avoid potential conflict 2023-12-08 15:43:56 +00:00
Baptiste Arnaud
957eaf33dd Add dynamic timeout to bot engine api 2023-12-08 13:43:58 +00:00
Baptiste Arnaud
8819e9e567 🔧 Update main viewer domain to typebot.co 2023-12-08 08:51:58 +00:00
Baptiste Arnaud
c339130e53 🛂 Hide workspace members list from guest 2023-12-07 15:41:58 +00:00
Baptiste Arnaud
e2abfc6bbc 🔧 Update vercel.json to reflect new api path 2023-12-06 17:59:21 +01:00
Baptiste Arnaud
c2fc2df735 ♻️ Remove references to old s3 URLs 2023-12-06 07:30:47 +01:00
Baptiste Arnaud
61f7f67bf3 🚸 (docs) Open community search docs results in same tab 2023-12-05 16:48:48 +01:00
Baptiste Arnaud
b0d7039577 🛂 (billing) Past due status only for unpaid invoices with additional usage 2023-12-05 16:24:44 +01:00
Baptiste Arnaud
d89a1eb323
🧑‍💻 Automatically guess env URLs for Vercel preview deploy… (#1076)
…ments

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

- **New Features**
- Introduced new URL processing logic to enhance compatibility with
Vercel preview environments.
- Improved handling of environment-specific URLs for authentication and
viewer services.

- **Enhancements**
- Streamlined environment variable management for more reliable
deployment configurations.

- **Documentation**
- Updated documentation to reflect new environment variable processing
functions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-12-05 10:59:19 +01:00
Baptiste Arnaud
99c5aafec1 ✏️ Fix invalid ending comma in API instructions
Closes #1022
2023-12-05 08:30:21 +01:00
Baptiste Arnaud
32b2bb6a94 🐛 Fix right click in bubble text editor selects the group
Closes #920
2023-12-05 08:28:16 +01:00
Baptiste Arnaud
a43d047f60 🐛 Fix multiple item dragged issue 2023-12-05 08:22:46 +01:00
Baptiste Arnaud
cb87a72cca 🐛 (editor) Fix old typebot flash when changing the typebot 2023-12-05 08:15:34 +01:00
Thiago Mendonça
c02e4e141b Updated vercel deployment guide. (#1075)
Adding explanation text about builder and viewer.

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

- **Documentation**
- Enhanced the self-hosting guide with additional explanatory notes on
deploying both the Builder and Viewer components for Typebot, clarifying
their distinct roles in service flow creation and user interaction.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-12-05 07:52:29 +01:00
Baptiste Arnaud
c4f5df51d5 ⚗️ (docs) Replace Algolia search with Community Search 2023-12-05 07:52:14 +01:00
Baptiste Arnaud
e228f682f5 📝 Add flow share docs 2023-12-04 15:23:50 +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
2c203f3b6d 📝 Improve WP prefilled var explanation 2023-11-27 14:24:44 +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
94886ca58e 🐛 (chatwoot) Fix email prefill when Chatwoot contact already exist 2023-11-20 15:22:11 +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
1e64a73e54 ✏️ Fix typebot v7 breaking changes doc typo 2023-11-17 16:59:13 +01:00
Baptiste Arnaud
3a47a0fcbd 🐛 (editor) Fix AB test items not connectable 2023-11-16 16:41:02 +01:00
Baptiste Arnaud
27e9c1adb9 📝 Update Discord invite link 2023-11-14 18:00:23 +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
8f224e3293 📝 Change community URLs, introduce Discord server
Closes #866
2023-11-14 08:48:31 +01:00
Baptiste Arnaud
74dd169b50 Add maxWidth and maxHeight bubble them props
Closes #458
2023-11-14 08:25:32 +01:00
Baptiste Arnaud
c59df18f21 📝 Add OpenAI Dialogue option in breaking change doc 2023-11-13 17:59:01 +01:00
Baptiste Arnaud
06065c3e85 Revert new authentication method for preview bot 2023-11-13 15:45:11 +01:00
Baptiste Arnaud
084588a086 🧑‍💻 (chat) Introduce startChat and continueChat endpoints
Closes #1030
2023-11-13 15:27:36 +01:00
Baptiste Arnaud
63233eb7ee 🐛 (webhook) Fix legacy webhook {{state}} body parsing 2023-11-12 08:35:29 +01:00
Baptiste Arnaud
bac2393b5d 🛂 Reduce sendMessage serverless function max memory 2023-11-12 08:24:34 +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
9eef1665f5 🚑 (zapier) Fix execute webhook endpoint too strict on block type check 2023-11-09 08:36:46 +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
onFire(Abhi)
68e4fc71fb
fix: whole page overflowing on the x axis and displaying a horizontal scrollbar (#1011)
this PR fixes issue
https://github.com/baptisteArno/typebot.io/issues/1008 by making the
position of `HandDrawnArrow`'s parent relative, which confines the
absolute position of its children to be within the bounds of the parent,
causing layout not shift due to `right -30px`

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

## Summary by CodeRabbit

- **New Features**
- Updated the layout behavior of the `RealTimeResults` component on the
landing page for better user experience.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-11-08 07:40:02 +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
57e454008e 📝 Add UTM params forwarding video tutorial 2023-11-03 15:44:00 +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
585e1d4074 ✏️ Fix CORSRules content typo for S3 config 2023-11-01 13:51:38 +01:00
Baptiste Arnaud
b80bea11b4 📝 Add text link section in text bubble doc 2023-10-31 14:07:28 +01:00
Baptiste Arnaud
3e02436d30 📝 Add webhook configuration tuto video 2023-10-30 15:20: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
Baptiste Arnaud
a347a2741d ✏️ Fix manual deployment doc start script typo
Closes #969
2023-10-26 15:42:09 +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
e071c810ae 📝 (openai) Add "Multiple OpenAI blocks" video section 2023-10-12 14:10:53 +02:00
Baptiste Arnaud
54788a828e 💚 Fix docker build when Sentry not enabled 2023-10-10 15:04:17 +02:00
Baptiste Arnaud
021cae3c29 📝 (s3) Add s3 configuration detailed instructions 2023-10-09 10:14:05 +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
Baptiste Arnaud
15823df6bd 📝 (embed) Add note about non-embeddable websites 2023-10-07 08:29:47 +02:00
Baptiste Arnaud
224a08b932 🚸 (condition) Don't show value in node content if operator is "set" or "empty" 2023-10-07 08:08:56 +02:00
Baptiste Arnaud
073654e1e0 ♻️ Remove sentry client monitoring in viewer 2023-10-07 07:58:40 +02:00
Baptiste Arnaud
4746e38cb2 🐛 Add no cache instructions to streamer
Attempt to fix buffering issue when Cloudflare proxy is enabled
2023-10-06 18:31:42 +02:00
Baptiste Arnaud
bf1f657642 🔥 Remove streamer Pages API endpoint 2023-10-06 17:45:12 +02:00
Baptiste Arnaud
0ba13b4df0 🐛 Enable stream again by migrating endpoint to route handler
https://vercel.com/docs/functions/edge-functions/streaming#streaming-data-with-edge-functions
2023-10-06 15:07:26 +02:00
Baptiste Arnaud
225dfed313 ⬆️ (openai) Replace openai-edge with openai and upgrade next 2023-10-06 14:38:54 +02:00
Baptiste Arnaud
3838ac9c3f 🐛 New sendMessage version for the new parser
Make sure old client still communicate with old parser
2023-10-06 10:14:26 +02:00
Baptiste Arnaud
d567bede6e 📝 (whatsapp) Remove private beta mention 2023-10-05 17:28:32 +02:00
Baptiste Arnaud
9e6a1f7dc0 ♻️ (api) Auto start bot if starting with input
Closes #877, closes #884
2023-10-04 16:47:58 +02:00
Baptiste Arnaud
2bc9dfb503 🚑 (results) Fix broken infinite scroll 2023-10-04 08:14:25 +02:00
Baptiste Arnaud
bf051bebde 🐛 (whatsapp) Fix force create session when flow is completed at first round 2023-10-03 16:06:37 +02:00
Baptiste Arnaud
a7b784b446 🚸 (videoBubble) Reparse variable video URL to correctly detect provider 2023-10-03 11:44:51 +02:00
Baptiste Arnaud
a53d128fb0 🛂 (whatsapp) Set default whatsapp expiry to 4 hours 2023-10-03 10:53:37 +02:00
Baptiste Arnaud
3292cccf51 🛂 (whatsapp) Disable whatsapp by default on duplication 2023-10-03 10:40:38 +02:00
Baptiste Arnaud
317a15b708 📝 (docker) Update postgres image name 2023-10-03 10:11:58 +02:00
Baptiste Arnaud
4d475ff009 📝 (vercel) Add a note on function maxDuration for Hobby plans 2023-10-03 09:14:36 +02:00
Baptiste Arnaud
a102d45da1 📝 (whatsapp) Re-organize whatsapp overview doc 2023-10-03 09:09:05 +02:00
Baptiste Arnaud
876625deb8 🐳 Bump Postgres version in official docker compose file 2023-10-02 11:20:06 +02:00
Baptiste Arnaud
42ae75cb11 🚸 (sendEmail) Rename username SMTP creds label to avoid confusion 2023-10-02 10:24:16 +02:00
Baptiste Arnaud
b31bcdfb87 🐛 (builder) Fix system color mode not syncing properly 2023-09-29 19:00:41 +02:00
Baptiste Arnaud
129f5582db 📝 Update About page content
Closes #757
2023-09-29 18:25:08 +02:00
Baptiste Arnaud
f016072e3e
🚸 (whatsapp) Improve how the whatsapp preview behaves (#873)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

- New Feature: Updated WhatsApp logo with a new design and color scheme.
- New Feature: Added a help button in the UI linking to documentation,
enhancing user guidance.
- New Feature: Introduced an alert message indicating that the WhatsApp
integration is in beta testing.
- New Feature: Implemented a button to open WhatsApp Web directly from
the application, improving user convenience.
- Refactor: Adjusted the retrieval of `contactPhoneNumber` in
`receiveMessagePreview` function for better data structure
compatibility.
- Refactor: Optimized the initialization and management of the WhatsApp
session in `startWhatsAppPreview`.
- Refactor: Improved the `parseButtonsReply` function by refining
condition checks.
- Refactor: Enhanced the readability of serialized rich text in
`convertRichTextToWhatsAppText` by introducing newline characters.
- Bug Fix: Ensured preservation of `contact` information when resuming
the WhatsApp flow in `resumeWhatsAppFlow`.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-29 17:47:10 +02:00
Baptiste Arnaud
0e4e10c77b 🛂 (whatsapp) Remove feature flag
Closes #401
2023-09-29 15:10:39 +02:00
Baptiste Arnaud
1a4b8bb8fc 📝 (typebotLink) Add instructions about shared variables and merge answers 2023-09-29 11:33:39 +02:00
Baptiste Arnaud
f9a14c0685
🐛 (whatsapp) Fix auto start input where it didn't display next bu… (#869)
…bbles
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

**Release Notes**

- New Feature: Enhanced WhatsApp integration with improved phone number
formatting and session ID generation.
- Refactor: Updated the `startWhatsAppPreview` and
`receiveMessagePreview` functions for better consistency and
readability.
- Bug Fix: Added a check for `phoneNumberId` in the `receiveMessage`
function to prevent errors when it's undefined.
- Documentation: Expanded the WhatsApp integration guide and FAQs in the
docs, providing more detailed instructions and addressing common
queries.
- Chore: Introduced a new `metadata` field in the
`whatsAppWebhookRequestBodySchema` to store the `phone_number_id`.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-29 09:59:38 +02:00
Baptiste Arnaud
76f4954540
🚸 (pictureChoice) Allow dynamic picture choice with… (#865)
… string variables
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

- Refactor: Updated `GoogleSheetsNodeContent` component to use the
`options` prop instead of `action`, and integrated the `useTypebot` hook
for better functionality.
- Style: Improved UI text and layout in `GoogleSheetsSettings.tsx`,
enhancing user experience when selecting rows.
- Refactor: Simplified rendering logic in `BlockNodeContent.tsx` by
directly calling `GoogleSheetsNodeContent` component, improving code
readability.
- Bug Fix: Enhanced `injectVariableValuesInPictureChoiceBlock` function
to handle different types of values for titles, descriptions, and
picture sources, fixing issues with variable value injection.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-28 16:39:48 +02:00
Baptiste Arnaud
e10a506c96 🐛 (whatsapp) Fix preview failing to start and wait timeo… 2023-09-27 18:46:53 +02:00
Baptiste Arnaud
ccc34b3028 🚸 (whatsapp) Improve upgrade plan for whatsapp notice 2023-09-27 14:22:51 +02:00
Baptiste Arnaud
ec52fdc0ad 📝 (whatsapp) Add a "Create WhatsApp app" guide 2023-09-27 08:32:18 +02:00
Baptiste Arnaud
801fea860a
🛂 Improve editor authorization feedback (#856)
Closes #844, closes #839

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

- New Feature: Added a `logOut` function to the user context for
improved logout handling.
- Refactor: Updated the redirect path in the `SignInForm` component for
better user redirection after authentication.
- New Feature: Enhanced the "Add" button and "Connect new" menu item in
`CredentialsDropdown` with role-based access control.
- Refactor: Replaced the `signOut` function with the `logOut` function
from the `useUser` hook in `DashboardHeader`.
- Bug Fix: Prevented execution of certain code blocks in
`TypebotProvider` when `typebotData` is read-only.
- Refactor: Optimized the `handleObserver` function in `ResultsTable`
with a `useCallback` hook.
- Bug Fix: Improved router readiness check in `WorkspaceProvider` to
prevent premature execution of certain operations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-26 14:02:53 +02:00
Baptiste Arnaud
1ca742fc0b
(setVariable) Add "Environment name" value in Set variable block (#850)
Closes #848
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

- New Feature: Added "Environment name" as a new value type in the
SetVariable function, allowing users to distinguish between 'web' and
'whatsapp' environments.
- Refactor: Simplified session state handling in `resumeWhatsAppFlow.ts`
for improved code clarity.
- Refactor: Updated `startWhatsAppSession.ts` to include an initial
session state with WhatsApp contact and expiry timeout, enhancing
session management.
- Bug Fix: Improved null handling in `executeSetVariable.ts` for
'Contact name' and 'Phone number', preventing potential issues with
falsy values.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-26 09:50:20 +02:00
Baptiste Arnaud
7b3cbdb8e8 🚑 (fileUpload) Fix file upload in linked typebots 2023-09-26 08:07:33 +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
2307231d28 (wordpress) Add query params exclusion support 2023-09-25 11:07:08 +02:00
Baptiste Arnaud
ed60caa806 🚑 (billing) Fix disabled upgrade buttons 2023-09-22 17:19:11 +02:00
Baptiste Arnaud
4f953ac272
(whatsapp) Add custom session expiration (#842)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
### Summary by CodeRabbit

- New Feature: Introduced session expiry timeout for WhatsApp
integration, allowing users to set the duration after which a session
expires.
- New Feature: Added an option to enable/disable the start bot condition
in WhatsApp integration settings.
- Refactor: Enhanced error handling by throwing specific errors when
necessary conditions are not met.
- Refactor: Improved UI components like `NumberInput` and
`SwitchWithLabel` for better usability.
- Bug Fix: Fixed issues related to session resumption and message
sending in expired sessions. Now, if a session is expired, a new one
will be started instead of attempting to resume the old one.
- Chore: Updated various schemas to reflect changes in session
management and WhatsApp settings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-09-22 17:12:15 +02:00
Baptiste Arnaud
4673989104 💚 Rename back viewer 2023-09-22 16:25:31 +02:00
Baptiste Arnaud
9e0109f561 (whatsapp) Improve whatsApp management and media collection
Closes #796
2023-09-22 11:08:41 +02:00
Baptiste Arnaud
8f4e5b5d63 👷 (vercel) Increase max execution duration for webhooks 2023-09-22 09:10:22 +02:00
Baptiste Arnaud
bad415ae1f 📝 Add custom domain troobleshoot section 2023-09-22 08:05:51 +02:00
Baptiste Arnaud
85272af8f3 🚑 (upload) Fix upload in embed 2023-09-21 19:08:43 +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
797685aa9d 📝 Change googleSheets date system var name 2023-09-20 10:48:24 +02:00
Baptiste Arnaud
bb13c2bd61 🛂 (fileUpload) Improve file upload size limit enforcement
Closes #799, closes #797
2023-09-19 15:42:33 +02:00
Baptiste Arnaud
f626c9867c (whatsapp) Improve WhatsApp preview management
Closes #800
2023-09-19 11:53:18 +02:00
Baptiste Arnaud
2ce63f5d06 🐛 (results) Fix result modal content display 2023-09-19 11:47:41 +02:00
Baptiste Arnaud
61c46bcb46 🚸 (results) Use header id as table accessor to allow duplicate names 2023-09-18 18:34:53 +02:00
Baptiste Arnaud
6548752b1b 🐛 Fix bubble icon file upload 2023-09-18 17:26:05 +02:00
Baptiste Arnaud
322c48cddc (customDomain) Add configuration modal for domain verification
Closes #742
2023-09-18 17:16:30 +02:00
Baptiste Arnaud
21ad061f7b 🚸 (typebotLink) Make sure variables from child bots are merged if necessary 2023-09-18 10:59:56 +02:00