Commit Graph

92 Commits

Author SHA1 Message Date
Gabriel Pavão
53b702e8b1 🌐 Add translation keys for input blocks (#1114)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Integrated localization support across various components using the
`useTranslate` hook for dynamic translations.

- **Enhancements**
- Replaced hardcoded text with localized strings to support multiple
languages in the user interface.

- **User Interface**
- Updated labels, placeholders, tooltips, and button texts to utilize
translated content for a multilingual experience.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>
2023-12-29 12:42:50 +01:00
Baptiste Arnaud
1e5fa5a575 📝 Migrate from Docusaurus to Mintlify (#1115)
Closes #868
2023-12-22 09:13:53 +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
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
a43d047f60 🐛 Fix multiple item dragged issue 2023-12-05 08:22:46 +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
1a44bf4935 (openai) Add create speech OpenAI action
Closes #1025
2023-11-20 14:01:50 +01:00
Baptiste Arnaud
3a47a0fcbd 🐛 (editor) Fix AB test items not connectable 2023-11-16 16:41:02 +01:00
Baptiste Arnaud
35300eaf34 ♻️ Introduce typebot v6 with events (#1013)
Closes #885
2023-11-08 15:34:16 +01: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
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
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
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
Ed Zynda
75e4b16af0 Add Zemantic AI Integration block (#752)
Co-authored-by: Baptiste Arnaud <contact@baptiste-arnaud.fr>
2023-09-08 16:21:50 +02:00
Baptiste Arnaud
fbb198af9d (s3) Improve storage management and type safety
Closes #756
2023-09-08 15:28:11 +02:00
Baptiste Arnaud
ac899b3181 🧑‍💻 (editor) Add group info in focus toolbar 2023-09-06 08:39:56 +02:00
Baptiste Arnaud
aaa208cef4 🌐 Add pt_BR and more translations (#767)
Original PR: https://github.com/baptisteArno/typebot.io/pull/694

---------

Co-authored-by: Daniel Oliveira <daniel.oliveira@kununu.com>
Co-authored-by: Daniel Oliveira <daniel@headdev.com.br>
2023-09-05 18:15:59 +02:00
Baptiste Arnaud
5092e142ec 🐛 Fix select text in buttons node drag
Closes #697
2023-09-04 10:34:02 +02:00
Baptiste Arnaud
27a5f4eb74 (openai) Add custom provider and custom models
Closes #532
2023-09-01 16:19:59 +02:00
Baptiste Arnaud
27b15a0f10 📝 Add Sheets advanced example video 2023-08-24 17:52:41 +02:00
Baptiste Arnaud
454d320c6b (api) Add CRUD typebot endpoints
Closes #320, closes #696
2023-08-17 09:39:11 +02:00
Baptiste Arnaud
1cc282a5fc 🐛 (editor) Fix edges connection issue when item.blockId does not match 2023-08-15 07:53:14 +02:00
Baptiste Arnaud
037d4ce345 (audio) Add autoplay switch in settings 2023-08-07 12:20:38 +02:00
Baptiste Arnaud
7a7d471805 🐛 (analytics) Fix previous total computation max call stack exceeded
Closes #624
2023-07-25 17:29:06 +02:00
Baptiste Arnaud
b0f25f301b (analytics) Improve analytics graph accuracy 2023-06-30 12:39:20 +02:00
Baptiste Arnaud
033f8f99dd Add Meta Pixel block
Closes #582
2023-06-28 09:52:03 +02:00
Baptiste Arnaud
0582ca74ac 🚸 (editor) Improve editor performance by rounding paths
Related to #575
2023-06-24 11:48:46 +02:00
Baptiste Arnaud
ef0a2d9dc6 Add conditional choice items
Allows you to conditonnally display an item from the Buttons or the Picture choice input

Closes #546
2023-06-05 17:33:43 +02:00
Baptiste Arnaud
acaa1c6223 🚸 Add item duplication
Closes #545
2023-06-05 14:49:04 +02:00
Baptiste Arnaud
825ed2f1ec 🚸 Add floating menu for block settings
Closes #396
2023-05-09 10:43:08 -04:00
Baptiste Arnaud
8347e5b2a8 Add dog insurance offer template
Closes #484
2023-05-04 15:32:13 -04:00
Baptiste Arnaud
035dded654 Add picture choice block
Closes #476
2023-05-04 09:23:33 -04:00
Baptiste Arnaud
65c6f66a5c 🐛 (googleAnalytics) Fix output validation when using variable as event value 2023-05-03 18:09:25 -04:00
Baptiste Arnaud
5f0a99ee66 🚸 (editor) Do not show focus toolbar for the Start group 2023-05-03 06:35:34 -04:00
Baptiste Arnaud
7e937e1c7c Add AB test block
Closes #449
2023-04-17 16:47:17 +02:00
Baptiste Arnaud
e0a9824913 ♻️ Simplify text bubble content shape
Remove html and plainText field because it was redundant

Closes #386
2023-04-13 17:10:59 +02:00
Baptiste Arnaud
e06f8186f6 (imageBubble) Add redirect on image click option
Closes #448
2023-04-07 11:34:58 +02:00
Baptiste Arnaud
92b92ed268 🚸 (editor) Improve block dragging behavior 2023-03-24 15:53:06 +01:00
Baptiste Arnaud
02d25d0fc7 🐛 Fix focus after selecting mark in text editor 2023-03-21 18:26:39 +01:00
Baptiste Arnaud
3a6c096461 ♻️ Fix folder case issue 2023-03-15 12:50:08 +01:00
Baptiste Arnaud
3d3670d740 ♻️ Fix folder case issue (wip) 2023-03-15 12:48:42 +01: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
c4db2f42a6 (openai) Add Messages sequence type
To make it easy to just plug a sequence of user / assistant messages to Chat completion task

Closes #387
2023-03-13 16:28:08 +01:00
Baptiste Arnaud
f9aef907e3 (editor) Allow empty group titles 2023-03-13 09:29:56 +01:00
Baptiste Arnaud
53cdb35984 Add movie recommendation template
Closes #377
2023-03-09 17:37:39 +01:00
Baptiste Arnaud
bf1fbf2c53 🩹 Fix crash on bot load when it has no groups 2023-03-09 14:21:02 +01:00
Baptiste Arnaud
ff04edf139 Add OpenAI block
Also migrate credentials to tRPC

Closes #253
2023-03-09 08:46:36 +01:00
Baptiste Arnaud
b77e2c8d2c 🔥 Remove disable response saving option
Doesn't work properly when it comes to keep tracking storage usage
2023-03-07 14:41:57 +01:00