-
-
Notifications
You must be signed in to change notification settings - Fork 707
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
feat: Integrated Dicebear Library To Enhance Security #1585
feat: Integrated Dicebear Library To Enhance Security #1585
Conversation
- Added the Dicebear library as a dependency to the project. - Imported the necessary functions from the library. - Created a new `Avatar` component that utilizes the Dicebear library locally. - Updated the component to accept `name`, `alt`, and `size` as props. - Utilized the Dicebear library to generate avatars with initials. - Removed direct HTTP API calls from the codebase. - Replaced instances of direct HTTP API calls with the newly created `Avatar` component. - Updated the exisiting tests and ensured the tests are still valid. - Mitigated security risks associated with SSRF and XSS attacks by eliminating direct HTTP API calls. - By using the Dicebear library locally, we reduce potential vulnerabilities. - Ensured no other functionality is affected. Signed-off-by: Akhilender <[email protected]>
Our Pull Request Approval ProcessWe have these basic policies to make the approval process smoother for our volunteer team. Testing Your CodePlease make sure your code passes all tests. Our test code coverage system will fail if these conditions occur:
The process helps maintain the overall reliability of the code base and is a prerequisite for getting your PR approved. Assigned reviewers regularly review the PR queue and tend to focus on PRs that are passing. ReviewersDo not assign reviewers. Our Queue Monitors will review your PR and assign them.
Reviewing Your CodeYour reviewer(s) will have the following roles:
CONTRIBUTING.mdRead our CONTRIBUTING.md file. Most importantly:
Other
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1585 +/- ##
========================================
Coverage 98.09% 98.10%
========================================
Files 138 139 +1
Lines 3681 3689 +8
Branches 1132 1135 +3
========================================
+ Hits 3611 3619 +8
Misses 64 64
Partials 6 6 ☔ View full report in Codecov by Sentry. |
I was also getting this error
@rishav-jha-mech, I would like to hear your views on the approach I followed to solve the above problem. |
@rishav-jha-mech @noman2002 Could you help answer this question? |
@Kevoniat @beingnoble03 Can you review this PR? |
NOTE Read very carefully
This will put your PR at risk of extensive merge conflicts. Do the following IN THIS ORDER:
This will help to reduce the number of existing and future merge conflicts for your PR. |
Signed-off-by: Akhilender <[email protected]>
@beingnoble03 @Kevoniat please review : ) |
Why didn't the GitHub Action: authorized-changes-detection not run ? // @palisadoes |
- Reverted the Avatar component in all the tests as they are redundant in tests except where it is needed. - Ensured all the remaning tests are succesfully passing. Signed-off-by: Akhilender <[email protected]>
- Handled case where no alt tag is provided by adding default alt value. - dynamic rendering for className for img tag in avatar component - Dynamic rendering for test-id - Replaced suitable changes for the above properties added Signed-off-by: Akhilender <[email protected]>
Signed-off-by: Akhilender <[email protected]>
@rishav-jha-mech @beingnoble03 @Kevoniat please review, I have modified the code as suggested : ) |
@palisadoes, could you please review |
Signed-off-by: Akhilender <[email protected]>
@akhilender-bongirwar please fix the failing test for Introspection |
@rishav-jha-mech the introspection tests are going to fail at this time. The API has a significant amount of new features not present in admin Please review |
@rishav-jha-mech, the introspection test failures are not caused by my changes. Please check issue number #1542. |
7828c40
into
PalisadoesFoundation:develop
This reverts commit 7828c40.
commit 6e157db Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:49:06 2024 -0800 Revert "Revert "feat: Integrated Dicebear Library To Enhance Security (PalisadoesFoundation#1585)…" (PalisadoesFoundation#1635) This reverts commit ebcc977. commit ebcc977 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:47:08 2024 -0800 Revert "feat: Integrated Dicebear Library To Enhance Security (PalisadoesFoundation#1585)" (PalisadoesFoundation#1634) This reverts commit 7828c40. commit da8df05 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:46:19 2024 -0800 Revert "Revert "feat: Add support for Action Items (PalisadoesFoundation#1596)" (PalisadoesFoundation#1632)" (PalisadoesFoundation#1633) This reverts commit 22bdfa9. commit 22bdfa9 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:44:15 2024 -0800 Revert "feat: Add support for Action Items (PalisadoesFoundation#1596)" (PalisadoesFoundation#1632) This reverts commit a71db3b. commit a71db3b Author: Meetul Rathore <[email protected]> Date: Thu Feb 29 00:24:58 2024 +0530 feat: Add support for Action Items (PalisadoesFoundation#1596) * add mutations and queries * add translations * add tests * add dropdown for toggling settings on small screens * minor corrections * minor change * initial changes * basic design * add basic modals * add create action item functionality * add update functionality * add delete functionality * add details modal * extract modals and restructure * add sorting * remove unnecessary files * add filters and design adjustments * add translations * don't show disabled action item categories * add tests for OrganizationActionItems.tsx * add tests for ActionItemContainer.tsx * add filters section * minor adjustments * move mutations and queries into separate files * fix failing test * format files * use css variables for colors * write test for IconComponent.tsx commit 7828c40 Author: Akhilender Bongirwar <[email protected]> Date: Wed Feb 28 17:59:21 2024 +0530 feat: Integrated Dicebear Library To Enhance Security (PalisadoesFoundation#1585) * feat: Integrated Dicebear Library To Enhance Security - Added the Dicebear library as a dependency to the project. - Imported the necessary functions from the library. - Created a new `Avatar` component that utilizes the Dicebear library locally. - Updated the component to accept `name`, `alt`, and `size` as props. - Utilized the Dicebear library to generate avatars with initials. - Removed direct HTTP API calls from the codebase. - Replaced instances of direct HTTP API calls with the newly created `Avatar` component. - Updated the exisiting tests and ensured the tests are still valid. - Mitigated security risks associated with SSRF and XSS attacks by eliminating direct HTTP API calls. - By using the Dicebear library locally, we reduce potential vulnerabilities. - Ensured no other functionality is affected. Signed-off-by: Akhilender <[email protected]> * fix: Reverted changes in the tests - Reverted the Avatar component in all the tests as they are redundant in tests except where it is needed. - Ensured all the remaning tests are succesfully passing. Signed-off-by: Akhilender <[email protected]> * fix: Added dynamic style - Handled case where no alt tag is provided by adding default alt value. - dynamic rendering for className for img tag in avatar component - Dynamic rendering for test-id - Replaced suitable changes for the above properties added Signed-off-by: Akhilender <[email protected]> * fix: modified test Signed-off-by: Akhilender <[email protected]> * fix: resolved conflict Signed-off-by: Akhilender <[email protected]> --------- Signed-off-by: Akhilender <[email protected]> commit 092b9f6 Author: Disha Talreja <[email protected]> Date: Tue Feb 27 23:13:24 2024 +0530 feat: implemented support to upload media while creating and updating advertisements (PalisadoesFoundation#1529) * feat: implemented support to upload media in advertisement register component * fix: failing tests * fix: failing tests * removed commented code * fix: failing tests * renamed link variable to mediaUrl * updated the type of mediaUrl * updated schema and mutation for createAdvertisement * removed unused variables * Added support to display advertisement image/video in user portal * fix: failing tests * fix: failing tests * reverted unwanted changes * fix: failing tests * fix: failing tests * added translations for different languages and improved variable names * Updated variable name and input fields for creating advertisements * fix: failing tests * fix: failing tests * updated get advertisement query * fix: update advertisement feature * removed unwanted curly braces * fix failing tests * updated type of file * fix: formatting issues * fix: formatting issues * updated variable name and fix cross origin error * removed: unwanted curly braces * fix: failing tests * added oragnization resolver for advertisement * removed unwanted code * fix: failing tests * fix: formatting issues * fix: formatting issues * fix: formatting issues * fix: failing tests * fix: advertisements not rendering * fix: removed unused imports * fix: linting errors * Update documentation * Updated mutation to delete advertisement * Update documentation * fix: formatting issues * fix: type error * fix: lint errors * fix: error * fix: advertisements not rendering on user portal * fix: not same origin error while rendering video * Updated deleteAdvertisement mutation and advertisementsConnection mutation * fix: failing tests commit 9ffa02b Author: Peter Harrison <[email protected]> Date: Tue Feb 27 09:19:26 2024 -0800 Enforce Node v20 commit 9d2689a Author: Anvita Mahajan <[email protected]> Date: Tue Feb 27 22:21:20 2024 +0530 Increased code coverage for src/components/AddOn/core/AddOnStore/AddOnStore.tsx file (PalisadoesFoundation#1614) * Added tests for AddOnStore/AddOnStore.tsx * Fixed linting errors * Fixed warnings due to linting errors * Removed commented code
* fix postByConnectionQuery * Squashed commit of the following: commit 6e157db Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:49:06 2024 -0800 Revert "Revert "feat: Integrated Dicebear Library To Enhance Security (#1585)…" (#1635) This reverts commit ebcc977. commit ebcc977 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:47:08 2024 -0800 Revert "feat: Integrated Dicebear Library To Enhance Security (#1585)" (#1634) This reverts commit 7828c40. commit da8df05 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:46:19 2024 -0800 Revert "Revert "feat: Add support for Action Items (#1596)" (#1632)" (#1633) This reverts commit 22bdfa9. commit 22bdfa9 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:44:15 2024 -0800 Revert "feat: Add support for Action Items (#1596)" (#1632) This reverts commit a71db3b. commit a71db3b Author: Meetul Rathore <[email protected]> Date: Thu Feb 29 00:24:58 2024 +0530 feat: Add support for Action Items (#1596) * add mutations and queries * add translations * add tests * add dropdown for toggling settings on small screens * minor corrections * minor change * initial changes * basic design * add basic modals * add create action item functionality * add update functionality * add delete functionality * add details modal * extract modals and restructure * add sorting * remove unnecessary files * add filters and design adjustments * add translations * don't show disabled action item categories * add tests for OrganizationActionItems.tsx * add tests for ActionItemContainer.tsx * add filters section * minor adjustments * move mutations and queries into separate files * fix failing test * format files * use css variables for colors * write test for IconComponent.tsx commit 7828c40 Author: Akhilender Bongirwar <[email protected]> Date: Wed Feb 28 17:59:21 2024 +0530 feat: Integrated Dicebear Library To Enhance Security (#1585) * feat: Integrated Dicebear Library To Enhance Security - Added the Dicebear library as a dependency to the project. - Imported the necessary functions from the library. - Created a new `Avatar` component that utilizes the Dicebear library locally. - Updated the component to accept `name`, `alt`, and `size` as props. - Utilized the Dicebear library to generate avatars with initials. - Removed direct HTTP API calls from the codebase. - Replaced instances of direct HTTP API calls with the newly created `Avatar` component. - Updated the exisiting tests and ensured the tests are still valid. - Mitigated security risks associated with SSRF and XSS attacks by eliminating direct HTTP API calls. - By using the Dicebear library locally, we reduce potential vulnerabilities. - Ensured no other functionality is affected. Signed-off-by: Akhilender <[email protected]> * fix: Reverted changes in the tests - Reverted the Avatar component in all the tests as they are redundant in tests except where it is needed. - Ensured all the remaning tests are succesfully passing. Signed-off-by: Akhilender <[email protected]> * fix: Added dynamic style - Handled case where no alt tag is provided by adding default alt value. - dynamic rendering for className for img tag in avatar component - Dynamic rendering for test-id - Replaced suitable changes for the above properties added Signed-off-by: Akhilender <[email protected]> * fix: modified test Signed-off-by: Akhilender <[email protected]> * fix: resolved conflict Signed-off-by: Akhilender <[email protected]> --------- Signed-off-by: Akhilender <[email protected]> commit 092b9f6 Author: Disha Talreja <[email protected]> Date: Tue Feb 27 23:13:24 2024 +0530 feat: implemented support to upload media while creating and updating advertisements (#1529) * feat: implemented support to upload media in advertisement register component * fix: failing tests * fix: failing tests * removed commented code * fix: failing tests * renamed link variable to mediaUrl * updated the type of mediaUrl * updated schema and mutation for createAdvertisement * removed unused variables * Added support to display advertisement image/video in user portal * fix: failing tests * fix: failing tests * reverted unwanted changes * fix: failing tests * fix: failing tests * added translations for different languages and improved variable names * Updated variable name and input fields for creating advertisements * fix: failing tests * fix: failing tests * updated get advertisement query * fix: update advertisement feature * removed unwanted curly braces * fix failing tests * updated type of file * fix: formatting issues * fix: formatting issues * updated variable name and fix cross origin error * removed: unwanted curly braces * fix: failing tests * added oragnization resolver for advertisement * removed unwanted code * fix: failing tests * fix: formatting issues * fix: formatting issues * fix: formatting issues * fix: failing tests * fix: advertisements not rendering * fix: removed unused imports * fix: linting errors * Update documentation * Updated mutation to delete advertisement * Update documentation * fix: formatting issues * fix: type error * fix: lint errors * fix: error * fix: advertisements not rendering on user portal * fix: not same origin error while rendering video * Updated deleteAdvertisement mutation and advertisementsConnection mutation * fix: failing tests commit 9ffa02b Author: Peter Harrison <[email protected]> Date: Tue Feb 27 09:19:26 2024 -0800 Enforce Node v20 commit 9d2689a Author: Anvita Mahajan <[email protected]> Date: Tue Feb 27 22:21:20 2024 +0530 Increased code coverage for src/components/AddOn/core/AddOnStore/AddOnStore.tsx file (#1614) * Added tests for AddOnStore/AddOnStore.tsx * Fixed linting errors * Fixed warnings due to linting errors * Removed commented code * fix formatting error * fix * added test
This PR created a
|
@palisadoes, I added the
|
|
Sure, sir. I will do it asap. |
* fix postByConnectionQuery * Squashed commit of the following: commit 6e157db Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:49:06 2024 -0800 Revert "Revert "feat: Integrated Dicebear Library To Enhance Security (#1585)…" (#1635) This reverts commit ebcc977. commit ebcc977 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:47:08 2024 -0800 Revert "feat: Integrated Dicebear Library To Enhance Security (#1585)" (#1634) This reverts commit 7828c40. commit da8df05 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:46:19 2024 -0800 Revert "Revert "feat: Add support for Action Items (#1596)" (#1632)" (#1633) This reverts commit 22bdfa9. commit 22bdfa9 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:44:15 2024 -0800 Revert "feat: Add support for Action Items (#1596)" (#1632) This reverts commit a71db3b. commit a71db3b Author: Meetul Rathore <[email protected]> Date: Thu Feb 29 00:24:58 2024 +0530 feat: Add support for Action Items (#1596) * add mutations and queries * add translations * add tests * add dropdown for toggling settings on small screens * minor corrections * minor change * initial changes * basic design * add basic modals * add create action item functionality * add update functionality * add delete functionality * add details modal * extract modals and restructure * add sorting * remove unnecessary files * add filters and design adjustments * add translations * don't show disabled action item categories * add tests for OrganizationActionItems.tsx * add tests for ActionItemContainer.tsx * add filters section * minor adjustments * move mutations and queries into separate files * fix failing test * format files * use css variables for colors * write test for IconComponent.tsx commit 7828c40 Author: Akhilender Bongirwar <[email protected]> Date: Wed Feb 28 17:59:21 2024 +0530 feat: Integrated Dicebear Library To Enhance Security (#1585) * feat: Integrated Dicebear Library To Enhance Security - Added the Dicebear library as a dependency to the project. - Imported the necessary functions from the library. - Created a new `Avatar` component that utilizes the Dicebear library locally. - Updated the component to accept `name`, `alt`, and `size` as props. - Utilized the Dicebear library to generate avatars with initials. - Removed direct HTTP API calls from the codebase. - Replaced instances of direct HTTP API calls with the newly created `Avatar` component. - Updated the exisiting tests and ensured the tests are still valid. - Mitigated security risks associated with SSRF and XSS attacks by eliminating direct HTTP API calls. - By using the Dicebear library locally, we reduce potential vulnerabilities. - Ensured no other functionality is affected. Signed-off-by: Akhilender <[email protected]> * fix: Reverted changes in the tests - Reverted the Avatar component in all the tests as they are redundant in tests except where it is needed. - Ensured all the remaning tests are succesfully passing. Signed-off-by: Akhilender <[email protected]> * fix: Added dynamic style - Handled case where no alt tag is provided by adding default alt value. - dynamic rendering for className for img tag in avatar component - Dynamic rendering for test-id - Replaced suitable changes for the above properties added Signed-off-by: Akhilender <[email protected]> * fix: modified test Signed-off-by: Akhilender <[email protected]> * fix: resolved conflict Signed-off-by: Akhilender <[email protected]> --------- Signed-off-by: Akhilender <[email protected]> commit 092b9f6 Author: Disha Talreja <[email protected]> Date: Tue Feb 27 23:13:24 2024 +0530 feat: implemented support to upload media while creating and updating advertisements (#1529) * feat: implemented support to upload media in advertisement register component * fix: failing tests * fix: failing tests * removed commented code * fix: failing tests * renamed link variable to mediaUrl * updated the type of mediaUrl * updated schema and mutation for createAdvertisement * removed unused variables * Added support to display advertisement image/video in user portal * fix: failing tests * fix: failing tests * reverted unwanted changes * fix: failing tests * fix: failing tests * added translations for different languages and improved variable names * Updated variable name and input fields for creating advertisements * fix: failing tests * fix: failing tests * updated get advertisement query * fix: update advertisement feature * removed unwanted curly braces * fix failing tests * updated type of file * fix: formatting issues * fix: formatting issues * updated variable name and fix cross origin error * removed: unwanted curly braces * fix: failing tests * added oragnization resolver for advertisement * removed unwanted code * fix: failing tests * fix: formatting issues * fix: formatting issues * fix: formatting issues * fix: failing tests * fix: advertisements not rendering * fix: removed unused imports * fix: linting errors * Update documentation * Updated mutation to delete advertisement * Update documentation * fix: formatting issues * fix: type error * fix: lint errors * fix: error * fix: advertisements not rendering on user portal * fix: not same origin error while rendering video * Updated deleteAdvertisement mutation and advertisementsConnection mutation * fix: failing tests commit 9ffa02b Author: Peter Harrison <[email protected]> Date: Tue Feb 27 09:19:26 2024 -0800 Enforce Node v20 commit 9d2689a Author: Anvita Mahajan <[email protected]> Date: Tue Feb 27 22:21:20 2024 +0530 Increased code coverage for src/components/AddOn/core/AddOnStore/AddOnStore.tsx file (#1614) * Added tests for AddOnStore/AddOnStore.tsx * Fixed linting errors * Fixed warnings due to linting errors * Removed commented code * fix formatting error * fix * added test * created fund screen * added update fund feature * funds feature completed * added tests * fix test * merged develop * fix deletion error * fix * remove unwanted file * remove unwanted file * remove unwanted file * added doc for remove fund mutation * fixed eslint * fixed eslint * fix * removed unwanted file * fix formatting error * fix faiing test
* fix postByConnectionQuery * Squashed commit of the following: commit 6e157db Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:49:06 2024 -0800 Revert "Revert "feat: Integrated Dicebear Library To Enhance Security (PalisadoesFoundation#1585)…" (PalisadoesFoundation#1635) This reverts commit ebcc977. commit ebcc977 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:47:08 2024 -0800 Revert "feat: Integrated Dicebear Library To Enhance Security (PalisadoesFoundation#1585)" (PalisadoesFoundation#1634) This reverts commit 7828c40. commit da8df05 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:46:19 2024 -0800 Revert "Revert "feat: Add support for Action Items (PalisadoesFoundation#1596)" (PalisadoesFoundation#1632)" (PalisadoesFoundation#1633) This reverts commit 22bdfa9. commit 22bdfa9 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:44:15 2024 -0800 Revert "feat: Add support for Action Items (PalisadoesFoundation#1596)" (PalisadoesFoundation#1632) This reverts commit a71db3b. commit a71db3b Author: Meetul Rathore <[email protected]> Date: Thu Feb 29 00:24:58 2024 +0530 feat: Add support for Action Items (PalisadoesFoundation#1596) * add mutations and queries * add translations * add tests * add dropdown for toggling settings on small screens * minor corrections * minor change * initial changes * basic design * add basic modals * add create action item functionality * add update functionality * add delete functionality * add details modal * extract modals and restructure * add sorting * remove unnecessary files * add filters and design adjustments * add translations * don't show disabled action item categories * add tests for OrganizationActionItems.tsx * add tests for ActionItemContainer.tsx * add filters section * minor adjustments * move mutations and queries into separate files * fix failing test * format files * use css variables for colors * write test for IconComponent.tsx commit 7828c40 Author: Akhilender Bongirwar <[email protected]> Date: Wed Feb 28 17:59:21 2024 +0530 feat: Integrated Dicebear Library To Enhance Security (PalisadoesFoundation#1585) * feat: Integrated Dicebear Library To Enhance Security - Added the Dicebear library as a dependency to the project. - Imported the necessary functions from the library. - Created a new `Avatar` component that utilizes the Dicebear library locally. - Updated the component to accept `name`, `alt`, and `size` as props. - Utilized the Dicebear library to generate avatars with initials. - Removed direct HTTP API calls from the codebase. - Replaced instances of direct HTTP API calls with the newly created `Avatar` component. - Updated the exisiting tests and ensured the tests are still valid. - Mitigated security risks associated with SSRF and XSS attacks by eliminating direct HTTP API calls. - By using the Dicebear library locally, we reduce potential vulnerabilities. - Ensured no other functionality is affected. Signed-off-by: Akhilender <[email protected]> * fix: Reverted changes in the tests - Reverted the Avatar component in all the tests as they are redundant in tests except where it is needed. - Ensured all the remaning tests are succesfully passing. Signed-off-by: Akhilender <[email protected]> * fix: Added dynamic style - Handled case where no alt tag is provided by adding default alt value. - dynamic rendering for className for img tag in avatar component - Dynamic rendering for test-id - Replaced suitable changes for the above properties added Signed-off-by: Akhilender <[email protected]> * fix: modified test Signed-off-by: Akhilender <[email protected]> * fix: resolved conflict Signed-off-by: Akhilender <[email protected]> --------- Signed-off-by: Akhilender <[email protected]> commit 092b9f6 Author: Disha Talreja <[email protected]> Date: Tue Feb 27 23:13:24 2024 +0530 feat: implemented support to upload media while creating and updating advertisements (PalisadoesFoundation#1529) * feat: implemented support to upload media in advertisement register component * fix: failing tests * fix: failing tests * removed commented code * fix: failing tests * renamed link variable to mediaUrl * updated the type of mediaUrl * updated schema and mutation for createAdvertisement * removed unused variables * Added support to display advertisement image/video in user portal * fix: failing tests * fix: failing tests * reverted unwanted changes * fix: failing tests * fix: failing tests * added translations for different languages and improved variable names * Updated variable name and input fields for creating advertisements * fix: failing tests * fix: failing tests * updated get advertisement query * fix: update advertisement feature * removed unwanted curly braces * fix failing tests * updated type of file * fix: formatting issues * fix: formatting issues * updated variable name and fix cross origin error * removed: unwanted curly braces * fix: failing tests * added oragnization resolver for advertisement * removed unwanted code * fix: failing tests * fix: formatting issues * fix: formatting issues * fix: formatting issues * fix: failing tests * fix: advertisements not rendering * fix: removed unused imports * fix: linting errors * Update documentation * Updated mutation to delete advertisement * Update documentation * fix: formatting issues * fix: type error * fix: lint errors * fix: error * fix: advertisements not rendering on user portal * fix: not same origin error while rendering video * Updated deleteAdvertisement mutation and advertisementsConnection mutation * fix: failing tests commit 9ffa02b Author: Peter Harrison <[email protected]> Date: Tue Feb 27 09:19:26 2024 -0800 Enforce Node v20 commit 9d2689a Author: Anvita Mahajan <[email protected]> Date: Tue Feb 27 22:21:20 2024 +0530 Increased code coverage for src/components/AddOn/core/AddOnStore/AddOnStore.tsx file (PalisadoesFoundation#1614) * Added tests for AddOnStore/AddOnStore.tsx * Fixed linting errors * Fixed warnings due to linting errors * Removed commented code * fix formatting error * fix * added test * created fund screen * added update fund feature * funds feature completed * added tests * fix test * merged develop * fix deletion error * fix * remove unwanted file * remove unwanted file * remove unwanted file * added doc for remove fund mutation * fixed eslint * fixed eslint * fix * removed unwanted file * fix formatting error * fix faiing test
* fix postByConnectionQuery * Squashed commit of the following: commit 6e157db Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:49:06 2024 -0800 Revert "Revert "feat: Integrated Dicebear Library To Enhance Security (PalisadoesFoundation#1585)…" (PalisadoesFoundation#1635) This reverts commit ebcc977. commit ebcc977 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:47:08 2024 -0800 Revert "feat: Integrated Dicebear Library To Enhance Security (PalisadoesFoundation#1585)" (PalisadoesFoundation#1634) This reverts commit 7828c40. commit da8df05 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:46:19 2024 -0800 Revert "Revert "feat: Add support for Action Items (PalisadoesFoundation#1596)" (PalisadoesFoundation#1632)" (PalisadoesFoundation#1633) This reverts commit 22bdfa9. commit 22bdfa9 Author: Peter Harrison <[email protected]> Date: Wed Feb 28 13:44:15 2024 -0800 Revert "feat: Add support for Action Items (PalisadoesFoundation#1596)" (PalisadoesFoundation#1632) This reverts commit a71db3b. commit a71db3b Author: Meetul Rathore <[email protected]> Date: Thu Feb 29 00:24:58 2024 +0530 feat: Add support for Action Items (PalisadoesFoundation#1596) * add mutations and queries * add translations * add tests * add dropdown for toggling settings on small screens * minor corrections * minor change * initial changes * basic design * add basic modals * add create action item functionality * add update functionality * add delete functionality * add details modal * extract modals and restructure * add sorting * remove unnecessary files * add filters and design adjustments * add translations * don't show disabled action item categories * add tests for OrganizationActionItems.tsx * add tests for ActionItemContainer.tsx * add filters section * minor adjustments * move mutations and queries into separate files * fix failing test * format files * use css variables for colors * write test for IconComponent.tsx commit 7828c40 Author: Akhilender Bongirwar <[email protected]> Date: Wed Feb 28 17:59:21 2024 +0530 feat: Integrated Dicebear Library To Enhance Security (PalisadoesFoundation#1585) * feat: Integrated Dicebear Library To Enhance Security - Added the Dicebear library as a dependency to the project. - Imported the necessary functions from the library. - Created a new `Avatar` component that utilizes the Dicebear library locally. - Updated the component to accept `name`, `alt`, and `size` as props. - Utilized the Dicebear library to generate avatars with initials. - Removed direct HTTP API calls from the codebase. - Replaced instances of direct HTTP API calls with the newly created `Avatar` component. - Updated the exisiting tests and ensured the tests are still valid. - Mitigated security risks associated with SSRF and XSS attacks by eliminating direct HTTP API calls. - By using the Dicebear library locally, we reduce potential vulnerabilities. - Ensured no other functionality is affected. Signed-off-by: Akhilender <[email protected]> * fix: Reverted changes in the tests - Reverted the Avatar component in all the tests as they are redundant in tests except where it is needed. - Ensured all the remaning tests are succesfully passing. Signed-off-by: Akhilender <[email protected]> * fix: Added dynamic style - Handled case where no alt tag is provided by adding default alt value. - dynamic rendering for className for img tag in avatar component - Dynamic rendering for test-id - Replaced suitable changes for the above properties added Signed-off-by: Akhilender <[email protected]> * fix: modified test Signed-off-by: Akhilender <[email protected]> * fix: resolved conflict Signed-off-by: Akhilender <[email protected]> --------- Signed-off-by: Akhilender <[email protected]> commit 092b9f6 Author: Disha Talreja <[email protected]> Date: Tue Feb 27 23:13:24 2024 +0530 feat: implemented support to upload media while creating and updating advertisements (PalisadoesFoundation#1529) * feat: implemented support to upload media in advertisement register component * fix: failing tests * fix: failing tests * removed commented code * fix: failing tests * renamed link variable to mediaUrl * updated the type of mediaUrl * updated schema and mutation for createAdvertisement * removed unused variables * Added support to display advertisement image/video in user portal * fix: failing tests * fix: failing tests * reverted unwanted changes * fix: failing tests * fix: failing tests * added translations for different languages and improved variable names * Updated variable name and input fields for creating advertisements * fix: failing tests * fix: failing tests * updated get advertisement query * fix: update advertisement feature * removed unwanted curly braces * fix failing tests * updated type of file * fix: formatting issues * fix: formatting issues * updated variable name and fix cross origin error * removed: unwanted curly braces * fix: failing tests * added oragnization resolver for advertisement * removed unwanted code * fix: failing tests * fix: formatting issues * fix: formatting issues * fix: formatting issues * fix: failing tests * fix: advertisements not rendering * fix: removed unused imports * fix: linting errors * Update documentation * Updated mutation to delete advertisement * Update documentation * fix: formatting issues * fix: type error * fix: lint errors * fix: error * fix: advertisements not rendering on user portal * fix: not same origin error while rendering video * Updated deleteAdvertisement mutation and advertisementsConnection mutation * fix: failing tests commit 9ffa02b Author: Peter Harrison <[email protected]> Date: Tue Feb 27 09:19:26 2024 -0800 Enforce Node v20 commit 9d2689a Author: Anvita Mahajan <[email protected]> Date: Tue Feb 27 22:21:20 2024 +0530 Increased code coverage for src/components/AddOn/core/AddOnStore/AddOnStore.tsx file (PalisadoesFoundation#1614) * Added tests for AddOnStore/AddOnStore.tsx * Fixed linting errors * Fixed warnings due to linting errors * Removed commented code * fix formatting error * fix * added test * created fund screen * added update fund feature * funds feature completed * added tests * fix test * merged develop * fix deletion error * fix * remove unwanted file * remove unwanted file * remove unwanted file * added doc for remove fund mutation * fixed eslint * fixed eslint * fix * removed unwanted file * fix formatting error * fix faiing test
What kind of change does this PR introduce?
This PR introduces
Dicebear
library integration in our application.Issue Number:
Fixes #1391
Did you add tests for your changes?
Yes
Snapshots/Videos:
2024-02-15.17-14-25.mp4
If relevant, did you update the documentation?
No
Summary
Avatar
component that utilizes the Dicebear library locally.name
,alt
, andsize
as props.Avatar
component.Does this PR introduce a breaking change?
No
Other information
Have you read the contributing guide?
Yes