-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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(releases): add release adoption table to insights #85702
base: master
Are you sure you want to change the base?
Conversation
michellewzhang
commented
Feb 21, 2025
- relates to Create Insights tables that show: Release Adoption & Release Health #84877
- add a release adoption table to frontend/backend & mobile insights
- mostly follows same format as the release health table and reuses the same hook/endpoint


|
||
const currentDate = new Date(release.dateCreated); | ||
const previousDate = | ||
index < releases.length - 1 | ||
? new Date(releases[index + 1]?.dateCreated ?? 0) | ||
: null; | ||
|
||
const lifespan = previousDate | ||
? Math.floor(currentDate.getTime() - previousDate.getTime()) | ||
: undefined; | ||
|
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.
lifespan
is defined (by @ryan953 as the time difference between two releases)
) : ( | ||
'--' | ||
); |
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.
last lifespan in the table is rendered as --
since there's nothing previous to compare it to