Skip to content

Minimal Mode of Saral Draft Version

arman-tdev edited this page Jul 18, 2022 · 4 revisions

MINIMAL MODE

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 .

image

Scan Count: Scan count contains the count of data which is stored in local storage .
image

image

Save Count: Saved count contains the count of data which is stored in backend .
image

PROFILE MENU: Saral App has profile menu feature and it has below menu options. This feature is available from v1.5.0 release. image

**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.
image

Minimal mode configuration

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} image

Regular mode configuration

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

image

Clone this wiki locally