Spaces:
Running
Running
Manual changes saved
Browse files- scorecard.html +21 -5
scorecard.html
CHANGED
|
@@ -185,9 +185,12 @@
|
|
| 185 |
];
|
| 186 |
|
| 187 |
const skillMapping = {
|
| 188 |
-
'PAIN & METRICS': '#qualify-meddicc',
|
| 189 |
-
'
|
| 190 |
-
'
|
|
|
|
|
|
|
|
|
|
| 191 |
};
|
| 192 |
const scoreMessages = { 'Closing': { 14: "Low Probability. More qualification of Why Now? and Why Us? required.", 39: "Medium Probability. More qualification Why Now? to quantify the business case.", 60: "High Probability. Focus on Why Us? loop in Product teams, set traps, kill blockers.", 101: "Commit. Be cautious. Expect last minute blockers, seek Scaleway Executive Sponsors." }, 'Early Stage': { 14: "Low Potential. More discovery needed to find a compelling business pain.", 39: "Medium Potential. Good start. Focus on building the business case and identifying a Champion.", 60: "High Potential. Strong signal. Engage more stakeholders and define success criteria for an an evaluation.", 101: "Very High Potential. Excellent qualification. Prepare to move to a formal evaluation or PoC." }, 'Evaluation / PoC': { 14: "Low Confidence. This deal is not ready for an evaluation. Re-qualify the business case.", 39: "Medium Confidence. The business case is weak. Ensure the PoC has clear, agreed-upon success metrics.", 60: "High Confidence. The PoC is well-positioned. Focus on technical validation and neutralizing blockers.", 101: "Very High Confidence. A successful evaluation should lead to a close. Start planning the paper process." } };
|
| 193 |
|
|
@@ -272,8 +275,8 @@
|
|
| 272 |
let recommendationHTML = '';
|
| 273 |
if (answer.score < 5) {
|
| 274 |
let advice = industrySpecificAdvice[app.state.industry]?.[answer.section] || summarySnippets[answer.section] || 'Focus on improving this area.';
|
| 275 |
-
const link =
|
| 276 |
-
recommendationHTML = `<div class="mt-3 pt-3 border-t border-purple-400 bg-red-800/20 p-3 rounded-b-lg -m-4 mt-4"><p class="text-sm font-medium text-red-200"><strong>Recommendation:</strong> ${advice} <a href="${link}" class="font-bold underline hover:text-red-100">learn more</a></p></div>`;
|
| 277 |
}
|
| 278 |
const scoreRatio = answer.score / 9;
|
| 279 |
let scoreColor = 'text-red-300';
|
|
@@ -300,6 +303,19 @@
|
|
| 300 |
summaryHTML += `<div class="mt-4 pt-4 border-t border-purple-400"><p class="text-base font-medium text-purple-200">${strategicMessage}</p></div>`;
|
| 301 |
app.ui.executiveSummary.innerHTML = summaryHTML;
|
| 302 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 303 |
});
|
| 304 |
</script>
|
| 305 |
|
|
|
|
| 185 |
];
|
| 186 |
|
| 187 |
const skillMapping = {
|
| 188 |
+
'PAIN & METRICS': '#qualify-meddicc',
|
| 189 |
+
'CHAMPION & EB': '#stakeholder-mapping',
|
| 190 |
+
'DECISION PROCESS & CRITERIA': '#qualify-meddicc',
|
| 191 |
+
'COMPETITION & BLOCKERS': '#evaluation-justification',
|
| 192 |
+
'PAPER PROCESS': '#negotiation',
|
| 193 |
+
'IMPLEMENTATION PLAN': '#evaluation-justification'
|
| 194 |
};
|
| 195 |
const scoreMessages = { 'Closing': { 14: "Low Probability. More qualification of Why Now? and Why Us? required.", 39: "Medium Probability. More qualification Why Now? to quantify the business case.", 60: "High Probability. Focus on Why Us? loop in Product teams, set traps, kill blockers.", 101: "Commit. Be cautious. Expect last minute blockers, seek Scaleway Executive Sponsors." }, 'Early Stage': { 14: "Low Potential. More discovery needed to find a compelling business pain.", 39: "Medium Potential. Good start. Focus on building the business case and identifying a Champion.", 60: "High Potential. Strong signal. Engage more stakeholders and define success criteria for an an evaluation.", 101: "Very High Potential. Excellent qualification. Prepare to move to a formal evaluation or PoC." }, 'Evaluation / PoC': { 14: "Low Confidence. This deal is not ready for an evaluation. Re-qualify the business case.", 39: "Medium Confidence. The business case is weak. Ensure the PoC has clear, agreed-upon success metrics.", 60: "High Confidence. The PoC is well-positioned. Focus on technical validation and neutralizing blockers.", 101: "Very High Confidence. A successful evaluation should lead to a close. Start planning the paper process." } };
|
| 196 |
|
|
|
|
| 275 |
let recommendationHTML = '';
|
| 276 |
if (answer.score < 5) {
|
| 277 |
let advice = industrySpecificAdvice[app.state.industry]?.[answer.section] || summarySnippets[answer.section] || 'Focus on improving this area.';
|
| 278 |
+
const link = 'https://scaleway.360learning.com/home/stats/courses';
|
| 279 |
+
recommendationHTML = `<div class="mt-3 pt-3 border-t border-purple-400 bg-red-800/20 p-3 rounded-b-lg -m-4 mt-4"><p class="text-sm font-medium text-red-200"><strong>Recommendation:</strong> ${advice} <a href="${link}" target="_blank" class="font-bold underline hover:text-red-100">learn more</a></p></div>`;
|
| 280 |
}
|
| 281 |
const scoreRatio = answer.score / 9;
|
| 282 |
let scoreColor = 'text-red-300';
|
|
|
|
| 303 |
summaryHTML += `<div class="mt-4 pt-4 border-t border-purple-400"><p class="text-base font-medium text-purple-200">${strategicMessage}</p></div>`;
|
| 304 |
app.ui.executiveSummary.innerHTML = summaryHTML;
|
| 305 |
}
|
| 306 |
+
|
| 307 |
+
// --- NEW --- Event listener for dynamic links
|
| 308 |
+
document.body.addEventListener('click', function(e) {
|
| 309 |
+
const link = e.target.closest('.academy-link');
|
| 310 |
+
if (link) {
|
| 311 |
+
e.preventDefault();
|
| 312 |
+
const destination = link.getAttribute('data-link');
|
| 313 |
+
if (destination) {
|
| 314 |
+
window.location.href = destination;
|
| 315 |
+
}
|
| 316 |
+
}
|
| 317 |
+
});
|
| 318 |
+
|
| 319 |
});
|
| 320 |
</script>
|
| 321 |
|