upcoming: [DI-20501] - Fix Demo feedbacks and missed changes across ACLP#10851
upcoming: [DI-20501] - Fix Demo feedbacks and missed changes across ACLP#10851jaalah-akamai merged 25 commits intolinode:developfrom
Conversation
| display: _nativeLegend, | ||
| onClick: (e, legendItem) => { | ||
| if (legendItem) { | ||
| handleLegendClick(legendItem.datasetIndex!); |
There was a problem hiding this comment.
FYI, this will strikeout the legend as well on nativelegend click
| const dimension = { | ||
| backgroundColor: color, | ||
| borderColor: '', | ||
| borderColor: color, |
There was a problem hiding this comment.
FYI - pass border color for graphs
| borderColor: '', | ||
| borderColor: color, | ||
| data: seriesDataFormatter(transformedData.values, start, end), | ||
| fill: widgetChartType === 'area' ? true : false, |
There was a problem hiding this comment.
FYI - pass fill based on chart type
| display: _nativeLegend, | ||
| onClick: (_e, legendItem) => { | ||
| if (legendItem && legendItem.datasetIndex) { | ||
| handleLegendClick(legendItem.datasetIndex); // when we click on native legend, also call the handle legend click function |
There was a problem hiding this comment.
FYI - Even on clicking the native legend, make use of handle legend click functionality
|
|
||
| if (label === PAST_7_DAYS) { | ||
| return { unit: 'day', value: 7 }; | ||
| return { unit: 'days', value: 7 }; |
There was a problem hiding this comment.
The metrics API understands days instead of day going forward
packages/manager/src/features/CloudPulse/Overview/GlobalFilters.tsx
Outdated
Show resolved
Hide resolved
| borderColor: '', | ||
| borderColor: color, | ||
| data: seriesDataFormatter(transformedData.values, start, end), | ||
| fill: widgetChartType === 'area' ? true : false, |
There was a problem hiding this comment.
| fill: widgetChartType === 'area' ? true : false, | |
| fill: widgetChartType === 'area', |
There was a problem hiding this comment.
@bnussman-akamai , fixed this comment, please check if it is good now
| ? options | ||
| : queriedResources | ||
| ? queriedResources | ||
| : [], |
There was a problem hiding this comment.
Nit: Would options || queriedResources || [] give us the same here?
There was a problem hiding this comment.
Yes, this will work as well, thanks for the simplification point, have addressed this. Please check if it is good now
|
Coverage Report: ❌ |
| subtitle={subtitle} | ||
| title="" |
There was a problem hiding this comment.
Should the subtitle be made the title instead?
Note: leaving the title blank affects accessibility - when I tested using voiceover on placeholders, the title gets read but the subtitle doesn't
| resources.find((resourceObj) => String(resourceObj.id) === id)?.label ?? | ||
| id ?? | ||
| '' |
There was a problem hiding this comment.
nitpick: for readability, we could switch to having
const resource = resources.find((resourceObj) => String(resourceObj.id) === id);
(could name the const resourceObj instead)
outside of the return statement, and then here, just have
return resource?.label ?? id ?? '';
|
@coliu-akamai , can you please check if it is good now @bnussman-akamai , @jaalah-akamai feel free to look if it is good |
jaalah-akamai
left a comment
There was a problem hiding this comment.
Thanks for making changes
There was a problem hiding this comment.
✅ Fixed Dashboard Select placeholder from Select a Dashboard to Select Dashboard
✅ Fixed striking functionality interchangeably while clicking native legend as well as legend table row.
✅ Enhanced Region Selection component to honor the placeholder prop being passed.
✅ Integrate manual refresh functionality
✅ Fix color for close icon in the CloudPulseResourcesSelection component
✅ Update labels in time duration from Past to Last
Quick note for global refresh - seems like part of the title flickers. I'm unsure if this is an issue or not/or if it's already known, but here's the video in case:
Screen.Recording.2024-09-03.at.1.23.49.PM.mov
Had a couple of other minor nitpicky comments below, but they're non-blocking. Thanks for the changes!
| <CloudPulseLineGraph | ||
| error={ | ||
| status === 'error' | ||
| status === 'error' && error?.[0]?.reason !== jweTokenExpiryError // show the error only if the error is not related to token expiration |
There was a problem hiding this comment.
nitpick: now that error?.[0]?.reason is being used several times here and at lines 356, we could move it to a constant for better readability. Somewhere above, we could have something like const metricsError = error?.[0]?.reason; and then use metricsError here (potentially use a different name that better encompasses what the error is for)
| legend: { | ||
| display: _nativeLegend, | ||
| onClick: (_e, legendItem) => { | ||
| if (legendItem && legendItem.datasetIndex!==undefined) { |
There was a problem hiding this comment.
Can we put spaces around the !==
(eslint complains otherwise)
|
@coliu-akamai , Thanks for the approval, i have fixed those minors. Also the flickering is due to preferences, for which we have a separate PR that is also under review |

Description 📝
Fixed demo feedbacks and missed changes across ACLP
Changes 🔄
Target release date 🗓️
02-09-2024
Preview 📷
Include a screenshot or screen recording of the change
💡 Use
<video src="" />tag when including recordings in table.How to test 🧪
As an Author I have considered 🤔
Check all that apply