Skip to content

Commit c3c5ab5

Browse files
MyOpenCRE: add inline help for CSV preparation (#686)
ui(myopencre): add inline help guide for CSV preparation
1 parent 395f54f commit c3c5ab5

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

application/frontend/src/pages/MyOpenCRE/MyOpenCRE.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,14 @@
1616

1717
.myopencre-preview {
1818
margin-top: 1rem;
19+
}
20+
21+
.myopencre-intro {
22+
font-size: 1.05rem;
23+
font-weight: 400;
24+
margin-bottom: 0.5rem;
25+
}
26+
27+
.cursor-pointer summary {
28+
cursor: pointer;
1929
}

application/frontend/src/pages/MyOpenCRE/MyOpenCRE.tsx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,29 @@ export const MyOpenCRE = () => {
256256

257257
<div className="myopencre-section myopencre-upload">
258258
<Header as="h3">Upload Mapping CSV</Header>
259+
<Message info className="cursor-pointer">
260+
<details>
261+
<summary>
262+
<strong>How to prepare your CSV</strong>
263+
</summary>
259264

260-
<p>Upload your completed mapping spreadsheet to import your standard into OpenCRE.</p>
265+
<ul>
266+
<li>Start from the downloaded CRE Catalogue CSV.</li>
267+
<li>
268+
Fill <code>standard|name</code> and <code>standard|id</code> for your standard.
269+
</li>
270+
<li>
271+
Map your controls using CRE columns (<code>CRE 0</code>, <code>CRE 1</code>, …).
272+
</li>
273+
274+
<li>
275+
CRE values must be in the format <code>&lt;CRE-ID&gt;|&lt;Name&gt;</code>
276+
<br />
277+
<em>Example:</em> <code>616-305|Development processes for security</code>
278+
</li>
279+
</ul>
280+
</details>
281+
</Message>
261282

262283
{!isUploadEnabled && (
263284
<Message info className="myopencre-disabled">

0 commit comments

Comments
 (0)