🚸 (dashboard) Add unpublish menu item in dashboard

Also remove the useless publishedTypebotId field in Typebot

Closes #232
This commit is contained in:
Baptiste Arnaud
2023-01-27 17:11:26 +01:00
parent a842f57297
commit f93bc2fcb2
59 changed files with 212 additions and 90 deletions

View File

@@ -3,7 +3,6 @@
"createdAt": "2022-02-05T06:21:16.522Z",
"updatedAt": "2022-02-05T06:21:16.522Z",
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -4,7 +4,6 @@
"updatedAt": "2022-12-23T09:04:36.750Z",
"icon": null,
"name": "My typebot copy",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -4,7 +4,6 @@
"updatedAt": "2022-06-02T07:34:02.336Z",
"icon": null,
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -4,7 +4,6 @@
"updatedAt": "2022-06-15T15:36:44.821Z",
"icon": null,
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -3,7 +3,6 @@
"createdAt": "2022-03-21T15:01:46.107Z",
"updatedAt": "2022-03-21T15:03:07.312Z",
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -3,7 +3,6 @@
"createdAt": "2022-02-04T13:40:19.455Z",
"updatedAt": "2022-02-04T13:40:19.455Z",
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -3,7 +3,6 @@
"createdAt": "2022-02-04T13:40:19.455Z",
"updatedAt": "2022-02-04T13:40:19.455Z",
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -3,7 +3,6 @@
"createdAt": "2022-02-07T10:06:35.274Z",
"updatedAt": "2022-02-07T10:06:35.274Z",
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -3,7 +3,6 @@
"createdAt": "2022-02-04T13:44:30.386Z",
"updatedAt": "2022-02-04T13:44:30.386Z",
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -3,7 +3,6 @@
"createdAt": "2022-02-04T13:47:42.459Z",
"updatedAt": "2022-02-04T13:47:42.459Z",
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -3,7 +3,6 @@
"createdAt": "2022-03-09T07:01:25.917Z",
"updatedAt": "2022-03-09T07:01:25.917Z",
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -3,7 +3,6 @@
"createdAt": "2022-03-08T17:18:50.337Z",
"updatedAt": "2022-03-08T21:05:28.825Z",
"name": "Another typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -3,7 +3,6 @@
"createdAt": "2022-02-04T14:14:21.394Z",
"updatedAt": "2022-02-04T14:14:21.394Z",
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -3,7 +3,6 @@
"createdAt": "2022-02-04T14:14:21.394Z",
"updatedAt": "2022-02-04T14:14:21.394Z",
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -4,7 +4,6 @@
"updatedAt": "2022-10-17T20:14:48.231Z",
"icon": null,
"name": "My typebot copy",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -1 +1,129 @@
{"id":"clddbpdus00011asqclyl0vlw","createdAt":"2023-01-26T16:42:16.803Z","updatedAt":"2023-01-26T16:48:53.712Z","icon":null,"name":"My typebot","publishedTypebotId":null,"folderId":null,"groups":[{"id":"clddbpduq002ssq1a2h622bw0","title":"Start","blocks":[{"id":"clddbpduq002tsq1aghl4dh31","type":"start","label":"Start","groupId":"clddbpduq002ssq1a2h622bw0","outgoingEdgeId":"clddbq3yp000l3b6ss15lu48v"}],"graphCoordinates":{"x":0,"y":0}},{"id":"clddbpito000e3b6spz6qqipa","title":"Group #1","blocks":[{"id":"clddbpito000f3b6srs0cizys","type":"choice input","items":[{"id":"clddbpito000g3b6snvioor95","type":0,"blockId":"clddbpito000f3b6srs0cizys","content":"Wait now"}],"groupId":"clddbpito000e3b6spz6qqipa","options":{"buttonLabel":"Send","isMultipleChoice":false}},{"id":"clddbw55x000m3b6svz34enqq","groupId":"clddbpito000e3b6spz6qqipa","type":"Wait","options":{"secondsToWaitFor":""},"outgoingEdgeId":"clddbw6l4000n3b6st6le0hu9"}],"graphCoordinates":{"x":357.49609375,"y":148.40625}},{"id":"clddbpwh9000i3b6s9e1vdjrd","title":"Group #2","blocks":[{"id":"clddbpwh9000j3b6srnzdpbcx","type":"text","content":{"html":"<div>Hi there!</div>","richText":[{"type":"p","children":[{"text":"Hi there!"}]}],"plainText":"Hi there!"},"groupId":"clddbpwh9000i3b6s9e1vdjrd"}],"graphCoordinates":{"x":545.25,"y":447.36328125}}],"variables":[],"edges":[{"id":"clddbq3yp000l3b6ss15lu48v","to":{"groupId":"clddbpito000e3b6spz6qqipa"},"from":{"blockId":"clddbpduq002tsq1aghl4dh31","groupId":"clddbpduq002ssq1a2h622bw0"}},{"from":{"groupId":"clddbpito000e3b6spz6qqipa","blockId":"clddbw55x000m3b6svz34enqq"},"to":{"groupId":"clddbpwh9000i3b6s9e1vdjrd"},"id":"clddbw6l4000n3b6st6le0hu9"}],"theme":{"chat":{"inputs":{"color":"#303235","backgroundColor":"#FFFFFF","placeholderColor":"#9095A0"},"buttons":{"color":"#FFFFFF","backgroundColor":"#0042DA"},"hostAvatar":{"url":"https://avatars.githubusercontent.com/u/16015833?v=4","isEnabled":true},"hostBubbles":{"color":"#303235","backgroundColor":"#F7F8FF"},"guestBubbles":{"color":"#FFFFFF","backgroundColor":"#FF8E21"}},"general":{"font":"Open Sans","background":{"type":"Color","content":"#ffffff"}}},"settings":{"general":{"isBrandingEnabled":false,"isInputPrefillEnabled":true,"isResultSavingEnabled":true,"isHideQueryParamsEnabled":true,"isNewResultOnRefreshEnabled":false},"metadata":{"description":"Build beautiful conversational forms and embed them directly in your applications without a line of code. Triple your response rate and collect answers that has more value compared to a traditional form."},"typingEmulation":{"speed":300,"enabled":true,"maxDelay":1.5}},"publicId":null,"customDomain":null,"workspaceId":"proWorkspace","resultsTablePreferences":null,"isArchived":false,"isClosed":false}
{
"id": "clddbpdus00011asqclyl0vlw",
"createdAt": "2023-01-26T16:42:16.803Z",
"updatedAt": "2023-01-26T16:48:53.712Z",
"icon": null,
"name": "My typebot",
"folderId": null,
"groups": [
{
"id": "clddbpduq002ssq1a2h622bw0",
"title": "Start",
"blocks": [
{
"id": "clddbpduq002tsq1aghl4dh31",
"type": "start",
"label": "Start",
"groupId": "clddbpduq002ssq1a2h622bw0",
"outgoingEdgeId": "clddbq3yp000l3b6ss15lu48v"
}
],
"graphCoordinates": { "x": 0, "y": 0 }
},
{
"id": "clddbpito000e3b6spz6qqipa",
"title": "Group #1",
"blocks": [
{
"id": "clddbpito000f3b6srs0cizys",
"type": "choice input",
"items": [
{
"id": "clddbpito000g3b6snvioor95",
"type": 0,
"blockId": "clddbpito000f3b6srs0cizys",
"content": "Wait now"
}
],
"groupId": "clddbpito000e3b6spz6qqipa",
"options": { "buttonLabel": "Send", "isMultipleChoice": false }
},
{
"id": "clddbw55x000m3b6svz34enqq",
"groupId": "clddbpito000e3b6spz6qqipa",
"type": "Wait",
"options": { "secondsToWaitFor": "" },
"outgoingEdgeId": "clddbw6l4000n3b6st6le0hu9"
}
],
"graphCoordinates": { "x": 357.49609375, "y": 148.40625 }
},
{
"id": "clddbpwh9000i3b6s9e1vdjrd",
"title": "Group #2",
"blocks": [
{
"id": "clddbpwh9000j3b6srnzdpbcx",
"type": "text",
"content": {
"html": "<div>Hi there!</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Hi there!" }] }
],
"plainText": "Hi there!"
},
"groupId": "clddbpwh9000i3b6s9e1vdjrd"
}
],
"graphCoordinates": { "x": 545.25, "y": 447.36328125 }
}
],
"variables": [],
"edges": [
{
"id": "clddbq3yp000l3b6ss15lu48v",
"to": { "groupId": "clddbpito000e3b6spz6qqipa" },
"from": {
"blockId": "clddbpduq002tsq1aghl4dh31",
"groupId": "clddbpduq002ssq1a2h622bw0"
}
},
{
"from": {
"groupId": "clddbpito000e3b6spz6qqipa",
"blockId": "clddbw55x000m3b6svz34enqq"
},
"to": { "groupId": "clddbpwh9000i3b6s9e1vdjrd" },
"id": "clddbw6l4000n3b6st6le0hu9"
}
],
"theme": {
"chat": {
"inputs": {
"color": "#303235",
"backgroundColor": "#FFFFFF",
"placeholderColor": "#9095A0"
},
"buttons": { "color": "#FFFFFF", "backgroundColor": "#0042DA" },
"hostAvatar": {
"url": "https://avatars.githubusercontent.com/u/16015833?v=4",
"isEnabled": true
},
"hostBubbles": { "color": "#303235", "backgroundColor": "#F7F8FF" },
"guestBubbles": { "color": "#FFFFFF", "backgroundColor": "#FF8E21" }
},
"general": {
"font": "Open Sans",
"background": { "type": "Color", "content": "#ffffff" }
}
},
"settings": {
"general": {
"isBrandingEnabled": false,
"isInputPrefillEnabled": true,
"isResultSavingEnabled": true,
"isHideQueryParamsEnabled": true,
"isNewResultOnRefreshEnabled": false
},
"metadata": {
"description": "Build beautiful conversational forms and embed them directly in your applications without a line of code. Triple your response rate and collect answers that has more value compared to a traditional form."
},
"typingEmulation": { "speed": 300, "enabled": true, "maxDelay": 1.5 }
},
"publicId": null,
"customDomain": null,
"workspaceId": "proWorkspace",
"resultsTablePreferences": null,
"isArchived": false,
"isClosed": false
}

View File

@@ -3,7 +3,6 @@
"createdAt": "2022-02-05T06:21:16.522Z",
"updatedAt": "2022-02-05T06:21:16.522Z",
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -3,7 +3,6 @@
"createdAt": "2022-03-10T10:50:23.912Z",
"updatedAt": "2022-03-10T10:50:23.912Z",
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -3,7 +3,6 @@
"createdAt": "2022-02-04T14:17:20.022Z",
"updatedAt": "2022-02-04T14:17:20.022Z",
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{

View File

@@ -4,7 +4,6 @@
"updatedAt": "2022-06-26T14:07:19.077Z",
"icon": null,
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"groups": [
{