StateVoicesNational / Spoke

mass-contact text/SMS distribution tool
Other
463 stars 402 forks source link

Feature Request: Treat all canned responses as trackable survey questions #2149

Open ErikKirkstein opened 2 years ago

ErikKirkstein commented 2 years ago

Problem Canned responses sent by texters not recorded in stats panel like Interactions responses

Solution Treat all canned responses as trackable survey questions (Interactions), BUT keep the Interactions and Canned Responses menu separate

Context Add any other context or screenshots about the feature request here.

Arique1104 commented 2 years ago

@ErikKirkstein, in a data export, do you want all the canned responses to be tracked the way survey questions are? Or are you just trying to see them on the stats page?

@ibrand and I are reviewing some of the issues to see what are some low-hanging fruit for our Industry Experience folks.

ErikKirkstein commented 2 years ago

I think both would be ideal, but stats page is a priority.

On Thu, Apr 14, 2022 at 11:10 AM Arique @.***> wrote:

@ErikKirkstein https://github.com/ErikKirkstein, in a data export, do you want all the canned responses to be tracked the way survey questions are? Or are you just trying to see them on the stats page?

@ibrand https://github.com/ibrand and I are reviewing some of the issues to see what are some low-hanging fruit for our Industry Experience folks.

— Reply to this email directly, view it on GitHub https://github.com/MoveOnOrg/Spoke/issues/2149#issuecomment-1099350828, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHVHK7P6VZ22QG3ANF6LLVLVFA7OJANCNFSM5SWK6ZFA . You are receiving this because you were mentioned.Message ID: @.***>

-- Erik Kirkstein he/him/his Director of Mobile Fundraising, MoveOn @.***

crayolakat commented 2 years ago

This feature would probably entail adding a campaign_contact_id column to the canned response schema. Adding this column is a high-priority for MoveOn since it would improve performance of queries by removing the need for text matching when trying to find sent canned responses in a campaign

yosoynatebrown commented 2 years ago

In AdminCampaignStats.jsx, the stats seem to come from props -> data -> campaign object with interaction steps, stats, other information. AdminCampaignStats.jsx called on Line 71 of routes.jsx. Looking into built-in route and index route component to determine how campaign id route calls up the properties of the campaign stats component. As far as we can tell, Node is providing this data.

Arique1104 commented 2 years ago

Co-Meeting w/ @crayolakat

For adding campaign_contact_id to the canned responses schema will need to update some additional files.

Hint: Look for how campaign contact id is on the question response schema and add it to the canned response schema in a similar way.

yosoynatebrown commented 2 years ago

Chart.jsx is where the pie chart on the AdminCampaignStats.jsx component is coming from. It imports a Pie component from 'react-chartjs-2' package. Presumably we'll use the same Pie component, or at least the same package, for any canned response stats we choose to display.

Line 124 of AdminCampaignStats.jsx is where the box containing the response count (to the top left of the pie chart) comes from, which could also be useful for totaling canned responses.

yosoynatebrown commented 2 years ago

In order to track every time a canned response is sent, Kathy and I added a canned_response_send table on the wip_nate_chuck_canned_response_stats branch. We still need the functionality to actually create a new canned_response_send in the database when a canned response is clicked. Once that's in place, we can count up all the canned_response_sends associated with a certain canned_response id, and display the send count of that canned response on the AdminCampaignStats.jsx page.

yosoynatebrown commented 2 years ago

Work so far can be found on this branch.

ErikKirkstein commented 1 year ago

thanks for these updates!

On Mon, May 16, 2022 at 6:40 PM Nate Brown @.***> wrote:

Work so far can be found here: https://github.com/MoveOnOrg/Spoke/tree/wip_nate_chuck_canned_response_stats

— Reply to this email directly, view it on GitHub https://github.com/MoveOnOrg/Spoke/issues/2149#issuecomment-1128243042, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHVHK7K23ZMLOFYJPXFO2ITVKLMG5ANCNFSM5SWK6ZFA . You are receiving this because you were mentioned.Message ID: @.***>

-- Erik Kirkstein he/him/his Director of Mobile Fundraising, MoveOn @.***