@@ -1421,7 +1421,7 @@ <h3>Why calculate PR costs?</h3>
14211421 html += `<span style="font-size: 28px; font-weight: 700; color: #1d1d1f;">${ efficiencyPct . toFixed ( 1 ) } %</span>` ;
14221422 html += '</div>' ;
14231423 html += `<div class="efficiency-message">${ message } </div>` ;
1424- html += '<div style="font-size: 11px; color: #86868b; margin-top: 4px;">Expected costs minus delay costs </div>' ;
1424+ html += '<div style="font-size: 11px; color: #86868b; margin-top: 4px;">Time spent coding vs. waiting </div>' ;
14251425 html += '</div>' ; // Close efficiency-box
14261426
14271427 // Merge Velocity box
@@ -1452,9 +1452,9 @@ <h3>Why calculate PR costs?</h3>
14521452 return html ;
14531453 }
14541454
1455- function formatR2RCallout ( avgOpenHours , r2rSavings , currentEfficiency , modeledEfficiency ) {
1456- // Only show if average merge velocity is > 1 hour
1457- if ( avgOpenHours <= 1 ) {
1455+ function formatR2RCallout ( avgOpenHours , r2rSavings , currentEfficiency , modeledEfficiency , targetMergeHours = 1.5 ) {
1456+ // Only show if average merge velocity is > target
1457+ if ( avgOpenHours <= targetMergeHours ) {
14581458 return '' ;
14591459 }
14601460
@@ -1474,10 +1474,13 @@ <h3>Why calculate PR costs?</h3>
14741474 throughputText = ' (+' + efficiencyDelta . toFixed ( 1 ) + '% throughput)' ;
14751475 }
14761476
1477+ // Format target merge time
1478+ let targetText = targetMergeHours . toFixed ( 1 ) + 'h' ;
1479+
14771480 let html = '<div style="margin: 24px 0; padding: 12px 20px; background: linear-gradient(135deg, #e6f9f0 0%, #ffffff 100%); border: 1px solid #00c853; border-radius: 8px; font-size: 14px; color: #1d1d1f; line-height: 1.6;">' ;
1478- html += 'Pro-Tip: Save <strong>' + savingsText + '/yr</strong> in lost development effort by reducing merge times to <1h with ' ;
1479- html += '<a href="https://codegroove.dev/" target="_blank" rel="noopener" style="color: #00c853; font-weight: 600; text-decoration: none;">Ready-to- Review</a>. ' ;
1480- html += 'Free for OSS, cheap for everyone else .' ;
1481+ html += 'Pro-Tip: Save <strong>' + savingsText + '/yr</strong> in lost development effort by reducing merge times to <' + targetText + ' with ';
1482+ html += '<a href="https://codegroove.dev/products/ready-to-review/ " target="_blank" rel="noopener" style="color: #00c853; font-weight: 600; text-decoration: none;">Ready to Review</a>. ' ;
1483+ html += 'Free for open-source repositories, $6/user/org for private repos .' ;
14811484 html += '</div>' ;
14821485 return html ;
14831486 }
0 commit comments