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

Add LegendWidget #91

Merged
merged 37 commits into from
Jun 24, 2021
Merged

Add LegendWidget #91

merged 37 commits into from
Jun 24, 2021

Conversation

aaranadev
Copy link
Contributor

@aaranadev aaranadev self-assigned this Feb 9, 2021
@shortcut-integration
Copy link

This pull request has been linked to Clubhouse Story #123846: Layers / Legend component.

@VictorVelarde VictorVelarde self-requested a review March 8, 2021 13:36
@VictorVelarde
Copy link
Contributor

Block until we review the interface definition and how it interacts with underlying deck.gl

src/ui/index.js Outdated Show resolved Hide resolved
@coveralls
Copy link
Collaborator

coveralls commented Apr 28, 2021

Pull Request Test Coverage Report for Build 968974825

  • 98 of 127 (77.17%) changed or added relevant lines in 8 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.7%) to 75.278%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/react-ui/src/widgets/legend/LegendCategories.js 10 11 90.91%
packages/react-ui/src/widgets/legend/LegendIcon.js 7 8 87.5%
packages/react-ui/src/widgets/legend/LegendRamp.js 19 20 95.0%
packages/react-ui/src/widgets/legend/LegendProportion.js 19 21 90.48%
packages/react-ui/src/widgets/legend/LegendWidgetUI.js 20 22 90.91%
packages/react-ui/src/widgets/legend/LegendWrapper.js 11 14 78.57%
packages/react-ui/src/utils/palette.js 7 26 26.92%
Totals Coverage Status
Change from base Build 950500057: -1.7%
Covered Lines: 708
Relevant Lines: 875

💛 - Coveralls

@aaranadev aaranadev marked this pull request as ready for review June 24, 2021 09:16
@aaranadev aaranadev removed the blocked label Jun 24, 2021
Comment on lines +47 to +49
{/* <Tooltip title={'AVG: ' + avg} placement='top' arrow>
<Box className={classes.avg} style={{ bottom: `${avgPerc}%` }} />
</Tooltip> */}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we remove this commented portion?

max = '≥ ' + max;
}

// const avgPerc = (avg / (max + min)) * 100;
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

@VictorVelarde VictorVelarde changed the title Layers / Legend component Add Legend component Jun 24, 2021
@VictorVelarde VictorVelarde changed the title Add Legend component Add LegendWidget Jun 24, 2021
Copy link
Contributor

@VictorVelarde VictorVelarde left a comment

Choose a reason for hiding this comment

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

Nice work. I did a pair of comments and two very small changes, and I'm gonna land the PR, so we can have a new alpha soon

@VictorVelarde VictorVelarde merged commit 58c67f4 into master Jun 24, 2021
@VictorVelarde VictorVelarde deleted the feature/ch123846 branch June 24, 2021 18:30
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.

6 participants