diff --git a/public/example_results.csv b/public/example_results.csv new file mode 100644 index 0000000..1d32894 --- /dev/null +++ b/public/example_results.csv @@ -0,0 +1,28 @@ +Year,Unit code,Unit title,Teaching period,Credit points,Mark,Grade +2021,ENG1002,"ENGINEERING DESIGN: CLEANER, SAFER, SMARTER",1,6,75,D +2021,ENG1003,ENGINEERING MOBILE APPS,1,6,80,HD +2021,ENG1090,FOUNDATION MATHEMATICS,1,6,75,D +2021,PHS1001,FOUNDATION PHYSICS,1,6,71,D +2021,ECE2072,DIGITAL SYSTEMS,2,6,50,P +2021,ENG1001,"ENGINEERING DESIGN: LIGHTER, FASTER, STRONGER",2,6,70,D +2021,ENG1005,ENGINEERING MATHEMATICS,2,6,83,HD +2021,ENG1060,COMPUTING FOR ENGINEERS,2,6,89,HD +2022,FIT1045,ALGORITHMS AND PROGRAMMING FUNDAMENTALS IN PYTHON,1,6,95,HD +2022,FIT2085,INTRODUCTION TO COMPUTER SCIENCE FOR ENGINEERS,1,6,79,D +2022,FIT2099,OBJECT ORIENTED DESIGN AND IMPLEMENTATION,1,6,77,D +2022,MAT1830,DISCRETE MATHEMATICS FOR COMPUTER SCIENCE,1,6,83,HD +2022,FIT2004,ALGORITHMS AND DATA STRUCTURES,2,6,52,P +2022,FIT2100,OPERATING SYSTEMS,2,6,79,D +2022,FIT2101,SOFTWARE ENGINEERING PROCESS AND MANAGEMENT,2,6,82,HD +2022,FIT2107,SOFTWARE QUALITY AND TESTING,2,6,64,C +2023,FIT3175,USABILITY,SB,6,80,HD +2023,FIT3170,SOFTWARE ENGINEERING PRACTICE,FY,12,77,D +2023,FIT3077,SOFTWARE ENGINEERING: ARCHITECTURE AND DESIGN,1,6,78,D +2023,FIT3159,COMPUTER ARCHITECTURE,1,6,86,HD +2023,FIT3178,IOS APP DEVELOPMENT,1,6,86,HD +2023,FIT2095,E-BUSINESS SOFTWARE TECHNOLOGIES,2,6,99,HD +2024,FIT4165,COMPUTER NETWORKS,1,6,91,HD +2024,FIT5145,FOUNDATIONS OF DATA SCIENCE,1,6,88,HD +2024,FIT3171,DATABASES,2,6,85,HD +2024,FIT3179,DATA VISUALISATION,2,6,83,HD +2024,FIT4005,RESEARCH METHODS IN INFORMATION TECHNOLOGY,2,6,86,HD \ No newline at end of file diff --git a/public/img/save-dialog.png b/public/img/save-dialog.png new file mode 100644 index 0000000..2e64ea7 Binary files /dev/null and b/public/img/save-dialog.png differ diff --git a/public/img/select-results.png b/public/img/select-results.png new file mode 100644 index 0000000..f8749dd Binary files /dev/null and b/public/img/select-results.png differ diff --git a/public/img/spreadsheet-view.png b/public/img/spreadsheet-view.png new file mode 100644 index 0000000..01360c9 Binary files /dev/null and b/public/img/spreadsheet-view.png differ diff --git a/src/components/csv/csv-information-dialog.tsx b/src/components/csv/csv-information-dialog.tsx index 6536567..1b85110 100644 --- a/src/components/csv/csv-information-dialog.tsx +++ b/src/components/csv/csv-information-dialog.tsx @@ -1,4 +1,4 @@ -import { Info } from "lucide-react" +import { Download, ExternalLink, FileText, Info } from "lucide-react" import { Button } from "@/components/ui/button" import { Dialog, @@ -8,6 +8,7 @@ import { DialogTitle, DialogTrigger, } from "@/components/ui/dialog" +import { ScrollArea } from "@/components/ui/scroll-area" export function CSVInformationDialog() { return ( @@ -17,13 +18,93 @@ export function CSVInformationDialog() { - + - Instructions for preparing CSV + + How to Export Your Academic Record + How to Export Your Academic Record as CSV + - yeah mate + Steps to prepare your record for upload + Follow these steps to prepare your academic record for upload + + +
+
+

1. Access Your Academic Record

+

+ Navigate to WES → Unofficial Academic Record +

+
+ +
+

2. Select Your Results

+

+ Highlight the entire results table along with including the headers +

+ Selecting academic results table in WES +
+ +
+

3. Copy to Spreadsheet

+

+ Copy and paste into Google Sheets or Microsoft Excel +

+ Pasted data in Google Sheets +
+ +
+

4. Export as CSV

+

+ File → Download → Comma-separated values (.csv) +

+ Saving as CSV in Google Sheets +
+ +
+

Sample file showing the expected format

+
+ +
+

example_results.csv

+ {/*

2.5 KB

*/} +
+ + +
+
+
+
)