glific-frontend
glific-frontend copied to clipboard
HSM templates: Show the category and quality rating of template on the list page
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:
- Go to 'templates' in 'Quick tools'
- Observe that the list page shows "title", "body", "status", and "actions"
- Go to "edit" template
- 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 of the list page
screenshot of the approved template. observe category field which does not show the category of the message
Exmaple image from gupshup platform showing the quality rating
Additional Context Issue raised based on request from KEF
Pick this when working on the new designs for applying HSM template
here are the designs
@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
@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?
cc- @AkhileshNegi
@AmishaBisht we want to show only the category the template is approved under on the front end.