diff --git a/public/manuals/corporate.pdf b/public/manuals/corporate.pdf
new file mode 100644
index 00000000..eb0183a6
Binary files /dev/null and b/public/manuals/corporate.pdf differ
diff --git a/public/manuals/student.pdf b/public/manuals/student.pdf
new file mode 100644
index 00000000..2335c3c5
Binary files /dev/null and b/public/manuals/student.pdf differ
diff --git a/public/manuals/teacher.pdf b/public/manuals/teacher.pdf
new file mode 100644
index 00000000..9e37f64c
Binary files /dev/null and b/public/manuals/teacher.pdf differ
diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx
index 243746b6..e6a44605 100644
--- a/src/components/Navbar.tsx
+++ b/src/components/Navbar.tsx
@@ -84,7 +84,7 @@ export default function Navbar({user, path, navDisabled = false, focusMode = fal
{showExpirationDate() && (
>
)}
-
-
+ {(userType || "") !== 'agent' && (
+ <>
+
+
+ >
+ )}
{["admin", "developer", "agent", "corporate"].includes(userType || "") && (
-
-
+ {(userType || "") !== 'agent' && (
+ <>
+
+
+ >
+ )}
{userType !== "student" && (
)}
diff --git a/src/exams/pdf/details/level.exam.tsx b/src/exams/pdf/details/level.exam.tsx
index 9ab87a9b..9b7df507 100644
--- a/src/exams/pdf/details/level.exam.tsx
+++ b/src/exams/pdf/details/level.exam.tsx
@@ -25,7 +25,13 @@ const thresholds = [
level: "High A2/Low B1",
label: "Pre-Intermediate",
minValue: 8,
- maxValue: 12,
+ maxValue: 11,
+ },
+ {
+ level: "High B1/Low B2",
+ label: "Intermediate",
+ minValue: 12,
+ maxValue: 15,
},
{
level: "High B2/Low C1",
diff --git a/src/exams/pdf/details/radial.result.tsx b/src/exams/pdf/details/radial.result.tsx
index 930f6738..c895be0f 100644
--- a/src/exams/pdf/details/radial.result.tsx
+++ b/src/exams/pdf/details/radial.result.tsx
@@ -10,7 +10,7 @@ export const RadialResult = ({module, score, total, png}: ModuleScore) => (
{module}
- {score.toFixed(2)}
+ {Math.floor(score)}
out of 9.0
diff --git a/src/pages/api/assignments/[id]/export.tsx b/src/pages/api/assignments/[id]/export.tsx
index 91b24506..a7e75de7 100644
--- a/src/pages/api/assignments/[id]/export.tsx
+++ b/src/pages/api/assignments/[id]/export.tsx
@@ -370,7 +370,7 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
studentsData={studentsData}
showLevel={showLevel}
summaryPNG={overallPNG}
- summaryScore={`${(overallResult * 100).toFixed(0)}%`}
+ summaryScore={`${Math.floor(overallResult * 100)}%`}
groupScoreSummary={groupScoreSummary}
passportId={demographicInformation?.passport_id || ""}
/>,
diff --git a/src/pages/api/stats/[id]/export.tsx b/src/pages/api/stats/[id]/export.tsx
index 657cb361..ce71d899 100644
--- a/src/pages/api/stats/[id]/export.tsx
+++ b/src/pages/api/stats/[id]/export.tsx
@@ -286,7 +286,7 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
logo={"public/logo_title.png"}
qrcode={qrcode}
summaryPNG={overallPNG}
- summaryScore={`${(overallResult * 100).toFixed(0)}%`}
+ summaryScore={`${Math.floor(overallResult * 100)}%`}
passportId={demographicInformation?.passport_id || ""}
/>,
);
diff --git a/src/pages/profile.tsx b/src/pages/profile.tsx
index d2031cd1..8646b66c 100644
--- a/src/pages/profile.tsx
+++ b/src/pages/profile.tsx
@@ -276,6 +276,8 @@ function UserProfile({user, mutateUser}: Props) {
);
+ const manualDownloadLink = ['student', 'teacher', 'corporate'].includes(user.type) ? `/manuals/${user.type}.pdf` : '';
+
return (
@@ -535,6 +537,13 @@ function UserProfile({user, mutateUser}: Props) {
/>
)}
+ {manualDownloadLink && (
+
+
+
+ )}