-
Notifications
You must be signed in to change notification settings - Fork 122
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
feat(metric): Metric visualization #1658
Merged
Merged
Changes from 23 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
0b3265e
Basic chart template
markov00 0c2357a
feat(new_chart): metric
markov00 2b27347
Merge branch 'master' into single_metric
markov00 7060f59
test: add vrt test for dark mode and other config
markov00 d939d4e
test: add screnshots for added VRTs
markov00 51e5977
Merge branch 'master' into single_metric
markov00 be80e67
fix: run prettier on added scss
markov00 5dc1fcf
Merge branch 'master' into single_metric
markov00 bb06992
fix: use Metric type instead of Goal
markov00 8768f0f
refactor: DRY getSpecs method
markov00 4e72633
fix: empty description for now
markov00 e538ac0
refactor: rename style barBg to barBackground
markov00 bc406cf
refactor: simplify Metric component generation
markov00 e9842b4
docs: update APIs
markov00 8777acd
style: align sizes to BEM
markov00 ea28f38
style: use 8px margin
markov00 2213696
refactor: use an explicit min, max domain
markov00 14805b6
test: uprate VRT
markov00 84f9802
test: update VRTs
markov00 c70c557
Merge branch 'master' into single_metric
markov00 a0df3bc
a11y: improve a11y
markov00 897a664
fix: prettier...
markov00 5d398b4
refactor: moved and improved the resposivness of the chart
markov00 fc03e21
test: create single metric and grid stories
markov00 3c080b1
test: update VRTs
markov00 6d011a8
api: update doc
markov00 fc91ca4
feat: shape type and extra in storybook
markov00 b2abab6
Update vrts
markov00 4784459
fix: show full color when progress is none
markov00 b34deef
refactor: simplified specs and use progress bar direction only for pr…
markov00 cfd1e3b
test: update VRTs
markov00 55da629
fix: expose TrendShape as enum
markov00 5f57e2b
refactor: less noise on chart state
markov00 031a232
refactor: find ranges with single expression
markov00 b09c05f
Merge branch 'master' into single_metric
markov00 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file modified
BIN
-35.3 KB
(27%)
...sual-tests-for-all-stories-metric-alpha-basic-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+51.6 KB
...isual-tests-for-all-stories-metric-alpha-grid-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.95 KB
(110%)
.../metric-stories-test-ts-metric-should-render-horizontal-progress-bar-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.86 KB
(110%)
...es-test-ts-metric-should-render-horizontal-progress-bar-in-dark-mode-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+59 Bytes
(100%)
...pshots__/metric-stories-test-ts-metric-should-render-no-progress-bar-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+54 Bytes
(100%)
...ic-stories-test-ts-metric-should-render-no-progress-bar-in-dark-mode-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.07 KB
(110%)
...ries-test-ts-metric-should-render-vertical-progress-bar-in-dark-mode-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can
MetricSpec
be generic on the use case? Ternaries have some extra cost compared to generics. Also, why do we need to admitundefined
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MetricSpec
with generic: with the current config no. Because you can mix a simple metric with a static background color with one with a trend and with another with a progress bar.why
undefined
because we allow gaps between metrics in a row/column.