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

[Agency Dashboard] Dashboard UI scaffolding 1/n #146

Merged
merged 7 commits into from
Nov 14, 2022
Merged

Conversation

terryttsai
Copy link
Contributor

@terryttsai terryttsai commented Nov 10, 2022

Description of the change

Screen Shot 2022-11-11 at 1 37 12 PM

Implemented the new left side panel and all metrics button + header bar. Gave the buttons a hover state.

There's a tiny unfinished modal for the about page, that will be fleshed out in a later PR!

To follow up in later PRs:

  • Rearrange the metric dropdowns + insights
  • Add modals:
    • About page
    • Learn More
    • All Metrics
  • Responsive layout
  • Mobile filters view

Type of change

All pull requests must have at least one of the following labels applied (otherwise the PR will fail):

Label Description
Type: Bug non-breaking change that fixes an issue
Type: Feature non-breaking change that adds functionality
Type: Breaking Change fix or feature that would cause existing functionality to not work as expected
Type: Non-breaking refactor change addresses some tech debt item or prepares for a later change, but does not change functionality
Type: Configuration Change adjusts configuration to achieve some end related to functionality, development, performance, or security
Type: Dependency Upgrade upgrades a project dependency - these changes are not included in release notes

Related issues

Closes #XXXX

Checklists

Development

This box MUST be checked by the submitter prior to merging:

  • Double- and triple-checked that there is no Personally Identifiable Information (PII) being mistakenly added in this pull request

These boxes should be checked by the submitter prior to merging:

  • Tests have been written to cover the code changed/added as part of this pull request

Code review

These boxes should be checked by reviewers prior to merging:

  • This pull request has a descriptive title and information useful to a reviewer
  • This pull request has been moved out of a Draft state, has no "Work In Progress" label, and has assigned reviewers
  • Potential security implications or infrastructural changes have been considered, if relevant

@terryttsai terryttsai requested a review from a team November 10, 2022 00:05
Copy link
Collaborator

@lilidworkin lilidworkin left a comment

Choose a reason for hiding this comment

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

@terryttsai exciting to see this! Can you add some screenshots and/or videos to the PR description? Makes it a lot easier for me to review when I can cross reference the code with something visual

@@ -133,6 +133,15 @@ class DatapointsStore extends BaseDatapointsStore {
runInAction(() => {
this.loading = false;
});

const response2 = (await request({
Copy link
Collaborator

Choose a reason for hiding this comment

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

We actually don't need the published_datapoints endpoint anymore, do we? Want to remove the code here and also from the backend?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes sorry, the PR isn't ready for review yet so hadn't removed this yet!

`;

export const AllMetricsButton = ({
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit, does this belong in a styles file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question, I think for now I'll leave these out of the styles file!

margin-left: 8px;
`;

export const MetricOverviewActionShareButton = () => (
Copy link
Collaborator

Choose a reason for hiding this comment

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

similar, do these belong in a styles file? not sure what best practice is

@terryttsai
Copy link
Contributor Author

Sorry, I meant to open this as a draft PR! Videos will be coming soon. Just opening the PR for transparency, though I was planning on adding the modals before removing the WIP and asking for review

@terryttsai
Copy link
Contributor Author

Though I was also thinking of keeping this as a small PR and adding the modals in a follow-up

@lilidworkin
Copy link
Collaborator

Sorry, I meant to open this as a draft PR! Videos will be coming soon. Just opening the PR for transparency, though I was planning on adding the modals before removing the WIP and asking for review

Got it! No worries, sorry for jumping the gun on review :)

Though I was also thinking of keeping this as a small PR and adding the modals in a follow-up

That actually makes sense to me! You know how I love small / incremental PRs :)

@terryttsai terryttsai changed the title [WIP][Agency Dashboard] Dashboard UI scaffolding [Agency Dashboard] Dashboard UI scaffolding 1/n Nov 11, 2022
@terryttsai terryttsai requested a review from a team November 11, 2022 21:39
@terryttsai
Copy link
Contributor Author

In that spirit, I'm keeping this PR small and as-is, will be putting new work following up this PR!

Copy link
Collaborator

@lilidworkin lilidworkin left a comment

Choose a reason for hiding this comment

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

Love it! +1 for small/incremental PRs!

Copy link
Contributor

@mxosman mxosman left a comment

Choose a reason for hiding this comment

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

Code LGTM, Terry! I wasn't able to run it for some reason - I ran yarn install and yarn run dev but the site doesn't load on localhost:3000 nor localhost:3001. Wondering if it's just me/something in my local env.

@terryttsai
Copy link
Contributor Author

What's the error you're getting? does yarn dev compile successfully?

@mxosman
Copy link
Contributor

mxosman commented Nov 14, 2022

What's the error you're getting? does yarn dev compile successfully?

No errors at all actually - and everything compiles successfully - just the "This site can’t be reached. localhost refused to connect." screen.

@terryttsai
Copy link
Contributor Author

Even across different browsers? I was having that issue on chrome until I realized I had network disabled in the chrome debugging tools...

@terryttsai terryttsai merged commit aa7da03 into main Nov 14, 2022
@terryttsai terryttsai deleted the terry/new-dashboard branch November 14, 2022 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants