// Verification view — send test envelopes to confirm migrated templates work import { api } from './api.js'; import { state } from './state.js'; import { escHtml, formatDateTime } from './utils.js'; const POLL_MS = 5000; const _envelopes = {}; // { adobeId: { envelopeId, status, sentAt, completedAt, polling } } function getSettings() { try { return JSON.parse(localStorage.getItem('migrator_settings')) || {}; } catch { return {}; } } export async function renderVerification(preloadedIds = null) { const outlet = document.getElementById('router-outlet'); const ids = preloadedIds || state.verifyIds || null; // Candidate templates: recently migrated (from state) or all migrated const candidates = (state.templates || []).filter(t => t.status === 'migrated' || t.status === 'needs_update' || t.docusign_id ); if (!state.auth.docusign) { outlet.innerHTML = `
| Template | Docusign ID | Verification Status | Actions |
|---|