MCPcopy
hub / github.com/github/awesome-copilot / summaryTab

Function summaryTab

extensions/java-modernization-studio/renderer.mjs:811–829  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

miniMdFunction · 0.85
emptyStateFunction · 0.85
kvFunction · 0.85
escFunction · 0.85
btnFunction · 0.85

Tested by

no test coverage detected