...
- Ability to load components dynamically based on configuration
- Ability to load components dynamically on multiple levels based on configuration
Solution:
Program
...
configuration based on components and its action.
Since each tool (comprises of multiple components and tools can share the same components between each other) is going to solve the purpose of each activity in a program, the program can have its configurations based on the input that each component in the tool is expecting.
Say for example, if the purpose of the program is to just see the coverage of textbooks, then the tool that is used in the program would expect a scope to be defined i.e: Board, Class, Medium, Subject, Framework. This can be the program configuration and nothing else would be required by the admin to see the coverage.
The expected config of a tool will reside as a manifest inside each high level components.
toolmanifest.json
for the above example would be:
Code Block | ||||
---|---|---|---|---|
| ||||
{
"Configuration": {
"scope": {
"classes":"",
"subject":"",
"board":"",
"medium":"",
"framework":""
}
}
}
|
Let us take an example of a program whose purpose is to create content for different contentTypes
such as PracticeSet
, Explanation, Experiential
, CuriositySet
, etc for each chapter in a given textbook.
The workflow of the above mentioned program can be split into two parts
- Creation
- Review and Publish
Creation:
In creation, a contributor with creator access visits the program and does the following
- Chooses a textbook of a particular class and subject
- Chooses a contentType of a particular chapter that is to be created
- Chooses a questionCategory if the contentType is either PracticeSets/CuriositySet
- Creates a content or assessment based on the chosen content type
- Previews the created assessment or content and submits for preview
Review
- Chooses a textbook of a particular class and subject
- Chooses a content of a chapter that are up for review
- Sees the preview of the content before doing Accept/Reject and publishing
- If rejecting, leaves a the reason as a comment to reject.
The above listed actions can more or less be broken down into the following components.
- Collection Component Component
- ChapterList Component
- ContentCreation Component
- ContentUpload Component
- Preview Component
Each component will take its own configuration.
For example: The Collection component would expect CollectionType, Board, Class, Medium, Subject, Framework to list the textbook.
Similarly, ChapterList component would expect CollectionId and List of content types
If we put together all the component and its required configurations, actions and possible enhancements into a module/highlevel component the following would be the overall component hierarchy and configuration.
Code Block | ||||
---|---|---|---|---|
| ||||
{
"pageAssemblyId":"",
"board":"",
"class":"",
"subject":"",
"medium":"",
"framework":"",
"collectionType":{
"name": "Collection type",
"type": "string",
"enum": "Textbook, Course"
},
"contentTypes": {
"name": "List of contentTypes",
"type": "List",
"enum": ["PracticeQuestionSet", "Lessonplan", "ExperientialResource", "FocusSpot", "CuriosityQuestionSet", "ExplanationResource"]
},
"questionCategories":{
"name": "List of AssessmentItem Categorys",
"type": "List",
"enum": ["VSA", "SA", "LA", "MCQ", "CuriosityQuestion"],
"hints": "When PracticeQuestionSet is set for contentTypes AssessmentItem Categorys must be"
},
"ckEditorConfig": {}
}
|
With this basic set of configurations, a program can be created by an admin of the program.
...
theme | Midnight |
---|
...
Let us take an example of a program whose purpose is to create content for different contentTypes
such as PracticeSet
, Explanation, Experiential
, CuriositySet
, etc for each chapter in a given textbook.
The workflow of the above mentioned program can be split into two parts
- Creation
- Review and Publish
Creation:
In creation, a contributor with creator access visits the program and does the following actions
- Selects a textbook of a particular class and subject
- Selects a contentType of a particular chapter that is to be created
- Selects a questionCategory if the contentType is either PracticeSets/CuriositySet
- Creates a content or assessment based on the chosen content type
- Previews the created assessment or content and submits for preview
Review
- Selects a textbook of a particular class and subject
- Selects a content of a chapter that are up for review
- Sees the preview of the content before doing Accept/Reject and publishing
- If rejecting, leaves a the reason as a comment to reject.
The above listed actions can more or less be broken down into the following highlevel components.
- Collection Component
- ChapterList Component
- ContentCreation Component
- ContentUpload Component
- Preview Component
Each component will take its own configuration and has a set of actions that the user can perform
For example:
- The Collection component would expect
CollectionType
,Board
,Class
,Medium
,Subject
,Framework
to list the textbook and it would have actions such asshowFilters
Similarly, ChapterList component would expect CollectionId and List of content types as configuration and selectChapter, addResource
, preview
etc as actions.
If we put together all the component and its required configurations, actions and possible enhancements into a module/highlevel component the following would be the overall component hierarchy and configuration.
With this basic set of configurations and actions a program can be created by an admin of a program.
Code Block | ||
---|---|---|
| ||
{ "programId": "217bddc0-df59-11e9-8d82-2b7f2cdfa2fd", "description": "Test Prep program", "name": "Test Prep", "slug": "sunbird", "startDate": "2019-09-25T12:50:30.000Z", "endDate": null, "status": null, "type": "private", "roles": { "value": [ "CONTRIBUTOR", "REVIEWER", "PUBLISHER" ] }, "defaultRoles": [ "CONTRIBUTOR" ], "onBoardingForm": { "templateName": "onBoardingForm", "action": "onboard", "fields": [ { "code": "school", "dataType": "text", "name": "School", "label": "School", "description": "School", "inputType": "select", "required": false, "displayProperty": "Editable", "visible": true, "range": [ { "identifier": "my_school", "code": "my_school", "name": "My School", "description": "My School", "index": 1, "category": "school", "status": "Live" } ], "index": 1 } ] }, "header": { "tabs": [ { "index": 0, "label": "Contribute Questions", "onClick": { "component": "collectionComponent" }, "actionRoleMap": { "show": { "roles": [ "Contributor", "Reviewer" ] }, "drag": { "roles": [ "Contributor", "Reviewer" ] } } }, { "index": 1, "label": "Issue Certificate", "onClick": { "component": "issueCertificateComponent" }, "actionRoleMap": { "show": { "roles": [ "Reviewer" ] } } }, { "index": 2, "label": "Dashboard", "onClick": { "component": "dashboardComponent" }, "actionRoleMap": { "show": { "roles": [ "Admin" ] } } } ] }, "actions": { "showFilters": { "roles": [ "Contributor", "Reviewer", "Admin" ] }, "addresource": { "roles": [ "Contributor" ] }, "preview": { "roles": [ "Contributor", "Reviewer" ] }, "move": { "roles": [ "Contributor" ] }, "delete": { "roles": [ "Contributor" ] }, "selectChapter": { "roles": [ "Contributor", "Reviewer" ] }, "showTotalContribution": { "lable": "Total Contributoion", "roles": [ "Contributor", "Reviewer" ] }, "showMyContribution": { "lable": "My Contribution", "roles": [ "Contributor" ] }, "showRejected": { "lable": "Rejected", "roles": [ "Contributor" ] }, "showUnderReview": { "lable": "Under Review", "roles": [ "Contributor" ] }, "showtotalUnderReview": { "lable": "Total under review", "roles": [ "Reviewer" ] }, "showAcceptedByMe": { "lable": "Rejected by me", "roles": [ "Reviewer" ] }, "showRejectedByMe": { "lable": "Accepted by me", "roles": [ "Reviewer" ] }, "savePracticeSet": { "roles": [ "Contributor" ] }, "previewPracticeSet": { "roles": [ "Contributor", "Reviewer" ] }, "submitPracticeSet": { "roles": [ "Contributor" ] }, "deletePracticeSet": { "roles": [ "Contributor" ] }, "acceptPracticeSet": { "roles": [ "Reviewer" ] }, "rejectPracticeSet": { "roles": [ "Reviewer" ] }, "addQuestionPracticeSet": { "roles": [ "Contributor" ] }, "addSolutionPracticeSet": { "roles": [ "Contributor" ] }, "changeUploadFile": { "roles": [ "Contributor" ] }, "submitUpload": { "roles": [ "Contributor" ] }, "acceptUpload": { "roles": [ "Reviewer" ] }, "rejectUpload": { "roles": [ "Reviewer" ] }, "showPreview": { "roles": [ "Contributor", "Reviewer" ] }, "showDashboard": { "roles": [ "Admin" ] }, "reportSelection": { "label": "Select Report" }, "reportContentTypeSelection": { "label": "Select Content-Type" }, "reportDownload": { "label": "Download" }, "reportRefresh": { "label": "Refresh" } }, "config": { "filters": { "implicit": [ { "code": "framework", "defaultValue": "NCF", "label": "Framework", "visibility": false }, { "code": "board", "defaultValue": "AP", "label": "Board", "visibility": false }, { "code": "medium", "defaultValue": "English", "label": "Medium", "visibility": false } ], "explicit": [ { "code": "class", "range": [ "Class 6", "Class 7", "Class 8" ], "label": "Class", "multiselect": false, "defaultValue": [ "Class 6" ], "visibility": true }, { "code": "subject", "range": [ "English", "Maths" ], "label": "Subject", "multiselect": false, "defaultValue": [ "English" ], "visibility": true } ] }, "groupBy": { "value": "Subject", "defaultValue": "Class" }, "contentTypes": { "value": [ { "name": "Explanation", "contentType": "ExplanationResource", "mimeType": [ "application/pdf" ], "thumbnail": "", "description": "description", "marks": 5, "resourceType": "", "Audience": "", "formConfiguration": [ { "code": "LearningOutcome", "range": [], "label": "Learning Outcome", "multiselect": true }, { "code": "bloomslevel", "range": [], "label": "Learning Level", "multiselect": true } ], "filesConfig": { "accepted": "pdf", "size": "50" } }, { "name": "Experimental", "contentType": "ExperientialResource", "mimeType": [ "video/mp4", "dataType": "textvideo/webm", "name": "Schoolvideo/x-youtube", "label": "School"], "descriptionthumbnail": "School", "inputTypedescription": "selectdescription", "requiredmarks": false5, "displayPropertyresourceType": "Editable", "visibleAudience": true"", "rangeformConfiguration": [ { "identifier": "my_school", "code": "my_schoolLearningOutcome", "namerange": "My School"[], "descriptionlabel": "MyLearning SchoolOutcome", "indexmultiselect": 1,true "category": "school"}, { "status": "Live" "code": "bloomslevel", } ], "range": [], "index": 1 "label": "Learning }Level", ] }, "frameworkmultiselect": "NCF", true "Board": "AP", "Medium": "English", } "filterCategory": [ { ], "code": "class", "rangefilesConfig": { [ "Class 6", accepted"Class: 7"mp4, "Classwebm, 8youtube", ], "labelsize": "Class50", "multiselect": false }, { }, "code": "subject", { "range": [ "Englishname",: "Maths" Practice Sets", ], "labelcontentType": "SubjectPracticeQuestionSet", "multiselectmimeType": [ false } ], "groupBy": {application/vnd.ekstep.ecml-archive" "value": "Subject" ], "defaultValue": "Class", "enumquestionCategories": ["Class", "Subject", "Board", "Medium"] }, "contentTypes": { "name": "List of contentTypes",vsa", "type": "Listsa", "value": [{ "name": "Explanation",la", "contentTypemcq": "ExplanationResource", "mimeType": ["application/pdf"], "thumbnail": "", "description": "description", "marks": 5, "resourceType": "", "Audience": "", "formConfiguration": [ { "code": "LearningOutcome", "range": [], "label": "Learning Outcome", "multiselect": true }, { "code": "bloomslevel"}, "range": [], { "label": "Learning Level", "multiselect"code": true"bloomslevel", } "range": [], "filesConfig": { "acceptedlabel": "pdfLearning Level", "sizemultiselect": "50"true } }, { "name": "Experimental",] "contentType": "ExperientialResource" }, "mimeType": ["video/mp4", "video/webm", "video/x-youtube"], { "thumbnailname": "Curiosity", "descriptioncontentType": "descriptionCuriosityQuestionSet", "marksmimeType": 5, [ "resourceType": "",application/vnd.ekstep.ecml-archive" "Audience": "" ], "formConfigurationquestionCategories": [ { "curiosity" "code": "LearningOutcome" ], "rangethumbnail": []"", "labeldescription": "Learning Outcomedescription", "multiselectmarks": true 5, }, {"resourceType": "", "codeAudience": "bloomslevel", "rangeformConfiguration": [], { "label": "Learning Level", "multiselectcode": true"LearningOutcome", }], "filesConfig": {"range": [], "acceptedlabel": "Learning Outcome"mp4, webm, youtube", "sizemultiselect": "50"true } }, { "name": "Practice Sets",{ "contentType": "PracticeQuestionSet", "mimeTypecode": ["application/vnd.ekstep.ecml-archive"],"bloomslevel", "questionCategories": ["vsa", "sa", "la", "mcq" "range": [], "thumbnail": "", "descriptionlabel": "descriptionLearning Level", "marks": 5, "resourceTypemultiselect": "",true "Audience": "", } "formConfiguration": [ ] { } "code": "LearningOutcome", ], "rangedefaultValue": [], { "labelname": "LearningPractice OutcomeSets", "multiselectcontentType": true"PracticeQuestionSet", }, "mimeType": [ { "code": "bloomslevel","application/vnd.ekstep.ecml-archive" "range": [], "labelquestionCategories": "Learning Level",[ "multiselectvsa":, true }] }"sa", { "name": "Curiosity", "contentType": "CuriosityQuestionSetla", "mimeTypemcq": ["application/vnd.ekstep.ecml-archive"], "questionCategories": ["curiosity"], "thumbnail": "", "description": "description", "marks": 52, "resourceType": "", "Audience": "", "formConfiguration": [ { "code": "LearningOutcome",", "range": [], "label": "Learning Outcome", "multiselect": false true }, { "code": "bloomslevel", "range": [], "label": "Learning Level", "multiselect": true } ] }], "defaultValue": [{ "namemultiselect": true "Practice Sets", "contentType": "PracticeQuestionSet", } "mimeType": ["application/vnd.ekstep.ecml-archive"], ] "questionCategories": ["vsa", "sa", "la", "mcq"], } "thumbnail": "", ] "description": "description", }, "markstextbookList": 2[], "resourceTypefilesConfig": "",{ "Audienceaccepted": "pdf, mp4, webm, youtube", "formConfigurationsize": ["50" }, { "practiceSetConfig": { "No of "codeoptions": "LearningOutcome"4, "rangesolutionType": [], "label": "Learning Outcome"Video", "Text & image"multiselect": false }], { "questionCategory": [ "code": "bloomslevel", vsa", "rangesa": [], "label": "Learning Level"ls", "multiselectmcq":, true "curiosity" } ] }], "enumformConfiguration": [ { "PracticeQuestionSet", "Lessonplancode": "LearningOutcome", "range": [], "ExperientialResource", "label": "FocusSpotLearning Outcome", "CuriosityQuestionSetmultiselect",: false "ExplanationResource" }, ] },{ "questionLimit": { "valuecode": "bloomslevel", "defaultValuerange": "" }[], "optionsLimit": { "valuelabel": "Learning Level", "defaultValuemultiselect": ""true } ] } } |