Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement user visits dashboard #463

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

implement user visits dashboard #463

wants to merge 1 commit into from

Conversation

sravfeyn
Copy link
Member

Product Description

This implements dashboard specced here https://lucid.app/lucidchart/7e050b6b-5faa-4467-a8b6-e39a6ede58ee/edit?invitationId=inv_df6a7fcf-773d-496a-84e1-8bbf9a7b3832&page=0_0#

Screenshot 2025-01-13 at 8 37 27 AM

Technical Summary

UserVisit data is fetched whenever filters (rendered by django-filters) are changed, the event is detected by alpinejs change hook. Charts are initialised once at beginning, whenever data changes alpinejs updates the data for the charts.

Safety Assurance

Safety story

Tested locally and on staging environments.

Automated test coverage

QA Plan

Not planning for a QA, but Rama is going to verify on staging.

Labels & Review

  • The set of people pinged as reviewers is appropriate for the level of risk of the change

@sravfeyn sravfeyn requested a review from calellowitz January 13, 2025 03:44
{% load crispy_forms_tags %}
{% block javascript %}
{{ block.super }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/5.4.3/echarts.min.js"></script>

Check warning

Code scanning / CodeQL

Inclusion of functionality from an untrusted source Medium

Script loaded from content delivery network with no integrity check.
{% load crispy_forms_tags %}
{% block javascript %}
{{ block.super }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/5.4.3/echarts.min.js"></script>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be added as a local dependency?

I'm also interested to know how you chose this library vs the others out there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of the main requirements for this dashboard is to be able to customize the appearance to a high degree (focused on external demos), which this library is capable of. It has theme builder using which its possible to change a lot of styling. It's also used by Superset and so there's lot of parity in terms of being able to create whatever charts that are possible to build on superset (which the project team uses to build various charts/dashboards currently for internal use)

Shouldn't this be added as a local dependency?

Yes, I will modify.

@sravfeyn
Copy link
Member Author

@calellowitz Can I get review on this please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants