MCPcopy Create free account
hub / github.com/chhoumann/quickadd / renderDevelopmentInfo

Function renderDevelopmentInfo

src/quickAddSettingsDevelopmentInfo.ts:26–50  ·  view source on GitHub ↗
(
	container: HTMLElement,
	info: DevelopmentInfo,
)

Source from the content-addressed store, hash-verified

24}
25
26export function renderDevelopmentInfo(
27 container: HTMLElement,
28 info: DevelopmentInfo,
29): void {
30 if (info.branch !== null) {
31 appendDevelopmentInfoRow(container, "Branch:", info.branch);
32 }
33
34 if (info.commit !== null) {
35 appendDevelopmentInfoRow(container, "Commit:", info.commit);
36 }
37
38 if (info.dirty !== null) {
39 const statusText = info.dirty ? "Yes (uncommitted changes)" : "No";
40 const statusClass = info.dirty
41 ? "qa-dev-dirty-status"
42 : "qa-dev-clean-status";
43 appendDevelopmentInfoRow(
44 container,
45 "Uncommitted changes:",
46 statusText,
47 { className: statusClass },
48 );
49 }
50}

Callers 2

renderDevInfoMethod · 0.90

Calls 1

appendDevelopmentInfoRowFunction · 0.85

Tested by

no test coverage detected