(s)
| 809 | } |
| 810 | |
| 811 | function summaryTab(s) { |
| 812 | let html = ""; |
| 813 | if (s.summary && s.summary.exists && s.summary.markdown) { |
| 814 | html += '<div class="card"><h2>summary.md</h2><div class="md">' + miniMd(s.summary.markdown) + "</div></div>"; |
| 815 | } else { |
| 816 | html += emptyState("No summary yet", "App Modernization writes <code>summary.md</code> after validations pass.", ""); |
| 817 | } |
| 818 | const g = s.git || {}; |
| 819 | html += |
| 820 | '<div class="card"><h2>Branch & PR</h2><div class="grid">' + |
| 821 | kv("Branch", g.branch ? esc(g.branch) : "—") + |
| 822 | kv("Migration branch", g.isMigrationBranch ? "Yes" : "No") + |
| 823 | kv("Changed files", g.changedFiles != null ? String(g.changedFiles) : "—") + |
| 824 | "</div><div class=actions style='margin-top:12px'>" + |
| 825 | btn("Open a pull request", "open_pr", {}, { primary: true }) + |
| 826 | btn("Refresh", "refresh") + |
| 827 | "</div></div>"; |
| 828 | return html; |
| 829 | } |
| 830 | |
| 831 | // ---- helpers ------------------------------------------------------------- |
| 832 |
nothing calls this directly
no test coverage detected