-
Notifications
You must be signed in to change notification settings - Fork 26
Minimal Mode of Saral Draft Version
For non-academic use cases we don't have class ,section , exam and absent/present hierarchy for those cases we have minimal mode . With minimal setup user will be able to scan the data. In backend we have isMinimalMode flag when this flag is true then only we will be in minimal mode . Roi for minimal mode will have class and subject as 0 .
**ROI EXAMPLE **
For minimal mode ROI is saved in db .
URL: $BASEURL/roi/:examId
{
_id: 6295fd95f17ecc17a868c284,
subject: '0',
classId: '0',
type: 'water level',
roi: {
layout: {
version: '1.0',
name: 'ANY1S30QMULTICHOICE Exam Sheet Form',
threshold: [Object],
cells: [Array]
}
},
state: 'mp',
roiId: '27',
createdAt: 2022-05-31T11:35:49.135Z,
updatedAt: 2022-05-31T11:35:49.135Z,
__v: 0
}
SCAN SCREEN PAGE: In minimal mode after sunbird branding logo we will directly land to scan screen page . Scan screen page will contain ROI type, scan and saved count details . If we will not select any layout from dropdown it will not allow you to scan the sheet and will not show any value in scan and saved count . Save all scan button is used to save the scan data into backend .
Scan Count: Scan count contains the count of data which is stored in local storage .
Save Count: Saved count contains the count of data which is stored in backend .
PROFILE MENU: Saral App has profile menu feature and it has below menu options. This feature is available from v1.5.0
release.
**SHARE APP DATA **: This feature is useful to troubleshoot issues with Saral App captured data and backend sync-up issues. Users can share this info with the support team directly for troubleshooting issues.
fetch exam array data from the http://..../fetchStudentsandExamsByQuery
api by sending the body data as
data: { "classId":"0", "section":"0" }
once the api hit we will get the exams array this can have more than one exam. within the exam array there is an property type which is use to show in dropdown menu at app side.
once we select any option from the dropdown we will get exam id from exams array using that exam id we will fetch roi
http://..../roi/{examId}
fetch exam array data from the http://..../fetchStudentsandExamsByQuery
api by sending the body data as
data: { "classId":"2", "section":"D" }
once the exam data fetched we will get exam id from exams array using that exam id we will fetch roi
http://..../roi/{examId}
directly it will load the roi according to examId