Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use embedded options and values for TembaSelect #895

Merged
merged 7 commits into from
Aug 4, 2020

Conversation

ericnewcomer
Copy link
Member

Fixes #890

@codecov
Copy link

codecov bot commented Aug 4, 2020

Codecov Report

Merging #895 into master will decrease coverage by 0.03%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #895      +/-   ##
==========================================
- Coverage   64.04%   64.01%   -0.04%     
==========================================
  Files         178      178              
  Lines        6912     6914       +2     
  Branches     1621     1621              
==========================================
- Hits         4427     4426       -1     
- Misses       1919     1923       +4     
+ Partials      566      565       -1     
Impacted Files Coverage Δ
src/components/flow/routers/case/CaseElement.tsx 53.24% <ø> (ø)
...nents/flow/routers/classify/ClassifyRouterForm.tsx 0.00% <0.00%> (ø)
src/components/form/select/SelectElement.tsx 100.00% <ø> (ø)
src/components/nodeeditor/TypeList.tsx 77.77% <ø> (ø)
src/temba/TembaSelect.tsx 72.72% <100.00%> (-7.92%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aed0579...c4b47c0. Read the comment docs.

@ericnewcomer ericnewcomer merged commit 78775c9 into master Aug 4, 2020
@ericnewcomer ericnewcomer deleted the temba-select-embed branch August 4, 2020 22:05
@@ -679,102 +553,11 @@ exports[`RandomRouterForm should remove exits when shrinking 1`] = `
>
<temba-select
data-testid="temba_select_type"
name="type"
options="[{\\"name\\":\\"Send the contact a message\\",\\"value\\":\\"send_msg\\"},{\\"name\\":\\"Wait for the contact to respond\\",\\"value\\":\\"wait_for_response\\"},{\\"name\\":\\"Send somebody else a message\\",\\"value\\":\\"send_broadcast\\"},{\\"name\\":\\"Label the incoming message\\",\\"value\\":\\"add_input_labels\\"},{\\"name\\":\\"Add a URN for the contact\\",\\"value\\":\\"add_contact_urn\\"},{\\"name\\":\\"Add the contact to a group\\",\\"value\\":\\"add_contact_groups\\"},{\\"name\\":\\"Remove the contact from a group\\",\\"value\\":\\"remove_contact_groups\\"},{\\"name\\":\\"Update the contact\\",\\"value\\":\\"set_contact_field\\"},{\\"name\\":\\"Send an email\\",\\"value\\":\\"send_email\\"},{\\"name\\":\\"Save a result for this flow\\",\\"value\\":\\"set_run_result\\"},{\\"name\\":\\"Call a webhook\\",\\"value\\":\\"call_webhook\\"},{\\"name\\":\\"Call Zapier\\",\\"value\\":\\"call_resthook\\"},{\\"name\\":\\"Enter another flow\\",\\"value\\":\\"enter_flow\\"},{\\"name\\":\\"Start somebody else in a flow\\",\\"value\\":\\"start_session\\"},{\\"name\\":\\"Open a ticket with a human agent\\",\\"value\\":\\"open_ticket\\"},{\\"name\\":\\"Send the contact airtime\\",\\"value\\":\\"transfer_airtime\\"},{\\"name\\":\\"Split by intent\\",\\"value\\":\\"split_by_intent\\"},{\\"name\\":\\"Split by a custom expression\\",\\"value\\":\\"split_by_expression\\"},{\\"name\\":\\"Split by a contact field\\",\\"value\\":\\"split_by_contact_field\\"},{\\"name\\":\\"Split by a result in the flow\\",\\"value\\":\\"split_by_run_result\\"},{\\"name\\":\\"Split by random chance\\",\\"value\\":\\"split_by_random\\"},{\\"name\\":\\"Split by group membership\\",\\"value\\":\\"split_by_groups\\"},{\\"name\\":\\"Split by URN type\\",\\"value\\":\\"split_by_scheme\\"}]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just lurking, but is this the standard way web components represent this? Feels weird having escaped JSON in an HTML attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split by intent with binary answers classifier buggy interface
2 participants