glific-frontend icon indicating copy to clipboard operation
glific-frontend copied to clipboard

HSM templates: Show the category and quality rating of template on the list page

Open mahajantejas opened this issue 9 months ago • 5 comments

Describe the bug The category of the template approved is not displayed on the list page. The category is not visible even inside the "edit template" page after the template is approved.

The category of the approved template is important for the NGO to see, as it directly affects the cost of usage.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'templates' in 'Quick tools'
  2. Observe that the list page shows "title", "body", "status", and "actions"
  3. Go to "edit" template
  4. See inside the template page that the category field does not display the category name

Expected behavior Show the category of the template on the list page. Show the quality rating of the HSM template as it is visible on the gupshup platform, and qualty rating directly affects the delivery rates of the tempaltes.

Screenshots

Screenshot 2024-05-14 at 2 58 35 PM

screenshot of the list page

Screenshot 2024-05-14 at 3 02 50 PM

screenshot of the approved template. observe category field which does not show the category of the message

Screenshot 2024-05-17 at 3 46 57 PM

Exmaple image from gupshup platform showing the quality rating

Additional Context Issue raised based on request from KEF

mahajantejas avatar May 14 '24 09:05 mahajantejas

Pick this when working on the new designs for applying HSM template

mahajantejas avatar May 17 '24 06:05 mahajantejas

here are the designs

akanshaaa19 avatar Jun 03 '24 08:06 akanshaaa19

@mahajantejas gupshup doesn't have an API that provides quality ratings for HSM templates right now. We can address that part once gupshup makes such an API available cc:- @AkhileshNegi

AmishaBisht avatar Jul 01 '24 12:07 AmishaBisht

@mahajantejas currently, the category we are getting from the backend is the updated one, meaning the category that meta has changed the template into the final one. Therefore, we can directly show that category on the frontend. However, some templates whose category meta changed also have the old category (the category with which the orgs applied). So, do we want to show the old category or store the old category as well? Screenshot 2024-07-03 at 6 04 47 PM cc- @AkhileshNegi

AmishaBisht avatar Jul 03 '24 12:07 AmishaBisht

@AmishaBisht we want to show only the category the template is approved under on the front end.

mahajantejas avatar Jul 03 '24 12:07 mahajantejas