MCPcopy Index your code
hub / github.com/adobe/react-spectrum / buildPassFailSheet

Function buildPassFailSheet

scripts/createExcelSheet.mjs:102–245  ·  view source on GitHub ↗
(workbook, {v3PRs, s2PRs, racPRs, otherPRs, offPRs})

Source from the content-addressed store, hash-verified

100}
101
102function buildPassFailSheet(workbook, {v3PRs, s2PRs, racPRs, otherPRs, offPRs}) {
103 let sheet = workbook.addWorksheet('Pass-Fail');
104
105 sheet.columns = [
106 {width: 25},
107 {width: 20},
108 {width: 25},
109 {width: 20},
110 {width: 20},
111 {width: 20},
112 {width: 20},
113 {width: 20}
114 ];
115 let categoryA = [
116 {row: 1, label: 'Storybook'},
117 {row: 2, label: 'S2 Docs'},
118 {row: 3, label: 'RAC Docs'},
119 {row: 4, label: 'S2 Storybook'},
120 {row: 6, label: 'PRs'}
121 ];
122
123 for (let {row, label} of categoryA) {
124 let cell = sheet.getCell(`A${row}`);
125 cell.value = label;
126 cell.font = {bold: true};
127 }
128
129 let docLinks = {
130 'S2 Docs': {b: 'https://d1pzu54gtk2aed.cloudfront.net/', c: 'https://tinyurl.com/4m778kj3'},
131 'RAC Docs': {b: 'https://d5iwopk28bdhl.cloudfront.net/', c: 'https://tinyurl.com/5ycw9yje'}
132 };
133 let linkFont = {color: {argb: 'FF0563C1'}, underline: true};
134 for (let {row, label} of categoryA) {
135 let links = docLinks[label];
136 if (!links) {
137 continue;
138 }
139 let bCell = sheet.getCell(`B${row}`);
140 bCell.value = {text: links.b, hyperlink: links.b};
141 bCell.font = linkFont;
142 let cCell = sheet.getCell(`C${row}`);
143 cCell.value = {text: links.c, hyperlink: links.c};
144 cCell.font = linkFont;
145 }
146
147 let categoryE = [
148 {row: 1, label: 'Test Apps'},
149 {row: 2, label: 'Next'},
150 {row: 3, label: 'S2 Parcel'},
151 {row: 4, label: 'S2 Webpack'},
152 {row: 5, label: 'RAC Tailwind'}
153 ];
154 for (let {row, label} of categoryE) {
155 sheet.getCell(`E${row}`).value = label;
156 }
157
158 let browserHeaders = [
159 'Component',

Callers 1

createTestingSheetFunction · 0.85

Calls 2

sanitizeExcelStringFunction · 0.85
cfStyleFunction · 0.85

Tested by

no test coverage detected