Merge pull request #2187 from HarshMN2345/fix-SER-188-Bug-completeness-indicator

This commit is contained in:
Darshan
2025-08-06 12:39:32 +05:30
committed by GitHub
+10 -1
View File
@@ -124,9 +124,18 @@
const progressCard = function getProgressCard() {
if (selectedProject && !hasOnboardingDismissed(selectedProject.$id, $user)) {
const { platforms, pingCount } = selectedProject;
let percentage = 33;
if (platforms.length > 0 && pingCount === 0) {
percentage = 66;
} else if (pingCount > 0) {
percentage = 100;
}
return {
title: 'Get started',
percentage: selectedProject && selectedProject.platforms.length ? 100 : 33
percentage
};
}