implement wp testing
This commit is contained in:
@@ -1118,13 +1118,21 @@
|
||||
</div>
|
||||
|
||||
<button class="primary action-link" id="export-zip-btn" title="Download as ZIP">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:8px;">
|
||||
<path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"></path>
|
||||
<polyline points="7,10 12,15 17,10"></polyline>
|
||||
<line x1="12" y1="15" x2="12" y2="3"></line>
|
||||
</svg>
|
||||
Download ZIP
|
||||
</button>
|
||||
<div style="display:flex; align-items:center; gap:8px;">
|
||||
<label style="display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:13px;">
|
||||
<input type="checkbox" id="external-testing-toggle" style="width:18px; height:18px;" />
|
||||
<span id="external-testing-label" style="font-weight:600; font-size:13px;">External WP Tests</span>
|
||||
</label>
|
||||
<button id="external-testing-info" class="action-link" title="Run the plugin through CLI tests on an external WP site" style="padding:6px 8px; border-radius:8px;">i</button>
|
||||
<div id="external-testing-usage" style="font-size:12px; color:var(--muted); min-width:140px; text-align:right;">—</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@@ -1437,6 +1445,21 @@
|
||||
</div>
|
||||
|
||||
<!-- Confirm Build Modal -->
|
||||
|
||||
<!-- External Testing Limit Modal -->
|
||||
<div id="external-testing-limit-modal" class="modal" style="display:none;">
|
||||
<div class="modal-card" style="max-width:520px;">
|
||||
<div style="display:flex; justify-content:space-between; align-items:center;">
|
||||
<strong style="color:var(--ink); font-size:20px;">External Testing Limit Reached</strong>
|
||||
<button id="external-testing-limit-close" style="background:none; border:none; font-size:22px;">×</button>
|
||||
</div>
|
||||
<p style="color:var(--muted); margin-top:12px;">Your current plan limits the number of external WP CLI tests you can run per month. To continue using external testing, upgrade your plan or purchase additional test credits.</p>
|
||||
<div class="admin-actions" style="margin-top:18px; justify-content:flex-end; gap:8px;">
|
||||
<button id="external-testing-limit-upgrade" class="primary">Upgrade Plan</button>
|
||||
<button id="external-testing-limit-cancel" class="action-link">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="confirm-build-modal" class="modal">
|
||||
<div class="modal-content">
|
||||
<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:16px;">
|
||||
|
||||
Reference in New Issue
Block a user