Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 6.0.0 v13 #3430

Merged
Merged
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
81142ed
Issue #SB-000 merge: Merge pull request #3339 from swayangjit/master
swayangjit Feb 18, 2023
24d87f0
Issue #SB-000 merge: Merge pull request #3346 from swayangjit/master
swayangjit Feb 25, 2023
700226e
Issue #SB-000 merge: Merge branch 'release-5.1.0.9' into master
swayangjit Mar 28, 2023
7cf1f1c
Issue #SB-000 chore: Updated ReadMe.md.
swayangjit Mar 28, 2023
5e25c38
Issue #SB-000 merge: Merge pull request #3383 from swayangjit/master
swayangjit Mar 28, 2023
5b1c0fd
Merge pull request #381 from shikshalokam/ED-519-v12
vishwanath1004 May 8, 2023
9c52829
ISSUE #ED-1514 feat : Deleting evidence attached while creating new task
May 11, 2023
1b91cb8
ISSUE datepickerIssue fix: Date picker issue fix in angular 13
May 12, 2023
0a03b55
Merge pull request #382 from shikshalokam/datePickerIssue
vishwanath1004 May 12, 2023
9a5286b
ISSUE #ED-431 feat : Added program details page UI
Vinod-V3 May 12, 2023
730858f
Merge remote-tracking branch 'origin/release-6.0.0_v13' into ED-431-v13
Vinod-V3 May 12, 2023
9f0e132
ISSUE #ED-430 feat : New Programs Listing page
Vinod-V3 May 16, 2023
3af4010
Issue #ED-430 merge : Merge branch 'release-6.0.0_v13_1' into ED-430
Vinod-V3 May 16, 2023
9200c62
ISSUE #ED-431 feat : Added Join program popup in program details page
Vinod-V3 May 17, 2023
92d1a10
Merge branch 'release-6.0.0_v13' into ED-430
Vinod-V3 May 18, 2023
054bca6
Merge branch 'release-6.0.0_v13' into ED-430
Vinod-V3 May 18, 2023
d454d30
Merge pull request #10 from Vinod-V3/ED-430
Vinod-V3 May 18, 2023
fe87a61
issue #ED-1514 merge : Merging from release-6.0.0_v13
May 18, 2023
fc556ee
Merge pull request #390 from shikshalokam/ED-1514
vishwanath1004 May 18, 2023
7a8d934
Merge branch 'shikshalokam:release-6.0.0_v13' into release-6.0.0_v13
Vinod-V3 May 18, 2023
0f931f0
Merge branch 'release-6.0.0_v13' into ED-431-v13
Vinod-V3 May 18, 2023
b43c06e
ISSUE #ED-431 feat : Api integration done for program details page
Vinod-V3 May 20, 2023
f8bfd7f
Merge pull request #11 from Vinod-V3/ED-431-v13
Vinod-V3 May 20, 2023
53deb55
Merge pull request #391 from Vinod-V3/release-6.0.0_v13
vishwanath1004 May 21, 2023
434f13f
Issue #ED-1682 fix : Ionic migration 5 to 6
May 25, 2023
fde8630
Issue #ED-98 feat : User consent for PII data for improvement projects
May 25, 2023
384606e
Issue #ED-432 fix : QA issue fix
May 25, 2023
b085ac4
Issue #ED-432 fix : QA issue fix
May 25, 2023
a1082fc
ISSUE #ED-431 fix : Changes done for PII consent and QA fixes
Vinod-V3 May 29, 2023
d935cfb
ISSUE #ED-430 fix : QA issue fix
Vinod-V3 May 29, 2023
2fa7bd9
ISSUE #ED-98 fix : Fix done related to PII consent flow for projects
Vinod-V3 May 29, 2023
b972290
Issue #ED-1682 fix : Ionic migration 5 to 6
May 30, 2023
183b931
Merge pull request #392 from Vinod-V3/sprint-6.0_5
vishwanath1004 May 30, 2023
981b690
Issue #ED-542 feat : Program tile for teachers
May 30, 2023
a6b915f
ISSUE #ED-99 feat : User consent for PII data for Observations
Vinod-V3 May 30, 2023
070e99a
ISSUE #ED-22 feat : Modification done for the Start improvement popup
Vinod-V3 May 30, 2023
f9ab1bb
ISSUE #ED-540 feat : Added PII popup for survey and observation, Star…
Vinod-V3 May 30, 2023
45e5dbc
ISSUE #ED-540 feat : Added PII popup for survey and observation, Star…
Vinod-V3 May 30, 2023
56dc755
Merge pull request #393 from Vinod-V3/sprint-6.0_5
vishwanath1004 May 31, 2023
1141958
Issue #SB-000 merge: Merge branch 'release-5.2.0' into master
swayangjit Jun 2, 2023
5107611
Issue #SB-000 chore: Update README.md
swayangjit Jun 2, 2023
d5dc3e4
Issue #SB-000 merge: Merge pull request #3421 from swayangjit/master
swayangjit Jun 2, 2023
d7a374f
Merge branch 'sprint-6.0_5' of https://github.com/Vinod-V3/SunbirdEd-…
Vinod-V3 Jun 2, 2023
8b3804d
ISSUE #ED-99 fix : QA issue fix
Vinod-V3 Jun 2, 2023
eb72ce4
ISSUE #ED-431 fix : QA issue fix
Vinod-V3 Jun 2, 2023
7f0259e
ISSUE #ED-98 fix : QA issue fix
Vinod-V3 Jun 2, 2023
7c91b90
ISSUE #ED-99 fix : QA issue fix
Vinod-V3 Jun 5, 2023
f0dfe0c
ISSUE #ED-431 fix : QA issue fix
Vinod-V3 Jun 5, 2023
f71c1cc
Merge pull request #394 from Vinod-V3/sprint-6.0_5
vishwanath1004 Jun 7, 2023
05af020
Issue #ED-430 fix : QA issue fix
Jun 9, 2023
7c09769
Issue #ED-98,#ED-522 fix : QA issue fixes.
Jun 12, 2023
b37f1c6
ISSUE #ED-540 feat : Pii consent flow changes done for Survey
Vinod-V3 Jun 12, 2023
55575f7
Merge pull request #12 from Vinod-V3/ED-540
Vinod-V3 Jun 12, 2023
d6cba0c
Merge pull request #395 from Vinod-V3/sprint-6.0_5
vishwanath1004 Jun 13, 2023
1536601
Merge branch 'Sunbird-Ed:master' into sprint-6.0_5
vishwanath1004 Jun 13, 2023
c58b346
Merge branch 'Sunbird-Ed:release-6.0.0_v13' into release-6.0.0_v13
vishwanath1004 Jun 13, 2023
de0352d
Issue #000 merge : merging code from release-6.0.0_v13
Jun 13, 2023
b4ef7ef
Merge pull request #396 from shikshalokam/sprint-6.0_5
vishwanath1004 Jun 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ISSUE #ED-540 feat : Added PII popup for survey and observation, Star…
…t improvement popup for observation
Vinod-V3 committed May 30, 2023
commit 45e5dbc253200b200d2cc17840ea9f93913f8468
Original file line number Diff line number Diff line change
@@ -149,6 +149,7 @@ export class DeeplinkRedirectComponent implements OnInit {
if (success.result) {
success.result.isATargetedSolution = data.isATargetedSolution;
success.result.programId = data.programId;
success.result.programName = data.programName;
this.redirectObservation(success.result);
}else{
this.location.back();
@@ -163,7 +164,7 @@ export class DeeplinkRedirectComponent implements OnInit {
async goToEntities(data) {
await this.router.navigate([`/${RouterLinks.HOME}`])
this.router.navigate([`/${RouterLinks.OBSERVATION}/${RouterLinks.OBSERVATION_DETAILS}`], {
queryParams: { solutionId: data.solutionId, solutionName: data.name, programId: data.programId }
queryParams: { solutionId: data.solutionId, solutionName: data.name, programId: data.programId, programName: data.programName }
});
}

2 changes: 2 additions & 0 deletions src/app/manage-learn/questionnaire/questionnaire.page.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<ion-content #pageTop>
<div (click)="showPopup()">
<div id="stop">
<div class="_container" *ngIf="submissionId || extrasState">
<ng-container *ngFor="let question of questions| slice:start:end; let i=index">
@@ -38,6 +39,7 @@ <h4 class="bold _flex-box sectionHeader ion-text-wrap" >{{question?.sectionHeade
</ng-container>
</div>
</div>
</div>
</ion-content>
<app-footer-buttons *ngIf="questions" [updatedData]="questions[start]" [data]="questions[start]" [isFirst]="!start" [isStartBTNEnabled]="isTargeted" [showStartButton]="extrasState && !isSurvey" [viewOnly]="isViewOnly"
[enableGps]="captureGpsLocationAtQuestionLevel" [isSubmitted]="isCurrentEvidenceSubmitted"
98 changes: 92 additions & 6 deletions src/app/manage-learn/questionnaire/questionnaire.page.ts
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ import { RouterLinks } from '../../../app/app.constant';
import { Network } from '@awesome-cordova-plugins/network/ngx';
import { AppHeaderService } from '../../../services/app-header.service';
import { CommonUtilService } from '../../../services/common-util.service';
import { GenericPopUpService } from '../shared';

@Component({
selector: 'app-questionnaire',
@@ -49,6 +50,7 @@ export class QuestionnairePage implements OnInit, OnDestroy {
networkAvailable;
isTargeted :boolean;
isSurvey : boolean = false;
payload: {}
constructor(
// public navCtrl: NavController,
// public navParams: NavParams,
@@ -70,7 +72,8 @@ export class QuestionnairePage implements OnInit, OnDestroy {
private modalCtrl: ModalController,
private translate: TranslateService,
private router: Router,
private commonUtilService:CommonUtilService
private commonUtilService:CommonUtilService,
private popupService: GenericPopUpService
) {
this.routerParam.queryParams.subscribe((params) => {
this.submissionId = params.submisssionId;
@@ -115,7 +118,7 @@ export class QuestionnairePage implements OnInit, OnDestroy {
}
}

getQuestions(data){
async getQuestions(data){
this.schoolData = data;
const currentEvidences = this.schoolData['assessment']['evidences'];
this.enableQuestionReadOut = this.schoolData['solution']['enableQuestionReadOut'];
@@ -140,8 +143,17 @@ export class QuestionnairePage implements OnInit, OnDestroy {
sectionName: currentEvidences[this.selectedEvidenceIndex]['sections'][this.selectedSectionIndex].name,
currentViewIndex: this.start,
};
this.payload = {consumerId: data.rootOrganisations||'', objectId: data.programId||data.program._id}
this.isCurrentEvidenceSubmitted = currentEvidences[this.selectedEvidenceIndex].isSubmitted;
if (!this.isSurvey && this.isCurrentEvidenceSubmitted || this.isViewOnly) {
if(data.hasOwnProperty('requestForPIIConsent') && data.programJoined && data?.requestForPIIConsent){
let profileData = await this.utils.getProfileInfo();
await this.popupService.getConsent('Program',this.payload,this.schoolData,profileData,'FRMELEMNTS_MSG_PROGRAM_JOINED_SUCCESS').then((response)=>{
if(response){
}
})
}

if ((!this.isSurvey && this.isCurrentEvidenceSubmitted || this.isViewOnly)|| (!this.schoolData.programJoined) ) {
document.getElementById('stop').style.pointerEvents = 'none';
}
}
@@ -155,9 +167,18 @@ export class QuestionnairePage implements OnInit, OnDestroy {
}

allowStart(){
this.schoolData['assessment']['evidences'][this.selectedEvidenceIndex].startTime = Date.now();
this.isViewOnly = false;
document.getElementById('stop').style.pointerEvents = 'auto';
if(this.schoolData?.programJoined){
this.popupService.showStartIMPForProjectPopUp('FRMELEMNTS_LBL_START_OBSERVATION_POPUP', 'FRMELEMNTS_LBL_START_OBSERVATION_POPUP_MSG1',
'FRMELEMNTS_LBL_START_OBSERVATION_POPUP_MSG2','FRMELEMNTS_LBL_START_OBSERVATION_POPUP').then((data:any)=>{
if(data){
this.schoolData['assessment']['evidences'][this.selectedEvidenceIndex].startTime = Date.now();
this.isViewOnly = false;
document.getElementById('stop').style.pointerEvents = 'auto';
}
})
}else{
this.joinProgram()
}
}
async startAction(){
await this.router.navigate([`/${RouterLinks.HOME}`]);
@@ -168,6 +189,15 @@ export class QuestionnairePage implements OnInit, OnDestroy {
ionViewDidLoad() {}

async openQuestionMap() {
this.headerConfig = this.headerService.getDefaultPageConfig();
this.headerConfig.actionButtons = ['questionMap'];
this.headerConfig.showHeader = true;
this.headerConfig.showBurgerMenu = false;
this.headerService.updatePageConfig(this.headerConfig);
if(this.isSurvey && !this.schoolData.programJoined){
this.joinProgram()
return
}
const questionModal = await this.modalCtrl.create({
component: QuestionMapModalComponent,
componentProps: {
@@ -185,6 +215,10 @@ export class QuestionnairePage implements OnInit, OnDestroy {
// images_CO_5bebcfcf92ec921dcf114828

next(status?: string) {
if(this.isSurvey && !this.schoolData.programJoined){
this.joinProgram()
return
}
this.pageTop.scrollToTop();
if (this.questions[this.start].responseType === 'pageQuestions') {
this.questions[this.start].endTime = this.questions[this.start] ? Date.now() : '';
@@ -494,6 +528,7 @@ export class QuestionnairePage implements OnInit, OnDestroy {
ionViewWillLeave() {
this.headerConfig.actionButtons = [];
this.headerService.updatePageConfig(this.headerConfig);
this.popupService.closeConsent()
}

showMessageForNONTargetUsers(){
@@ -503,4 +538,55 @@ export class QuestionnairePage implements OnInit, OnDestroy {
this.toast.openToast(msg,'','top');
});
}

joinProgram(){
let solutionType = this.isSurvey ? 'survey' : 'observation'
let programName = this.schoolData.programName || this.schoolData.program.name
this.popupService.showJoinProgramForProjectPopup("FRMELEMNTS_LBL_JOIN_PROGRAM_POPUP",programName, solutionType,
"FRMELEMNTS_LBL_JOIN_PROGRAM_POPUP","FRMELEMNTS_LBL_JOIN_PROGRAM_MSG_FOR_OBSERVATION").then(
async (data:any)=>{
if(data){
this.join()
}
}
)
}

async join(){
let profileData = await this.utils.getProfileInfo();
await this.popupService.join(this.schoolData,profileData).then(async(response:any)=>{
if(response){
this.schoolData.programJoined = true
this.showConsentPopup()
if(!this.schoolData.requestForPIIConsent){
this.commonUtilService.showToast('FRMELEMNTS_MSG_PROGRAM_JOINED_SUCCESS');
if(this.isSurvey){
document.getElementById('stop').style.pointerEvents = 'auto';
}
}
}
})
}

async showConsentPopup(){
let profileData = await this.utils.getProfileInfo();
if(this.schoolData?.requestForPIIConsent){
this.popupService.showConsent('Program',this.payload,this.schoolData, profileData,'FRMELEMNTS_MSG_PROGRAM_JOINED_SUCCESS').then(async(data)=>{
if(data){
if(this.isSurvey){
document.getElementById('stop').style.pointerEvents = 'auto';
}
}
})
}
}

showPopup(){
if(!this.schoolData?.programJoined){
this.joinProgram()
}else if(this.schoolData.programJoined && !this.isSurvey && this.isViewOnly){
this.allowStart()
}
}

}
5 changes: 4 additions & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
@@ -1396,5 +1396,8 @@
"EXPLORE_PROGRAMS":"Explore Programs",
"FRMELEMNTS_LBL_SEARCH_PROGRAMS_PLACEHOLDER":"Search your programs here",
"FRMELEMNTS_LBL_JOIN_PROGRAM_MSG_FOR_OBSERVATION":"You must join {{name}} program to view and access this {{type}}.",
"FRMELEMNTS_MSG_PROGRAM_JOINED_SUCCESS":"You have joined this program successfully"
"FRMELEMNTS_MSG_PROGRAM_JOINED_SUCCESS":"You have joined this program successfully",
"FRMELEMNTS_LBL_START_OBSERVATION_POPUP":"Start observation",
"FRMELEMNTS_LBL_START_OBSERVATION_POPUP_MSG1":"You must click on the Start observation button to access and edit the observation.",
"FRMELEMNTS_LBL_START_OBSERVATION_POPUP_MSG2":"Click on the Start observation to get complete access to the content"
}