Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | 5x 50x 19x | import { Card } from "react-bootstrap";
import CATMEAuditResults from "main/components/CATME/CATMEAuditResults";
import CATMEUploadForm from "main/components/CATME/CATMEUploadForm";
const uploadConfig = {
endpoint: "audit",
formLabel: "Audit CATME CSV",
fileLabel: "CATME TeamMaker CSV file",
buttonLabel: "Audit CSV",
pendingLabel: "Auditing…",
missingFileMessage: "Choose a CATME TeamMaker CSV file to audit.",
errorMessage: "Unable to audit this file. Please try again.",
};
export default function CATMEAuditCard({ courseId }) {
return (
<Card as="section" aria-label="CATME roster audit" className="mt-4">
<Card.Header as="h2" className="h5">
Audit CATME Teammaker CSV Download
</Card.Header>
<Card.Body>
<p>
Compare the CATME roster with this course's Frontiers roster.
Frontiers is the source of truth: the results show students to add to
CATME, remove from CATME, or update (name or section).
</p>
<ol>
<li>
In CATME, navigate to <code>/faculty/tm_display_results</code> and
click <strong>Export to CSV</strong>.
</li>
<li>Upload that file here.</li>
<li>Read the results.</li>
</ol>
<p>This audit does not change either roster or create teams.</p>
<CATMEUploadForm courseId={courseId} config={uploadConfig}>
{(result) => <CATMEAuditResults result={result} />}
</CATMEUploadForm>
</Card.Body>
</Card>
);
}
|