Assumes #1062 is complete. The goal of this ticket is to support pulling and substituting the . #1059 will then support the equivalent functionality from crowd_values instead of crowd_keys
Steps
[ ] Add the crowd_key_helper_text to the graphql query made to feed the crowdagg and wfagg functionality (CROWD_VALUES_QUERY, other?)
[ ] For all types of facet types (ie: STRING, DATE_RANGE, DROPDOWN, CHECKBOX, TEXT_EDITOR), allow inserting the helper text in the html via handlebars like functionality. Ideally, allow accepting mailmerge/handlebar styling in the displayName field in island_configs (see sample below)
[ ] add redux/saga support
[ ] Note where refactor opportunities are for consolidating and organizing code for facets/workflow
Sample : "displayName" : "Sample Display Name [span class="mm-tooltip"][u][i class="fa fa-info-circle"][/u][span class="mm-tooltiptext mm-tooltip-tr"]{{crowd_key_helper_text}}[/span]" (note: using ] and [ to avoid html in issue comments here from > and < .
Note the insertion of {{crowd_key_helper_text}} which would replace this with the value from the crowd_key_helper_text field value from the crowd_key table for the crowd_key that matches the the crowd_key that matches the "name" field in the island_config for the facet/agg being built
If no value, no error, just show blank.
Note: the benefit of mailmerge/handlebars is hard coding of helper text of aggs that don't have a crowd_key_helper_text look-up if code is shared. Also opens potential for other field values about crowd_key (like cardinal counts) and re-use of functionality in the crowd_values
If mailmerge/handlebars is not possible, let's discuss alternative approaches with new variables in island_config
Assumes #1062 is complete. The goal of this ticket is to support pulling and substituting the . #1059 will then support the equivalent functionality from crowd_values instead of crowd_keys
Steps
Sample : "displayName" : "Sample Display Name [span class="mm-tooltip"][u][i class="fa fa-info-circle"][/u][span class="mm-tooltiptext mm-tooltip-tr"]{{crowd_key_helper_text}}[/span]" (note: using ] and [ to avoid html in issue comments here from > and < .
Note the insertion of {{crowd_key_helper_text}} which would replace this with the value from the crowd_key_helper_text field value from the crowd_key table for the crowd_key that matches the the crowd_key that matches the "name" field in the island_config for the facet/agg being built
If no value, no error, just show blank.
Note: the benefit of mailmerge/handlebars is hard coding of helper text of aggs that don't have a crowd_key_helper_text look-up if code is shared. Also opens potential for other field values about crowd_key (like cardinal counts) and re-use of functionality in the crowd_values
If mailmerge/handlebars is not possible, let's discuss alternative approaches with new variables in island_config