IDinsight / ask-a-question

Trustworthy question-answering AI plugin for chatbots in the social sector with advanced content performance analysis.
https://ask-a-question.com
BSD 3-Clause "New" or "Revised" License
27 stars 4 forks source link

Dashboard: Page 2 - line chart #347

Closed sidravi1 closed 1 month ago

sidravi1 commented 1 month ago

Reviewer: @suzinyou Estimate: 20mins


Ticket

Fixes: AAQ-711

Description

Goal

Add a line chart for top content

image

Changes

  1. Added new backend endpoint
  2. Refactored Overview page

Future Tasks (optional)

See JIRA. Bunch of stuff TBD for page 2

How has this been tested?

New backend tests You can also run scripts/add_dummy_data_to_db.py to create a bunch of content to test the dashboard

To-do before merge (optional)

Checklist

Fill with x for completed.

(Delete any items below that are not relevant)

sidravi1 commented 1 month ago

Is it expected to have one item with a solid line and the rest in dashed? + There are two green dashed lines -- do we want to implement some logic to cycle through or should we do that at some later point?

Also! The difference in line weight between the Solid Blue vs. rest made me think they were highlight-able 🤔 Should we keep the line weights consistent?

Both of these are good ideas! I'll fix and then merge.