-
Notifications
You must be signed in to change notification settings - Fork 16
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
TimeSeriesWidget support for multiple time series. #767
TimeSeriesWidget support for multiple time series. #767
Conversation
This pull request has been linked to Shortcut Story #336297: C4R: Support new fields model for timeseries with multiple agg/splitByCategory/fidelity. |
4b8bccd
to
f899350
Compare
packages/react-ui/src/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.js
Outdated
Show resolved
Hide resolved
Visit the preview URL for this PR (updated for commit 6df36a3): https://cartodb-fb-storybook-react-dev--pr767-feature-sc-33629-gu0oee4n.web.app (expires Mon, 09 Oct 2023 08:46:11 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 517cc4d31d7e09cf277774e034094b67c301cd4c |
This pull request has been linked to Shortcut Story #33629: Regenerar excels. |
3be3b61
to
07e6e1f
Compare
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.
lgtm
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.
in general, it looks good 👍
packages/react-ui/src/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.js
Outdated
Show resolved
Hide resolved
); | ||
} | ||
|
||
function ClockIcon() { |
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.
maybe it's worth considering to move those icons to separate files?
packages/react-ui/src/widgets/TimeSeriesWidgetUI/hooks/useTimeSeriesInteractivity.js
Outdated
Show resolved
Hide resolved
@@ -8,13 +8,14 @@ import { useMemo } from 'react'; | |||
* @param {object} props | |||
* @param {string} props.dataSource - ID of the source to get the filters from. | |||
* @param {string} props.id - ID of the widget that applied the filter. | |||
* @param {string} props.column - name of column of this widget. | |||
* @param {string=} props.column - name of column of this widget. |
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.
do. you need this =
? what does it mean?
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.
it's means optional in JSDoc >> https://stackoverflow.com/questions/5873927/how-to-indicate-param-is-optional-using-inline-jsdoc
dc6ab25
to
1e14024
Compare
f6dd1b3
to
7660de0
Compare
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.
LGTM, just consider the comment about color utils files
packages/react-ui/src/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.js
Outdated
Show resolved
Hide resolved
packages/react-ui/src/widgets/TimeSeriesWidgetUI/components/TimeSeriesLayout.js
Outdated
Show resolved
Hide resolved
flexShrink: 0, | ||
marginLeft: 0, | ||
paddingLeft: theme.spacing(1), | ||
[`@container (max-width: ${BREAKPOINTS.XS}px)`]: { |
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.
this fails in JSDOM with Error: Could not parse CSS stylesheet
abc4908
to
deae818
Compare
479cc6c
to
6df36a3
Compare
Description
Shortcut:
TimeSeriesWidget support for multiple time series. IN particular
splitByCategory
modesplitByCategory
modeType of change
Acceptance
Please describe how to validate the feature or fix
If feature deals with theme / UI or internal elements used also in CARTO 3, please also add a note on how to do acceptance on that part.
Basic checklist