File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ const convertedData = computed(() => {
8282 return addEvaluationFlags (entries , props .versionSubEvents ).toReversed ()
8383})
8484
85- const versions = computed (() => convertedData .value .map (d => d .name . split ( ' @ ' )[ 1 ] ?? ' ' ))
85+ const versions = computed (() => convertedData .value .map (d => d .version ))
8686
8787const activeVersionIndex = computed (() => {
8888 if (! activeVersion .value ) return - 1
Original file line number Diff line number Diff line change @@ -755,7 +755,10 @@ export function createAltTextForTimelineChart({
755755
756756 const firstValue = config . metric === 'totalSize' ? first ?. totalSize : first ?. dependencyCount
757757 const lastValue = config . metric === 'totalSize' ? last ?. totalSize : last ?. dependencyCount
758- const overall_progress_percentage = Math . round ( ( ( lastValue ?? 0 ) / ( firstValue ?? 1 ) - 1 ) * 100 )
758+ const baseline = firstValue ?? 0
759+ const current = lastValue ?? baseline
760+ const overall_progress_percentage =
761+ baseline > 0 ? Math . round ( ( ( current - baseline ) / baseline ) * 100 ) : 0
759762
760763 const version_events = withEvents
761764 . map ( item =>
You can’t perform that action at this time.
0 commit comments