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

Feature: dashboard analytics #16

Merged
merged 10 commits into from
Dec 27, 2019
Merged

Conversation

rowanlittlefield
Copy link
Owner

This PR adds the DashboardArticleAnalytics component. Other changes include:

  • Updating ARTICLES_QUERY to DASHBOARD_ARTICLES_QUERY, which includes the articles operation and the mostViewed operation.
  • Updating Dashboard to transition (using Vue transitions) between displaying DashboardLogo and DashboardArticleAnalytics + the articles list upon initial navigation to the Dashboard.

Note: There is a bug in which tests that import .gql files are failing. I am not entirely sure of the cause of the bug, but it may be related to kulshekhar/ts-jest#815 or jestjs/jest#7868. The initial bug seems to be fixable by switching from using vue-jest to process Vue files in jest to using jest-vue-preprocessor. Two new bugs seem to occur after making this change, described in these issues:

The solution in the first issue seems to solve the first bug. I have not tried the proposed solution to the second bug. I intend to address these bugs in a follow up PR since they affect unrelated functionality in this PR and the tests would pass if jest was configured correctly.

@rowanlittlefield rowanlittlefield added the Feature Extend functionality of application label Dec 27, 2019
@rowanlittlefield rowanlittlefield merged commit 9978acc into develop Dec 27, 2019
@rowanlittlefield rowanlittlefield deleted the feature/dashboard-analytics branch December 27, 2019 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Extend functionality of application
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant