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

Dashboard Pro: support InstantClick and show org analytics #3102

Merged
merged 7 commits into from Jun 12, 2019
Merged

Dashboard Pro: support InstantClick and show org analytics #3102

merged 7 commits into from Jun 12, 2019

Conversation

rhymes
Copy link
Contributor

@rhymes rhymes commented Jun 10, 2019

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Documentation Update

Description

This PR makes the Pro Dashboard work with InstantClick and displays the correct analytics for organizations.

It moves all the code inside functions, removing globals and then loads the "initializer" inside InstantClick change event so that the transition between clicks is smooth.

Right now, if you have your own dashboard and your organization's dashboard, clicking between the two doesn't work. Also, if you go from https://dev.to/dashboard to https://dev.to/dashboard/pro from the internal link you have to refresh the page.

Another thing it does is to display the correct analytics for the organization. Right now we never pass the organization ID to the analytics business logic, which means that the data returned it's always that of the user, not that of the organization the user is looking at.

Added to documentation?

  • docs.dev.to
  • readme
  • no documentation needed

@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Jun 10, 2019
@rhymes rhymes changed the title Dashboard Pro: improvements Dashboard Pro: fix InstantClick transition Jun 10, 2019
@rhymes rhymes changed the title Dashboard Pro: fix InstantClick transition [WIP] Dashboard Pro: fix InstantClick transition Jun 10, 2019
@pr-triage pr-triage bot removed the PR: unreviewed bot applied label for PR's with no review label Jun 10, 2019
@rhymes rhymes changed the title [WIP] Dashboard Pro: fix InstantClick transition [WIP] Dashboard Pro: fix InstantClick transition and show correct analytics Jun 10, 2019
@rhymes rhymes changed the title [WIP] Dashboard Pro: fix InstantClick transition and show correct analytics [WIP] Dashboard Pro: support InstantClick and show correct analytics Jun 10, 2019
@rhymes
Copy link
Contributor Author

rhymes commented Jun 10, 2019

I'm ignoring CC's errors because I don't think fixing them adds value to the code base at this point. They'll probably end up being fixed in the future when we have multiple places where we show analytics

@rhymes rhymes changed the title [WIP] Dashboard Pro: support InstantClick and show correct analytics Dashboard Pro: support InstantClick and show org analytics Jun 10, 2019
@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Jun 10, 2019
@aspittel
Copy link
Contributor

👍 looks great to me!

@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Jun 12, 2019
@benhalpern benhalpern merged commit 6960b89 into forem:master Jun 12, 2019
@pr-triage pr-triage bot added PR: merged bot applied label for PR's that are merged and removed PR: reviewed-approved bot applied label for PR's where reviewer approves changes labels Jun 12, 2019
@rhymes rhymes deleted the rhymes/dashboard-pro-improvements branch June 13, 2019 20:00
Copy link

@Ngawur17 Ngawur17 left a comment

Choose a reason for hiding this comment

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

[removed for apparent spam]

@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: merged bot applied label for PR's that are merged labels Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: reviewed-approved bot applied label for PR's where reviewer approves changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants