♻️ Simplify text bubble content shape

Remove html and plainText field because it was redundant

Closes #386
This commit is contained in:
Baptiste Arnaud
2023-04-13 17:04:21 +02:00
parent 2cbf8348c3
commit e0a9824913
70 changed files with 545 additions and 1030 deletions

View File

@@ -27,7 +27,6 @@
"type": "text",
"groupId": "kinRXxYop2X4d7F9qt8WNB",
"content": {
"html": "<div>Welcome to <span class=\"slate-bold\">AA</span> (Awesome Agency)</div>",
"richText": [
{
"type": "p",
@@ -37,8 +36,7 @@
{ "text": " (Awesome Agency)" }
]
}
],
"plainText": "Welcome to AA (Awesome Agency)"
]
}
},
{
@@ -76,14 +74,12 @@
"type": "text",
"groupId": "o4SH1UtKANnW5N5D67oZUz",
"content": {
"html": "<div>Great! Nice to meet you {{Name}}</div>",
"richText": [
{
"type": "p",
"children": [{ "text": "Great! Nice to meet you {{Name}}" }]
}
],
"plainText": "Great! Nice to meet you {{Name}}"
]
}
},
{
@@ -91,7 +87,6 @@
"type": "text",
"groupId": "o4SH1UtKANnW5N5D67oZUz",
"content": {
"html": "<div>What&#x27;s the best email we can reach you at?</div>",
"richText": [
{
"type": "p",
@@ -99,8 +94,7 @@
{ "text": "What's the best email we can reach you at?" }
]
}
],
"plainText": "What's the best email we can reach you at?"
]
}
},
{
@@ -125,11 +119,9 @@
"type": "text",
"groupId": "q5dAhqSTCaNdiGSJm9B9Rw",
"content": {
"html": "<div>What&#x27;s your name?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "What's your name?" }] }
],
"plainText": "What's your name?"
]
}
},
{
@@ -158,14 +150,12 @@
"type": "text",
"groupId": "fKqRz7iswk7ULaj5PJocZL",
"content": {
"html": "<div>What services are you interested in?</div>",
"richText": [
{
"type": "p",
"children": [{ "text": "What services are you interested in?" }]
}
],
"plainText": "What services are you interested in?"
]
}
},
{
@@ -213,7 +203,6 @@
"type": "text",
"groupId": "7qHBEyCMvKEJryBHzPmHjV",
"content": {
"html": "<div>Can you tell me a bit more about your needs?</div>",
"richText": [
{
"type": "p",
@@ -221,8 +210,7 @@
{ "text": "Can you tell me a bit more about your needs?" }
]
}
],
"plainText": "Can you tell me a bit more about your needs?"
]
}
},
{
@@ -247,9 +235,7 @@
"type": "text",
"groupId": "vF7AD7zSAj7SNvN3gr9N94",
"content": {
"html": "<div>Perfect!</div>",
"richText": [{ "type": "p", "children": [{ "text": "Perfect!" }] }],
"plainText": "Perfect!"
"richText": [{ "type": "p", "children": [{ "text": "Perfect!" }] }]
}
},
{
@@ -257,14 +243,12 @@
"type": "text",
"groupId": "vF7AD7zSAj7SNvN3gr9N94",
"content": {
"html": "<div>We&#x27;ll get back to you at {{Email}}</div>",
"richText": [
{
"type": "p",
"children": [{ "text": "We'll get back to you at {{Email}}" }]
}
],
"plainText": "We'll get back to you at {{Email}}"
]
},
"outgoingEdgeId": "fTVo43AG97eKcaTrZf9KyV"
}

View File

@@ -28,9 +28,7 @@
"id": "sqUp2x8SXx8JBC8a9XuKGL9",
"type": "text",
"content": {
"html": "<div>Hello!</div>",
"richText": [{ "type": "p", "children": [{ "text": "Hello!" }] }],
"plainText": "Hello!"
"richText": [{ "type": "p", "children": [{ "text": "Hello!" }] }]
},
"groupId": "clc0ad9ah000n3b6sw5w6h1mp"
},
@@ -38,11 +36,9 @@
"id": "suRXuWyuJ7kpsdLUYKA6VqM",
"type": "text",
"content": {
"html": "<div>How are you?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "How are you?" }] }
],
"plainText": "How are you?"
]
},
"groupId": "clc0ad9ah000n3b6sw5w6h1mp"
},

View File

@@ -30,11 +30,9 @@
"groupId": "cl3wo7ucc000g2e6gdus80qeb",
"type": "text",
"content": {
"html": "<div>Hello this is group 1</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Hello this is group 1" }] }
],
"plainText": "Hello this is group 1"
]
}
},
{
@@ -42,11 +40,9 @@
"groupId": "cl3wo7ucc000g2e6gdus80qeb",
"type": "text",
"content": {
"html": "<div>What&#x27;s your name?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "What's your name?" }] }
],
"plainText": "What's your name?"
]
}
},
{
@@ -70,11 +66,9 @@
"groupId": "cl3wo87et000l2e6ga64ipat6",
"type": "text",
"content": {
"html": "<div>Hello this is group 2</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Hello this is group 2" }] }
],
"plainText": "Hello this is group 2"
]
}
},
{
@@ -82,11 +76,9 @@
"groupId": "cl3wo87et000l2e6ga64ipat6",
"type": "text",
"content": {
"html": "<div>What&#x27;s your name?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "What's your name?" }] }
],
"plainText": "What's your name?"
]
}
},
{
@@ -110,11 +102,9 @@
"groupId": "cl3wo8kfl000p2e6gszlvkub0",
"type": "text",
"content": {
"html": "<div>Hello this is group 3</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Hello this is group 3" }] }
],
"plainText": "Hello this is group 3"
]
}
},
{
@@ -122,11 +112,9 @@
"groupId": "cl3wo8kfl000p2e6gszlvkub0",
"type": "text",
"content": {
"html": "<div>What&#x27;s your name?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "What's your name?" }] }
],
"plainText": "What's your name?"
]
}
},
{

View File

@@ -71,11 +71,7 @@
"id": "cl4fr7wsv0008396mf9oi9lvi",
"type": "text",
"content": {
"html": "<div>Ok great!</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Ok great!" }] }
],
"plainText": "Ok great!"
"richText": [{ "type": "p", "children": [{ "text": "Ok great!" }] }]
},
"groupId": "cl4fr7wsv0007396m7xgbeymx"
}

View File

@@ -29,11 +29,9 @@
"groupId": "cl10u68pw00032e6depze2oiy",
"type": "text",
"content": {
"html": "<div>Hi how are you?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Hi how are you?" }] }
],
"plainText": "Hi how are you?"
]
}
},
{
@@ -58,11 +56,9 @@
"groupId": "cl10u6jzd00072e6dvo0zwy0s",
"type": "text",
"content": {
"html": "<div>How old are you?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "How old are you?" }] }
],
"plainText": "How old are you?"
]
}
},
{
@@ -78,11 +74,9 @@
"groupId": "cl10u6jzd00072e6dvo0zwy0s",
"type": "text",
"content": {
"html": "<div>Do you like cookies?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Do you like cookies?" }] }
],
"plainText": "Do you like cookies?"
]
}
},
{
@@ -110,11 +104,9 @@
"groupId": "cl10u6jzd00072e6dvo0zwy0s",
"type": "text",
"content": {
"html": "<div>Alright, cheers!</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Alright, cheers!" }] }
],
"plainText": "Alright, cheers!"
]
}
},
{

View File

@@ -61,7 +61,6 @@
"groupId": "pd3PECJqHB9xHMfc52SbrZ",
"type": "text",
"content": {
"html": "<div>Your name is: {{First name}} {{Last name}}</div>",
"richText": [
{
"type": "p",
@@ -69,8 +68,7 @@
{ "text": "Your name is: {{First name}} {{Last name}}" }
]
}
],
"plainText": "Your name is: {{First name}} {{Last name}}"
]
}
}
]

View File

@@ -29,11 +29,9 @@
"groupId": "b5r2MMyftV1nv9vyr6VkZh",
"type": "text",
"content": {
"html": "<div>Send email</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Send email" }] }
],
"plainText": "Send email"
]
}
},
{

View File

@@ -29,9 +29,7 @@
"groupId": "kBneEpKdMYrF65XxUQ5GS7",
"type": "text",
"content": {
"html": "<div>Ready?</div>",
"richText": [{ "type": "p", "children": [{ "text": "Ready?" }] }],
"plainText": "Ready?"
"richText": [{ "type": "p", "children": [{ "text": "Ready?" }] }]
}
},
{

View File

@@ -27,11 +27,9 @@
"type": "text",
"groupId": "eh2ohNATnGg6RTdjG9h5kb",
"content": {
"html": "<div>How old are you?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "How old are you?" }] }
],
"plainText": "How old are you?"
]
}
},
{
@@ -99,14 +97,12 @@
"type": "text",
"groupId": "fGrzjahWecA8hoNMRrLSwn",
"content": {
"html": "<div>You are older than 80</div>",
"richText": [
{
"type": "p",
"children": [{ "text": "You are older than 80" }]
}
],
"plainText": "You are older than 80"
]
}
}
],
@@ -121,14 +117,12 @@
"type": "text",
"groupId": "49Jv45UJi9R3U4FuWS8R2c",
"content": {
"html": "<div>You are older than 20</div>",
"richText": [
{
"type": "p",
"children": [{ "text": "You are older than 20" }]
}
],
"plainText": "You are older than 20"
]
}
}
],
@@ -143,14 +137,12 @@
"type": "text",
"groupId": "fD28kefdySKK7XA7SyTozC",
"content": {
"html": "<div>You are younger than 20</div>",
"richText": [
{
"type": "p",
"children": [{ "text": "You are younger than 20" }]
}
],
"plainText": "You are younger than 20"
]
}
}
],

View File

@@ -42,11 +42,9 @@
"groupId": "jMbvgRQfXUaXg37LRNqRaJ",
"type": "text",
"content": {
"html": "<div>Hello world</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Hello world" }] }
],
"plainText": "Hello world"
]
}
},
{

View File

@@ -44,11 +44,9 @@
"type": "text",
"groupId": "uhqCZSNbsYVFxop7Gc8xvn",
"content": {
"html": "<div>Second block</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Second block" }] }
],
"plainText": "Second block"
]
}
}
],

View File

@@ -28,11 +28,9 @@
"id": "souEkLukHsYU9jrN2rAP7YT",
"type": "text",
"content": {
"html": "<div>How old are you?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "How old are you?" }] }
],
"plainText": "How old are you?"
]
},
"groupId": "cl9d7ruqe00033b6oe5nzpeub"
},
@@ -82,7 +80,6 @@
"id": "svpmd4uNoAXpoKyfYuuXTQe",
"type": "text",
"content": {
"html": "<div>Multiplication: {{Total}}</div><div>Custom var: {{Custom var}}</div><div>Addition: {{Addition}}</div>",
"richText": [
{
"type": "p",
@@ -96,8 +93,7 @@
"type": "p",
"children": [{ "text": "Addition: {{Addition}}" }]
}
],
"plainText": "Multiplication: {{Total}}Custom var: {{Custom var}}Addition: {{Addition}}"
]
},
"groupId": "cl9d7ruqe00053b6o8l0h608t"
}

View File

@@ -56,11 +56,7 @@
"id": "clddbpwh9000j3b6srnzdpbcx",
"type": "text",
"content": {
"html": "<div>Hi there!</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Hi there!" }] }
],
"plainText": "Hi there!"
"richText": [{ "type": "p", "children": [{ "text": "Hi there!" }] }]
},
"groupId": "clddbpwh9000i3b6s9e1vdjrd"
}

View File

@@ -27,7 +27,6 @@
"type": "text",
"groupId": "kinRXxYop2X4d7F9qt8WNB",
"content": {
"html": "<div>Welcome to <span class=\"slate-bold\">AA</span> (Awesome Agency)</div>",
"richText": [
{
"type": "p",
@@ -37,8 +36,7 @@
{ "text": " (Awesome Agency)" }
]
}
],
"plainText": "Welcome to AA (Awesome Agency)"
]
}
},
{
@@ -76,14 +74,12 @@
"type": "text",
"groupId": "o4SH1UtKANnW5N5D67oZUz",
"content": {
"html": "<div>Great! Nice to meet you {{Name}}</div>",
"richText": [
{
"type": "p",
"children": [{ "text": "Great! Nice to meet you {{Name}}" }]
}
],
"plainText": "Great! Nice to meet you {{Name}}"
]
}
},
{
@@ -91,7 +87,6 @@
"type": "text",
"groupId": "o4SH1UtKANnW5N5D67oZUz",
"content": {
"html": "<div>What&#x27;s the best email we can reach you at?</div>",
"richText": [
{
"type": "p",
@@ -99,8 +94,7 @@
{ "text": "What's the best email we can reach you at?" }
]
}
],
"plainText": "What's the best email we can reach you at?"
]
}
},
{
@@ -125,11 +119,9 @@
"type": "text",
"groupId": "group1",
"content": {
"html": "<div>What&#x27;s your name?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "What's your name?" }] }
],
"plainText": "What's your name?"
]
}
},
{
@@ -158,14 +150,12 @@
"type": "text",
"groupId": "fKqRz7iswk7ULaj5PJocZL",
"content": {
"html": "<div>What services are you interested in?</div>",
"richText": [
{
"type": "p",
"children": [{ "text": "What services are you interested in?" }]
}
],
"plainText": "What services are you interested in?"
]
}
},
{
@@ -213,7 +203,6 @@
"type": "text",
"groupId": "7qHBEyCMvKEJryBHzPmHjV",
"content": {
"html": "<div>Can you tell me a bit more about your needs?</div>",
"richText": [
{
"type": "p",
@@ -221,8 +210,7 @@
{ "text": "Can you tell me a bit more about your needs?" }
]
}
],
"plainText": "Can you tell me a bit more about your needs?"
]
}
},
{
@@ -247,9 +235,7 @@
"type": "text",
"groupId": "vF7AD7zSAj7SNvN3gr9N94",
"content": {
"html": "<div>Perfect!</div>",
"richText": [{ "type": "p", "children": [{ "text": "Perfect!" }] }],
"plainText": "Perfect!"
"richText": [{ "type": "p", "children": [{ "text": "Perfect!" }] }]
}
},
{
@@ -257,14 +243,12 @@
"type": "text",
"groupId": "vF7AD7zSAj7SNvN3gr9N94",
"content": {
"html": "<div>We&#x27;ll get back to you at {{Email}}</div>",
"richText": [
{
"type": "p",
"children": [{ "text": "We'll get back to you at {{Email}}" }]
}
],
"plainText": "We'll get back to you at {{Email}}"
]
},
"outgoingEdgeId": "r2zwZYe33EdggUeG9Lmi3R"
}

View File

@@ -46,11 +46,9 @@
"groupId": "4H8ucvLjTiQ7sAyB23Huka",
"type": "text",
"content": {
"html": "<div>What&#x27;s your name?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "What's your name?" }] }
],
"plainText": "What's your name?"
]
}
},
{

View File

@@ -64,11 +64,9 @@
"groupId": "ih574JsgYCSSt3t77DH9gp",
"type": "text",
"content": {
"html": "<div>I love burgers!</div>",
"richText": [
{ "type": "p", "children": [{ "text": "I love burgers!" }] }
],
"plainText": "I love burgers!"
]
}
}
]
@@ -83,9 +81,7 @@
"groupId": "5bMwu6Wv79avgdz3TKjVXr",
"type": "text",
"content": {
"html": "<div>Cool!</div>",
"richText": [{ "type": "p", "children": [{ "text": "Cool!" }] }],
"plainText": "Cool!"
"richText": [{ "type": "p", "children": [{ "text": "Cool!" }] }]
}
}
]

View File

@@ -28,9 +28,7 @@
"id": "swUB2pSmvcv3NC7ySzskRpL",
"type": "text",
"content": {
"html": "<div>Ready?</div>",
"richText": [{ "type": "p", "children": [{ "text": "Ready?" }] }],
"plainText": "Ready?"
"richText": [{ "type": "p", "children": [{ "text": "Ready?" }] }]
},
"groupId": "6Dj1i7LeM3qXg5SKMhMyo1"
},
@@ -60,9 +58,7 @@
"id": "cl4vdo1fz0008396nolxr0yln",
"type": "text",
"content": {
"html": "<div>Cool go</div>",
"richText": [{ "type": "p", "children": [{ "text": "Cool go" }] }],
"plainText": "Cool go"
"richText": [{ "type": "p", "children": [{ "text": "Cool go" }] }]
},
"groupId": "2TR5xAQobKAg8hbArfh5br"
},
@@ -94,9 +90,7 @@
"groupId": "cl4vdu8nn00023f6l6ptvimhw",
"type": "text",
"content": {
"html": "<div>Cool go</div>",
"richText": [{ "type": "p", "children": [{ "text": "Cool go" }] }],
"plainText": "Cool go"
"richText": [{ "type": "p", "children": [{ "text": "Cool go" }] }]
}
},
{