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

Kb release 3.1 #53

Open
wants to merge 129 commits into
base: release-3.0.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
37c7495
Merge pull request #50 from sunbird-cb/release-3.0.1
kiranharidas187 Aug 8, 2024
f5cd0ca
Merge pull request #52 from sunbird-cb/release-3.0.1
kiranharidas187 Aug 8, 2024
7c5e23f
bug fix 1307
Aug 8, 2024
8abf7cf
Merge pull request #557 from rahulramakrishnan3/release-3.1.0
Cafnanc Aug 8, 2024
d502026
adding console log
Aug 8, 2024
47f843e
Merge pull request #558 from rahulramakrishnan3/release-3.1.0
Cafnanc Aug 8, 2024
f04d942
comments
Aug 8, 2024
9918ef6
Merge pull request #559 from rahulramakrishnan3/release-3.1.0
Cafnanc Aug 8, 2024
4209191
console log removed
Aug 8, 2024
6eee52a
Merge pull request #560 from rahulramakrishnan3/release-3.1.0
Cafnanc Aug 8, 2024
bb711f1
bug fix for 1654
Aug 12, 2024
817d3b8
Merge pull request #561 from rahulramakrishnan3/release-3.1.0
Cafnanc Aug 12, 2024
02ffacd
form update
Aug 13, 2024
42dd8e9
mentor and mentee "addPopupType": "addUser"
Aug 13, 2024
97e665e
"addPopupType": "addCompetency", is added
Aug 13, 2024
2b08e40
console log removed
Aug 13, 2024
a1ffe9a
Merge pull request #562 from rahulramakrishnan3/release-3.1.0
Cafnanc Aug 13, 2024
741d3af
Update Dockerfile
Cafnanc Aug 14, 2024
0b70173
Update http.service.ts
Cafnanc Aug 14, 2024
f7dba99
Merge pull request #563 from Cafnanc/KB_release-3.0.1
Cafnanc Aug 14, 2024
cf9dde9
Merge branch 'release-3.0.1' into KB_release-3.0.1
Cafnanc Aug 19, 2024
1377011
Merge pull request #2 from Cafnanc/KB_release-3.0.1
kiranharidas187 Aug 19, 2024
867895b
Merge pull request #3 from KB-iGOT/release-3.0.1
kiranharidas187 Aug 20, 2024
ccc1e80
bug fix : 1668
Aug 20, 2024
af49881
bug fix 1682
Aug 20, 2024
9584096
Update user-list-modal.component.scss
Cafnanc Aug 21, 2024
0e118dc
Update auth.service.ts
Cafnanc Aug 21, 2024
e941f46
Update forms.json
Cafnanc Aug 21, 2024
96f91c3
Merge pull request #565 from Cafnanc/KB_release-3.0.1
Cafnanc Aug 21, 2024
6f6fda4
Update forms.json
Cafnanc Aug 21, 2024
30a9d20
Update forms.json
Cafnanc Aug 21, 2024
3945475
Merge pull request #4 from ELEVATE-Project/KB-release-3.1
kiranharidas187 Aug 21, 2024
b054db5
Merge pull request #5 from KB-iGOT/release-3.0.1
kiranharidas187 Aug 21, 2024
0fba245
bug fix 1680
Aug 21, 2024
832690a
bug fix 1708
Aug 21, 2024
4a2fa16
bug fix 1680
Aug 22, 2024
a571490
bug fix 1715
Aug 22, 2024
0ae394b
bug fix 1705
Aug 22, 2024
ce4e01f
bug fix 1693
Aug 22, 2024
8a066ba
bug fix 1715
Aug 22, 2024
f12f5fb
variable name changes
Aug 22, 2024
81ab7b2
form change
Aug 26, 2024
8d2037a
Update http.service.ts
Cafnanc Aug 27, 2024
84dab2b
Update http.service.ts
Cafnanc Aug 27, 2024
03be3cc
Merge pull request #6 from Cafnanc/KB_release-3.0.1
kiranharidas187 Aug 27, 2024
7a1a05f
Merge pull request #7 from KB-iGOT/release-3.0.1
kiranharidas187 Aug 27, 2024
bc0bae7
Update filter-popup.component.scss
Cafnanc Aug 28, 2024
8f5e23d
Update mentor-details.page.ts
Cafnanc Aug 28, 2024
a0a3809
Merge pull request #9 from Cafnanc/KB_release-3.0.1
kiranharidas187 Aug 28, 2024
94085a4
Merge pull request #8 from Cafnanc/patch-21
kiranharidas187 Aug 28, 2024
50db8e6
Merge pull request #10 from KB-iGOT/release-3.0.1
kiranharidas187 Aug 28, 2024
7b30b4c
Update generic-profile-header.component.html
Cafnanc Aug 29, 2024
b3f398c
Merge pull request #11 from ELEVATE-Project/KB-release-3.1
kiranharidas187 Aug 29, 2024
f021d58
Merge pull request #12 from KB-iGOT/release-3.0.1
kiranharidas187 Aug 29, 2024
02dfc1a
Merge remote-tracking branch 'upstream/KB-release-3.1' into KB-releas…
Sep 3, 2024
6d69241
environment file change
Sep 3, 2024
9cb1b26
Merge pull request #569 from rahulramakrishnan3/KB-release-3.1
Cafnanc Sep 3, 2024
07569fa
Merge pull request #13 from ELEVATE-Project/KB-release-3.1
kiranharidas187 Sep 3, 2024
b3281d4
Merge pull request #14 from KB-iGOT/release-3.0.1
kiranharidas187 Sep 3, 2024
282d639
Update home-search.page.scss
Cafnanc Sep 3, 2024
7805552
Merge pull request #15 from Cafnanc/KB_release-3.0.1
kiranharidas187 Sep 3, 2024
045581c
Merge pull request #16 from KB-iGOT/release-3.0.1
kiranharidas187 Sep 3, 2024
beba538
Update global.scss
Cafnanc Sep 3, 2024
90f35c8
Update index.html
Cafnanc Sep 3, 2024
81abb29
Update private.page.scss
Cafnanc Sep 3, 2024
f3013bd
Update home.page.scss
Cafnanc Sep 3, 2024
8a73244
Update generic-header.component.scss
Cafnanc Sep 3, 2024
95e4be5
Update generic-profile-header.component.html
Cafnanc Sep 3, 2024
d5b898f
Update generic-profile-header.component.html
Cafnanc Sep 3, 2024
b61a43e
Update variables.scss
Cafnanc Sep 3, 2024
0a83184
Update generic-profile-header.component.html
Cafnanc Sep 3, 2024
7c1dcac
Merge pull request #17 from Cafnanc/KB_release-3.0.1
kiranharidas187 Sep 3, 2024
1856b40
Merge pull request #18 from KB-iGOT/release-3.0.1
kiranharidas187 Sep 3, 2024
963a839
Update index.html
Cafnanc Sep 4, 2024
4bf9c70
Merge pull request #19 from Cafnanc/KB_release-3.0.1
kiranharidas187 Sep 4, 2024
448a323
Merge pull request #20 from KB-iGOT/release-3.0.1
kiranharidas187 Sep 4, 2024
a4d6e69
Merge remote-tracking branch 'kb/master' into KB-specific-release-3.1
Cafnanc Sep 4, 2024
07b607a
font changes
Cafnanc Sep 4, 2024
f3a631d
bug fixes KB
Cafnanc Sep 4, 2024
6683ce7
fix
Cafnanc Sep 4, 2024
e07e011
bug fix: 1835
Cafnanc Sep 5, 2024
70c2988
Bug fix: 1818
Cafnanc Sep 5, 2024
6ff8c88
Bug fixes KB
Cafnanc Sep 6, 2024
2d762ed
Bug fix
Cafnanc Sep 6, 2024
9a39092
bug fix
Cafnanc Sep 6, 2024
8eba067
Bug fix
Cafnanc Sep 6, 2024
cbf09ee
fix
Cafnanc Sep 6, 2024
28a8963
bug fix
Cafnanc Sep 6, 2024
55f7b81
Dahsboard issue
Cafnanc Sep 11, 2024
6db5fe9
Merge pull request #574 from Cafnanc/KB-specific-release-3.1
Cafnanc Sep 11, 2024
929c72d
disabled download
Cafnanc Sep 11, 2024
f4d793e
bug fix
Cafnanc Sep 11, 2024
db64eb2
fix
Cafnanc Sep 11, 2024
c4e272c
fix
Cafnanc Sep 11, 2024
0d35883
fix
Cafnanc Sep 11, 2024
811e896
fix
Cafnanc Sep 11, 2024
aa1167c
fix
Cafnanc Sep 12, 2024
8d62e41
fix
Cafnanc Sep 12, 2024
f613dc8
bug fixes
Cafnanc Sep 13, 2024
4fc2f1d
fixed bug
Cafnanc Sep 13, 2024
62ebf9a
fix
Cafnanc Sep 13, 2024
628f629
Bug fixes
Cafnanc Sep 16, 2024
420b600
bug fixes
Cafnanc Sep 16, 2024
3f21ea3
Update home.page.html
Cafnanc Sep 18, 2024
22d3761
Update home-search.page.html
Cafnanc Sep 18, 2024
b87c165
Update home-search.page.html
Cafnanc Sep 18, 2024
ddbc497
Update mentor-search-directory.page.html
Cafnanc Sep 18, 2024
8a4f31c
Update dynamic-form.component.ts
Cafnanc Sep 18, 2024
f035474
Update dynamic-form.component.html
Cafnanc Sep 18, 2024
8d55ee5
Update dynamic-form.component.html
Cafnanc Sep 19, 2024
a9fcd3e
Update dynamic-form.component.ts
Cafnanc Sep 19, 2024
1a5d28a
Update mentor-search-directory.page.ts
Cafnanc Sep 19, 2024
06b62e0
Update mentor-search-directory.page.html
Cafnanc Sep 19, 2024
c2b2738
Update home-search.page.ts
Cafnanc Sep 19, 2024
4df9889
Update home-search.page.html
Cafnanc Sep 19, 2024
aa04216
Update home.page.ts
Cafnanc Sep 19, 2024
6b4a34c
Update home.page.html
Cafnanc Sep 19, 2024
51a90a8
Update mentor-search-directory.page.ts
Cafnanc Sep 19, 2024
5dc741e
Update home.page.ts
Cafnanc Sep 19, 2024
9ed8b25
Update forms.json
Cafnanc Sep 19, 2024
6f28a24
Update formsManager.js
Cafnanc Sep 20, 2024
2cb1140
Update forms.json
Cafnanc Sep 20, 2024
086ace7
Update forms.json
Cafnanc Sep 20, 2024
f123b07
Update forms.json
Cafnanc Sep 20, 2024
4dd0227
Update forms.json
Cafnanc Sep 20, 2024
f6f9bb5
Update mentor-details.page.ts
Cafnanc Sep 30, 2024
0a9b5eb
Update generic-details.component.html
Cafnanc Sep 30, 2024
56b10d4
Update generic-details.component.scss
Cafnanc Sep 30, 2024
3266b79
Merge pull request #579 from Cafnanc/KB-specific-release-3.1
Cafnanc Sep 30, 2024
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
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ RUN npm install -g @ionic/[email protected]

RUN rm -rf node_modules

RUN rm -rf www

COPY package*.json ./

RUN npm install --force
Expand Down
172 changes: 138 additions & 34 deletions forms.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"type": "editProfile",
"sub_type": "editProfileForm",
"action": "skip",
"action": "update",
"data": {
"templateName": "defaultTemplate",
"fields": {
Expand Down Expand Up @@ -459,40 +459,39 @@
"name": "competencies",
"label": "Competencies",
"class": "ion-no-margin",
"value": "",
"value": [],
"type": "search",
"position": "",
"disabled": false,
"errorMessage": {
"required": "Enter competencies"
"required": "Enter competencies"
},
"validators": {
"required": true
"required": true
},
"options": [
],
"options": [],
"meta": {
"entityType": "competencies",
"addNewPopupHeader": "Competencies",
"addNewPopupSubHeader": "Who is this session for?",
"showSelectAll": true,
"multiSelect": true,
"showAddOption": {
"showAddButton": true,
"addChipLabel": ""
},
"allow_custom_entities": true,
"allow_filtering": true,
"addPopupType": "addCompetency"
"entityType": "competencies",
"addNewPopupHeader": "Competencies",
"addNewPopupSubHeader": "Who is this session for?",
"showSelectAll": true,
"multiSelect": true,
"showAddOption": {
"showAddButton": true,
"addChipLabel": ""
},
"allow_custom_entities": true,
"allow_filtering": true,
"addPopupType": "addCompetency"
},
"multiple": true
},
},
{
"name": "medium",
"label": "Select medium",
"label": "Medium",
"alertLabel": "medium",
"class": "ion-no-margin",
"value": "",
"value": [],
"type": "search",
"position": "",
"disabled": false,
Expand All @@ -502,11 +501,19 @@
"validators": {
"required": true
},
"options": [],
"options": [
{
"label": "English",
"value": "en_in"
},
{
"label": "Hindi",
"value": "hi"
}
],
"meta": {
"entityType": "medium",
"addNewPopupHeader": "Add new medium",
"addNewPopupSubHeader": "Medium for the session",
"addNewPopupHeader": "Add new language",
"showSelectAll": true,
"multiSelect": true,
"showAddOption": {
Expand All @@ -526,7 +533,7 @@
{
"type": "managersSession",
"sub_type": "managersSessionForm",
"action": "skip",
"action": "update",
"data": {
"template_name": "defaultTemplate",
"fields": {
Expand Down Expand Up @@ -672,7 +679,7 @@
"searchData": [],
"maxCount": "MAX_MENTEE_ENROLLMENT_COUNT",
"labelForListButton": "View Mentee List",
"labelForAddButton": "Add New Mentee",
"labelForAddButton": "Add Mentee",
"filters": {
"entity_types": [
{
Expand Down Expand Up @@ -742,8 +749,8 @@
"name": "recommended_for",
"label": "Recommended for",
"class": "ion-no-margin",
"value": "",
"type": "chip",
"value": [],
"type": "search",
"position": "",
"disabled": false,
"errorMessage": {
Expand Down Expand Up @@ -790,8 +797,8 @@
"name": "categories",
"label": "Categories",
"class": "ion-no-margin",
"value": "",
"type": "chip",
"value": [],
"type": "search",
"position": "",
"disabled": false,
"errorMessage": {
Expand Down Expand Up @@ -838,8 +845,8 @@
"label": "Select medium",
"alertLabel": "medium",
"class": "ion-no-margin",
"value": "",
"type": "chip",
"value": [],
"type": "search",
"position": "",
"disabled": false,
"errorMessage": {
Expand Down Expand Up @@ -876,7 +883,7 @@
{
"type": "helpApp",
"sub_type": "helpAppForm",
"action": "skip",
"action": "update",
"data": {
"fields": {
"forms": [
Expand Down Expand Up @@ -941,7 +948,7 @@
{
"type": "mentorQuestionnaire",
"sub_type": "mentorQuestionnaireForm",
"action": "skip",
"action": "update",
"data": {
"templateName": "defaultTemplate",
"fields": {
Expand Down Expand Up @@ -1040,5 +1047,102 @@
]
}
}
},
{
"type": "dashboard",
"sub_type": "dashboardForm",
"action": "create",
"data": {
"template_name": "defaultTemplate",
"fields": {
"mentor": [
{
"type": "bar",
"data": {
"labels": [
"Total sessions created",
"Total sessions conducted"
],
"datasets": [
{
"label": "",
"data": [
"total_session_created",
"total_session_hosted"
],
"backgroundColor": [
"#4e81bd",
"#fdc107",
"#5ab251"
],
"borderWidth": 1,
"barThickness": 50
}
]
},
"options": {
"responsive": true,
"maintainAspectRatio": false,
"plugins": {
"legend": {
"display": false
}
},
"scales": {
"y": {
"ticks": {
"stepSize": 0
},
"grid": {
"display": false
}
},
"x": {
"grid": {
"display": false
}
}
}
}
}
],
"mentee": [
{
"type": "pie",
"data": {
"labels": [
"Total sessions enrolled",
"Total sessions attended"
],
"datasets": [
{
"label": "",
"data": [
"total_session_enrolled",
"total_session_attended"
],
"backgroundColor": [
"#ffdf00",
"#7b7b7b"
],
"borderWidth": 1,
"barThickness": 50
}
]
},
"options": {
"responsive": true,
"maintainAspectRatio": false,
"plugins": {
"legend": {
"display": false
}
},
"scales": {}
}
}
]
}
}
}
]
10 changes: 7 additions & 3 deletions formsManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const path = require("path");

const authToken = process.env.AUTH_TOKEN;
const apiUrl = process.env.API_URL;
const authorization = process.env.AUTHORIZATION;
const adminAuthToken = process.env.ADMIN_AUTH_TOKEN;
const organizationId = process.env.ORGANIZATION_ID;


const args = process.argv.slice(2);
const actionsApplicable = ["skip", "update","create"]
Expand All @@ -17,7 +21,7 @@ const createForm = async (form) => {
const response = await axios.post(
`${apiUrl}/mentoring/v1/form/create`,
form,
{ headers: { 'X-auth-token': `bearer ${authToken}` } }
{ headers: { 'x-authenticated-user-token': `${authToken}`, 'Authorization': `bearer ${authorization}`, 'admin-auth-token': `${adminAuthToken}`, 'organization-id': `${organizationId}` } }
);
if(response){
console.log("Form created successfully:", response.data);
Expand All @@ -33,7 +37,7 @@ const updateForm = async (form) => {
const response = await axios.put(
`${apiUrl}/mentoring/v1/form/update`,
form,
{ headers: { 'X-auth-token': `bearer ${authToken}` } }
{ headers: { 'x-authenticated-user-token': `${authToken}`, 'Authorization': `bearer ${authorization}`, 'admin-auth-token': `${adminAuthToken}`, 'organization-id': `${organizationId}` } }
);
if(response){
console.log("Form updated successfully:", response.data);
Expand Down Expand Up @@ -82,4 +86,4 @@ const createOrUpdateForms = async () => {
saveFormsToFile();
};

createOrUpdateForms();
createOrUpdateForms();
5 changes: 5 additions & 0 deletions src/app/core/constants/formConstant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,9 @@ export const SAMPLE_CSV_DOWNLOAD_URL = {
export const MANAGERS_CREATE_SESSION_FORM: IFORM = {
"type": "managersSession",
"sub_type": "managersSessionForm",
}

export const DASHBOARD: IFORM = {
"type": "dashboard",
"sub_type": "dashboardForm",
}
4 changes: 2 additions & 2 deletions src/app/core/services/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ export class AuthService {
await this.db.clear()
this.userService.token = null;
this.userService.userEvent.next(null);
this.router.navigate([environment.unauthorizedRedirectUrl], {
this.router.navigate([window['env']['unauthorizedRedirectUrl']], {
replaceUrl: true
});
this.translate.use("en")
}
}
}
2 changes: 1 addition & 1 deletion src/app/core/services/form/form.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class FormService {
await entityList.map((entityName)=>{
if(Array.isArray(existingData[entityName])){
existingData[entityName] = existingData[entityName].map((data)=>{
return { label : data.label, value : data.value == 'other' ? data.label : data.value }
return { label : data.label, value : data.value == 'other' ? data.label : data.value, type: data.value }
})
}
})
Expand Down
Loading