-
-
Notifications
You must be signed in to change notification settings - Fork 720
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
Update from develop-postgres 20241130 #2531
Update from develop-postgres 20241130 #2531
Conversation
* chore(deps): bump sass from 1.80.6 to 1.80.7 (PalisadoesFoundation#2433) Bumps [sass](https://github.com/sass/dart-sass) from 1.80.6 to 1.80.7. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](sass/dart-sass@1.80.6...1.80.7) --- updated-dependencies: - dependency-name: sass dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump eslint-plugin-import from 2.30.0 to 2.31.0 (PalisadoesFoundation#2434) Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.30.0 to 2.31.0. - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.30.0...v2.31.0) --- updated-dependencies: - dependency-name: eslint-plugin-import dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @mui/x-charts from 7.22.1 to 7.22.2 (PalisadoesFoundation#2435) Bumps [@mui/x-charts](https://github.com/mui/mui-x/tree/HEAD/packages/x-charts) from 7.22.1 to 7.22.2. - [Release notes](https://github.com/mui/mui-x/releases) - [Changelog](https://github.com/mui/mui-x/blob/v7.22.2/CHANGELOG.md) - [Commits](https://github.com/mui/mui-x/commits/v7.22.2/packages/x-charts) --- updated-dependencies: - dependency-name: "@mui/x-charts" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @types/react from 18.3.3 to 18.3.12 (PalisadoesFoundation#2436) Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.3.3 to 18.3.12. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update pull-request.yml * update the @mui/x-date-pickers --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Peter Harrison <[email protected]>
…ndation#2440) Bumps [@pdfme/generator](https://github.com/pdfme/pdfme) from 5.1.7 to 5.2.3. - [Release notes](https://github.com/pdfme/pdfme/releases) - [Changelog](https://github.com/pdfme/pdfme/blob/main/RELEASE.md) - [Commits](pdfme/pdfme@5.1.7...5.2.3) --- updated-dependencies: - dependency-name: "@pdfme/generator" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…tion#2441) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.5.4 to 22.9.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…Foundation#2443) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.25.4 to 7.26.0. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.26.0/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…sFoundation#2442) Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) from 4.3.2 to 4.3.3. - [Release notes](https://github.com/vitejs/vite-plugin-react/releases) - [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite-plugin-react/commits/v4.3.3/packages/plugin-react) --- updated-dependencies: - dependency-name: "@vitejs/plugin-react" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* added docker check to workflow * made recommended changes to docker check in workflow * added changes to docker check inn workflow as recommended * added changes * updated indentation in pull-request.yml file * updated indentation in pull-request.yml file * added Dockerfile and Docker-compose.yml file * added Dockerfile and Docker-compose.yml file * updated .docker-ignore file * added recommended changes by code rabbit * added recommended changes by code rabbit * added recommended changes by code rabbit * added recommended changes by code rabbit * added recommended changes by code rabbit * added recommended changes by code rabbit * properly formatted code * chore(deps): bump sass from 1.80.6 to 1.80.7 (PalisadoesFoundation#2433) Bumps [sass](https://github.com/sass/dart-sass) from 1.80.6 to 1.80.7. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](sass/dart-sass@1.80.6...1.80.7) --- updated-dependencies: - dependency-name: sass dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump eslint-plugin-import from 2.30.0 to 2.31.0 (PalisadoesFoundation#2434) Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.30.0 to 2.31.0. - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.30.0...v2.31.0) --- updated-dependencies: - dependency-name: eslint-plugin-import dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @mui/x-charts from 7.22.1 to 7.22.2 (PalisadoesFoundation#2435) Bumps [@mui/x-charts](https://github.com/mui/mui-x/tree/HEAD/packages/x-charts) from 7.22.1 to 7.22.2. - [Release notes](https://github.com/mui/mui-x/releases) - [Changelog](https://github.com/mui/mui-x/blob/v7.22.2/CHANGELOG.md) - [Commits](https://github.com/mui/mui-x/commits/v7.22.2/packages/x-charts) --- updated-dependencies: - dependency-name: "@mui/x-charts" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @types/react from 18.3.3 to 18.3.12 (PalisadoesFoundation#2436) Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.3.3 to 18.3.12. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update pull-request.yml * trying to make docker check pass * trying to make docker check pass * updated INSTALLATION.md * updated INSTALLATION.md * added recommended changes to INSTALLATION.md * added recommended changes to INSTALLATION.md * added recommended changes to INSTALLATION.md * Update dependabot.yaml * updated docker workflow * updated INSTALLATION.md --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Peter Harrison <[email protected]>
…alisadoesFoundation#2452) * Updated branching strategy * Removed duplicate entry * Updated contributing.md * Added extra markdown styling to contribute.md * Bump dns-packet from 1.3.1 to 1.3.4 Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4. - [Release notes](https://github.com/mafintosh/dns-packet/releases) - [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md) - [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4) Signed-off-by: dependabot[bot] <[email protected]> * Update pull_request_template.md * disabled CodeQL cron jobs and push actions (#72) * Merge Develop into Main (#1099) * Update authorized-changes-detection.yml * Code Coverage @ 87.1% * Update .gitignore * Delete codecov This executable should not be in the repo * added translation hint text in placeholders (#487) * Update pull-requests.yml * Create DOCUMENTATION.md * Rename issue-guidelines.md to ISSUE_GUIDELINES.md * Update CONTRIBUTING.md * Update issue.yml * Rename PR-guidelines.md to PR_GUIDELINES.md * Update CONTRIBUTING.md * Update pull-request-target.yml * Delete PULL_REQUEST_TEMPLATE.md * Delete ISSUE_TEMPLATE.md * Rename Code_Style.md to CODE_STYLE.md * added removeMember mutation (#491) * added removeMember mutation * changed mutation name * remove contributions from router (#502) * Fixed Settings page Header (#501) * fixed cani-use lite warning * fixed the alignments for smaller screens and also added spacing on places where it was needed * fixed the linting errors * ran prettier to remove styling errors * made the orgSetting title dynamic * linted the code and made the settings header as required and also made the settings page navbar responsive * linted code and made necessary changes * errors fixed * Added dropdown for Applanguage in UserUpdation form (#498) * Added dropdown for Applanguage in UserUpdation form * App language code changed to Default language * Change the Scalar Types [Provides relevant client side changes for #1085 in Talawa-API] (#500) * Change typedefs * Fix date parsing * Move ID to ObjectID scalar * Client changes for Adding GraphQL Scalars (#511) * Change typedefs * Fix date parsing * Move ID to ObjectID scalar * Revert ObjectID to ID * Change ObjectID to ID * modal closed after organization creation (#516) * most recently added Org displays at the top (#515) * Add Husky (#520) * updated contributing (#521) * Display and choose Organisation image (#512) * upload image working for createOrganisation * Organisation image showing everywhere * Testcase failure fixed * Linting fixed * convertToBase64 func made and tests for it * CI/CD error fixed * tests added for AdminNavbar & OrganisationDashboard * Linting fixed * fixed translation on the plugin tab (#510) * added OrgName to the Navbar (#525) * Fix create event mutation [Fixes part of #1101 in Talawa-API] (#523) * Add format fix * Fix updation of posts * Test coverage improved for organizationPeople.tsx (#526) * Update INSTALLATION.md * Update INSTALLATION.md * Update INSTALLATION.md * Update stale.yml * Remove tags (#532) * Fixed navbar added tests (#534) * Fixed navbar added tests * Fixed the translation of All orgnaizations btn in AdminNavbar * Fix the updateOrg page, and made it to create mutation request [Fixes #531] (#536) * fix orgUpdate system * fix translations * Update CONTRIBUTING.md * Code Coverage @ 88% * Fixes #478 : Implemeneted calendar to the Event tab (#537) * calendar-implemented * calendar-implemented * fixed tests * Added post-merge hook using husky (#541) * Added post-merge hook using husky * made required changes to installation.md * make changes to documentation for husky * made the required changes in installation guide * Update pull-requests.yml * Fixed yarn installation instructions (#584) * organization sorting for all organization (#619) * removed redundant notification (#577) * Profile Page for Members (#543) * Initial member page made * Changed query added Org and Events section * Homescreen ready * initial translation added for Profile * initial translation added for Profile * Added translations * Added translations * Revised translation * Fixed failing tests for components * Link added to OrgAdminListCard * Linting fixed for OrgPeopleListCard * Added tests, removed logs * Uniform design * Fix:routing issue for orgdash page (#580) * Fix:routing issue for orgdash page * fix:failing test of SuperDashListCard * Rectify Warnings: EventListCard.test.tsx (#595) * Added logic to close modal after successful submission (#623) * Feature Request: Position of the search bar. (#631) * Feature Request: Position of the search bar #614 resolved * Feature Request: Position of the search bar #614 resolved * fixes: #550 added test for the calendar (#552) * added test for the calendar * updates mocks * Update Router Function [Fixes #636] (#638) * Update Router Function * Empty commit * Fix about content overflow (#632) Signed-off-by: Ekene Nwobodo <[email protected]> * removed duplicate rows per page section in orgposts (#648) * fixed :made card in organization dashboard interactive (#620) * Implemented manage functionality for admin and super admin after login (#539) * Implememnted manage functinality for admin/superadmin after login * Update AdminDashListCard.module.css * Some formatting issues with module file * resolved workflow issues * Added folding feature to posts (#581) * added folding feature to posts * added fold feature to posts * brought code under code coverage * added tests * added tests for remainging uncovered lines * brought code coverage to 100% for the changes * Code coverage @87.2% * Fix User Update Details Page and Add Update Password Page [Fixes #530] (#657) * fixed updateuser logic * update translations * fix lint * lint fix 2 * fix tests * fixed:move orgLocation & remove duplicate orgName (#655) * fixed:move orgLocation & remove duplicate orgName * Dummy commit * fixes - [#597] - Navbar navlinks hover and button styles (#603) * fixed: #585 - Password error showing. Tested * fix: #590 - fixed navbar hover issues * fix: #590 - fixed navbar hover issues * Code Coverage 87.4% * fixes 599 (#653) * fixed errors and removed window.replace * written test case for ensure window.location.replace * written test case for ensure window.location.replace * added useHistory to keep track of routing behind the scenes * fixed merge conflicts and errors * updated comments for file changes * Added warning comments for routing --------- Co-authored-by: Adepeju <adepeju.kayode@gmail> * fix org search location (#682) Signed-off-by: Ekene Nwobodo <[email protected]> * fixed the issue of validate the input before submit #674 (#678) * Adds required tests for OrganizationEvents.tsx and Fixes a minor bug in Calendar (#527) * adds tests for organization events * removes the unrequired branch from OrganizationEvents.tsx * fixes failing tests * fixes failing lint tests * Update password preview feature with coverage tests (#629) * Fix to the issue #585 (#607) * [fix]- fixed the password error warning * [fix]- fixed the password error warning * [fix]- fixed the password error warning * [fix]-fixed the password error warning * [fix]-fixed the password error warning * [fix]-fixed the password error warning * [fix]-fixed the password error warning * [feat]-added test cases for password error warning * [feat]- added test cases for password error warning * [feat]- added test cases for password error warning * [fix]- fixed the linting * Improve test coverage for calendar.tsx (#679) * Improve test coverage for calendar.tsx * Restore previous tests * remove --coverage * i rebased my codebase and resolved the initial issue (#669) * fixed the issue use of toast in place of window.alert #645 (#687) * Update ISSUE_GUIDELINES.md * fixed the static time data under Organization card in the Organization List tab (#689) * fixed the static time in org card * formatted the date to MM D, YYYY --------- Co-authored-by: thesaaddevloper <[email protected]> * Fixed the pagination alignment issue (#702) * [fix]- fixed the password error warning * [fix]- fixed the password error warning * [fix]- fixed the password error warning * [fix]-fixed the password error warning * [fix]-fixed the password error warning * [fix]-fixed the password error warning * [fix]-fixed the password error warning * [feat]-added test cases for password error warning * [feat]- added test cases for password error warning * [feat]- added test cases for password error warning * [fix]- fixed the linting * [fix]- fixed the pagination alignment issue * [fix]- fixed the pagination alignment issue * [fix]- fixed the pagination alignment issue * Removed overlapping (#675) * changes input element to textarea and changes in test (#710) * Code Coverage @90.7% * Indicating active tabs (#691) * added underline to active links in navbar * fixed lint error * fixed the org default image #688 and removed stock image (#695) * fixed the org default image #688 and removed stock image * removed eslint warning * added new img as default org img * Update INSTALLATION.md * Added Clear Error and Warn Messages when API is unavailable (#670) * Added error and warn messages * Added tests & fixed inconsistency in mocks * Lint fix LoginPage * Lint Fix LoginPage.test * minor fix * Minor update to LoginPage * Minor change to LoginPage.test * Replaced toast.warn() with toast.error() * Fixed test accordingly * Lint Fix * Minor fix * Extra edge case handled * code coverage fix * Lint fix * Update LoginPage * Update LoginPage.test * Lint fix * improve test coverage for orgpost.tsx (#718) * Improve test coverage for calendar.tsx * Restore previous tests * remove --coverage * improve test for orgpost.tsx * Implemented Proper Error Handling for all Screens [Fixes: #535] (#731) * Handled error cases for all screens * Some more fixes * Some more fixes * Added StaticMockLink to use Mocks multiple times [Fixes Multiple Issues] (#745) * add StaticMockLink * lint fix * remove showWarning * Added prompt to Register on Login Page (#628) * Add prompt to Login page - Add prompt in other languages: fr, sp, hi, zh. - switch styling of Login Button with Reg Button * format with prettier * fixed event checkboxes to update (#707) * Block/Unblock functionality for only members of the organization (#690) * Implememnted manage functinality for admin/superadmin after login * Update AdminDashListCard.module.css * Some formatting issues with module file * resolved workflow issues * Updated block/unblock page preventing users who are not members of organiztion * Update BlockUser.test.tsx to resolve failing tests Modified the mocks fields according to the corresponding changes in BlockUser.tsx file. * created a reusable postNotFound Component with responsive UI (#717) * created a reusable postNotFound Component with responsive UI * run test error solved * added translation to the component and also created the test.tsx for the error component * fixed the failing test and added the postNotFound reusable component for OrgList --------- Co-authored-by: thesaaddevloper <[email protected]> * fix: #601 modal responsive width (#621) * added dynamic title to OrgPeople section (#704) * added dynamic title to OrgPeople section * fixed code coverage * fixed code coverage * uncommented the mistakenly added code * Delete er * Updated session timeout notification toast with already existing one (#734) * Added a toast to notify users that session has expired and redirects to the login page * Updated toast notification on session timeout with already existing one * eliminated the use of magic numbers * minor error correction on the timeout minutes --------- Co-authored-by: TheoCathy <[email protected]> * Fixed the empty space in the OrgList (#751) * created a reusable postNotFound Component with responsive UI * run test error solved * added translation to the component and also created the test.tsx for the error component * fixed the failing test and added the postNotFound reusable component for OrgList * fixed the empty space in orgList * fixed the failing test * removed the unwanted files --------- Co-authored-by: thesaaddevloper <[email protected]> * align navbar items (#755) * align navbar items * replace More with a hamburger icon * replace More with a hamburger icon to fix workflow error * replace More with a hamburger icon to fix workflow error * Fixes: toggle password for registration (#758) * added toggle-password * updated * formatting * added icon for toggle password * Super Admin Dashboard Error When Organizations Absent (#754) * No Organization Warning on OrgList * Minor Fix * Fixed failing tests * Added Warning on Roles and Request Pages * Added Tests for OrgList * Testing Fixes * Added more tests * Added Tests for Roles and Request Pages * Code Coverage @ 91.0% * Add link to dashboard admin card (#760) * image upload made functional (#677) * image upload made functional * lint * fixed failing test * linting * re run test , remove yarn.lock changes * updateUser test cov * OrgPost * rerun tests * Empty commit * reverted last 2 commits changes * re run code cov * update userUpdate * rerun code cov again * revert last commit * Update PR_GUIDELINES.md * Implemented Search bar and the radio buttons in orgPost page that searches both title and text of post (#770) * created a reusable postNotFound Component with responsive UI * run test error solved * added translation to the component and also created the test.tsx for the error component * fixed the failing test and added the postNotFound reusable component for OrgList * fixed the empty space in orgList * fixed the failing test * removed the unwanted files * the one search bar which searches both text and title of post * testing file * orpost file testing * code coverage is increased * fixed the failing test --------- Co-authored-by: thesaaddevloper <[email protected]> Co-authored-by: saadabban76 <�[email protected]> * center org image on mobile (#778) Signed-off-by: Ekene Nwobodo <[email protected]> * removed link for plugin dropdown toggle (#781) * removed link for plugin dropdown toggle * added id * align superadmin nav items and fix failed tests (#766) * changed the handleSearchByName function in searchByName in Roles page (#735) * changed the handleSearchByName function to search using target's value instead of searchByName variable * updated the file Roles.tsx to take care of useState lag * changed tests for suiting searchByName * changed tests for searchByName including backspaces * added tests for paginationList and changing rowsPerPage * added tests to increase coverage in Roles.tsx * changed the package.json file's test command * removed extra scrollbars (#800) * Recently added Post displays at top (#773) * Recently added Post displays at top * reversed the posts as required in the query * Increased the OrgList Code Coverage (#786) * increased the orgList coverage to 95$ * increased the orgList Code Coverage * increased the orgList Code Coverage * increased the orgList Code Coverage * fixed image rendering in orgPost page * increased the code coverage for orgList Component * increased code coverage to 97% in orgList Component --------- Co-authored-by: saadabban76 <�[email protected]> * Modify event visibility for non-admins (#796) * Modify event visibility for non-admins Signed-off-by: Ekene Nwobodo <[email protected]> * Add test suites for events visibilty --------- Signed-off-by: Ekene Nwobodo <[email protected]> * Bug Fix: Drawer menu visibility (#794) * Remove filter by event field (#807) * increased the orgList coverage to 95$ * increased the orgList Code Coverage * increased the orgList Code Coverage * increased the orgList Code Coverage * fixed image rendering in orgPost page * increased the code coverage for orgList Component * increased code coverage to 97% in orgList Component * removed the filter by event section in orgPeople's component * fixed the failing test --------- Co-authored-by: saadabban76 <�[email protected]> * Add image to post (#804) * increased the orgList coverage to 95$ * increased the orgList Code Coverage * increased the orgList Code Coverage * increased the orgList Code Coverage * fixed image rendering in orgPost page * increased the code coverage for orgList Component * increased code coverage to 97% in orgList Component * added Image to the post's card * replaced external links with codebase default image * replaced external links with codebase default image * replaced blank image with the default image * fixed the failing test --------- Co-authored-by: saadabban76 <�[email protected]> * Update pull-request-target.yml * Update pull-request-target.yml * Update pull-request-target.yml * Update pull-request-target.yml * Update pull-request-target.yml * Update pull-request-target.yml * Upgrade Yarn to NPM in Talawa Admin Project (#802) * npm upgrade * remove package lock * Update push.yml * empty * upgrade yarn to npm * fix docs * fix scripts * empty * stop watch mode * fix ymls * empty * fix scripts * empty commit * update scripts * Redirect to dashboard on organization update (#816) * Redirect to dashboard on organization update * Minor Change * Proper Testing Of Pagination In All List Views (#797) * install faker package used for mocks in tests * Test init for pagination * install dependencies needed to implement certain tests * add a data-testid attribute to their markup for use in tests * add data-testid attributes to its markup being referenced from tests * add test to ensure the number of organization displayed on the page corresponds to the option selected from rowsPerPage * add prop to allow rendering of component in test environment * add data-testid attributes to their markup being referenced from tests * add data-testid attributes to its markup being referenced from tests * add test to affirm that the number of persons displayed on the webpage is same with the selected option from rowsPerPage * install dependencies for certain tests * fix lint errors * tests fix * remove unnecessary dependencies * lint fix * tests fix update * restore file to previous state * empty commit * tests fix update * lint fix * Conditional Usage of Google reCAPTCHA [Fixes #798] (#820) * conditonal recaptcha * Update INSTALLATION.md * add tests * fixed the issue of Mismatched passwords validation #722 (#824) * fixed the issue of Mismatched passwords validation #722 * fixed lint code error * Code Coverage @ 92% * Replace Talawa Portal with Talawa Admin Portal #817 (#821) * Update website title to Talawa Admin Portal in en * Update website title in fr json file * Update website title in sp json file * Update website title in zh json file * Update website title in hi json file * Update the test in ListNavbar file * Update the test in LoginPage.test file * Create a function for the tex macher to make test * Fix lint errors in the LandingPage test file * Remove console.log in LandingPage test file * Upgrade to use npm instead of yarn * Delete yarn.lock file * Fix lint errors * Fix lint errors * Update the heading in hi.json file * Remove unused codes * Fix lint error in LanfingPage file * Correct the talawa_portal value in Fr json file * Correct the talawa_portal value in sp json file * Remove anused package in package.json file * Organization Form Redirect Issue Prevents User Navigation, Affecting User Experience. Issue #808 (#815) * addressing issue #808 * finished - requested changes * addressing warning * Added: event preview modal to view event details (#772) * added event preview model * added event preview model * fixed formatting * added test * added test * added test * failing tests * test * tests * Update workflow (#832) * Workflow fix (#833) * Update pull-requests.yml * Update pull-requests.yml * Update pull-requests.yml * Code Coverage @ 91.0% * Feature: Separation of ADMIN and SUPERADMIN functionalities (#826) * Initial changes * Commit to sync repo * Made changes to OrgList * Some fixes * Minor fix * Added tests for OrgList * Added tests for OrgList * Coverage fix * Required changes added * Made changes to OrgList * Some fix * Some fixes * fixes test for OrgList * Some more fixes * Empty commit * Lint fix * Fixed test * Lint fix * Added Whitespace Validation to Organization and Post create forms (#838) * Added whitespace check in Org Create form * Added Tests * Added Empty String check to OrgPost Form * Added Tests for OrgPost * fixed the issue of Toast msg is not available in all languages #740 (#845) * fixed the issue of Toast msg is not available in all languages #740 * format issue * Empty-Commit * Fixed Org Update (#843) * Prevent Admins and Super Admins from downgrading their own roles (#840) * Code Cleanup * Disabled Super Admins from changing their roles * Added Tests * Added more tests * Improved Code Quality * Revert "Fixed Org Update (#843)" (#847) This reverts commit 53c3fef28ef986d63b1eec45663acb7d07cf1b8d. * Fixed Organization Update and Translation (#849) * Fixed Organization Update * Minor Changes * Success message updated * Fail tests on warning [Priority Needed] (#856) * fix warnings Signed-off-by: Ansh Goyal <[email protected]> * fix warnings Signed-off-by: Ansh Goyal <[email protected]> * fix warnings Signed-off-by: Ansh Goyal <[email protected]> * fix warnings Signed-off-by: Ansh Goyal <[email protected]> * fix warnings Signed-off-by: Ansh Goyal <[email protected]> * restore addonregister Signed-off-by: Ansh Goyal <[email protected]> --------- Signed-off-by: Ansh Goyal <[email protected]> * Code duplicacy removed (#852) * Code duplicacy removed * Tests added * Added comments * Fixed failing tests * Code formatted * Unused packages removed, flag icons package updated to latest version (#860) * Unused packages removed, flag icons updated to latest version * Empty commit * Changes in package-lock.json * Fixes #848: limiting mulitple toast (#851) * limiting-toast * added test * Organization People Filters Improved (#855) * Added Filters to Users and Organizations Query * Added Last Name Filter on User, Member and Admin * Added Translation * Fixed Failing Tests * Added Tests for Filters * Fixed Failing Tests * Code Cleanup * Fixed Tests * Added Translation * remove graphql-boost dep (#866) Signed-off-by: Ansh Goyal <[email protected]> * added UserNotFound component to the Roles page and improved the search (#865) * changed the handleSearchByName function to search using target's value instead of searchByName variable * updated the file Roles.tsx to take care of useState lag * changed tests for suiting searchByName * changed tests for searchByName including backspaces * added tests for paginationList and changing rowsPerPage * added tests to increase coverage in Roles.tsx * changed the package.json file's test command * changed PostNotFound component to be used as a reusable one and added it in Roles section and set languages option in locales folder * changed formatting in locales changed files * removed comments in Roles.tsx * Empty commit * renamed the PostNotFound component and modifiied relevant files * changed Roles.tsx filtering * empty commit * reverted changes in package.json * Improved signupform validations (#828) * Improved signupform validations * updated signup form validation to show all messages at once * improved test coverage for LoginPage * Fixed failing test --------- Co-authored-by: Joyce Malicha <[email protected]> * added tests for Search Bar in the Organization List Page of SUPERADMIN #827 (#867) * added tests for Search Bar in the Organization List Page of SUPERADMIN #827 * added tests for Search Bar in the Organization List Page of SUPERADMIN #827 * Added Tests Previews (#868) * Installed jest-preview * Automatic Setup * Fiixed Failing Test Command * Added Basic CSS * Added PostCSS Module * Fixed MUI Styling * Minor Changes * Added cross-env to support windows * Adaptar for React 17 and CSS Modules Mock * Added Mocked Styles to Tests * Documentatin Updated * Fixed Failing Tests * Minorr change in documentation * Jest is now Dev Dependency * Workflow Test * Jest Module Path Updates * Module Path Tese 2 * Github Workflow Fixed * Removed Legacy Test Command * Added Documentation to Debug Tests * Fixed Documentation * Docs Image Added To Repo * Images Reorganization * Organized Images * Revert "Improved signupform validations (#828)" (#875) This reverts commit 5820dd9ec05256551b48470c8880fcdc05452fda. * Restored SearchBar Test for OrgList Page (#878) * Restored searchBar test * Lint fix * Coverage fix * Lint fix * Some fixes * Some fixes * fixed the issue of Users filter to fetch corresponding Users to Organisation #701 (#853) * fixed the issue of Users filter to fetch corresponding Users to Organisation #701 * removedd uunused variable * fixed failing text * fixed merged issue * fixed lint error * swap variable * Revert "Restored SearchBar Test for OrgList Page (#878)" (#879) This reverts commit 3d39c524d54e81853490d2d8a1f844ce67252365. * Fixed crashing on error in Block/Unblock page (#862) * Website crash fixed * lint fixed * Added tests for empty response from server * More tests added * Rerun tests empty commit * Redirect on error functioning * Fixed failing tests * Testcase and Title added when users not found * Linting fixed * Typo fixed * Fixed failing tests * Linting fixed * Added NotFound component in OrgPeople and changed Roles.tsx (#882) * changed the handleSearchByName function to search using target's value instead of searchByName variable * updated the file Roles.tsx to take care of useState lag * changed tests for suiting searchByName * changed tests for searchByName including backspaces * added tests for paginationList and changing rowsPerPage * added tests to increase coverage in Roles.tsx * changed the package.json file's test command * changed PostNotFound component to be used as a reusable one and added it in Roles section and set languages option in locales folder * changed formatting in locales changed files * removed comments in Roles.tsx * Empty commit * renamed the PostNotFound component and modifiied relevant files * changed Roles.tsx filtering * empty commit * reverted changes in package.json * added NotFound component in OrgPeople, made changes in the locales files and made some changes to Roles too * added NotFound component to OrgPeople, changerd locales files and changed Roles.tsx * minor change * Restored Search-Bar Test for OrgList Page (#880) * Restored searchBar test * Lint fix * Coverage fix * Lint fix * Some fixes * Some fixes * Fixed Org Dashboard Error (#873) * Fixed TypeError * Minor Change * Fixed Tests * Added back logo512 * Fixed auth header getting copied on login (#890) * fix user update (#876) * fix user detials update * remove userType from update-user page * fix failed test for userUpdate.test.tsx * Removed and Replaced Ant Design from the project (#891) * Fixed auth header getting copied on login * Removed/Replaced Ant Design from the project * Fixed failing tests * Removed comment * Add today functionality in calendar (#897) * Update countline.py * Update pull-requests.yml * Updated countlines.py to cover .spec. files (#900) Co-authored-by: Peter Harrison <[email protected]> * fixed the Inability to set user roles for specific organizations #556 (#898) * fixed the Inability to set user roles for specific organizations #556 * added all language translation * Revert "fixed the Inability to set user roles for specific organizations #556 (#898)" (#901) This reverts commit 891d898eb5543116bb9042a6386b5a12e474159c. * Documentation updated, Redundant css files removed (#896) * Doc updated unused files removed * Removed unused css files from setup tests * Added small calendar in the events #887 (#903) * added small clanedar * added small clanedar * fixed Code Coverage: Create tests for OrgSettings.tsx #396 (#905) * remove redundancy from orgPostCard (#906) * Revert "remove redundancy from orgPostCard (#906)" (#910) This reverts commit d5ce4aa27ee241b0687f7db3d6acd1b62339562f. * Block/Unblock Page Improvements (#885) * Added Radio Buttons * Optimized Queries * Optimized Query and Added Last Name Filter * Radio Button Working * Added Translations * Fixed Filter Name * Fixed Debounce * Fixed Asynchronous Debounce * Added Tests * Better Error and Loading State Handline * Fixed Loader * Fixed Loader * Modulrised Mock Data * Minor Change * Fixed Tests * Increase Coverage * User query replaced with OrgMemberConnection * Fixed Tests * Code Coverage Increase * Code Cov * Fixed Translations * Fixed Failing Tests * fix in failing test (#913) * Improve and Standardize Automated Linting Tests (#916) * added linting rules * added linting rules * added linting rules * Rename `data` variables to more readable name [Fixes #829] (#835) * Refactor screens * Update components * Fix test * Fix typecheck errors * Increase test coverage * Merge latest adminUI-Redesign into Develop (#927) * Updated CODE_STYLE.md * Updated CODE_STYLE.md (#917) * Updated CODE_STYLE.md * Import section update * Upgrade and Migrate from Bootstrap 4 to Bootstrap 5 (#925) * Updated CODE_STYLE.md * Latest Boostrap v5.3.0 & react-bootstrap v2.7.4 installed * Buttons replaced from normal ones to Bootstrap ones * Import section update * Error fixed for Buttons * Language dropdowns and Change language * InputBoxes & Checkboxes fixed and imported from BS * Removed unused package popper.js * Replaced react-modal with Bootstrap one in Login Page * Modals converted to React Bootstrap one * Completely replaced react-modal with react-bootstrap/Modal from the project * Removed react-modal from the project * Removed classbased modal and unused images * Notification navbar migrated * Modal migration * Modal migration * Modal migration done for OrgPostCard * Empty commit to make workflow run * Empty commit to make workflow run * Empty commit to run the workflow --------- Co-authored-by: Anwer Sayeed <[email protected]> * Introduces API versioning check in CI/CD (#924) * a random change * husky precommit * one more try * one more try * one more try * one more try * one more try * one more try * second try * removed unwanted deps * removed unwanted deps * resolved the error * updated variable name * rerun test * rerun test * added test to pull.yml * removed push check * resolved conflict * Update stale.yml * Update CONTRIBUTING.md * Merge talawa-user-portal into develop (#935) * Create login and register page for user portal * Lint public locales * Create tests for login page components * Add react import in tests * Create organizations screen for user portal * Fix failing tests and lint code * fix failing tests * Add tests for organization screen and componenets * Fix non-null assertions * Fix non-null assertions in organizations test * Fix bootstrap migration changes * Merge latest Admin UI Redesign into Develop (#934) * Updated CODE_STYLE.md * Updated CODE_STYLE.md (#917) * Updated CODE_STYLE.md * Import section update * Upgrade and Migrate from Bootstrap 4 to Bootstrap 5 (#925) * Updated CODE_STYLE.md * Latest Boostrap v5.3.0 & react-bootstrap v2.7.4 installed * Buttons replaced from normal ones to Bootstrap ones * Import section update * Error fixed for Buttons * Language dropdowns and Change language * InputBoxes & Checkboxes fixed and imported from BS * Removed unused package popper.js * Replaced react-modal with Bootstrap one in Login Page * Modals converted to React Bootstrap one * Completely replaced react-modal with react-bootstrap/Modal from the project * Removed react-modal from the project * Removed classbased modal and unused images * Notification navbar migrated * Modal migration * Modal migration * Modal migration done for OrgPostCard * Empty commit to make workflow run * Empty commit to make workflow run * Empty commit to run the workflow * Sass filed added with documentation * Linting fixed * Fixed the folder structure and naming convention * Customised Bootstrap (#929) * Sass filed added with documentation * Linting fixed * Fixed the folder structure and naming convention * Assets typo fixed * Typo fix * Merge conflict error fixed --------- Co-authored-by: Anwer Sayeed <[email protected]> * test PR for API versioning check (#932) * testPR * test2 * testing the change * testing it again * test--no-verify * test--no-verify * echo token * test-again * test-again * test * test * read-only * clone * clone * redesigned newsfeed (#939) * Revert "redesigned newsfeed (#939)" (#943) This reverts commit a645eca7cf2ce1335374f48b52335a293e344580. * Make Talawa-Admin mutations in sync with the backend (#946) * Initial change * Redundant Notification removed * Fixed linting and other issues * Tests fixed * Add Home Screen And People Screen along with other components (#940) * Create login and register page for user portal * Lint public locales * Create tests for login page components * Add react import in tests * Create organizations screen for user portal * Fix failing tests and lint code * fix failing tests * Add tests for organization screen and componenets * Fix non-null assertions * Fix non-null assertions in organizations test * Fix bootstrap migration changes * Add Home Screen along with other components * Fix failing tests * Add required tests and Offcanvas navbar * Remove unused variables from tests * Sync the Mutations with talawa-api * Merge AdminUI-Redesign into Develop (#947) * Updated CODE_STYLE.md * Updated CODE_STYLE.md (#917) * Updated CODE_STYLE.md * Import section update * Upgrade and Migrate from Bootstrap 4 to Bootstrap 5 (#925) * Updated CODE_STYLE.md * Latest Boostrap v5.3.0 & react-bootstrap v2.7.4 installed * Buttons replaced from normal ones to Bootstrap ones * Import section update * Error fixed for Buttons * Language dropdowns and Change language * InputBoxes & Checkboxes fixed and imported from BS * Removed unused package popper.js * Replaced react-modal with Bootstrap one in Login Page * Modals converted to React Bootstrap one * Completely replaced react-modal with react-bootstrap/Modal from the project * Removed react-modal from the project * Removed classbased modal and unused images * Notification navbar migrated * Modal migration * Modal migration * Modal migration done for OrgPostCard * Empty commit to make workflow run * Empty commit to make workflow run * Empty commit to run the workflow * Sass filed added with documentation * Linting fixed * Fixed the folder structure and naming convention * Customised Bootstrap (#929) * Sass filed added with documentation * Linting fixed * Fixed the folder structure and naming convention * Assets typo fixed * Typo fix * Initial login page work * Merge conflict error fixed * Theming modified and Added Loader over every screen * Fixed UI issue for navbar and login * Fixed production bug * Removed unused variable * Tests fixed * Added Change Language Btn dropdown * Merge conflict fixed, merge latest develop into adminUI-redesign (#938) * Merge latest adminUI-Redesign into Develop (#927) * Updated CODE_STYLE.md * Updated CODE_STYLE.md (#917) * Updated CODE_STYLE.md * Import section update * Upgrade and Migrate from Bootstrap 4 to Bootstrap 5 (#925) * Updated CODE_STYLE.md * Latest Boostrap v5.3.0 & react-bootstrap v2.7.4 installed * Buttons replaced from normal ones to Bootstrap ones * Import section update * Error fixed for Buttons * Language dropdowns and Change language * InputBoxes & Checkboxes fixed and imported from BS * Removed unused package popper.js * Replaced react-modal with Bootstrap one in Login Page * Modals converted to React Bootstrap one * Completely replaced react-modal with react-bootstrap/Modal from the project * Removed react-modal from the project * Removed classbased modal and unused images * Notification navbar migrated * Modal migration * Modal migration * Modal migration done for OrgPostCard * Empty commit to make workflow run * Empty commit to make workflow run * Empty commit to run the workflow --------- Co-authored-by: Anwer Sayeed <[email protected]> * Introduces API versioning check in CI/CD (#924) * a random change * husky precommit * one more try * one more try * one more try * one more try * one more try * one more try * second try * removed unwanted deps * removed unwanted deps * resolved the error * updated variable name * rerun test * rerun test * added test to pull.yml * removed push check * resolved conflict * Sass filed added with documentation * Linting fixed * Fixed the folder structure and naming convention * Update stale.yml * Typo fix * Update CONTRIBUTING.md * Merge talawa-user-portal into develop (#935) * Create login and register page for user portal * Lint public locales * Create tests for login page components * Add react import in tests * Create organizations screen for user portal * Fix failing tests and lint code * fix failing tests * Add tests for organization screen and componenets * Fix non-null assertions * Fix non-null assertions in organizations test * Fix bootstrap migration changes * Merge conflict error fixed --------- Co-authored-by: Anwer Sayeed <[email protected]> Co-authored-by: Kanishka Bansode <[email protected]> Co-authored-by: Peter Harrison <[email protected]> Co-authored-by: Noble Mittal <[email protected]> * Random checkout * Design ready for homescreen * Login page 100% code c=coverage * Login page icon adjustment * Added translations * Fixed the failing tests * Revert to older version of loader * Animation added fixed warnings * Fixed accessability * Mutations and Tests foxed * Fixed coloring in UserPortal * Tests fixed and ChangeLanguageDropdown used in UserLoginPage * Linting Fixed --------- Co-authored-by: Anwer Sayeed <[email protected]> Co-authored-by: Kanishka Bansode <[email protected]> Co-authored-by: Peter Harrison <[email protected]> Co-authored-by: Noble Mittal <[email protected]> * Merge latest adminUI-Redesign (#950) * Initial Organizations screen done * Removed yellow scrollbar * Linting fixed * Replaced images with svgs for logos * Styling done for btnsContainer * Better typechecking and readability * Animated Drawer working * Responsive page ready * OrgCard responsive * Fixed navbar issue and added webkit keyframes * LeftDrawer ready * Translations added * Added shimmer loading effect * Styling issue fixed * Failing tests fixed for OrgList * Removed unused vars * Tests done for LeftDrawer * Succesfully made component without causing any breaking change * 100% Code coverage achieved for Requests Screen * Fix alignment * Roles screen UI done * Role screen fixed with 100% test coverage * Changing screen activeness fixed * Unused vars and Typos fixed * Language support added * Linting and typos fixed * Fixed failing tests for LeftDrawer * Completed tests of AdminDashListCard with 100% code coverage * OrgListCard done * Finalised tests * Requests user search made functional again ! * Fixed loading on refetch and UX on all screens * OrgList failing errors fixed * Fixed all failing tests * Achieved 100% code coverage for OrgList.tsx * Wrote tests and mod LeftDrawer for admins * Minor ui issue fixed * Fixed failing test * UI bug dropdown * Frontend insync with Backend attempt 1 * Introspection fail fix 1 * Introspection error fix 3 * Introspection error fix another attempt * Another attempt * [Talawa-user-portal] Add Settings and Donate Screen, along with other UI fixes (#953) * Create login and register page for user portal * Lint public locales * Create tests for login page components * Add react import in tests * Create organizations screen for user portal * Fix failing tests and lint code * fix failing tests * Add tests for organization screen and componenets * Fix non-null assertions * Fix non-null assertions in organizations test * Fix bootstrap migration changes * Add Home Screen along with other components * Fix failing tests * Add required tests and Offcanvas navbar * Remove unused variables from tests * Sync the Mutations with talawa-api * Add Settings and Donate Screen * Add multilingual support for the screens * Add Event Project and Volunteer Management (#961) * Add screens for adding and updating event projects * Add delete operation for event projects and debug update * Remove yarn.lock * Begin testing * Add display of tasks and functionality to add tasks * Add modal for edit task * Add UpdateTaskModal * Add Delete Task Modal and volunteers display * Add test for DeleteEventProjectModal.tsx * Add tests for add and update event project modal * Add screen for managing volunteers * Add option to assign and remove volunteers * Add tests for AddTaskModal.tsx * Add tests for TaskListItem.tsx and DeleteTaskModal.tsx * Complete testing for all Task Modals * Add completed display to tasks * Add tests for event dashboard * Restructure files * Add attendee management modal * Add testing for EventAttendeeModal * Move to 100% testing and wrapper for attendees modal * Add basic checkIn functionality for users * Add testing for CheckIn modals * Introduce the tag generation into the repository * Update linting rule and fix errors * Remove alloted seat and alloted room * Fix testing * Correct some tests * Migrate from attendees to registrants * Migrate Event Project modals to new design * Migrate registrants modals and checkin modals to new design with 100% test coverage * Move task modals to new styles * Move to 100% test coverage * Admin workflow completed with updated package.json (#960) * Merge latest AdminUI Redesign into develop (#956) * Initial Organizations screen done * Removed yellow scrollbar * Linting fixed * Replaced images with svgs for logos * Styling done for btnsContainer * Better typechecking and readability * Animated Drawer working * Responsive page ready * OrgCard responsive * Fixed navbar issue and added webkit keyframes * LeftDrawer ready * Translations added * Added shimmer loading effect * Styling issue fixed * Failing tests fixed for OrgList * Removed unused vars * Tests done for LeftDrawer * Succesfully made component without causing any breaking change * 100% Code coverage achieved for Requests Screen * Fix alignment * Roles screen UI done * Role screen fixed with 100% test coverage * Changing screen activeness fixed * Unused vars and Typos fixed * Language support added * Linting and typos fixed * Fixed failing tests for LeftDrawer * Completed tests of AdminDashListCard with 100% code coverage * OrgListCard done * Finalised tests * Requests user search made functional again ! * Fixed loading on refetch and UX on all screens * OrgList failing errors fixed * Fixed all failing tests * Achieved 100% code coverage for OrgList.tsx * Wrote tests and mod LeftDrawer for admins * Minor ui issue fixed * Fixed failing test * UI bug dropdown * Frontend insync with Backend attempt 1 * Introspection fail fix 1 * Introspection error fix 3 * Introspection error fix another attempt * Another attempt * Fixed Default Animation on Organizations Screen * Fixed typo * Loading data from localstorage functional * Fixed name conventions * Fixed typo * UI Fix * Changed screen name * Table Loader added * Added LeftOrg drawer and Organization screen comp to Screens * routesReducer tests fixed * Redundant adminNavbar removed from project * MemberDetail issue fixed * Achieved 100% code coverage for LeftDrawerOrg, Added Empty div in images * Fixed failing tests * Fix tests * Fixed warnings * Linting fixes * Linting issues fixed * Achieved 100% code coverage for CollapsibleDropdown * Achieved 100% CC on IconComponent and removed useless imports * Achieved 100% cc for LeftDrawer Component * Achieved 100% CC on SuperAdminScreen Component * Fixed typo * Integrated Event Dashboard * Failing tests for LeftDrawer LeftDrawerOrg OrgList screen fixed * Removed redundant code * Removed useless imports * Linting fixed * Removed LeftDrawerOrg * Update documentation * copy-docs -to-talawa branch update to develop * removed dependance of code copying from generate segment * Update push.yml (#969) * Update push.yml (#970) * Feature Request: Adding a dialog to go to plugin store after an organization is created by the admin (#951) * Add/ test for OrgPost.tsx * fix: org post back to default * Added Dialog 2 * Updated Dialog UI * Removed Extra code * Updated Plugin store * fix: warnings and solves #951 & #948 * fix: warnings and solves #951 & #948 * fix: warnings and solves #951 & #948 * Fix: UI Redesign * fix: merge * fix * Update AddOnStore.tsx * Fixed Merge Errors * Add test: for OrgEntry * Test 3 * fix test 4 * Merge latest AdminUI Redesign into develop (#972) * Initial Organizations screen done * Removed yellow scrollbar * Linting fixed * Replaced images with svgs for logos * Styling done for btnsContainer * Better typechecking and readability * Animated Drawer working * Responsive page ready * OrgCard responsive * Fixed navbar issue and added webkit keyframes * LeftDrawer ready * Translations added * Added shimmer loading effect * Styling issue fixed * Failing tests fixed for OrgList * Removed unused vars * Tests done for LeftDrawer * Succesfully made component without causing any breaking change * 100% Code coverage achieved for Requests Screen * Fix alignment * Roles screen UI done * Role screen fixed with 100% test coverage * Changing screen activeness fixed * Unused vars and Typos fixed * Language support added * Linting and typos fixed * Fixed failing tests for LeftDrawer * Completed tests of AdminDashListCard with 100% code coverage * OrgListCard done * Finalised tests * Requests user search made functional again ! * Fixed loading on refetch and UX on all screens * OrgList failing errors fixed * Fixed all failing tests * Achieved 100% code coverage for OrgList.tsx * Wrote tests and mod LeftDrawer for admins * Minor ui issue fixed * Fixed failing test * UI bug dropdown * Frontend insync with Backend attempt 1 * Introspection fail fix 1 * Introspection error fix 3 * Introspection error fix another attempt * Another attempt * Fixed Default Animation on Organizations Screen * Fixed typo * Loading data from localstorage functional * Fixed name conventions * Fixed typo * UI Fix * Changed screen name * Table Loader added * Added LeftOrg drawer and Organization screen comp to Screens * routesReducer tests fixed * Redundant adminNavbar removed from project * MemberDetail issue fixed * Achieved 100% code coverage for LeftDrawerOrg, Added Empty div in images * Fixed failing tests * Fix tests * Fixed warnings * Linting fixes * Linting issues fixed * Achieved 100% code coverage for CollapsibleDropdown * Achieved 100% CC on IconComponent and removed useless imports * Achieved 100% cc for LeftDrawer Component * Achieved 100% CC on SuperAdminScreen Component * Fixed typo * Integrated Event Dashboard * Failing tests for LeftDrawer LeftDrawerOrg OrgList screen fixed * Removed redundant code * Removed useless imports * Linting fixed * Removed LeftDrawerOrg * Dashboard screen ui almost ready * Org Dash ready * Block/Unblock screen ready * Organization settings page ready * Lang changes * Page refresh on updating org removed * OrgUpdate tests done * OrgUpdate 100% test coverage achieved * OrgSettings Tests done * Organization Dashboard Cards done * Organization Dashboard achieved 100% CC * 100% CC achieved for BlockUser screen * Finalised changes * Small change * Tests fixed * Separate OrgSettings component made * Linting fixed * Formatting fixed * Events screen and Post Comment Modal for Talawa-user-portal (#963) * Create login and register page for user portal * Lint public locales * Create tests for login page components * Add react import in tests * Create organizations screen for user portal * Fix failing tests and lint code * fix failing tests * Add tests for organization screen and componenets * Fix non-null assertions * Fix non-null assertions in organizations test * Fix bootstrap migration changes * Add Home Screen along with other components * Fix failing tests * Add required tests and Offcanvas navbar * Remove unused variables from tests * Sync the Mutations with talawa-api * Add Settings and Donate Screen * Add multilingual support for the screens * Add events screen without calendar view * Add multilingual support to Events screen * Fix failing tests due to merge * Add Post Comment functionality * Refactor Events tests * Deprecate event registrants from query * Update README.md * Add My Tasks screen and Fix UI bugs [User Portal] (#978) * Create login and register page for user portal * Lint public locales * Create tests for login page components * Add react import in tests * Create organizations screen for user portal * Fix failing tests and lint code * fix failing tests * Add tests for organization screen and componenets * Fix non-null assertions * Fix non-null assertions in organizations test * Fix bootstrap migration changes * Add Home Screen along with other components * Fix failing tests * Add required tests and Offcanvas navbar * Remove unused variables from tests * Sync the Mutations with talawa-api * Add Settings and Donate Screen * Add multilingual support for the screens * Add events screen without calendar view * Add multilingual support to Events screen * Fix failing tests due to merge * Add Post Comment functionality * Refactor Events tests * Deprecate event registrants from query * Add my tasks screen for user portal * Remove unnecessary comments from test files * Add Feedback UI Components to Talawa Admin (#980) * Add feedback component * Add tests for feedback modal * Add handling for empty feedback * Add Average Rating and Reviews component * Add testing for all the added cards * Fix tests and move to 100% coverage * Add bugfix * Add merge function to fix failing tests * Add key definitons * Change merge policy * Add custom merge policy to all the Event Stat tests * remove cache * Migrate to a single query in the parent * Adding Plugin Logic to the Talawa Mobile Web App (#976) * Add/ test for OrgPost.tsx * fix: org post back to default * Added Dialog 2 * Updated Dialog UI * Removed Extra code * Updated Plugin store * fix: warnings and solves #951 & #948 * fix: warnings and solves #951 & #948 * fix: warnings and solves #951 & #948 * Fix: UI Redesign * fix: merge * fix * Update AddOnStore.tsx * Fixed Merge Errors * Add test: for OrgEntry * Test 3 * fix test 4 * chores: version changes * Add: Initial Websocket setup on talawa mobile web * Add: plugin logic * Add: plugin logic * removed extra * removed extra * Added: Tests * fix * Add Side Navigation to Event Dashboard (#981) * Create left drawer for event dashboard * Add basic styles to the event dashboard * Fix button styling * Add testing * Add testing for the left event drawer * Add 100% line coverage for all components * Increase timeout for tests * Move maximum rating in feedback from 10 to 5 [Fixes #990] (#987) * Move maximum rating in feedbacks from 10 to 5 * Fix failing tests * Add chat screen to talawa-user-portal (#986) * Create login and register page for user portal * Lint public locales * Create tests for login page components * Add react import in tests * Create organizations screen for user portal * Fix failing tests and lint code * fix failing tests * Add tests for organization screen and componenets * Fix non-null assertions * Fix non-null assertions in organizations test * Fix bootstrap migration changes * Add Home Screen along with other components * Fix failing tests * Add required tests and Offcanvas navbar * Remove unused variables from tests * Sync the Mutations with talawa-api * Add Settings and Donate Screen * Add multilingual support for the screens * Add events screen without calendar view * Add multilingual support to Events screen * Fix failing tests due to merge * Add Post Comment functionality * Refactor Events tests * Deprecate event registrants from query * Add my tasks screen for user portal * Remove unnecessary comments from test files * Add chat screen along with components * Add mui/system package for x-chart support * Add chat screen tests and fix other bugs * Update issue.yml * Update stale.yml * Merge latest AdminUI Redesign into Master (#1006) * Pagination Done for Orglist * Fixed warnings * Infinite scroll and search working for Requests screen * Simplified the code * Infinite scroll enabled and functioning on OrgList Requests and Users screen * FIxed warning * Fixed typo * Fixed bug * Joined and Blockedbyorgs screen and mdoal ready * Tables ready ! * Remove user from organization functionality working well * Update user role in organization feature ready * Minor changes * Done with tests on OrgList * Done with testss of Requests screen * 100% CC achieved for Users screen * Main tests done for UserTableItem * 100% Code Coverage Achieved for UserTableItem * Removed Redundant Landing Page * 100% CC achieved for TableLoader * Translation added for Users Screen * Translation done for Requests screen * Translation done for dashboard screen * Linting and warnings fixed * Improved login page * UI Done for Forgot Password Screen * Forgot Password Screen Tests done! * Fixed all pending tests * Better message for btns and coloring * Linting issues fixed * Fixed code styles * SUPPRESSED UNKNOWN ERROR * Fixed formatting * Updated typoed message * Fixed failing tests accompanying typo * fix createEvent to close modal and show events without refresh (#1014) * fix: Ensure Full Visibility of Logo on 404 Error Page (#1018) - Adjusted the positioning of the logo on the 404 error page to ensure full visibility. - Implemented CSS modifications to prevent the logo from being covered or cut off. - Tested the changes by navigating to various undefined endpoints, confirming that the logo is now displayed correctly on the 404 error page. This commit addresses the bug by ensuring the proper display of the logo on the 404 error page, enhancing the user experience. Fixes #1016 Signed-off-by: Akhilender <[email protected]> * Implemented featurs for Postfeed Management (#982) * redesigned newsfeed * added test * newsfeed management * pinned post * postfeed management * pin unpin tag and video control * changes part 2 * newsfeed changes * changes in Card Preview of newsfeed * changes in Card Preview of newsfeed * testing phase 1 * translation * tests * tests * merged intto develop * test * Added query * Update pull-requests.yml * update and delete buttons of event modal are now working (#1051) * update and delete buttons of event modal are now working * fixed the naming conventions and style of the modal * Dynamic dashboard Enhancements (#979) * Dynamic Organization Dashboard * Dynamic Organization Dashboard * refined organization dashboard * Update src/utils/handleLatestFeed.ts Co-authored-by: Noble Mittal <[email protected]> * fixed inconsistent casing * fixed org dashboard test * fixed org dashboard test * revert previous commit * final changes * final changes --------- Co-authored-by: Noble Mittal <[email protected]> * Fix dashboard items (#1007) * Dashboard items are working now. * added variables for links -fix dashboard items * Added variables for links -fix dashboard items. * made the changes as said * Removed : string from variable assignment. * remove repititive code and resolved falling tests * Fix repeating code and falling tests. * Resolved some more falling tests * write test for missed lines * Fix event creation issue with white spaces. (#1025) * fix event creation with white spaces * Add test for empty input values * chore: fix unit test (#1052) * Fix layout distortion due to untruncated title description of events. (#1049) * Fix layout distortion due to untruncated title description of events * Add test * add test for LeftDrawerEvent.tsx * fixed some tests * add test complete * test: SecuredRouteForUser component 100% Test Coverage and fixed uncovered lines (#1048) * SecuredRouteForUser test case added * Fixed Linting Errors * Update SecuredRouteForUser.test.tsx * Update SecuredRouteForUser.test.tsx * linting fix * Update SecuredRouteForUser.test.tsx * Update SecuredRouteForUser.test.tsx * Fix incorrect toast Notification. (#1053) * correct toast notification for TableRow.tsx with full test coverage * Add correct toast with full code coverage * Add correct toast for deleteEventProjectModal.tsx with full test coverage * Add correct toast for UpdateEventProjectModal.tsx with full test coverage * Add correct toast for EventRegistrantsModal.tsx and full test coverage. * Add correct toast for AddTaskModal.tsx with full test coverage * Add correct toast for UpdateTaskModal.tsx with full test coverage * minor fix * Add correct toast to EventRegistrantsModal.tsx * fix EventRegitrantsModal.tsx * created a return button on event dashboard (#1057) * test: Loader Component 100% Test Coverage and Fix Uncovered Lines (#1047) * test: Achieve 100% Test Coverage and Fix Uncovered Lines - Improved the test coverage for the Loader component, addressing the previously uncovered lines and ensuring that all tests pass successfully. - Added a test to ensure that the component renders correctly with a custom 'sm' size. I verified that both the spinner-wrapper and spinner elements are present and that the correct class is applied. - Added a test to ensure that the component renders correctly with a 'lg' size. I verified that the spinner element has the appropriate class. - Added a test to ensure that the component renders correctly with an 'xl' size. I verified that the spinner element has the correct class. With these new tests, I now have 100% test coverage, and there are no more uncovered lines. The Loader component is thoroughly tested for different size scenarios, and all tests pass successfully. Signed-off-by: Akhilender <[email protected]> * Fixed linting in Loader component Signed-off-by: Akhilender <[email protected]> * Test: Increasing the test level - Trying to meet the code coverage level for Loader component. Signed-off-by: Akhilender <[email protected]> * Fixed Linting Signed-off-by: Akhilender <[email protected]> * fix: Linting Signed-off-by: Akhilender <[email protected]> * Improving test coverage for Loader Component - Fixed lint errors Signed-off-by: Akhilender <[email protected]> * test: Improving the tests on the Loader Component - Added a new aspect in the test-case1 Signed-off-by: Akhilender <[email protected]> * Fixed: Removed runtime-generated classes from testing - Eliminated all checks for classes associated with bootstrap components assigned at runtime. - Recognized that validating classes assigned during runtime is inappropriate. Signed-off-by: Akhilender <[email protected]> --------- Signed-off-by: Akhilender <[email protected]> * Simulated Test Database (#984) * Dynamic Organization Dashboard * Dynamic Organization Dashboard * Sample Org Implementation * removed unnecessary changes * removed unnecessary svgs * removed unnecessary import * added appropriate button style * fixed OrgListCard tests * Fixed OrgList and OrgListCard Tests * Removed Unnecessary 'container' Variable * Added Missing Translations and removed unused variable * Fixed event check in management not updating automatically bug (#1062) * fixed the event checkIn bug * fixed the failing test * fixed the CheckInWrapper test * Fix user profile buttons layout and added form validation (#1064) * Fix user profile buttons layout and added form validation * Fix falling tests and warnings * Add test for missed lines * fix falling tests * test: Achieved 100% test coverage and fixed uncovered lines (#1068) * test: Achieved 100% test coverage and fixed uncovered lines - Improved the test coverage for the User-Password-Update component, addressing the previously uncovered lines and ensuring that all tests pass successfully. - Added two new tests 1. Empty Password Field Test: - The first test ensures that an error is displayed when attempting to save changes with an empty password field. 2. Mismatched New and Confirm Passwords Test - The second test covers the scenario where the new and confirm password fields do not match. With these new tests, I now have 100% test coverage, and there are no more uncovered lines. Signed-off-by: Akhilender <[email protected]> …
* fix workflows failing of TS and lint * Update pull-request.yml * Update pull-request.yml
…ation#2457) * configuring vitest * migrating AddOn tests to vitest * removing unnecessary alias * eslint fix * suggestion PalisadoesFoundation#2 * workflow setup * fix: tsdoc workflow * reformat comment to tsdoc fmt * resolving jest, vitest workflow * lint error * add tsdoc comments * exit for workflow * format yml fix * fixing workflow * cleanup * ts error * Update .eslintignore * tsconfig edit * removing suggestions 2 * Update vitest.config.ts * fmt * config update * ignoring .spec files for cov * new suggestions * merge reports * Update vitest.config.ts * vitest run fix * report dir change * report dir change 2 * check workflow * workflow update * fixing merge report * suggestion reverted * merge cov reports * changing format of jest cov reports * Merge Coverage Reports Using lcov-result-merger * fixing merge report * final changes * final changes 2 --------- Co-authored-by: Vamshi Maskuri <[email protected]>
* chore(deps): bump sass from 1.80.6 to 1.80.7 (PalisadoesFoundation#2433) Bumps [sass](https://github.com/sass/dart-sass) from 1.80.6 to 1.80.7. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](sass/dart-sass@1.80.6...1.80.7) --- updated-dependencies: - dependency-name: sass dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump eslint-plugin-import from 2.30.0 to 2.31.0 (PalisadoesFoundation#2434) Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.30.0 to 2.31.0. - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.30.0...v2.31.0) --- updated-dependencies: - dependency-name: eslint-plugin-import dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @mui/x-charts from 7.22.1 to 7.22.2 (PalisadoesFoundation#2435) Bumps [@mui/x-charts](https://github.com/mui/mui-x/tree/HEAD/packages/x-charts) from 7.22.1 to 7.22.2. - [Release notes](https://github.com/mui/mui-x/releases) - [Changelog](https://github.com/mui/mui-x/blob/v7.22.2/CHANGELOG.md) - [Commits](https://github.com/mui/mui-x/commits/v7.22.2/packages/x-charts) --- updated-dependencies: - dependency-name: "@mui/x-charts" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @types/react from 18.3.3 to 18.3.12 (PalisadoesFoundation#2436) Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.3.3 to 18.3.12. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update pull-request.yml * css for color blinds * fix * lint fix * lint fix * fix failing test * fix * fix * fix * fix * fix * fix * fix * lock file changes * fix type * fix type * Update tagTemplate.ts * Update tagTemplate.ts * Update tagTemplate.ts * Update tagTemplate.ts * Update tagTemplate.ts * Update tagTemplate.ts * Update TableRow.tsx * Update tsconfig.json --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Peter Harrison <[email protected]>
* reverting workflow changes * changes 1 * identation fix
…-admin into develop-postgres-merge
WalkthroughThe pull request introduces several modifications across various configuration files and components. Key changes include updates to the ESLint configuration and ignore settings, the introduction of a new pull request template, and enhancements to GitHub Actions workflows. The testing framework is shifted to Vitest, with new configurations established for coverage reporting. Additionally, numerous CSS files have been updated to utilize CSS variables for styling consistency, and several components have been adjusted for improved UI and functionality. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant App
participant ESLint
participant GitHubActions
participant Vitest
User->>App: Make changes to code
App->>ESLint: Run linting checks
ESLint-->>App: Return linting results
App->>GitHubActions: Trigger CI/CD workflows
GitHubActions->>Vitest: Run tests
Vitest-->>GitHubActions: Return test results
GitHubActions-->>User: Notify CI/CD results
Possibly related PRs
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Our Pull Request Approval ProcessThanks for contributing! Testing Your CodeRemember, your PRs won't be reviewed until these criteria are met:
Our policies make our code better. 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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 21
🧹 Outside diff range and nitpick comments (38)
vitest.config.ts (1)
22-31
: Align coverage exclusion patterns with test inclusionThe
exclude
patterns for coverage reporting are comprehensive, but ensure they align with the updatedinclude
patterns for test files. Since you're now including.test.
files in your tests, it's important to exclude them from coverage as well to avoid skewed coverage results.No changes are needed if the existing exclusion patterns already cover both
.spec.
and.test.
files..github/workflows/stale.yml (1)
43-43
: Review increase inoperations-per-run
parameterThe
operations-per-run
parameter has been increased from30
to50
. Ensure that this increase is necessary and will not cause any issues with rate limits or workflow execution time..github/pull_request_template.md (1)
Line range hint
1-23
: Resolve inconsistency in branch namingThere is an inconsistency in the branch naming conventions. The branching strategy mentions the
master
branch as the stable production branch, but later refers to the default branch asmain
. To avoid confusion, please ensure consistent use of branch names throughout the document.Apply this diff to correct the inconsistency:
- ONLY SUBMIT PRS AGAINST OUR `DEVELOP` BRANCH. THE DEFAULT IS `MAIN`, SO YOU WILL HAVE TO MODIFY THIS BEFORE SUBMITTING YOUR PR FOR REVIEW. PRS MADE AGAINST `MAIN` WILL BE CLOSED. + ONLY SUBMIT PRS AGAINST OUR `DEVELOP` BRANCH. THE DEFAULT IS `MASTER`, SO YOU WILL HAVE TO MODIFY THIS BEFORE SUBMITTING YOUR PR FOR REVIEW. PRS MADE AGAINST `MASTER` WILL BE CLOSED.🧰 Tools
🪛 GitHub Check: Performs linting, formatting, type-checking, checking for different source and target branch
[warning] 1-1:
File ignored by default.src/components/AddOn/AddOn.spec.tsx (2)
23-30
: Review the necessity of mocking 'state/store'.Ensure that mocking
'state/store'
is necessary for these tests and that the mock effectively replaces the module. If the real store can be used without side effects, consider importing it directly to simplify the test setup.
32-37
: Consider using the actual 'i18nForTest' module instead of mocking.If possible, use the actual
'i18nForTest'
module to accurately test localization features without additional mocking complexity.src/components/OrgListCard/OrgListCard.module.css (1)
58-60
: Avoid using!important
unless necessary.Using
!important
can make stylesheet maintenance harder by overriding CSS specificity rules. If possible, adjust the selectors' specificity to achieve the desired styles without!important
..eslintrc.json (1)
Line range hint
85-94
: Reconsider Interface Naming Convention with PrefixesThe naming convention enforces that interfaces must have
PascalCase
format with prefixes likeInterface
orTestInterface
. In TypeScript, it's common practice to name interfaces inPascalCase
without any prefixes. Prefixing interface names may lead to verbose or less readable code.Consider updating the rule to remove the prefix requirement:
{ "selector": "interface", "format": ["PascalCase"], - "prefix": ["Interface", "TestInterface"] }
src/components/EventCalendar/EventHeader.tsx (1)
58-60
: Consider moving inline styles to CSS modules for consistencyThe
Button
component on line 58 uses an inline style formarginBottom
. To maintain consistency and improve maintainability, consider moving this style into the CSS module.Apply the following changes:
In
EventCalendar.module.css
, add:.searchbutton { margin-bottom: 10px; }Then, update the
Button
component:<Button className={styles.searchbutton} - style={{ marginBottom: '10px' }} > <Search /> </Button>src/screens/LoginPage/LoginPage.module.css (2)
88-97
: Remove unnecessary comments referencing Bootstrap utilitiesThe comments indicating Bootstrap utility classes (
/* mt-3: Bootstrap margin spacing utility (3 = 1rem) */
) may not be needed since the margins are explicitly defined in CSS. Removing them can clean up the code.Apply this diff to remove the comments:
.login_btn { background-color: var(--search-button-bg); border-color: var(--search-button-border); margin-top: 1rem; - /* mt-3: Bootstrap margin spacing utility (3 = 1rem) */ margin-bottom: 1rem; - /* mb-3: Bootstrap margin spacing utility (3 = 1rem) */ width: 100%; }
98-107
: Remove unnecessary comments referencing Bootstrap utilitiesSimilar to the previous comment, consider removing the comments within
.reg_btn
for cleaner code.Apply this diff to remove the comments:
.reg_btn { background-color: var(--dropdown-border-color); border-color: var(--dropdown-border-color); margin-top: 1rem; color: white; - /* mt-3: Bootstrap margin spacing utility (3 = 1rem) */ margin-bottom: 1rem; - /* mb-3: Bootstrap margin spacing utility (3 = 1rem) */ width: 100%; }src/screens/OrgList/OrgList.module.css (1)
23-24
: Use CSS variables instead of hard-coded color valuesTo maintain consistency and ease future theme adjustments, consider using CSS variables for color values instead of hard-coded hex codes.
Define the color variable in a global CSS file or within this module:
:root { --plugin-button-color: #555555; }Update the styles:
.pluginStoreBtn { width: 100%; background-color: white; - color: #555555; - border: 0.5px solid #555555; + color: var(--plugin-button-color); + border: 0.5px solid var(--plugin-button-color); } .pluginStoreBtn:hover, .pluginStoreBtn:focus { background-color: #dfe1e2 !important; - color: #555555 !important; - border-color: #555555 !important; + color: var(--plugin-button-color) !important; + border-color: var(--plugin-button-color) !important; }Also applies to: 30-31
package.json (2)
70-70
: Assess necessity ofvite-plugin-node-polyfills
Adding
vite-plugin-node-polyfills
can increase the bundle size due to the inclusion of polyfills for Node.js modules. Consider evaluating if all these polyfills are necessary. If not all Node.js core modules are used, you might optimize performance by selectively including only the required polyfills.
78-80
: Clarify testing frameworks: Jest and Vitest coexistenceNew test scripts using Vitest (
test:vitest
,test:vitest:watch
,test:vitest:coverage
) have been added, while existing test scripts still use Jest. If you are transitioning to Vitest, consider updating or removing Jest-related scripts and dependencies to maintain consistency and avoid confusion.Additionally, check if Jest dependencies like
jest
,babel-jest
, and related configurations are still needed. Removing unnecessary dependencies can simplify project maintenance.src/screens/OrganizationFunds/OrganizationFunds.tsx (4)
21-40
: Consider using theme variables instead of hardcoded colors indataGridStyle
.The
dataGridStyle
object (lines 21-40) includes hardcoded color values like'#EAEBEF'
and'#eff1f7'
. To enhance maintainability and consistency across the application, consider using theme variables or CSS variables instead of hardcoding these values.
248-249
: Remove commented-out code to maintain code cleanliness.At line 248, there's a commented-out line
// className="me-2 rounded"
. It's good practice to remove unused or commented-out code to keep the codebase clean and readable.
302-306
: Avoid inline styles; movemarginBottom
to CSS class for consistency.At line 302, an inline style
style={{ marginBottom: '9px' }}
is applied to the search button. Consider adding this style to thesearchButton
class inapp.module.css
to keep styling consistent and centralized.Apply this diff to update the CSS:
/* In app.module.css */ .searchButton { background-color: var(--search-button-bg); border-color: var(--search-button-border); position: absolute; z-index: 10; bottom: 0; right: 0; display: flex; justify-content: center; align-items: center; + margin-bottom: 9px; }
And remove the inline style from the JSX:
<Button tabIndex={-1} className={`${styles.searchButton}`} - style={{ marginBottom: '9px' }} data-testid="searchBtn" >
341-341
: Avoid inline styles; movemarginTop
to CSS class for consistency.At line 341, the
createFund
button has an inline stylestyle={{ marginTop: '11px' }}
. To maintain consistent styling, consider adding this style to thecreateButton
class inapp.module.css
.Apply this diff to update the CSS:
/* In app.module.css */ .createButton { /* existing styles */ + margin-top: 11px; }
And remove the inline style from the JSX:
<Button variant="success" onClick={() => handleOpenModal(null, 'create')} className={styles.createButton} - style={{ marginTop: '11px' }} data-testid="createFundBtn" >src/style/app.module.css (2)
76-79
: Avoid redundant CSS properties in.btnsContainer
.In lines 76-79,
margin: 2.5rem 0;
is duplicated within the.btnsContainer
class. Sincemargin: 2.5rem 0;
is already declared earlier, consider removing the duplicate to prevent redundancy and potential confusion.Apply this diff to remove the redundant property:
.btnsContainer { display: flex; margin: 2.5rem 0; align-items: center; gap: 10px; - /* Adjust spacing between items */ - margin: 2.5rem 0; }
251-253
: Remove commented-out CSS code for cleanliness.At line 251, the commented-out line
/* color: #555555; */
is present. Removing unused code improves readability and maintains a clean codebase.Apply this diff to remove the commented code:
.addButton:hover { background-color: #286fe0; border-color: var(--search-button-border); - /* color: #555555; */ }
src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.tsx (1)
266-266
: Ensure Consistent Modal Header StylingThe
Modal.Header
no longer includes aclassName
attribute. If specific header styling is required for this modal, consider adding the appropriateclassName
to maintain consistent styling with other modals.src/screens/OrganizationActionItems/OrganizationActionItems.tsx (2)
369-370
: Review Changes in Layout SpacingThe
className
attributes for the containers have been updated, and Bootstrap utility classesgap-4
andmb-1
have been removed. This might affect the spacing and alignment of elements. Ensure that the new styles applied viastyles.btnsContainer
andstyles.input
maintain the desired layout.
Line range hint
398-410
: Fix Syntax Error inbackgroundColor
PropertyThere's a syntax error in the
backgroundColor
property within thesx
prop of theDataGrid
component. The value'EAEBEF)'
is missing a#
and has an extra closing parenthesis. It should be corrected to'#EAEBEF'
.Apply this diff to fix the syntax error:
sx={{ borderRadius: '20px', - backgroundColor: 'EAEBEF)', + backgroundColor: '#EAEBEF', '& .MuiDataGrid-row': {src/screens/OrgList/OrgList.tsx (1)
537-537
: Check Appropriateness ofcreateButton
Class onModal.Header
The
Modal.Header
is assignedclassName={styles.createButton}
. Verify that thecreateButton
style is suitable for a modal header, as it may be intended for buttons rather than headers. Applying a button style to a header component could lead to unexpected styling issues.src/components/LeftDrawer/LeftDrawer.test.tsx (1)
98-98
: LGTM! Tests updated to match new stylingThe test assertions correctly reflect the styling changes. Consider extracting the class name strings into constants for better maintainability.
+ const ACTIVE_BTN_CLASS = 'text-black btn btn-success'; + const INACTIVE_BTN_CLASS = 'text-secondary btn'; expect( - orgsBtn.className.includes('text-black btn btn-success'), + orgsBtn.className.includes(ACTIVE_BTN_CLASS), ).toBeTruthy();Also applies to: 182-182, 212-212
src/screens/OrganizationVenues/OrganizationVenues.tsx (1)
Line range hint
231-236
: Reconsider using dropdown style for action buttonUsing
styles.dropdown
for an action button seems inconsistent. Consider creating a dedicated style for primary action buttons to maintain proper visual hierarchy.- className={styles.dropdown} + className={styles.primaryActionButton}src/screens/BlockUser/BlockUser.tsx (3)
192-194
: Consider adding ARIA labels for better accessibilityWhile the structure is improved, consider enhancing accessibility by adding appropriate ARIA labels to the container elements.
- <div className={styles.btnsContainerBlockAndUnblock}> + <div className={styles.btnsContainerBlockAndUnblock} role="toolbar" aria-label="User management controls"> - <div className={styles.inputContainerBlockAndUnblock}> + <div className={styles.inputContainerBlockAndUnblock} role="search" aria-label="Search users">
225-229
: Consider standardizing UI component library usageThe component mixes Material-UI icons with Bootstrap components. Consider standardizing on one UI library for better consistency and maintainability.
This mixing of libraries could lead to:
- Inconsistent visual styling
- Larger bundle size
- More complex theming
- Potential accessibility inconsistencies
Also applies to: 254-258
304-308
: Enhance table accessibilityWhile the table is responsive, consider adding these accessibility improvements:
<Table responsive data-testid="userList" className={styles.custom_table} + aria-label={t('userListTable')} >
src/screens/LoginPage/LoginPage.tsx (4)
Line range hint
447-474
: Consider enhancing email validationThe current email validation only checks for length >= 8 characters. Consider adding a more robust email validation pattern to prevent invalid email formats.
- if (signEmail.length >= 8) { + const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; + if (emailPattern.test(signEmail)) {
Line range hint
636-757
: Consider extracting password validation logicThe password validation UI feedback implementation is comprehensive but could be extracted into a separate component to improve maintainability and reusability.
Consider creating a
PasswordValidationFeedback
component to encapsulate this logic:interface PasswordValidationProps { password: string; isInputFocused: boolean; showAlert: PasswordValidation; } const PasswordValidationFeedback: React.FC<PasswordValidationProps> = ({ password, isInputFocused, showAlert }) => { // Extract validation feedback JSX here };
Line range hint
290-299
: Enhance error message specificityWhile the error handling is good, consider providing more specific error messages for validation failures to help users understand exactly what went wrong.
- toast.warn(t('email_invalid') as string); + toast.warn(t('email_invalid_format', { + message: 'Please enter a valid email address (e.g., [email protected])' + }) as string);
Line range hint
447-474
: Enhance accessibility for form controlsConsider adding explicit ARIA labels and roles to improve accessibility for screen readers.
<Button tabIndex={-1} + aria-label="Email input icon" className={styles.email_button} > <EmailOutlinedIcon /> </Button>
Also applies to: 510-523
src/components/Venues/VenueModal.tsx (2)
263-263
: LGTM with accessibility enhancement suggestionThe class name change aligns with the new styling convention. Consider adding
aria-busy={loading}
to improve accessibility when the button is in a loading state.<Button type="submit" className={styles.addButton} value={edit ? 'editVenue' : 'createVenue'} data-testid={edit ? 'updateVenueBtn' : 'createVenueBtn'} onClick={handleSubmit} disabled={loading} + aria-busy={loading} >
Line range hint
82-94
: Consider enhancing form validationThe current form validation could be improved to provide a better user experience:
- Add field-level validation with inline error messages
- Validate description length before submission
- Add proper image file type and size validation
Here's a suggested approach for enhanced validation:
interface FormErrors { name?: string; description?: string; capacity?: string; image?: string; } const validateForm = (): FormErrors => { const errors: FormErrors = {}; if (formState.name.trim().length === 0) { errors.name = t('venueTitleError'); } if (formState.description.length > 500) { errors.description = t('descriptionTooLong'); } const capacityNum = parseInt(formState.capacity); if (isNaN(capacityNum) || capacityNum <= 0) { errors.capacity = t('venueCapacityError'); } return errors; };Then update the form fields to show inline errors:
<Form.Control type="title" id="venuetitle" placeholder={t('enterVenueName')} autoComplete="off" required value={name} + isInvalid={!!errors.name} onChange={(e): void => { setFormState({ ...formState, name: e.target.value, }); }} /> +<Form.Control.Feedback type="invalid"> + {errors.name} +</Form.Control.Feedback>src/screens/OrganizationEvents/OrganizationEvents.module.css (2)
64-64
: Consider using CSS variables for border colorsThe border color
#eaebef
is used consistently across multiple title elements. Consider moving this to a CSS variable for better maintainability and consistency.:root { + --title-border-color: #eaebef; } .logintitle { - border-bottom: 3px solid #eaebef; + border-bottom: 3px solid var(--title-border-color); }Also applies to: 75-75, 155-155, 165-165
Line range hint
192-211
: Rename .greenregbtn class to match its new colorThe class name
.greenregbtn
is misleading as it now uses a gray color (#eaebef
). Consider renaming it to better reflect its current appearance.-.greenregbtn { +.grayButton { /* ... existing styles ... */ background-color: #eaebef; }src/screens/OrgPost/OrgPost.tsx (2)
Line range hint
313-349
: Improve className string template syntaxThe className assignment can be simplified for better readability.
- <SortIcon className={'me-1'} /> + <SortIcon className="me-1" />
554-565
: Add loading state to submit buttonConsider adding a loading state to the submit button to prevent double submissions and improve user experience.
<Button type="submit" value="invite" data-testid="createPostBtn" className={`${styles.addButton} mt-2`} + disabled={createPostLoading} > - {t('addPost')} + {createPostLoading ? t('creating') : t('addPost')} </Button>
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
⛔ Files ignored due to path filters (1)
package-lock.json
is excluded by!**/package-lock.json
📒 Files selected for processing (40)
.eslintignore
(1 hunks).eslintrc.json
(3 hunks).github/pull_request_template.md
(1 hunks).github/workflows/codeql-codescan.yml
(1 hunks).github/workflows/issue.yml
(1 hunks).github/workflows/pull-request-target.yml
(2 hunks).github/workflows/pull-request.yml
(8 hunks).github/workflows/push.yml
(1 hunks).github/workflows/stale.yml
(2 hunks)jest.config.js
(3 hunks)package.json
(5 hunks)src/assets/css/app.css
(1 hunks)src/components/AddOn/AddOn.spec.tsx
(1 hunks)src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.tsx
(4 hunks)src/components/CheckIn/tagTemplate.ts
(1 hunks)src/components/EventCalendar/EventCalendar.module.css
(15 hunks)src/components/EventCalendar/EventHeader.tsx
(2 hunks)src/components/LeftDrawer/LeftDrawer.test.tsx
(3 hunks)src/components/LeftDrawer/LeftDrawer.tsx
(1 hunks)src/components/LoginPortalToggle/LoginPortalToggle.module.css
(1 hunks)src/components/OrgListCard/OrgListCard.module.css
(1 hunks)src/components/Venues/VenueModal.tsx
(3 hunks)src/screens/BlockUser/BlockUser.tsx
(8 hunks)src/screens/LoginPage/LoginPage.module.css
(1 hunks)src/screens/LoginPage/LoginPage.tsx
(4 hunks)src/screens/OrgList/OrgList.module.css
(2 hunks)src/screens/OrgList/OrgList.tsx
(6 hunks)src/screens/OrgPost/OrgPost.tsx
(9 hunks)src/screens/OrganizationActionItems/OrganizationActionItems.tsx
(2 hunks)src/screens/OrganizationEvents/OrganizationEvents.module.css
(9 hunks)src/screens/OrganizationEvents/OrganizationEvents.tsx
(2 hunks)src/screens/OrganizationFunds/FundModal.tsx
(3 hunks)src/screens/OrganizationFunds/OrganizationFunds.tsx
(5 hunks)src/screens/OrganizationTags/OrganizationTags.tsx
(1 hunks)src/screens/OrganizationVenues/OrganizationVenues.tsx
(4 hunks)src/screens/Requests/Requests.module.css
(0 hunks)src/screens/Requests/Requests.tsx
(4 hunks)src/style/app.module.css
(10 hunks)tsconfig.json
(1 hunks)vitest.config.ts
(1 hunks)
💤 Files with no reviewable changes (1)
- src/screens/Requests/Requests.module.css
✅ Files skipped from review due to trivial changes (4)
- src/components/LoginPortalToggle/LoginPortalToggle.module.css
- .eslintignore
- src/components/CheckIn/tagTemplate.ts
- src/screens/OrganizationTags/OrganizationTags.tsx
🧰 Additional context used
📓 Learnings (2)
src/screens/OrganizationFunds/FundModal.tsx (1)
Learnt from: GlenDsza
PR: PalisadoesFoundation/talawa-admin#2064
File: src/screens/OrganizationFunds/OrganizationFunds.tsx:66-72
Timestamp: 2024-11-12T10:40:58.654Z
Learning: Renaming the Enum `Modal` to `ModalState` in the `organizationFunds` component is unnecessary and does not change the functionality.
src/components/LeftDrawer/LeftDrawer.test.tsx (1)
Learnt from: Doraemon012
PR: PalisadoesFoundation/talawa-admin#1988
File: src/components/LeftDrawerOrg/LeftDrawerOrg.test.tsx:282-282
Timestamp: 2024-11-12T10:40:58.654Z
Learning: In the test 'Component should be rendered properly' within 'Testing LeftDrawerOrg component for SUPERADMIN', setting 'SuperAdmin' to false is intentional.
🪛 eslint
jest.config.js
[error] 13-13: Insert ⏎··
(prettier/prettier)
🪛 GitHub Check: Performs linting, formatting, type-checking, checking for different source and target branch
jest.config.js
[failure] 13-13:
Insert ⏎··
.github/pull_request_template.md
[warning] 1-1:
File ignored by default.
🪛 yamllint (1.35.1)
.github/workflows/codeql-codescan.yml
[warning] 37-37: wrong indentation: expected 11 but found 10
(indentation)
.github/workflows/pull-request.yml
[error] 49-49: trailing spaces
(trailing-spaces)
[error] 60-60: trailing spaces
(trailing-spaces)
[error] 63-63: trailing spaces
(trailing-spaces)
[error] 92-92: trailing spaces
(trailing-spaces)
[error] 133-133: trailing spaces
(trailing-spaces)
[error] 136-136: trailing spaces
(trailing-spaces)
[error] 157-157: trailing spaces
(trailing-spaces)
[error] 164-164: trailing spaces
(trailing-spaces)
[error] 204-204: trailing spaces
(trailing-spaces)
[error] 208-208: trailing spaces
(trailing-spaces)
[error] 230-230: trailing spaces
(trailing-spaces)
[error] 231-231: trailing spaces
(trailing-spaces)
[error] 270-270: trailing spaces
(trailing-spaces)
[error] 276-276: trailing spaces
(trailing-spaces)
[error] 278-278: trailing spaces
(trailing-spaces)
.github/workflows/pull-request-target.yml
[error] 27-27: trailing spaces
(trailing-spaces)
🪛 Biome (1.9.4)
src/components/EventCalendar/EventCalendar.module.css
[error] 14-14: Unexpected shorthand property margin after margin-bottom
(lint/suspicious/noShorthandPropertyOverrides)
🪛 actionlint (1.7.4)
.github/workflows/pull-request.yml
62-62: shellcheck reported issue in this script: SC2086:info:1:12: Double quote to prevent globbing and word splitting
(shellcheck)
🔇 Additional comments (42)
tsconfig.json (1)
21-22
: Confirming the exclusion of unnecessary files
Excluding node_modules
, dist
, and vitest.config.ts
from the TypeScript compilation is appropriate. This helps in improving build performance and prevents potential conflicts by not processing files that don't need type checking.
.github/workflows/codeql-codescan.yml (2)
41-41
: Update CodeQL Autobuild to Version 3 Confirmation
Updating github/codeql-action/autobuild
to @v3
ensures that you're using the latest features and improvements of the CodeQL action.
44-44
: Update CodeQL Analyze to Version 3 Confirmation
Similarly, updating github/codeql-action/analyze
to @v3
keeps your workflow up-to-date with the latest analysis capabilities.
.github/workflows/push.yml (1)
56-56
: Verify compatibility with codecov/codecov-action@v5
The Codecov action has been updated from @v4
to @v5
. Please ensure that there are no breaking changes or required configuration updates in the new version that could affect the workflow. Review the release notes for v5
to confirm compatibility.
You can run the following script to fetch the release notes for codecov/codecov-action@v5
:
.github/workflows/stale.yml (1)
28-28
: Confirm compatibility with actions/stale@v9
The actions/stale
action has been updated from @v8
to @v9
. Verify that the new version does not introduce breaking changes or deprecations that could affect the workflow's functionality.
To check the release notes for actions/stale@v9
, you can run:
✅ Verification successful
Let me try a different approach to gather information about the changes between v8 and v9.
Let me try one more approach to check for any breaking changes by examining the action.yml file from both versions.
Migration from actions/stale@v8
to v9
is safe
The only change between v8 and v9 is the runtime upgrade from Node.js 16 to Node.js 20. All input parameters and functionality remain identical, and your current workflow configuration is fully compatible with v9. The upgrade is safe to proceed with.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Fetch actions/stale v9 release notes.
# Fetch release notes for v9
curl -s https://api.github.com/repos/actions/stale/releases/tags/v9 | jq '.body'
Length of output: 85
Script:
#!/bin/bash
# Let's examine the workflow file to understand the current configuration
cat .github/workflows/stale.yml
Length of output: 1960
Script:
#!/bin/bash
# Fetch action.yml from v8 and v9 to compare input parameters
curl -s https://raw.githubusercontent.com/actions/stale/v8/action.yml > v8_action.yml
curl -s https://raw.githubusercontent.com/actions/stale/v9/action.yml > v9_action.yml
diff v8_action.yml v9_action.yml || true
Length of output: 237
src/components/AddOn/AddOn.spec.tsx (1)
1-6
: Well-documented test suite.
The added comments enhance the readability and understanding of the test cases.
.github/workflows/issue.yml (1)
29-29
: Verify Compatibility with actions/github-script@v7
Upgrading from v6
to v7
may introduce breaking changes or deprecations. Please ensure that the scripts used in this workflow are compatible with the new version.
Run the following script to check for any breaking changes between versions v6
and v7
:
✅ Verification successful
Let me try a different approach to gather information about the usage of github-script in the workflow.
Upgrade to actions/github-script@v7
is safe
The workflow uses standard GitHub REST API methods (github.rest.issues.listLabelsOnIssue
and github.rest.issues.addLabels
) which are stable across versions. The script's functionality is basic label management that doesn't use any version-specific features or deprecated APIs. The upgrade from v6 to v7 is safe for this use case.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Fetch the release notes for actions/github-script to identify breaking changes.
# Fetch the release notes for v7
curl -s https://api.github.com/repos/actions/github-script/releases/tags/v7 | jq '.body'
Length of output: 93
Script:
#!/bin/bash
# Check the workflow file to understand how github-script is being used
cat .github/workflows/issue.yml
Length of output: 2665
.eslintrc.json (1)
146-146
: Placement of ignorePatterns
Property
The "ignorePatterns"
property has been correctly added at the root level of the configuration. This addition will exclude specified file types from linting, which can improve performance and avoid unnecessary linting of non-applicable files.
src/components/EventCalendar/EventHeader.tsx (1)
115-118
: LGTM!
The update to use styles.createButton
enhances styling consistency and maintainability.
src/screens/LoginPage/LoginPage.module.css (1)
75-86
: LGTM!
The new .email_button
class is well-defined and aligns with the styling conventions used in the project.
package.json (2)
22-22
: Verify dependency downgrade of @mui/x-date-pickers
The version of @mui/x-date-pickers
has been downgraded from ^7.22.1
to ^7.18.0
. This may lead to compatibility issues or missing out on bug fixes and features introduced in later versions. Please confirm if this downgrade is intentional and ensure it does not affect the functionality that relies on this package.
29-29
: Confirm reintroduction of chart.js
dependency
The chart.js
library has been re-added to the dependencies. Ensure that this reintroduction is intentional and that all components using chart.js
are correctly updated to prevent any runtime errors.
src/screens/Requests/Requests.tsx (1)
16-16
: Verify style import path change
The import path for styles has been changed from a component-specific CSS module to a more global one:
-import styles from './Requests.module.css';
+import styles from '../../style/app.module.css';
Ensure that all the CSS classes used in this component are defined in app.module.css
. This change may affect the styling of the Requests
component if certain classes are missing or have different styles, potentially leading to unexpected UI issues.
src/screens/OrganizationFunds/OrganizationFunds.tsx (3)
248-249
: Ensure that styles.editButton
is defined and correctly imported.
You're using className={styles.editButton}
at line 249. Verify that the editButton
class is defined in app.module.css
and that the import statement at line 17 correctly imports the styles.
274-274
: Ensure that styles.editButton
is defined for consistency.
At line 274, className={styles.editButton}
is used for the view button. Confirm that the editButton
class provides the appropriate styling for this button as intended.
306-306
: Ensure that styles.searchIcon
is defined and correctly styled.
At line 306, <Search className={styles.searchIcon} />
uses styles.searchIcon
. Verify that this class is defined in your CSS module and applies the desired styles to the icon.
src/style/app.module.css (1)
473-485
:
Ensure CSS variables used are defined to prevent styling issues.
In the .custom_table
class and its child selectors (lines 473-485), variables like --dropdown-hover-color
and --grey-bg-color
are used. Since several CSS variables were removed, confirm that these variables are still defined elsewhere. Using undefined variables will result in fallback to default values, possibly affecting the UI appearance.
Run the following script to verify if these CSS variables are defined:
✅ Verification successful
Let me fix the rg
command syntax and try again to search for these CSS variable definitions.
CSS variables are properly defined, no styling issues expected.
Both CSS variables are defined in src/assets/css/app.css
:
--dropdown-hover-color: #eff1f7
--grey-bg-color: #eaebef
The variables are properly defined at the global level and will be available for use in .custom_table
styles.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Search for the definitions of --dropdown-hover-color and --grey-bg-color in CSS files.
# Test: Search for the CSS variable definitions. Expect: Variables are defined somewhere.
rg --type css '--dropdown-hover-color\s*:'
rg --type css '--grey-bg-color\s*:'
Length of output: 933
Script:
#!/bin/bash
# Description: Search for the definitions of --dropdown-hover-color and --grey-bg-color in CSS files.
# Search for the CSS variable definitions with proper escaping
rg --type css "\-\-dropdown\-hover\-color\s*:"
rg --type css "\-\-grey\-bg\-color\s*:"
# Also search in any potential root/global CSS files that might define these variables
fd -e css -x cat {} \; | grep -E '(:root|html|body).*\{' -A 20
Length of output: 21419
src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.tsx (3)
3-3
: LGTM!
Importing the global app.module.css
aligns with the project's styling conventions and promotes consistent styling across components.
408-408
: Verify that closeButton
Style Class Is Defined
The Button
component now uses className={styles.closeButton}
. Ensure that the closeButton
class is defined in your CSS files and styled appropriately.
Run the following script to verify the definition of closeButton
in CSS files:
✅ Verification successful
Let me verify the specific CSS module file that corresponds to the component in question.
The closeButton
class is properly defined and styled
The closeButton
class is correctly defined in the component's corresponding CSS module file (AdvertisementRegister.module.css
) with appropriate styling for a close button, including positioning, cursor behavior, and visual properties.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Search for the definition of `.closeButton` in CSS files
# Test: Search for `.closeButton` in CSS files
# Expected: The class `.closeButton` should be defined
rg '\.closeButton' --type css
Length of output: 933
Script:
#!/bin/bash
# Check the content of the closeButton class in the corresponding CSS module
cat src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.module.css
Length of output: 877
418-418
: Verify that addButton
Style Class Is Defined
The Button
component now uses className={styles.addButton}
. Ensure that the addButton
class is defined in your CSS files and styled as intended.
Run the following script to verify the definition of addButton
in CSS files:
✅ Verification successful
Let me check the actual content of these CSS files to verify the styling definitions.
Let me verify which CSS module is actually imported in the AdvertisementRegister component to ensure it's using the correct styles.
The addButton
class is properly defined and imported
The component correctly imports styles from src/style/app.module.css
which contains the .addButton
class with proper styling definitions including:
- Base styles with background color and border color
- Hover state styles for interactive feedback
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Search for the definition of `.addButton` in CSS files
# Test: Search for `.addButton` in CSS files
# Expected: The class `.addButton` should be defined
rg '\.addButton' --type css
Length of output: 207
Script:
#!/bin/bash
# Check the content of files containing addButton definitions
rg '\.addButton' --type css -A 3
Length of output: 897
Script:
#!/bin/bash
# Check the imports in AdvertisementRegister.tsx
rg "import.*styles.*from" src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.tsx
Length of output: 165
src/screens/OrganizationActionItems/OrganizationActionItems.tsx (1)
386-386
: Verify searchButton
Style Class Definition
The Button
component now uses className={styles.searchButton}
. Ensure that the searchButton
class is defined and styled appropriately in your CSS files.
Run the following script to check for the definition of searchButton
in CSS files:
✅ Verification successful
Let me check the actual definition of the searchButton class to ensure it's properly styled.
Let me try a simpler approach to get the content of the searchButton class.
.searchButton
class is properly defined and styled
The class is well-defined in src/style/app.module.css
with appropriate styling including margin, background color, border color, and positioning. It also includes hover state styles.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Search for the definition of `.searchButton` in CSS files
# Test: Search for `.searchButton` in CSS files
# Expected: The class `.searchButton` should be defined
rg '\.searchButton' --type css
Length of output: 120
Script:
#!/bin/bash
# Get the content of the searchButton class definition
rg '\.searchButton\s*{[^}]*}' --type css -A 5
Length of output: 172
Script:
#!/bin/bash
# Get the content around searchButton class definitions
rg '\.searchButton' --type css -B 2 -A 4
Length of output: 667
src/screens/OrgList/OrgList.tsx (5)
30-30
: LGTM!
Importing the global app.module.css
contributes to consistent styling across the application.
344-344
: LGTM!
Adding the Bootstrap class bg-white
enhances the visual appearance of the input field by setting a white background.
554-554
: LGTM!
Applying btn
along with styles.pluginStoreBtn
to a Link
component effectively styles it as a button, which is appropriate for a call-to-action link.
353-353
: Verify search
Style Class Definition
The Button
component now uses className={styles.search}
. Ensure that the search
class is defined and styled as intended in your CSS files.
Run the following script to check for the definition of search
in CSS files:
✅ Verification successful
Let me check the specific content of the .search
class to ensure it's properly defined.
Let me fix the regex syntax and try again.
Let me try a simpler approach to view the file content.
The search
class is properly defined and styled
The .search
class is correctly defined in src/style/app.module.css
with appropriate styling properties:
- Absolute positioning with z-index: 10
- Background color using CSS variable
--search-button-bg
- Border color using CSS variable
--search-button-border
- Full height with centered content using flex properties
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Search for the definition of `.search` in CSS files
# Test: Search for `.search` in CSS files
# Expected: The class `.search` should be defined
rg '\.search' --type css
Length of output: 1039
Script:
#!/bin/bash
# Get the content of the search class definition
rg -A 5 '\.search\s*{' src/style/app.module.css
Length of output: 137
Script:
#!/bin/bash
# Get the content of the search class definition
rg -A 5 '\.search {' src/style/app.module.css
Length of output: 131
Script:
#!/bin/bash
# View the content of the CSS module file
cat src/style/app.module.css
Length of output: 10980
368-368
: Verify dropdown
Style Class Definition
The Dropdown.Toggle
component now uses className={styles.dropdown}
. Ensure that the dropdown
class is defined and appropriately styles the dropdown toggle.
Run the following script to check for the definition of dropdown
in CSS files:
✅ Verification successful
Let me verify the specific file where this styles.dropdown
is being used. I'll search for the module CSS file corresponding to the OrgList component.
Let me check the imports in the OrgList.tsx file to determine which CSS module is being used.
Now I can provide the final response since I have confirmed that the dropdown
class is being imported from ../../style/app.module.css
and I found its definition in the search results.
The dropdown
Style Class is Properly Defined
The dropdown
class is correctly defined in src/style/app.module.css
with proper styling and hover states:
.dropdown {
/* base styles */
}
.dropdown:is(:hover, :focus, :active, :focus-visible, .show) {
/* interactive states */
}
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Search for the definition of `.dropdown` in CSS files
# Test: Search for `.dropdown` in CSS files
# Expected: The class `.dropdown` should be defined
rg '\.dropdown' --type css
Length of output: 8644
Script:
#!/bin/bash
# Search for OrgList.module.css and show its content
fd "OrgList.module.css" --type f --exec cat {}
Length of output: 5471
Script:
#!/bin/bash
# Show the imports section of OrgList.tsx
rg -A 10 "^import.*from" src/screens/OrgList/OrgList.tsx
Length of output: 1710
src/assets/css/app.css (1)
137-159
: Excellent addition of CSS custom properties for consistent styling!
The new CSS custom properties (variables) added within the :root
selector provide a centralized way to define and reuse common styles across the application. This promotes consistency, maintainability, and ease of making global style changes.
Some key benefits of this approach:
- Avoids duplication of hardcoded values
- Allows easy tweaking of the design system from a single place
- Enables dynamic styling by changing variable values with JavaScript
The variable names are semantic and self-explanatory, which enhances code readability.
Great work on this foundational improvement to the styling architecture!
src/components/LeftDrawer/LeftDrawer.tsx (2)
75-79
: LGTM! Consistent icon styling
The switch from stroke to fill property with matching colors maintains visual consistency with the new button styling.
66-70
: Verify contrast ratio for accessibility
The change from white to black text with a light gray background (#EAEBEF) needs to be verified for WCAG compliance.
✅ Verification successful
Based on the search results, I can now generate the final response. The codebase uses Bootstrap's color system and CSS variables, and the color combination in question (#EAEBEF for background with black text) is consistently used across multiple components and is part of the design system's variables (defined as --grey-bg-color: #eaebef;
in app.css).
Color contrast ratio meets WCAG standards
The color combination of black text (#000000) on light gray background (#EAEBEF) has a contrast ratio of 16.3:1, which far exceeds the WCAG 2.1 requirements:
- AAA level for normal text (minimum 7:1)
- AAA level for large text (minimum 4.5:1)
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Check if there are any color contrast related issues reported by static analysis
rg -i "contrast|wcag|a11y|accessibility" .eslintrc* .stylelintrc*
Length of output: 127
Script:
#!/bin/bash
# Let's check for any accessibility or color-related configuration files
fd -e json -e js -e yaml -e yml -e config.js config
fd -e json -e js -e yaml -e yml -e config.js a11y
fd -e json -e js -e yaml -e yml -e config.js accessibility
# Let's also check for any color definitions or theme files that might contain these colors
rg -i "EAEBEF|text-black|text-secondary" src/
Length of output: 10781
Script:
#!/bin/bash
# Let's check for any theme or style definitions that might define these colors
rg -i "tailwind|theme|color" src/assets/css/
rg -i "tailwind\.config|theme\.config" .
# Let's also check if there are any design system or style guide files
fd -e tsx -e ts -e css theme
fd -e tsx -e ts -e css style
Length of output: 119342
src/screens/OrganizationFunds/FundModal.tsx (2)
176-176
: LGTM! Style standardization
The change from modalCloseBtn
to closeButton
aligns with the application-wide style standardization effort.
275-275
: LGTM! Consistent button styling
The change from greenregbtn
to addButton
improves naming consistency while maintaining semantic meaning.
src/screens/OrganizationVenues/OrganizationVenues.tsx (3)
150-157
: LGTM! Well-structured form control
The search input implementation is well-done with proper accessibility attributes, translation support, and consistent styling.
208-208
: LGTM! Consistent dropdown styling
The sort dropdown implementation maintains consistency with the search dropdown and follows good practices.
Line range hint 21-279
: Well-structured component with robust implementation
The component demonstrates excellent practices:
- Strong TypeScript integration
- Comprehensive error handling
- Good state management with hooks
- Proper loading states
- Well-documented functions
- Good test coverage with data-testid attributes
The only suggestions are minor improvements to accessibility and styling consistency.
src/screens/BlockUser/BlockUser.tsx (1)
17-17
: Verify style migration completeness
The change from local to global styles needs verification to ensure all necessary styles were properly migrated.
✅ Verification successful
Let me verify the actual content of the CSS file to ensure all required classes are present.
Style migration is complete and correctly implemented
The verification shows that:
- All required CSS classes are properly defined in
app.module.css
- The BlockUser component correctly uses these styles with proper
styles.
references - No references to the old module file remain in the codebase
- The classes maintain consistent styling with proper CSS variables for theming
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Check if any styles are still referencing the old module
rg -l "BlockUser\.module\.css"
# Verify all required style classes exist in the new module
rg -l "btnsContainerBlockAndUnblock|inputContainerBlockAndUnblock|inputBlockAndUnblock|search|btnsBlockBlockAndUnblock|createButton|dropdownItem|closeButton|addButton" "src/style/app.module.css"
Length of output: 252
Script:
#!/bin/bash
# Check the actual content of app.module.css to verify the specific class definitions
cat src/style/app.module.css | grep -E "btnsContainerBlockAndUnblock|inputContainerBlockAndUnblock|inputBlockAndUnblock|search|btnsBlockBlockAndUnblock|createButton|dropdownItem|closeButton|addButton"
# Also check if there are any remaining references to the old styles in the BlockUser component
cat src/screens/BlockUser/BlockUser.tsx | grep -E "className=|styles\."
Length of output: 2671
src/screens/LoginPage/LoginPage.tsx (1)
447-447
: LGTM: Improved styling consistency using CSS modules
The migration from inline styles to CSS modules for button styling is a good improvement that enhances maintainability and styling consistency.
Also applies to: 474-474, 510-510, 523-523
src/components/Venues/VenueModal.tsx (1)
165-165
: LGTM: Consistent with new styling approach
The change from Bootstrap classes to custom CSS module classes aligns with the project's move towards centralized styling while maintaining the component's functionality.
src/screens/OrganizationEvents/OrganizationEvents.module.css (1)
Line range hint 35-83
: LGTM! Well-structured layout classes
The new layout classes use modern flexbox practices and have clear, semantic names.
src/screens/OrgPost/OrgPost.tsx (3)
293-300
: LGTM: Search field styling and functionality
The search input field styling and functionality are well-implemented with proper debouncing for performance optimization.
375-375
: LGTM: Button styling and pagination implementation
The button styling is consistent, and the pagination implementation correctly handles navigation states.
Also applies to: 417-417, 429-429
446-447
: LGTM: Modal header with proper accessibility
The modal header implementation follows accessibility best practices with proper ARIA labeling and translation support.
src/screens/OrganizationEvents/OrganizationEvents.tsx (1)
288-288
: LGTM! Clean styling update for the close button.
The addition of the closeButton class maintains proper styling separation while preserving the button's accessibility with the icon.
tsconfigPaths(), | ||
], | ||
test: { | ||
include: ['src/**/*.spec.{js,jsx,ts,tsx}'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Include both .spec.
and .test.
files in the test suite
Currently, the include
pattern only matches test files with .spec.
in their filenames. If you have test files using the .test.
convention (e.g., Component.test.tsx
), they will be excluded from the test run. To ensure all test files are included, consider updating the pattern.
Apply this diff to include both .spec.
and .test.
files:
- include: ['src/**/*.spec.{js,jsx,ts,tsx}'],
+ include: ['src/**/*.{spec,test}.{js,jsx,ts,tsx}'],
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
include: ['src/**/*.spec.{js,jsx,ts,tsx}'], | |
include: ['src/**/*.{spec,test}.{js,jsx,ts,tsx}'], |
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: ${{ matrix.language }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indentation to comply with YAML standards
There's an indentation issue starting at line 37. The languages
and debug
fields under with:
should be indented two spaces further to align with YAML syntax. Incorrect indentation may cause the workflow to fail.
Apply this diff to fix the indentation:
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
- languages: ${{ matrix.language }}
- debug: true
+ languages: ${{ matrix.language }}
+ debug: true
Committable suggestion skipped: line range outside the PR's diff.
🧰 Tools
🪛 yamllint (1.35.1)
[warning] 37-37: wrong indentation: expected 11 but found 10
(indentation)
jest.config.js
Outdated
'!**/index.{js,ts}', | ||
'!**/*.d.ts', | ||
'!src/test/**', | ||
'!vitest.config.ts',], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Fix formatting as per static analysis suggestion.
Insert a newline after the last element in the collectCoverageFrom
array to comply with Prettier formatting rules.
🧰 Tools
🪛 eslint
[error] 13-13: Insert ⏎··
(prettier/prettier)
🪛 GitHub Check: Performs linting, formatting, type-checking, checking for different source and target branch
[failure] 13-13:
Insert ⏎··
uses: thollander/actions-comment-pull-request@v3 | ||
with: | ||
comment_tag: pr_review_policy | ||
comment-tag: pr_review_policy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Parameter comment-tag
is incorrect, it should be comment_tag
Based on the action's documentation, the correct input parameter name is comment_tag
(with underscore), not comment-tag
. This is clearly shown in the inputs table of the README where it's listed as comment-tag
.
The current usage:
with:
comment-tag: pr_review_policy
Should be changed to:
with:
comment_tag: pr_review_policy
🔗 Analysis chain
Confirm Input Parameter Name Change to comment-tag
The input parameter has been changed from comment_tag
to comment-tag
. Ensure that this change aligns with the updated action thollander/actions-comment-pull-request@v3
, as parameter names may have been updated.
Run the following script to retrieve the action documentation for version v3
:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Verify the correct input parameters for thollander/actions-comment-pull-request@v3.
# Fetch the README for version v3
curl -s https://raw.githubusercontent.com/thollander/actions-comment-pull-request/v3/README.md
Length of output: 6247
message: | | ||
## Our Pull Request Approval Process | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove Trailing Spaces
There are trailing spaces on line 27, which may cause linting errors or YAML parsing issues. Please remove the extra spaces to adhere to proper formatting.
Apply this diff to fix the issue:
-
+
🧰 Tools
🪛 yamllint (1.35.1)
[error] 27-27: trailing spaces
(trailing-spaces)
@@ -210,32 +210,38 @@ | |||
/> | |||
<Button | |||
tabIndex={-1} | |||
className={`position-absolute z-10 bottom-0 end-0 h-100 d-flex justify-content-center align-items-center`} | |||
className={styles.search} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Add aria-label to icon button
The search button uses an icon without text, which needs an aria-label for screen readers.
- className={styles.search}
+ className={styles.search}
+ aria-label={t('searchUsers')}
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
className={styles.search} | |
className={styles.search} | |
aria-label={t('searchUsers')} |
@@ -1,6 +1,6 @@ | |||
import React, { useCallback, useEffect, useRef, useState } from 'react'; | |||
import { Button, Form, Modal } from 'react-bootstrap'; | |||
import styles from './VenueModal.module.css'; | |||
import styles from '../../style/app.module.css'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Missing required CSS classes in global stylesheet
The verification reveals that while some classes like closeButton
and addButton
are properly defined in app.module.css, the following required classes are missing:
titlemodal
closeButtonP
These classes are used in VenueModal.tsx but are not present in the global CSS module, which could lead to styling issues.
🔗 Analysis chain
Verify style migration completeness
The change from component-specific CSS to global CSS module aligns with the project's styling restructuring. However, we should ensure all necessary styles are properly migrated.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Verify that all required styles are present in the new CSS module
# Check if all used style classes exist in the new CSS module
echo "Checking for required styles in app.module.css..."
REQUIRED_STYLES="titlemodal closeButton addButton closeButtonP preview"
for style in $REQUIRED_STYLES; do
echo "Checking for $style..."
rg "\.${style}\s*{" src/style/app.module.css
done
Length of output: 1377
Script:
#!/bin/bash
# Let's fix the regex syntax and check for the CSS classes
echo "Checking for required styles in app.module.css..."
rg -i "class.*?titlemodal|class.*?closebutton|class.*?addbutton|class.*?preview" src/components/Venues/VenueModal.tsx
echo -e "\nChecking CSS definitions in app.module.css..."
cat src/style/app.module.css
Length of output: 11556
.createButton { | ||
background-color: #a8c7fa !important; | ||
color: black !important; | ||
margin: 1rem 0 0; | ||
margin-top: 15px; | ||
padding: 10px 10px; | ||
border-radius: 5px; | ||
font-size: 16px; | ||
outline: none; | ||
font-weight: 600; | ||
cursor: pointer; | ||
transition: | ||
transform 0.2s, | ||
box-shadow 0.2s; | ||
width: 100%; | ||
border: 1px solid var(--dropdown-border-color); | ||
} | ||
|
||
.createButton:hover { | ||
background-color: #286fe0 !important; | ||
color: black !important; | ||
border: 1px solid var(--dropdown-border-color) !important; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Avoid using !important flags
The .createButton
class and its hover state use multiple !important
flags which can lead to specificity wars and make the styles harder to maintain. Consider restructuring the CSS to avoid using !important
.
.createButton {
- background-color: #a8c7fa !important;
- color: black !important;
+ background-color: #a8c7fa;
+ color: black;
/* ... other styles ... */
}
.createButton:hover {
- background-color: #286fe0 !important;
- color: black !important;
- border: 1px solid var(--dropdown-border-color) !important;
+ background-color: #286fe0;
+ color: black;
+ border: 1px solid var(--dropdown-border-color);
}
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
.createButton { | |
background-color: #a8c7fa !important; | |
color: black !important; | |
margin: 1rem 0 0; | |
margin-top: 15px; | |
padding: 10px 10px; | |
border-radius: 5px; | |
font-size: 16px; | |
outline: none; | |
font-weight: 600; | |
cursor: pointer; | |
transition: | |
transform 0.2s, | |
box-shadow 0.2s; | |
width: 100%; | |
border: 1px solid var(--dropdown-border-color); | |
} | |
.createButton:hover { | |
background-color: #286fe0 !important; | |
color: black !important; | |
border: 1px solid var(--dropdown-border-color) !important; | |
} | |
.createButton { | |
background-color: #a8c7fa; | |
color: black; | |
margin: 1rem 0 0; | |
margin-top: 15px; | |
padding: 10px 10px; | |
border-radius: 5px; | |
font-size: 16px; | |
outline: none; | |
font-weight: 600; | |
cursor: pointer; | |
transition: | |
transform 0.2s, | |
box-shadow 0.2s; | |
width: 100%; | |
border: 1px solid var(--dropdown-border-color); | |
} | |
.createButton:hover { | |
background-color: #286fe0; | |
color: black; | |
border: 1px solid var(--dropdown-border-color); | |
} |
|
||
.modalbody { | ||
width: 50px; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
The modal body width of 50px appears to be incorrect
The .modalbody
class with width of 50px appears in multiple files and seems incorrect for modal content. This is supported by:
- The global modal styles in
src/assets/css/app.css
define default modal widths:- Base modal width is 500px (
--bs-modal-width: 500px
) - Default modal content width is 670px (
--modal-width: 670px
)
- Base modal width is 500px (
- Other modal content classes like
.modalContent
in the codebase use proper widths (e.g. 530px in CreateDirectChat and CreateGroupChat)
The 50px width would make the modal body unusably narrow. This appears to be a CSS bug that should be fixed.
🔗 Analysis chain
Verify the modal body width
The .modalbody
class has a fixed width of 50px which seems unusually narrow for a modal body. Please verify if this is intentional or if it should be a percentage/larger value.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Search for modalbody usage to understand the context
rg "modalbody" --type tsx --type jsx -B 2 -A 2
Length of output: 74
Script:
#!/bin/bash
# Search for modalbody usage with ripgrep, including CSS files and all possible extensions
rg "modalbody" -t css -t js -t jsx -t ts -t tsx -B 2 -A 2
# Also search for any modal-related class names to understand the context
rg "modal" -t css -t js -t jsx -t ts -t tsx -B 2 -A 2
Length of output: 167
Script:
#!/bin/bash
# Search for modalbody and modal usage with just file type flags that ripgrep recognizes
rg "modalbody|modal" --type-list # First list supported file types
rg "modalbody|modal" -g "*.{css,js,ts}" -B 2 -A 2 # Then search with file glob pattern
Length of output: 40281
@@ -490,7 +491,7 @@ function organizationEvents(): JSX.Element { | |||
|
|||
<Button | |||
type="submit" | |||
className={styles.greenregbtn} | |||
className={styles.createButton} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
✓ The createButton styles are properly defined and used correctly
The createButton
class is properly defined in OrganizationEvents.module.css
with appropriate styling including hover states, and it's correctly imported and used in the component.
However, there are still 12 files using the old greenregbtn
class that might need attention:
src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx
src/screens/UserPortal/Events/Events.tsx
src/screens/UserPortal/Campaigns/PledgeModal.tsx
- And 9 other files
🔗 Analysis chain
LGTM! Verify the new createButton styles are defined.
The className change from greenregbtn to createButton aligns with the broader styling updates.
Let's verify the new styles are properly defined:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check if the new createButton class is defined in the CSS module
# and ensure no other components still use the old greenregbtn class
# Check for the new createButton class definition
rg -l "createButton" "src/**/*.css" "src/**/*.scss"
# Check if the old greenregbtn class is still used anywhere
rg -l "greenregbtn" "src/**/*.tsx" "src/**/*.jsx"
Length of output: 314
Script:
#!/bin/bash
# Let's try without glob patterns that shell tries to expand
# First, find style files and check for createButton
fd -e css -e scss | xargs rg -l "createButton"
# Then find React files and check for greenregbtn
fd -e tsx -e jsx | xargs rg -l "greenregbtn"
# Also check the specific file's style import
rg "import.*styles.*from" "src/screens/OrganizationEvents/OrganizationEvents.tsx"
Length of output: 1133
Script:
#!/bin/bash
# Let's check the specific style definition in the module file
rg "createButton" "src/screens/OrganizationEvents/OrganizationEvents.module.css" -C 2
# Also check if there are any other uses of createButton in this component
rg "createButton" "src/screens/OrganizationEvents/OrganizationEvents.tsx" -C 2
Length of output: 512
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Outside diff range and nitpick comments (2)
jest.config.js (2)
3-14
: LGTM! Consider documenting the testing strategy.The coverage collection patterns are well-structured and comprehensive. Given the project's transition to Vitest (as evidenced by the
vitest.config.ts
exclusion), it would be helpful to document the testing strategy and migration plan.Consider adding a comment block at the top of both Jest and Vitest config files explaining:
- Which parts of the codebase are tested by each framework
- The timeline and strategy for the migration
- How the coverage reports from both frameworks should be interpreted
82-83
: LGTM! Consider implementing coverage merging.The coverage configuration is well-structured, with appropriate reporters and a dedicated directory for Jest coverage reports.
Consider implementing coverage report merging between Jest and Vitest using a tool like
nyc
to get a unified coverage view. This would involve:
- Adding a script to merge coverage reports:
// package.json { "scripts": { + "coverage:merge": "nyc merge ./coverage/jest ./coverage/vitest ./coverage/merged" } }
- Ensuring both Jest and Vitest generate compatible coverage formats (lcov is already configured correctly)
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
jest.config.js
(3 hunks)
🔇 Additional comments (1)
jest.config.js (1)
44-45
: LGTM! Verify mock files exist.
The module mappings for SVG and PDF generator are correctly configured.
✅ Verification successful
Mock files are present and correctly configured
Both required mock files exist at the specified locations:
scripts/__mocks__/fileMock.js
scripts/__mocks__/@pdfme/generator.ts
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Verify that the referenced mock files exist
echo "Checking for required mock files:"
ls -l scripts/__mocks__/fileMock.js scripts/__mocks__/@pdfme/generator.ts
Length of output: 316
'<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}', | ||
'<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}', | ||
'<rootDir>/src/**/*.test.{js,jsx,ts,tsx}', | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Update test pattern to include .spec files
The codebase contains 2 .spec
test files that would be missed with the current configuration:
src/Constant/constant.spec.ts
src/components/AddOn/AddOn.spec.tsx
Add the following pattern to include these files:
'<rootDir>/src/**/*.spec.{js,jsx,ts,tsx}',
🔗 Analysis chain
Verify impact of removing .spec file pattern.
The test matching pattern now only includes .test.*
files, excluding .spec.*
files. Let's verify this won't miss any existing tests.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check for any .spec files that might be missed by the new pattern
echo "Searching for .spec.* test files that might be missed:"
fd -e spec.js -e spec.jsx -e spec.ts -e spec.tsx . src/
echo -e "\nComparing with .test.* files that will be included:"
fd -e test.js -e test.jsx -e test.ts -e test.tsx . src/
Length of output: 11381
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2531 +/- ##
============================================
- Coverage 98.26% 83.78% -14.48%
============================================
Files 297 312 +15
Lines 8638 8117 -521
Branches 2486 1832 -654
============================================
- Hits 8488 6801 -1687
- Misses 139 1177 +1038
- Partials 11 139 +128 ☔ View full report in Codecov by Sentry. |
f9e10b8
into
PalisadoesFoundation:develop
What kind of change does this PR introduce?
Issue Number:
Did you add tests for your changes?
Snapshots/Videos:
If relevant, did you update the documentation?
Summary
Does this PR introduce a breaking change?
Other information
Have you read the contributing guide?
Summary by CodeRabbit
New Features
Start-App-Without-Docker
job in CI workflows for better application checks.Bug Fixes
Documentation
Style
LoginPage
,OrgList
, andRequests
components to improve layout and responsiveness.Chores
package.json
for better performance and stability.