Skip to content

Commit

Permalink
Merge pull request #7 from weni-ai/feature/unnnic-textarea-migration
Browse files Browse the repository at this point in the history
migrated unnnic textarea component
  • Loading branch information
cristiantela authored May 12, 2023
2 parents a2bef17 + 172a447 commit bc80751
Show file tree
Hide file tree
Showing 22 changed files with 943 additions and 757 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,20 @@ exports[`AddURNForm renders 1`] = `
class="path"
>
<div
class="ele"
data-use-vue-component-wrap=""
style="all: unset;"
>
<div
class="wrapper normal"
class="unnnic-text-area sm normal"
data-passed-props="[object Object]"
data-v-a95e6368=""
>
<input
data-testid="URN"
name="URN"
placeholder="Enter the URN value"
value="+12065551212"
<!---->
<textarea
data-v-a95e6368=""
/>
<!---->
<!---->
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,20 @@ exports[`KeyLocalizationForm removes translations 1`] = `
</div>
</div>
<div
class="ele"
data-use-vue-component-wrap=""
style="all: unset;"
>
<div
class="wrapper normal"
class="unnnic-text-area sm normal"
data-passed-props="[object Object]"
data-v-a95e6368=""
>
<input
data-testid="Subject"
name="Subject"
placeholder="Spanish Translation"
value="hola"
<!---->
<textarea
data-v-a95e6368=""
/>
<!---->
<!---->
</div>
</div>
</div>
Expand Down Expand Up @@ -165,17 +168,20 @@ exports[`KeyLocalizationForm renders send email 1`] = `
</div>
</div>
<div
class="ele"
data-use-vue-component-wrap=""
style="all: unset;"
>
<div
class="wrapper normal"
class="unnnic-text-area sm normal"
data-passed-props="[object Object]"
data-v-a95e6368=""
>
<input
data-testid="Subject"
name="Subject"
placeholder="English Translation"
value=""
<!---->
<textarea
data-v-a95e6368=""
/>
<!---->
<!---->
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class SendBroadcastForm extends React.Component<
<p />
<TextInputElement
name={i18n.t('forms.message', 'Message')}
showLabel={false}
showLabel={true}
count={Count.SMS}
onChange={this.handleMessageUpdate}
entry={this.state.message}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ exports[`SendBroadcastForm render should render an empty form with no action 2`]
focus={true}
name="Message"
onChange={[Function]}
showLabel={false}
showLabel={true}
textarea={true}
/>
</Dialog>
Expand Down Expand Up @@ -177,7 +177,7 @@ exports[`SendBroadcastForm render should render self, children with base props 1
focus={true}
name="Message"
onChange={[Function]}
showLabel={false}
showLabel={true}
textarea={true}
/>
</Dialog>
Expand Down
2 changes: 1 addition & 1 deletion src/components/flow/actions/sendemail/SendEmailForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default class SendEmailForm extends React.Component<ActionFormProps, Send
<TextInputElement
__className={styles.message}
name={i18n.t('forms.message', 'Message')}
showLabel={false}
showLabel={true}
onChange={this.handleBodyChanged}
entry={this.state.body}
autocomplete={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ exports[`SendEmailForm render should render 1`] = `
}
name="Message"
onChange={[Function]}
showLabel={false}
showLabel={true}
textarea={true}
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/flow/actions/sendmsg/SendMsgForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export default class SendMsgForm extends React.Component<ActionFormProps, SendMs
<TypeList __className="" initialType={typeConfig} onChange={this.props.onTypeChange} />
<TextInputElement
name={i18n.t('forms.message', 'Message')}
showLabel={false}
showLabel={true}
counter=".sms-counter"
onChange={this.handleMessageUpdate}
entry={this.state.message}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ exports[`SendMsgForm render should render 1`] = `
focus={true}
name="Message"
onChange={[Function]}
showLabel={false}
showLabel={true}
textarea={true}
/>
<temba-charcount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,17 +200,20 @@ exports[`UpdateContactForm should render field 1`] = `
class="value"
>
<div
class="ele"
data-use-vue-component-wrap=""
style="all: unset;"
>
<div
class="wrapper normal"
class="unnnic-text-area sm normal"
data-passed-props="[object Object]"
data-v-a95e6368=""
>
<input
data-testid="Field Value"
name="Field Value"
placeholder=""
value="25"
<!---->
<textarea
data-v-a95e6368=""
/>
<!---->
<!---->
</div>
</div>
</div>
Expand Down Expand Up @@ -443,17 +446,20 @@ exports[`UpdateContactForm should render name 1`] = `
class="value"
>
<div
class="ele"
data-use-vue-component-wrap=""
style="all: unset;"
>
<div
class="wrapper normal"
class="unnnic-text-area sm normal"
data-passed-props="[object Object]"
data-v-a95e6368=""
>
<input
data-testid="Name"
name="Name"
placeholder="Enter a new name for the contact"
value="Jane Goodall"
<!---->
<textarea
data-v-a95e6368=""
/>
<!---->
<!---->
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit bc80751

Please sign in to comment.