-
Notifications
You must be signed in to change notification settings - Fork 7
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
Waitp 1316 Chart table #4720
Waitp 1316 Chart table #4720
Conversation
(dashboard: DashboardsResponse) => dashboard.dashboardName === dashboardName, | ||
) || dashboards[0]; | ||
data?.find((dashboard: DashboardsResponse) => dashboard.dashboardName === dashboardName) || | ||
data[0]; |
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 was because I was getting some weird TS errors, and this fixed it
${({ theme }) => { | ||
let hexString = theme.palette.text.primary.replace('#', ''); | ||
hexString = hexString.length === 3 ? hexString.replace(/(.)/g, '$1$1') : hexString; | ||
return `#${hexString}33`; |
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 seems a bit clunky to me and maybe a bit fragile too as the primary text color could be 3 digit hex, 6 digit hex or also rgba which is what it is actually by default in the default theme. Maybe we could use lighten instead?
display: flex; | ||
position: relative; | ||
align-content: stretch; | ||
-webkit-box-align: stretch; | ||
align-items: stretch; | ||
height: ${({ $isEnlarged, $hasData }) => { |
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 line is fine- just noticed that webkit selector above which is now redundant.
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.
Nice work. I left a tiny suggestion about the color on the tabs but that's an optional change
* WAITP-1216: tab buttons * WIP * Rename files * rearrange files * Remove unused types * Update Chart.tsx * Fix colors
* WAITP-1216: tab buttons * WIP * Rename files * rearrange files * Remove unused types * Update Chart.tsx * Fix colors
Issue WAITP-1316: Chart table
Changes:
Chart
component to have toggle buttons and table option when enlargedrecharts
containers, to let it be handled byrecharts
Screenshots: