Help Text for Comments
This PR is dependent on my previous Workflow action: Comment Tokens PR, so it should be merged afterwards if everything looks good. https://github.com/DiscipleTools/disciple-tools-theme/pull/2541
@brady-lamansky-gtt thanks for the PR! For context on new PRs, would you be able to also attach a screenshot (or multiple) of the changes?
@brady-lamansky-gtt, Sorry, i mean screenshots of the changed UI or functionality. Like i did here: https://github.com/DiscipleTools/disciple-tools-theme/pull/2541#issuecomment-2293168296 The code changes are easily accessible in the files changes tab.
@corsacca ah I see, that makes sense haha.
When you reach step 3 of creating a workflow, you will see a button for Help Text.
After clicking it, a tab on the right side of the page will be visible that shows all fields that can be referenced through comment tokens (either user select fields or connection fields). It displays the field name & how to reference it.
@cairocoder01 Two things I'm unsure if I did efficiently:
- I replaced the hidden helptext button with the working one on line 1629-1633 of dt-utilities-workflows.js
- I changed the list of fields within the table to be a height of 300px with overflow so that it's scrollable. With the right_column being sticky, many fields went off screen and couldn't be seen. Unsure if 300px is the optimal height
This looks good. @corsacca This is ready from my perspective.
Brilliant. Nice work @brady-lamansky-gtt!