-
-
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
Upgrade package @testing-library/user-event from 12.8.3 to 13.5.0 #2468
Upgrade package @testing-library/user-event from 12.8.3 to 13.5.0 #2468
Conversation
Updated CONTRIBUTING.md with new branching strategy
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](mafintosh/dns-packet@v1.3.1...v1.3.4) Signed-off-by: dependabot[bot] <[email protected]>
…dependabot/npm_and_yarn/dns-packet-1.3.4 Bump dns-packet from 1.3.1 to 1.3.4
* 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]> * Altered the formData - Altered the formData to make sure all are related to the organization name. Signed-off-by: Akhilender <[email protected]> --------- Signed-off-by: Akhilender <[email protected]> * created test for src/components/UserPortal/EventCard/EventCard.tsx (#1079) * created test for eventCard of User portal * corrected the start and end time * Feature request: Adding advertisement screen (#994) * 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 solve…
…ations" button (PalisadoesFoundation#1124) * Changes position and text of all organization button * Made changes to the routesReducer.test file * Made changes in IconComponent.test file * Fetched changes from main repo * Fixed unnecessary changes --------- Co-authored-by: Aditya Agarwal <[email protected]>
… Organizations" button (PalisadoesFoundation#1124)" (PalisadoesFoundation#1183) This reverts commit 1fd4105.
* Added Base branch check to main * Deleted all files in the main branch in anticipation of merging develop into main cleanly * Merge develop to main * Deleted all main files * Merged develop into main
* Deleted all files in the main branch in anticipation of merging develop into main cleanly * Merge develop into main
* Deleted all files in the main branch in anticipation of merging develop into main cleanly * Merge develop into main * Deleted all files in the main branch in anticipation of merging develop into main cleanly * Merge develop into main
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.5 to 1.15.6. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.15.5...v1.15.6) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.15 to 6.2.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](isaacs/node-tar@v6.1.15...v6.2.1) --- updated-dependencies: - dependency-name: tar dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…lisadoesFoundation#1961) Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 40 to 41. - [Release notes](https://github.com/tj-actions/changed-files/releases) - [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md) - [Commits](tj-actions/changed-files@v40...v41) --- updated-dependencies: - dependency-name: tj-actions/changed-files dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2. - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/master/History.md) - [Commits](expressjs/express@4.18.2...4.19.2) --- updated-dependencies: - dependency-name: express dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10. - [Release notes](https://github.com/mde/ejs/releases) - [Commits](mde/ejs@v3.1.9...v3.1.10) --- updated-dependencies: - dependency-name: ejs dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…tion#2020) * Deleted all files in the main branch in anticipation of merging develop into main cleanly * Merge develop into main --------- Co-authored-by: Peter Harrison <[email protected]>
* 20240727112607 Deleted all files in the main branch in anticipation of merging develop into main cleanly * 20240727112842 Merge develop into main
* 20240929102850 Deleted all files in the main branch in anticipation of merging develop into main cleanly * 20240929103238 Merge develop into main
…lisadoesFoundation#2307) Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 40 to 41. - [Release notes](https://github.com/tj-actions/changed-files/releases) - [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md) - [Commits](tj-actions/changed-files@v40...v41) --- updated-dependencies: - dependency-name: tj-actions/changed-files dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [rollup](https://github.com/rollup/rollup) from 4.21.3 to 4.22.5. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](rollup/rollup@v4.21.3...v4.22.5) --- updated-dependencies: - dependency-name: rollup dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* 20241114065242 Deleted all files in the main branch in anticipation of merging develop into main cleanly * 20241114065332 Merge develop into main
-solve failing tests resulting from upgrade testing-library/user-event -remove 'waitFor' (is defined but never used) -remove 'loadMoreRequests' (is assigned a value but never used)
WalkthroughThe changes in this pull request introduce a variety of configuration files and scripts aimed at enhancing the development environment for the Talawa Admin project. Key additions include a YAML language server configuration, a template for environment variables, and various GitHub Actions workflows for CI/CD processes. The update also includes localization files for multiple languages, improvements to the ESLint configuration, and several utility scripts for managing code quality and documentation. Additionally, several files have been removed or modified to streamline the project structure. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SetupScript
participant EnvFile
participant API
User->>SetupScript: Run setup
SetupScript->>EnvFile: Check for .env file
alt .env file not found
SetupScript->>EnvFile: Create .env from template
end
SetupScript->>User: Prompt for custom port
User->>SetupScript: Provide port
SetupScript->>EnvFile: Update .env with port
SetupScript->>API: Validate Talawa API URL
User->>SetupScript: Provide API URL
SetupScript->>EnvFile: Update .env with API URL
SetupScript->>User: Setup complete
Possibly related issues
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 ProcessWe have these basic policies to make the approval process smoother for our volunteer team. Testing Your CodePlease make sure your code passes all tests. Our test code coverage system will fail if these conditions occur:
The process helps maintain the overall reliability of the code base and is a prerequisite for getting your PR approved. Assigned reviewers regularly review the PR queue and tend to focus on PRs that are passing. ReviewersDo not assign reviewers. Our Queue Monitors will review your PR and assign them.
Reviewing Your CodeYour reviewer(s) will have the following roles:
CONTRIBUTING.mdRead our CONTRIBUTING.md file. Most importantly:
Other
|
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.
Congratulations on making your first PR! 🎊 If you haven't already, check out our Contributing Guidelines and PR Reporting Guidelines to ensure that you are following our guidelines for contributing and creating PR.
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: 61
🧹 Outside diff range and nitpick comments (79)
.husky/post-merge (1)
1-4
: Consider enhancing the post-merge hook for better robustness.While the basic setup is correct, consider these improvements for better reliability:
- Check both package.json and package-lock.json
- Add error handling for npm install
#!/bin/sh . "$(dirname "$0")/_/husky.sh" -git diff HEAD^ HEAD --exit-code -- ./package.json || npm install +if git diff HEAD^ HEAD --quiet -- ./package.json ./package-lock.json; then + exit 0 +else + echo "📦 Dependencies changed. Running npm install..." + if npm install; then + echo "✅ Dependencies updated successfully" + else + echo "❌ Failed to update dependencies" + exit 1 + fi +fipublic/locales/hi/errors.json (1)
1-11
: Standardize punctuation usage across messagesThe error messages have inconsistent punctuation:
- Some messages end with exclamation marks
- Some have no ending punctuation
- Mixed usage of Hindi and English punctuation
Consider standardizing the punctuation style across all messages for better consistency.
scripts/custom-test-env.js (2)
4-7
: Enhance JSDoc documentation with additional details.While the documentation is clear, it could be more comprehensive with standard JSDoc tags and specific details about the TextEncoder/TextDecoder requirement.
/** + * @class + * @extends {Environment} * A custom environment to set the TextEncoder and TextDecoder variables, that is required by @pdfme during testing. * Providing a polyfill to the environment for the same + * @description TextEncoder/TextDecoder are required by @pdfme for UTF-8 encoding/decoding operations during PDF generation, + * but may not be available in the JSDOM environment by default. */
8-16
: Consider adding error handling and cleanup.The implementation is solid but could benefit from additional robustness:
- Add error handling for the
super.setup()
call- Consider implementing
teardown()
if cleanup is neededexport default class CustomTestEnvironment extends Environment { async setup() { - await super.setup(); + try { + await super.setup(); + } catch (error) { + console.error('Failed to setup custom test environment:', error); + throw error; + } if (typeof this.global.TextEncoder === 'undefined') { this.global.TextEncoder = TextEncoder; this.global.TextDecoder = TextDecoder; } } + + async teardown() { + // Clean up any custom globals if necessary + await super.teardown(); + } }.github/ISSUE_TEMPLATE/bug-report.md (1)
33-36
: Improve markdown formatting.
- Use proper heading syntax for sections
- Format the URL as a markdown link
-**Potential internship candidates** +## Potential internship candidates Please read this if you are planning to apply for a Palisadoes Foundation internship -https://github.com/PalisadoesFoundation/talawa/issues/359 +[Internship Information](https://github.com/PalisadoesFoundation/talawa/issues/359)🧰 Tools
🪛 Markdownlint (0.35.0)
36-36: null
Bare URL used(MD034, no-bare-urls)
33-33: null
Emphasis used instead of a heading(MD036, no-emphasis-as-heading)
scripts/__mocks__/@pdfme/generator.ts (1)
10-13
: Clean up debug code and improve error messages
- Remove the commented-out console.log statement
- Consider providing more specific error messages to distinguish between empty template schemas and empty inputs
if (template.schemas.length === 0 || inputs.length === 0) { - // console.log('pdf error: length : ', template, inputs, inputs.length); - throw new Error('Template or inputs cannot be empty.'); + if (template.schemas.length === 0) { + throw new Error('Template schemas cannot be empty.'); + } + throw new Error('Inputs array cannot be empty.'); }.github/workflows/codeql-codescan.yml (3)
14-20
: Consider limiting workflow triggers for resource optimizationThe workflow currently runs on all branches for both pull requests and pushes. This could consume unnecessary GitHub Actions minutes.
Consider limiting the triggers to specific branches:
on: pull_request: branches: - - '**' + - 'main' + - 'develop' push: branches: - - '**' + - 'main' + - 'develop'🧰 Tools
🪛 yamllint (1.29.0-1)
[error] 17-17: trailing spaces
(trailing-spaces)
[error] 20-20: trailing spaces
(trailing-spaces)
31-44
: Add CodeQL configuration file for enhanced analysisThe workflow would benefit from a custom CodeQL configuration file to define query suites and paths to analyze/exclude.
Would you like me to help create a
codeql-config.yml
file with recommended settings for your React application? This would help:
- Define specific queries relevant to React applications
- Exclude test files and build artifacts
- Configure path filters for more focused analysis
🧰 Tools
🪛 yamllint (1.29.0-1)
[warning] 31-31: wrong indentation: expected 6 but found 7
(indentation)
[warning] 37-37: wrong indentation: expected 11 but found 10
(indentation)
1-11
: Improve file header documentationThe header mentions reading a README.md file but doesn't specify its exact location or purpose.
Consider updating the header to be more specific:
-# Please read the README.md file in this directory that defines what should -# be placed in this file +# Please read .github/workflows/README.md for workflow configuration guidelines +# and best practices for GitHub Actions in this repository.🧰 Tools
🪛 yamllint (1.29.0-1)
[error] 6-6: trailing spaces
(trailing-spaces)
scripts/__mocks__/@pdfme/generator.test.ts (1)
21-46
: Refactor test data setup for better maintainability.The test cases have duplicated template and input definitions. Consider extracting these into reusable fixtures.
Here's a suggested refactor:
+ const createTemplate = (schemas: any[] = []) => ({ schemas }) as Template; + const createInputs = (data: Record<string, string>[] = []) => data; + it('should throw an error when template is empty', async () => { - const emptyTemplate = { schemas: [] } as Template; - const validInputs = [{ field1: 'value1' }]; + const emptyTemplate = createTemplate(); + const validInputs = createInputs([{ field1: 'value1' }]); await expect( generate({ template: emptyTemplate, inputs: validInputs }), ).rejects.toThrow('Template or inputs cannot be empty.'); }); it('should throw an error when inputs are empty', async () => { - const validTemplate = { schemas: [{ name: 'field1' }] } as Template; - const emptyInputs: Record<string, string>[] = []; + const validTemplate = createTemplate([{ name: 'field1' }]); + const emptyInputs = createInputs(); await expect( generate({ template: validTemplate, inputs: emptyInputs }), ).rejects.toThrow('Template or inputs cannot be empty.'); }); it('should throw an error when both template and inputs are empty', async () => { - const emptyTemplate = { schemas: [] } as Template; - const emptyInputs: Record<string, string>[] = []; + const emptyTemplate = createTemplate(); + const emptyInputs = createInputs(); await expect( generate({ template: emptyTemplate, inputs: emptyInputs }), ).rejects.toThrow('Template or inputs cannot be empty.'); });.github/pull_request_template.md (1)
22-37
: Enhance section prompts for better clarityThe new sections are good additions, but could be more specific:
- Issue number section could specify the format (e.g., "Adding new page - posts #123")
- Documentation section could provide specific documentation paths
Consider applying these enhancements:
**Issue Number:** -Fixes #<!--Add related issue number here.--> +Fixes # <!-- Add issue number (e.g., #123) --> **If relevant, did you update the documentation?** -<!--Add link to Talawa-Docs.--> +<!-- +Add link to updated documentation in: +- Talawa-Docs repository +- API documentation +- Code comments +-->.github/workflows/stale.yml (2)
18-21
: Fix trailing whitespaceRemove trailing spaces to improve code formatting.
permissions: issues: write - pull-requests: write - + pull-requests: write🧰 Tools
🪛 yamllint (1.29.0-1)
[error] 20-20: trailing spaces
(trailing-spaces)
[error] 21-21: trailing spaces
(trailing-spaces)
27-43
: Consider optimizing stale configuration parametersThe configuration is generally good, but consider these suggestions for optimization:
- The 180-day close period (
days-before-close: 180
) is quite long. Consider reducing it to 90 days to maintain a more active repository.- The
operations-per-run: 30
limit might be too low if you have many issues/PRs. Consider increasing it based on your repository's size.The messages are well-written and provide clear guidance to contributors.
days-before-stale: 10 - days-before-close: 180 + days-before-close: 90 remove-stale-when-updated: true exempt-all-milestones: true exempt-pr-labels: 'wip' exempt-issue-labels: 'wip' - operations-per-run: 30 + operations-per-run: 100.github/workflows/check-tsdoc.js (3)
1-1
: Remove redundant commentThe comment is unnecessary as the import statement clearly shows we're using the promises API.
-import fs from 'fs/promises'; // Import fs.promises for async operations +import fs from 'fs/promises';
4-11
: Document why files are being skippedAdd a comment explaining the rationale for excluding these specific files from TSDoc validation.
-// List of files to skip +// Files excluded from TSDoc validation because [reason] const filesToSkip = [
14-35
: Consider improvements to file traversal logicA few suggestions to enhance robustness and maintainability:
- Use path.normalize() for consistent path separators across platforms
- Consider implementing batch processing for large directories
- Consider using a logger instead of console.error for better error tracking
async function findTsxFiles(dir) { let results = []; try { const list = await fs.readdir(dir); for (const file of list) { - const filePath = path.join(dir, file); + const filePath = path.normalize(path.join(dir, file)); const stat = await fs.stat(filePath); if (stat.isDirectory()) { results = results.concat(await findTsxFiles(filePath)); } else if ( filePath.endsWith('.tsx') && !filePath.endsWith('.test.tsx') && - !filesToSkip.includes(path.relative(dir, filePath)) + !filesToSkip.includes(path.basename(filePath)) ) { results.push(filePath); } } } catch (err) { - console.error(`Error reading directory ${dir}: ${err.message}`); + throw new Error(`Failed to read directory ${dir}: ${err.message}`); } return results; }.github/workflows/push.yml (3)
19-20
: Fix YAML indentationThe
env
section should be indented with 2 spaces to maintain consistency with YAML standards.env: - CODECOV_UNIQUE_NAME: CODECOV_UNIQUE_NAME-${{ github.run_id }}-${{ github.run_number }} + CODECOV_UNIQUE_NAME: CODECOV_UNIQUE_NAME-${{ github.run_id }}-${{ github.run_number }}🧰 Tools
🪛 yamllint (1.29.0-1)
[warning] 20-20: wrong indentation: expected 2 but found 4
(indentation)
42-45
: Enhance cache key strategyInclude Node.js version in the cache key to prevent potential issues when switching Node versions.
with: path: | ~/.npm node_modules - key: ${{ runner.os }}-code-coverage-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-code-coverage-${{ env.cache-name }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
54-61
: Consider test command and Codecov configuration improvementsA few suggestions for the test and coverage steps:
- The test command could be more explicit about its coverage configuration
- Consider enabling
fail_ci_if_error
for Codecov to ensure coverage data is properly uploaded- - run: npm run test -- --watchAll=false --coverage + - name: Run tests with coverage + run: npm run test -- --watchAll=false --coverage --coverageReporters=lcov --coverageDirectory=coverage - name: Present and upload coverage to Codecov as ${{env.CODECOV_UNIQUE_NAME}} uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} verbose: true - fail_ci_if_error: false + fail_ci_if_error: true name: '${{env.CODECOV_UNIQUE_NAME}}'jest.config.js (1)
60-65
: Consider increasing coverage thresholds.The current coverage thresholds of 20% for lines and statements are quite low and might not provide adequate test coverage. This is particularly important given that this PR aims to fix failing tests.
Consider gradually increasing these thresholds to industry-standard levels (70-80%) to ensure better code quality and catch potential issues early.
scripts/githooks/check-localstorage-usage.js (2)
51-56
: Consider moving file exclusions to configurationThe hardcoded file exclusions would be better maintained in a configuration file, making it easier to update without modifying the script.
Consider creating a
.localstorage-checkrc.json
file:{ "excludeFiles": [ "check-localstorage-usage.js", "useLocalstorage.test.ts", "useLocalstorage.ts" ] }
1-1
: Add documentation for the skip comment featureThe script supports a special comment to skip checks, but this feature isn't documented. Consider adding a README.md file in the scripts/githooks directory.
Example documentation:
# LocalStorage Usage Check This script enforces the use of custom localStorage hooks instead of direct localStorage access. ## Skip Checks To skip the localStorage check for a specific file, add the following comment: ```javascript // SKIP_LOCALSTORAGE_CHECK</blockquote></details> <details> <summary>.github/workflows/issue.yml (4)</summary><blockquote> `6-7`: **Add the specific path to the referenced README.md** The header comment mentions a README.md file but doesn't specify its exact location. Consider updating the comment to include the full path for better clarity. ```diff -# Please read the README.md file in this directory that defines what should +# Please read .github/workflows/README.md that defines what should
🧰 Tools
🪛 yamllint (1.29.0-1)
[error] 6-6: trailing spaces
(trailing-spaces)
42-55
: Refactor label automation logic for better maintainabilityThe current implementation has duplicated code and complex reduce operations. Consider refactoring for better readability and maintainability.
- if(labels.data.reduce((a, c)=>a||["dependencies"].includes(c.name), false)) - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - labels: ["good first issue", "security"] - }); - else if(labels.data.reduce((a, c)=>a||["security", "ui/ux"].includes(c.name), false)) - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - labels: ["good first issue"] - }); + const labelNames = labels.data.map(label => label.name); + const labelsToAdd = new Set(["good first issue"]); + + if (labelNames.includes("dependencies")) { + labelsToAdd.add("security"); + } else if (labelNames.some(name => ["security", "ui/ux"].includes(name))) { + // only add "good first issue" which is already in the set + } + + if (labelsToAdd.size > 0) { + await github.rest.issues.addLabels({ + ...apiParams, + labels: Array.from(labelsToAdd) + }); + }
62-65
: Consider externalizing the greeting messageLong strings in workflow files can be hard to maintain. Consider moving the greeting message to a separate file.
- uses: actions/first-interaction@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: "Congratulations on making your first Issue! :confetti_ball: If you haven't already, check out our [Contributing Guidelines](https://github.com/PalisadoesFoundation/talawa-admin/blob/develop/CONTRIBUTING.md) and [Issue Reporting Guidelines](https://github.com/PalisadoesFoundation/talawa-admin/blob/develop/ISSUE_GUIDELINES.md) to ensure that you are following our guidelines for contributing and making issues." + issue-message: ${{ vars.FIRST_ISSUE_GREETING }}Create a repository variable
FIRST_ISSUE_GREETING
with the message content for better maintainability.
6-6
: Fix formatting issuesThe static analysis tool identified several formatting issues:
- Remove trailing spaces
- Fix indentation (expected 4 spaces)
- Remove extra blank lines at the end of file
-# Please read the README.md file in this directory that defines what should +# Please read the README.md file in this directory that defines what should types: ['opened'] -Also applies to: 15-15, 66-66
🧰 Tools
🪛 yamllint (1.29.0-1)
[error] 6-6: trailing spaces
(trailing-spaces)
.github/workflows/talawa_admin_md_mdx_format_adjuster.py (3)
3-14
: Enhance documentation with usage examples and MDX explanationThe docstring is well-structured but could be more helpful by including:
- Example usage of the script
- Brief explanation of what MDX is and why escaping is necessary
- Sample input/output to demonstrate the transformation
""" Script to make Markdown files MDX compatible. This script scans Markdown files and escapes special characters (<, >, {, }) to make them compatible with the MDX standard used in Docusaurus v3. +Example usage: + python3 talawa_admin_md_mdx_format_adjuster.py --directory ./docs + +MDX is a format that combines Markdown with JSX, requiring special characters +to be escaped. For example: + Input: Use <Component> to render + Output: Use \<Component\> to render + This script complies with: 1) Pylint 2) Pydocstyle 3) Pycodestyle 4) Flake8 """
19-44
: Optimize regex patterns and add test coverageThe function logic is correct but could be optimized:
- Compile regex patterns once at module level for better performance
- Add test cases to verify edge cases (e.g., mixed escaped/unescaped characters)
+# Compile patterns once at module level +_REGEX_PATTERNS = { + "<": re.compile(r"(?<!\\)<"), + ">": re.compile(r"(?<!\\)>"), + "{": re.compile(r"(?<!\\){"), + "}": re.compile(r"(?<!\\)}") +} def escape_mdx_characters(text): """ Escape special characters in a text string for MDX compatibility. Avoids escaping already escaped characters. Args: text: A string containing the text to be processed. Returns: A string with special characters (<, >, {, }) escaped, avoiding double escaping. """ - # Regular expressions to find unescaped special characters - patterns = { - "<": r"(?<!\\)<", - ">": r"(?<!\\)>", - "{": r"(?<!\\){", - "}": r"(?<!\\)}" - } # Replace unescaped special characters - for char, pattern in patterns.items(): - text = re.sub(pattern, f"\\{char}", text) + for char, pattern in _REGEX_PATTERNS.items(): + text = pattern.sub(f"\\{char}", text) return textWould you like me to generate unit tests to cover edge cases?
66-96
: Enhance CLI with additional options and validationThe main function could be improved with better directory validation and additional CLI options.
def main(): """ Main function to process all Markdown files in a given directory. Scans for all Markdown files in the specified directory and processes each one for MDX compatibility. Args: None Returns: None """ parser = argparse.ArgumentParser(description="Make Markdown files MDX compatible.") parser.add_argument( "--directory", type=str, required=True, help="Directory containing Markdown files to process." ) + parser.add_argument( + "--recursive", + action="store_true", + help="Recursively process subdirectories" + ) + parser.add_argument( + "--dry-run", + action="store_true", + help="Show which files would be modified without making changes" + ) + parser.add_argument( + "--verbose", + action="store_true", + help="Enable verbose output" + ) args = parser.parse_args() + # Validate directory + if not os.path.isdir(args.directory): + parser.error(f"Directory not found: {args.directory}") + + # Configure logging + log_level = logging.DEBUG if args.verbose else logging.INFO + logging.basicConfig(level=log_level, format='%(message)s') # Process each Markdown file in the directory - for root, _, files in os.walk(args.directory): + if args.recursive: + walker = os.walk(args.directory) + else: + walker = [(args.directory, [], os.listdir(args.directory))] + + for root, _, files in walker: for file in files: if file.lower().endswith(".md"): - process_file(os.path.join(root, file)) + filepath = os.path.join(root, file) + if args.dry_run: + logging.info("Would process: %s", filepath) + else: + process_file(filepath)public/locales/sp/common.json (3)
1-1
: Consider relocating the file to the correct language code folderThe folder is named 'sp', but the ISO language code for Spanish is 'es'. Consider moving this file to
public/locales/es/common.json
to follow international standards.
10-12
: Maintain consistent casing for role namesThe role names use inconsistent casing. Consider using consistent casing for all role names:
- "admin": "ADMIN", - "user": "USER", - "superAdmin": "SUPERADMIN", + "admin": "Administrador", + "user": "Usuario", + "superAdmin": "Superadministrador",
87-88
: Review and improve session warning translationsThe session warning messages could be improved for more natural Spanish:
- "sessionWarning": "Su sesión expirará pronto debido a la inactividad. Por favor, interactúe con la página para extender su sesión.", - "sessionLogOut": "Su sesión ha expirado debido a la inactividad. Por favor, inicie sesión nuevamente para continuar.", + "sessionWarning": "Su sesión expirará pronto por inactividad. Por favor, interactúe con la página para mantener la sesión activa.", + "sessionLogOut": "Su sesión ha expirado por inactividad. Por favor, vuelva a iniciar sesión para continuar.",.github/workflows/pull-request-target.yml (2)
22-68
: Fix formatting issues in the PR review policy messageThe message content is comprehensive, but there are some formatting inconsistencies:
- Line 67 ends with an incomplete sentence: "Read the CONTRIBUTING.md file make"
- Inconsistent list numbering (mixing 1. and 1.)
- 1. PRs with issues not assigned to you will be closed by the reviewer - 1. Fix the first comment in the PR so that each issue listed automatically closes + 1. PRs with issues not assigned to you will be closed by the reviewer + 2. Fix the first comment in the PR so that each issue listed automatically closes - 1. :dart: Please be considerate of our volunteers' time. Contacting the person who assigned the reviewers is not advised unless they ask for your input. Do not @ the person who did the assignment otherwise. - 2. Read the CONTRIBUTING.md file make + 1. :dart: Please be considerate of our volunteers' time. Contacting the person who assigned the reviewers is not advised unless they ask for your input. Do not @ the person who did the assignment otherwise. + 2. Read the CONTRIBUTING.md file for complete guidelines.🧰 Tools
🪛 yamllint (1.29.0-1)
[error] 36-36: trailing spaces
(trailing-spaces)
[error] 42-42: trailing spaces
(trailing-spaces)
[error] 67-67: trailing spaces
(trailing-spaces)
6-6
: Remove trailing spacesThe following lines contain trailing spaces that should be removed:
- Line 6: "Please read the README.md file in this directory that defines what should "
- Line 13: "on: "
- Line 15: " pull_request_target:"
- Line 36: " 3. Merge conflicts "
- Line 42: " Do not assign reviewers. Our Queue Monitors will review your PR and assign them. "
- Line 67: " 2. Read the CONTRIBUTING.md file make "
Also applies to: 13-13, 15-15, 36-36, 42-42, 67-67
🧰 Tools
🪛 yamllint (1.29.0-1)
[error] 6-6: trailing spaces
(trailing-spaces)
README.md (1)
53-56
: Fix heading formattingThere are extra spaces after the hash symbol in the "Videos" heading.
-# Videos +# Videos🧰 Tools
🪛 Markdownlint (0.35.0)
53-53: null
Multiple spaces after hash on atx style heading(MD019, no-multiple-space-atx)
🪛 LanguageTool
[uncategorized] ~56-~56: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...)" videos are extremely helpful for new open source contributors.(EN_COMPOUND_ADJECTIVE_INTERNAL)
PR_GUIDELINES.md (4)
1-5
: Improve readability of the introduction sectionConsider these refinements to enhance clarity and professionalism:
# Pull Request Guidelines -:+1::tada: First off, thanks for taking the time to contribute! :tada::+1: +:tada: Thank you for taking the time to contribute! :tada: -In order to give everyone a chance to submit a pull request and contribute to the Talawa project, we have put restrictions in place. This section outlines the guidelines that should be imposed upon pull requests in the Talawa project. +To ensure fair contribution opportunities in the Talawa project, we have established guidelines for pull requests. These guidelines help maintain quality and consistency across contributions.🧰 Tools
🪛 LanguageTool
[uncategorized] ~2-~2: Loose punctuation mark.
Context: # Pull Request Guidelines 👍🎉 First off, thanks for taking t...(UNLIKELY_OPENING_PUNCTUATION)
[style] ~4-~4: Consider a shorter alternative to avoid wordiness.
Context: ...ing the time to contribute! 🎉👍 In order to give everyone a chance to submit a pull...(IN_ORDER_TO_PREMIUM)
31-42
: Add language specifiers to code blocksAdd language specifiers to the code blocks for proper syntax highlighting.
-``` +```bash npm run lint:fix npm run format:fix-
+
bash
npm run lint:check
npm run format:check<details> <summary>🧰 Tools</summary> <details> <summary>🪛 Markdownlint (0.35.0)</summary> 31-31: null Fenced code blocks should have a language specified (MD040, fenced-code-language) --- 39-39: null Fenced code blocks should have a language specified (MD040, fenced-code-language) </details> </details> --- `54-69`: **Improve organization of pull request rules** The guidelines would be more digestible if organized into logical groups with clear subsection headers. Consider reorganizing the content into these subsections: 1. Branch and PR Requirements - PR against develop branch - No draft PRs - One PR at a time per contributor 2. Code Quality Requirements - Passing tests - Code quality standards - Borrowed code disclosure 3. Communication Guidelines - PR template usage - Response time expectations - @mention policy This organization would make it easier for contributors to find and follow specific guidelines. <details> <summary>🧰 Tools</summary> <details> <summary>🪛 LanguageTool</summary> [style] ~56-~56: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase. Context: ...o be closed. The quality of our code is very important to us. Therefore we make experienced ma... (EN_WEAK_ADJECTIVE) --- [uncategorized] ~56-~56: A comma may be missing after the conjunctive/linking adverb ‘Therefore’. Context: ...ty of our code is very important to us. Therefore we make experienced maintainers of our ... (SENT_START_CONJUNCTIVE_LINKING_ADVERB_COMMA) --- [style] ~59-~59: Consider using a different verb for a more formal wording. Context: ...check if all tests are passing; if not, fix the issues and then create a pull reque... (FIX_RESOLVE) --- [style] ~64-~64: This expression is wordy and overused. Consider replacing it with a more concise and formal alternative. Context: ...wer your questions, but we'll get to it sooner or later. @mentioning someone just adds to the p... (SOONER_OR_LATER) --- [uncategorized] ~64-~64: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short). Context: ...adds to the pile of notifications we get and it won't make us look at your issue fas... (COMMA_COMPOUND_SENTENCE) --- [style] ~65-~65: Consider shortening or rephrasing this to strengthen your wording. Context: ...ue faster. 1. Do not force push. If you make changes to your pull request, please simply add a ... (MAKE_CHANGES) </details> </details> --- `46-47`: **Add example for test documentation** Consider adding an example template for documenting manual testing steps when automated tests aren't possible. ```markdown Example format for manual testing documentation: 1. Test Scenario: [Describe what you're testing] 2. Prerequisites: [List required setup] 3. Test Steps: - Step 1: [Action] - Step 2: [Action] 4. Expected Results: [What should happen] 5. Actual Results: [What actually happened]
🧰 Tools
🪛 LanguageTool
[style] ~46-~46: Style-wise, it’s not ideal to insert an adverb (‘manually’) in the middle of an infinitive construction (‘to test’). Try moving the adverb to avoid split infinitives.
Context: ..., you'll need to tell us what steps you followed to manually test your changes. 1. Please read our [CONTRIBUTING.md](C...(SPLIT_INFINITIVE)
CODE_STYLE.md (7)
5-7
: Consider consolidating redundant statementsLines 5 and 7 both emphasize following the code style. Consider merging these into a single, stronger statement.
-The code style must be strictly adhered to, to ensure that there is consistency throughout the contributions made to Talawa-Admin - -code style should not be changed and must be followed. +The code style must be strictly adhered to and cannot be modified, ensuring consistency throughout all contributions to Talawa-Admin.
26-38
: Consider adding version information for tech stackThe tech stack section would be more helpful if it included specific version requirements or version ranges for each technology.
-Typescript -React.js -CSS module -React bootstrap -Material UI -GraphQL -Jest & React Testing Library for testing +TypeScript ^4.0.0 +React.js ^18.0.0 +CSS Modules +React Bootstrap ^5.3.0 +Material UI ^5.0.0 +GraphQL ^16.0.0 +Jest ^29.0.0 & React Testing Library ^14.0.0
42-44
: Add examples for component structureThe component structure section would benefit from practical examples demonstrating the proper use of functional components and hooks.
Consider adding an example like:
// ✅ Good Example import React, { useState, useEffect } from 'react'; const UserProfile: React.FC = () => { const [userData, setUserData] = useState(null); useEffect(() => { // Fetch user data }, []); return ( // JSX ); }; export default UserProfile;
58-69
: Add language specifiers to code blocksCode blocks should specify the language for proper syntax highlighting.
-``` +```jsx <div className="myCustomClass">...</div>🧰 Tools
🪛 Markdownlint (0.35.0)
58-58: null
Fenced code blocks should have a language specified(MD040, fenced-code-language)
65-65: null
Fenced code blocks should have a language specified(MD040, fenced-code-language)
127-137
: Fix directory structure indentationThe directory structure section has inconsistent indentation levels.
Use consistent 2-space indentation for all nested items in the directory structure.
🧰 Tools
🪛 Markdownlint (0.35.0)
128-128: Expected: 0; Actual: 2
Unordered list indentation(MD007, ul-indent)
129-129: Expected: 0; Actual: 2
Unordered list indentation(MD007, ul-indent)
130-130: Expected: 0; Actual: 2
Unordered list indentation(MD007, ul-indent)
131-131: Expected: 2; Actual: 4
Unordered list indentation(MD007, ul-indent)
132-132: Expected: 2; Actual: 4
Unordered list indentation(MD007, ul-indent)
133-133: Expected: 2; Actual: 4
Unordered list indentation(MD007, ul-indent)
134-134: Expected: 2; Actual: 4
Unordered list indentation(MD007, ul-indent)
135-135: Expected: 2; Actual: 4
Unordered list indentation(MD007, ul-indent)
136-136: Expected: 2; Actual: 4
Unordered list indentation(MD007, ul-indent)
137-137: Expected: 2; Actual: 4
Unordered list indentation(MD007, ul-indent)
🪛 LanguageTool
[style] ~127-~127: Consider removing “of” to be more concise
Context: ...tories ofsrc
assets
- This houses all of the static assets used in the project - `...(ALL_OF_THE)
[style] ~128-~128: Consider removing “of” to be more concise
Context: ... in the project -css
- This houses all of the css files used in the project - `imag...(ALL_OF_THE)
[style] ~129-~129: Consider removing “of” to be more concise
Context: ... the project -images
- This houses all of the images used in the project -scss
-...(ALL_OF_THE)
[style] ~130-~130: Consider removing “of” to be more concise
Context: ...in the project -scss
- This houses all of the scss files used in the project - `c...(ALL_OF_THE)
[grammar] ~134-~134: The singular proper name ‘Sass’ must be used with a third-person or a past tense verb.
Context: ...rms -_talawa.scss
- Partial Sass file for Talawa -_utilities.scss
- Pa...(HE_VERB_AGR)
[grammar] ~135-~135: The singular proper name ‘Sass’ must be used with a third-person or a past tense verb.
Context: ... -_utilities.scss
- Partial Sass file for utilities -_variables.scss
-...(HE_VERB_AGR)
[grammar] ~136-~136: The singular proper name ‘Sass’ must be used with a third-person or a past tense verb.
Context: ... -_variables.scss
- Partial Sass file for variables -app.scss
- Main S...(HE_VERB_AGR)
165-165
: Use hyphenation for compound adjective"Third party" should be hyphenated when used as a compound adjective.
-- Third party imports +- Third-party imports🧰 Tools
🪛 Markdownlint (0.35.0)
165-165: Expected: 0; Actual: 2
Unordered list indentation(MD007, ul-indent)
🪛 LanguageTool
[uncategorized] ~165-~165: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...following order: - React imports - Third party imports - Local imports If there is...(EN_COMPOUND_ADJECTIVE_INTERNAL)
232-234
: Maintain consistent capitalization of "Sass""Sass" is a proper noun and should always be capitalized consistently.
-According to naming convention the file name of the partial Sass files should start with an underscore `_` and end with `.scss`, these partial sass files are not meant to be compiled directly, they are meant to be imported into another sass file. +According to naming convention the file name of the partial Sass files should start with an underscore `_` and end with `.scss`, these partial Sass files are not meant to be compiled directly, they are meant to be imported into another Sass file..github/workflows/pull-request.yml (2)
132-134
: Enhance error message for unauthorized file changesThe current error message could be more helpful by explaining the process for getting authorization.
- echo "$file is unauthorized to change/delete" + echo "⛔ $file is unauthorized to change/delete. Please refer to CONTRIBUTING.md for the process of getting authorization for sensitive file changes."
35-36
: Add caching for Node.js dependenciesConsider adding caching to improve workflow performance and reduce installation time.
+ - name: Cache Node.js dependencies + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install Dependencies run: npm installCONTRIBUTING.md (6)
27-27
: Consider adding "please" for politenessConsider revising to: "Please let us know immediately if you have unacceptable experiences in this area."
🧰 Tools
🪛 LanguageTool
[style] ~27-~27: This expression usually appears with a “please” in front of it.
Context: ...DUCT.md) to understand what this means. Let us know immediately if you have unacceptable ex...(INSERT_PLEASE)
34-34
: Add hyphen in compound adjectiveRevise "open source contributors" to "open-source contributors" as it's used as a compound adjective.
🧰 Tools
🪛 LanguageTool
[uncategorized] ~34-~34: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...)" videos are extremely helpful for new open source contributors. ## Ways to Contribute I...(EN_COMPOUND_ADJECTIVE_INTERNAL)
62-62
: Fix grammatical and capitalization issuesSeveral improvements needed:
- Line 62: Add "the" - "is the best resource"
- Lines 75, 77, 178: Capitalize "Slack" as it's a proper noun
Also applies to: 75-75, 77-77, 178-178
🧰 Tools
🪛 LanguageTool
[grammar] ~62-~62: A determiner may be missing.
Context: ...l Request guidelines](PR_GUIDELINES.md) is best resource to follow to start working on ...(THE_SUPERLATIVE)
104-144
: Add language specifications to code blocksAdd language specifications to all fenced code blocks for proper syntax highlighting. For example:
-``` +```bash npm install🧰 Tools
🪛 Markdownlint (0.35.0)
104-104: null
Fenced code blocks should have a language specified(MD040, fenced-code-language)
113-113: null
Fenced code blocks should have a language specified(MD040, fenced-code-language)
128-128: null
Fenced code blocks should have a language specified(MD040, fenced-code-language)
139-139: null
Fenced code blocks should have a language specified(MD040, fenced-code-language)
143-143: null
Fenced code blocks should have a language specified(MD040, fenced-code-language)
🪛 LanguageTool
[grammar] ~135-~135: The operating system from Apple is written “macOS”.
Context: ...r packages can be found for Windows and MacOS. 6. The currently acceptable c...(MAC_OS)
135-135
: Fix technical writing issues
- Line 135: Change "MacOS" to "macOS"
- Line 165: Add missing articles and comma: "Here, the branch name must be the name of the branch"
Also applies to: 165-165
🧰 Tools
🪛 LanguageTool
[grammar] ~135-~135: The operating system from Apple is written “macOS”.
Context: ...r packages can be found for Windows and MacOS. 6. The currently acceptable c...(MAC_OS)
158-161
: Fix empty image linksRemove the empty markdown links after the images or provide proper URLs:
-[![Code-cov-token.jpg](/public/images/codecov/Code-cov-token.jpg)]() +![Code-cov-token.jpg](/public/images/codecov/Code-cov-token.jpg)🧰 Tools
🪛 Markdownlint (0.35.0)
158-158: null
No empty links(MD042, no-empty-links)
159-159: null
No empty links(MD042, no-empty-links)
161-161: null
No empty links(MD042, no-empty-links)
INSTALLATION.md (3)
142-144
: Add language specifiers to code blocksCode blocks should specify their language for proper syntax highlighting. For example:
-``` +```bash npm install-
+
bash
npm run setup-``` +```bash cp .env.example .env
Also applies to: 154-156, 164-166 <details> <summary>🧰 Tools</summary> <details> <summary>🪛 Markdownlint (0.35.0)</summary> 142-142: null Fenced code blocks should have a language specified (MD040, fenced-code-language) </details> </details> --- `189-202`: **Standardize URL examples and add validation steps** The URL examples use inconsistent formats and lack validation steps. Consider: 1. Using consistent placeholder formats (e.g., `{API_HOST}` instead of mixing `API-IP-ADDRESS` and `YOUR-REMOTE-ADDRESS`) 2. Adding steps to validate the configuration ```diff -REACT_APP_TALAWA_URL="http://API-IP-ADRESS:4000/graphql/" +REACT_APP_TALAWA_URL="http://{API_HOST}:4000/graphql/"
Also, consider adding a section on how to validate the configuration, such as checking API connectivity.
🧰 Tools
🪛 Markdownlint (0.35.0)
194-194: null
Fenced code blocks should have a language specified(MD040, fenced-code-language)
200-200: null
Fenced code blocks should have a language specified(MD040, fenced-code-language)
67-68
: Fix grammatical and spelling issuesSeveral language issues need to be addressed:
- "setup" is incorrectly used as a verb (should be "set up")
- Inconsistent spelling of "macOS" (currently written as "MacOS")
- Missing commas in compound sentences
Apply these corrections:
-navigate to the folder where you want to setup the repository +navigate to the folder where you want to set up the repository -`cmd` (Windows) or `terminal` (Linux or MacOS) +`cmd` (Windows) or `terminal` (Linux or macOS) -You may not want to setup reCAPTCHA +You may not want to set up reCAPTCHAAlso applies to: 102-102, 119-119, 228-232
🧰 Tools
🪛 LanguageTool
[grammar] ~67-~67: The word “setup” is a noun. The verb is spelled with a space.
Context: ...avigate to the folder where you want to setup the repository. 2. Open acmd
(Window...(NOUN_VERB_CONFUSION)
[grammar] ~68-~68: The operating system from Apple is written “macOS”.
Context: ...cmd
(Windows) orterminal
(Linux or MacOS) session in this folder. 1. An easy ...(MAC_OS)
.github/workflows/eslint_disable_check.py (2)
61-61
: Rename unused variabledirs
to_
or_dirs
The variable
dirs
in the loop is not used. Renaming it to_
or_dirs
indicates that it's intentionally unused and adheres to Python conventions.Apply this diff to rename the variable:
-for root, dirs, files in os.walk(os.path.join(directory, 'src')): +for root, _dirs, files in os.walk(os.path.join(directory, 'src')):🧰 Tools
🪛 Ruff (0.7.0)
61-61: Loop control variable
dirs
not used within loop bodyRename unused
dirs
to_dirs
(B007)
76-81
: Clarify the return value inarg_parser_resolver
docstringThe docstring mentions returning
result
, but the function actually returnsargs
. Updating the return description improves clarity.Apply this diff to correct the docstring:
""" Resolve the CLI arguments provided by the user. Returns: - result: Parsed argument object + argparse.Namespace: Parsed argument object """setup.ts (5)
72-76
: Add a maximum retry limit when checking the connection.The loop that checks the connection to the Talawa API endpoint could potentially become infinite if the connection cannot be established. This might frustrate users.
Introduce a retry limit to prevent an infinite loop:
let isConnected = false, endpoint = ''; + let retryCount = 0; + const maxRetries = 5; while (!isConnected) { endpoint = await askForTalawaApiUrl(); const url = new URL(endpoint); isConnected = await checkConnection(url.origin); + retryCount++; + if (retryCount >= maxRetries && !isConnected) { + console.error('Maximum retries reached. Please check your network connection.'); + process.exit(1); + } }
99-105
: Confirm default value for ReCAPTCHA setup.The prompt for setting up ReCAPTCHA defaults to
true
. Considering not all users may have ReCAPTCHA keys, consider defaulting tofalse
to prevent confusion.const { shouldUseRecaptcha } = await inquirer.prompt({ type: 'confirm', name: 'shouldUseRecaptcha', message: 'Would you like to set up ReCAPTCHA?', - default: true, + default: false, });
140-145
: Improve validation message for ReCAPTCHA site key input.The validation message
Invalid reCAPTCHA site key. Please try again.
may not provide enough information to the user about why the input is invalid.Consider providing more detailed feedback:
return 'Invalid ReCAPTCHA site key. It should be a non-empty string. Please try again.';
163-169
: Review default setting for logging errors.The prompt for logging compile-time and runtime errors defaults to
true
. Depending on the typical user preference, consider defaulting tofalse
if logging is optional.const { shouldLogErrors } = await inquirer.prompt({ type: 'confirm', name: 'shouldLogErrors', message: 'Would you like to log compile-time and runtime errors in the console?', - default: true, + default: false, });
180-182
: Enhance user experience with final message.Consider providing next steps or additional information after the setup is complete to improve user onboarding.
console.log( '\nCongratulations! Talawa Admin has been successfully set up! 🥂🎉', + '\nYou can now start the development server by running `npm start`.', );
.github/workflows/countline.py (14)
23-24
: Provide the missing commands in the docstring's 'NOTE' sectionThe docstring mentions "Run these commands from the CLI to ensure the code is compliant for all your pull requests," but the specific commands are not included. Including the exact commands (e.g.,
pylint
,pydocstyle
,pycodestyle
,flake8
) will help contributors ensure compliance with the coding standards.
35-56
: Enhance filename validation logicCurrently,
_valid_filename()
checks for substrings".test."
and".spec."
in the file path to invalidate filenames. This might miss files that have these patterns at the start or end of the filename. Consider usingos.path.basename()
and regex patterns to improve filename validation.Apply this diff to enhance the validation:
-def _valid_filename(filepath): +def _valid_filename(filepath): + """Determine whether filepath has a valid filename. Args: filepath: Filepath to check Returns: result: True if valid """ invalid_patterns = [r'\.test\.', r'\.spec\.'] filename = os.path.basename(filepath).lower() for pattern in invalid_patterns: if re.search(pattern, filename): return False return True
68-79
: Consider specifying valid extensions instead of invalid onesIn
_valid_extension()
, specifying invalid extensions may lead to new file types being unintentionally processed. It's safer to define a list of valid code file extensions to ensure only intended files are analyzed.Apply this diff:
-def _valid_extension(filepath): - """Determine whether filepath has the correct extension. - - Args: - filepath: Filepath to check - - Returns: - result: True if valid - - """ - invalid_extensions = [".css", ".jpg", ".png", ".jpeg"] - result = True - for invalid_extension in invalid_extensions: - if filepath.lower().endswith(invalid_extension.lower()): - result = False - break - return result +def _valid_extension(filepath): + """Determine whether filepath has a valid code file extension. Args: filepath: Filepath to check Returns: result: True if valid """ valid_extensions = [".py", ".js", ".dart"] for valid_extension in valid_extensions: if filepath.lower().endswith(valid_extension.lower()): return True return False
114-114
: Useos.path.join
instead of string formatting for file pathsUsing
os.path.join
enhances code readability and ensures compatibility across different operating systems.Apply this diff:
- filepath = "{}{}{}".format(os.getcwd(), os.sep, filename) + filepath = os.path.join(os.getcwd(), filename)
137-140
: Correct misleading comment in_filepaths_in_directories
functionThe comment indicates that files are read and lines are counted, but the function only collects file paths.
Apply this diff:
for root, _, files in os.walk(directory, topdown=False): for name in files: - # Read each file and count the lines found + # Collect file paths result.append(os.path.join(root, name))
145-195
: Simplify help strings in argparse argumentsUsing triple-quoted strings and backslashes is unnecessary in the help messages. Simplify to single-line strings for clarity.
Apply this diff:
parser.add_argument( "--exclude_files", type=str, required=False, nargs="*", default=None, const=None, - help="""An optional space separated list of \ -files to exclude from the analysis.""", + help="An optional space-separated list of files to exclude from the analysis.", ) parser.add_argument( "--exclude_directories", type=str, required=False, nargs="*", default=None, const=None, - help="""An optional space separated list of \ -directories to exclude from the analysis.""", + help="An optional space-separated list of directories to exclude from the analysis.", )
198-198
: Updatemain
function docstring to reflect actual functionalityThe docstring states "Analyze dart files," but the script is designed to analyze code files in general. Update the docstring for accuracy.
Apply this diff:
def main(): - """Analyze dart files. + """Analyze code files for excessive line lengths.
213-214
: Initializeerrors_found
as an integer for consistency with its usage
errors_found
is used in a boolean context and later as an integer (file_count
). To avoid confusion, consider renaming or separating the counter from the boolean flag.Apply this diff:
- errors_found = False - file_count = 0 + file_count = 0And update relevant conditions:
- if errors_found: + if file_count > 0:
225-230
: Handle missing directories gracefullyWhen the directories
lib
,src
, ortest
do not exist, the script may fail. Consider adding a check to ensure directories exist before processing.Apply this diff:
for directory in directories: + if not os.path.exists(directory): + continue for root, _, files in os.walk(directory, topdown=False):
243-245
: Excludevenv
or virtual environment directoriesVirtual environment directories can contain many files that are not relevant to the analysis. Consider excluding them to improve performance.
Apply this diff:
# Skip /node_modules/ sub directories if "{0}node_modules{0}".format(os.sep) in filepath: continue + if "{0}venv{0}".format(os.sep) in filepath: + continue
255-255
: Use 'utf-8' encoding when opening filesUsing 'utf-8' encoding ensures compatibility with most text files and is the standard encoding for modern text. Handling encoding errors prevents unexpected crashes.
Apply this diff:
- with open(filepath, encoding="latin-1") as code: + with open(filepath, encoding="utf-8", errors="ignore") as code:
267-267
: Fix the typo in the commentThere's a typo in the comment: "voilated" should be "violated".
Apply this diff:
- # If the line rule is voilated then the value is changed to 1 + # If the line rule is violated, increment the error count
281-281
: Simplify the conditional checkThe expression
if bool(errors_found) is True:
can be simplified toif errors_found:
for readability.Apply this diff:
- if bool(errors_found) is True: + if errors_found:
291-294
: No need forelse
aftersys.exit
After calling
sys.exit(1)
, the program terminates, so theelse
block is unnecessary.Apply this diff:
sys.exit(1) - else: - sys.exit(0) + sys.exit(0)schema.graphql (1)
779-779
: Inconsistent type fororganizationId
field inOrganizationCustomField
The
organizationId
field is defined asString!
at lines 779 and 786, whereas other ID fields use theID!
type. For consistency and to leverage GraphQL's built-in ID type, it's recommended to useID!
for all identifier fields.Please update the field type to
ID!
.- organizationId: String! + organizationId: ID!- organizationId: String! + organizationId: ID!Also applies to: 786-786
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
⛔ Files ignored due to path filters (75)
package-lock.json
is excluded by!**/package-lock.json
public/favicon.ico
is excluded by!**/*.ico
public/favicon_palisadoes.ico
is excluded by!**/*.ico
public/images/logo512.png
is excluded by!**/*.png
public/images/svg/angleDown.svg
is excluded by!**/*.svg
public/images/svg/arrow-left.svg
is excluded by!**/*.svg
public/images/svg/arrow-right.svg
is excluded by!**/*.svg
public/images/svg/attendees.svg
is excluded by!**/*.svg
public/images/svg/feedback.svg
is excluded by!**/*.svg
public/images/svg/profiledefault.svg
is excluded by!**/*.svg
public/images/svg/up-down.svg
is excluded by!**/*.svg
public/logo192.png
is excluded by!**/*.png
public/markdown/images/install1.png
is excluded by!**/*.png
public/markdown/images/install2.png
is excluded by!**/*.png
src/assets/css/app.css.map
is excluded by!**/*.map
src/assets/images/blank.png
is excluded by!**/*.png
src/assets/images/bronze.png
is excluded by!**/*.png
src/assets/images/defaultImg.png
is excluded by!**/*.png
src/assets/images/gold.png
is excluded by!**/*.png
src/assets/images/palisadoes_logo.png
is excluded by!**/*.png
src/assets/images/silver.png
is excluded by!**/*.png
src/assets/images/talawa-logo-600x600.png
is excluded by!**/*.png
src/assets/images/talawa-logo-dark-200x200.png
is excluded by!**/*.png
src/assets/images/talawa-logo-lite-200x200.png
is excluded by!**/*.png
src/assets/svgs/Attendance.svg
is excluded by!**/*.svg
src/assets/svgs/actionItem.svg
is excluded by!**/*.svg
src/assets/svgs/admin.svg
is excluded by!**/*.svg
src/assets/svgs/agenda-category-icon.svg
is excluded by!**/*.svg
src/assets/svgs/agenda-items.svg
is excluded by!**/*.svg
src/assets/svgs/angleRight.svg
is excluded by!**/*.svg
src/assets/svgs/article.svg
is excluded by!**/*.svg
src/assets/svgs/blockUser.svg
is excluded by!**/*.svg
src/assets/svgs/blockedUser.svg
is excluded by!**/*.svg
src/assets/svgs/cardItemDate.svg
is excluded by!**/*.svg
src/assets/svgs/cardItemEvent.svg
is excluded by!**/*.svg
src/assets/svgs/cardItemLocation.svg
is excluded by!**/*.svg
src/assets/svgs/chat.svg
is excluded by!**/*.svg
src/assets/svgs/checkInRegistrants.svg
is excluded by!**/*.svg
src/assets/svgs/dashboard.svg
is excluded by!**/*.svg
src/assets/svgs/date.svg
is excluded by!**/*.svg
src/assets/svgs/event.svg
is excluded by!**/*.svg
src/assets/svgs/events.svg
is excluded by!**/*.svg
src/assets/svgs/flask.svg
is excluded by!**/*.svg
src/assets/svgs/funds.svg
is excluded by!**/*.svg
src/assets/svgs/key.svg
is excluded by!**/*.svg
src/assets/svgs/listEventRegistrants.svg
is excluded by!**/*.svg
src/assets/svgs/location.svg
is excluded by!**/*.svg
src/assets/svgs/logout.svg
is excluded by!**/*.svg
src/assets/svgs/media.svg
is excluded by!**/*.svg
src/assets/svgs/newChat.svg
is excluded by!**/*.svg
src/assets/svgs/organizations.svg
is excluded by!**/*.svg
src/assets/svgs/palisadoes.svg
is excluded by!**/*.svg
src/assets/svgs/people.svg
is excluded by!**/*.svg
src/assets/svgs/plugins.svg
is excluded by!**/*.svg
src/assets/svgs/post.svg
is excluded by!**/*.svg
src/assets/svgs/posts.svg
is excluded by!**/*.svg
src/assets/svgs/requests.svg
is excluded by!**/*.svg
src/assets/svgs/roles.svg
is excluded by!**/*.svg
src/assets/svgs/settings.svg
is excluded by!**/*.svg
src/assets/svgs/social-icons/Facebook-Logo.svg
is excluded by!**/*.svg
src/assets/svgs/social-icons/Github-Logo.svg
is excluded by!**/*.svg
src/assets/svgs/social-icons/Instagram-Logo.svg
is excluded by!**/*.svg
src/assets/svgs/social-icons/Linkedin-Logo.svg
is excluded by!**/*.svg
src/assets/svgs/social-icons/Reddit-Logo.svg
is excluded by!**/*.svg
src/assets/svgs/social-icons/Slack-Logo.svg
is excluded by!**/*.svg
src/assets/svgs/social-icons/X-Logo.svg
is excluded by!**/*.svg
src/assets/svgs/social-icons/Youtube-Logo.svg
is excluded by!**/*.svg
src/assets/svgs/tag.svg
is excluded by!**/*.svg
src/assets/svgs/tags.svg
is excluded by!**/*.svg
src/assets/svgs/talawa.svg
is excluded by!**/*.svg
src/assets/svgs/user.svg
is excluded by!**/*.svg
src/assets/svgs/userEvent.svg
is excluded by!**/*.svg
src/assets/svgs/users.svg
is excluded by!**/*.svg
src/assets/svgs/venues.svg
is excluded by!**/*.svg
src/assets/talawa-logo-lite-200x200.png
is excluded by!**/*.png
📒 Files selected for processing (82)
.coderabbit.yaml
(1 hunks).env.example
(1 hunks).eslintignore
(1 hunks).eslintrc.json
(4 hunks).github/ISSUE_TEMPLATE/bug-report.md
(2 hunks).github/ISSUE_TEMPLATE/feature-request.md
(2 hunks).github/dependabot.yaml
(1 hunks).github/pull_request_template.md
(2 hunks).github/workflows/README.md
(1 hunks).github/workflows/auto-label.json5
(1 hunks).github/workflows/check-tsdoc.js
(1 hunks).github/workflows/ci.yml
(0 hunks).github/workflows/codeql-analysis.yml
(0 hunks).github/workflows/codeql-codescan.yml
(1 hunks).github/workflows/compare_translations.py
(1 hunks).github/workflows/countline.py
(1 hunks).github/workflows/eslint_disable_check.py
(1 hunks).github/workflows/issue.yml
(1 hunks).github/workflows/linter.yml
(0 hunks).github/workflows/npm-publish.yml
(0 hunks).github/workflows/pull-request-target.yml
(1 hunks).github/workflows/pull-request.yml
(1 hunks).github/workflows/push.yml
(1 hunks).github/workflows/stale.yml
(1 hunks).github/workflows/talawa_admin_md_mdx_format_adjuster.py
(1 hunks).gitignore
(2 hunks).husky/post-merge
(1 hunks).husky/pre-commit
(1 hunks).lintstagedrc.json
(1 hunks).node-version
(1 hunks).prettierignore
(1 hunks).prettierrc
(1 hunks)CODEOWNERS
(1 hunks)CODE_OF_CONDUCT.md
(1 hunks)CODE_STYLE.md
(1 hunks)CONTRIBUTING.md
(2 hunks)DOCUMENTATION.md
(1 hunks)Docker_Container/.dockerignore
(0 hunks)Docker_Container/README.md
(0 hunks)Docker_Container/docker-compose.yml
(0 hunks)Docker_Container/dockerfile
(0 hunks)INSTALLATION.md
(1 hunks)ISSUE_GUIDELINES.md
(1 hunks)ISSUE_TEMPLATE.md
(0 hunks)PR-guidelines.md
(0 hunks)PR_GUIDELINES.md
(1 hunks)PULL_REQUEST_TEMPLATE.md
(0 hunks)README.md
(3 hunks)config/babel.config.cjs
(1 hunks)config/vite.config.ts
(1 hunks)index.html
(1 hunks)issue-guidelines.md
(0 hunks)jest-preview.config.ts
(1 hunks)jest.config.js
(1 hunks)package.json
(2 hunks)public/index.html
(0 hunks)public/locales/en/common.json
(1 hunks)public/locales/en/errors.json
(1 hunks)public/locales/en/translation.json
(1 hunks)public/locales/fr/common.json
(1 hunks)public/locales/fr/errors.json
(1 hunks)public/locales/fr/translation.json
(1 hunks)public/locales/hi/common.json
(1 hunks)public/locales/hi/errors.json
(1 hunks)public/locales/hi/translation.json
(1 hunks)public/locales/sp/common.json
(1 hunks)public/locales/sp/errors.json
(1 hunks)public/locales/sp/translation.json
(1 hunks)public/locales/zh/common.json
(1 hunks)public/locales/zh/errors.json
(1 hunks)public/locales/zh/translation.json
(1 hunks)public/manifest.json
(1 hunks)schema.graphql
(1 hunks)scripts/__mocks__/@dicebear/collection.ts
(1 hunks)scripts/__mocks__/@dicebear/core.ts
(1 hunks)scripts/__mocks__/@pdfme/generator.test.ts
(1 hunks)scripts/__mocks__/@pdfme/generator.ts
(1 hunks)scripts/__mocks__/fileMock.js
(1 hunks)scripts/custom-test-env.js
(1 hunks)scripts/githooks/check-localstorage-usage.js
(1 hunks)scripts/githooks/update-toc.js
(1 hunks)setup.ts
(1 hunks)
⛔ Files not processed due to max files limit (28)
- src/App.test.tsx
- src/App.tsx
- src/Constant/constant.spec.ts
- src/Constant/constant.ts
- src/GraphQl/Mutations/ActionItemCategoryMutations.ts
- src/GraphQl/Mutations/ActionItemMutations.ts
- src/GraphQl/Mutations/AgendaCategoryMutations.ts
- src/GraphQl/Mutations/AgendaItemMutations.ts
- src/GraphQl/Mutations/CampaignMutation.ts
- src/GraphQl/Mutations/CommentMutations.ts
- src/GraphQl/Mutations/EventAttendeeMutations.ts
- src/GraphQl/Mutations/EventVolunteerMutation.ts
- src/GraphQl/Mutations/FundMutation.ts
- src/GraphQl/Mutations/OrganizationMutations.ts
- src/GraphQl/Mutations/PledgeMutation.ts
- src/GraphQl/Mutations/TagMutations.ts
- src/GraphQl/Mutations/VenueMutations.ts
- src/GraphQl/Mutations/mutations.ts
- src/GraphQl/Queries/ActionItemCategoryQueries.ts
- src/GraphQl/Queries/ActionItemQueries.ts
- src/GraphQl/Queries/AgendaCategoryQueries.ts
- src/GraphQl/Queries/AgendaItemQueries.ts
- src/GraphQl/Queries/EventVolunteerQueries.ts
- src/GraphQl/Queries/OrganizationQueries.ts
- src/GraphQl/Queries/PlugInQueries.ts
- src/GraphQl/Queries/Queries.ts
- src/GraphQl/Queries/fundQueries.ts
- src/GraphQl/Queries/userTagQueries.ts
💤 Files with no reviewable changes (13)
- .github/workflows/ci.yml
- .github/workflows/codeql-analysis.yml
- .github/workflows/linter.yml
- .github/workflows/npm-publish.yml
- Docker_Container/.dockerignore
- Docker_Container/README.md
- Docker_Container/docker-compose.yml
- Docker_Container/dockerfile
- ISSUE_TEMPLATE.md
- PR-guidelines.md
- PULL_REQUEST_TEMPLATE.md
- issue-guidelines.md
- public/index.html
✅ Files skipped from review due to trivial changes (33)
- .coderabbit.yaml
- .env.example
- .eslintignore
- .github/dependabot.yaml
- .github/workflows/auto-label.json5
- .gitignore
- .husky/pre-commit
- .lintstagedrc.json
- .node-version
- .prettierignore
- .prettierrc
- CODEOWNERS
- config/babel.config.cjs
- config/vite.config.ts
- index.html
- jest-preview.config.ts
- public/locales/en/common.json
- public/locales/en/errors.json
- public/locales/en/translation.json
- public/locales/fr/common.json
- public/locales/fr/errors.json
- public/locales/fr/translation.json
- public/locales/hi/common.json
- public/locales/hi/translation.json
- public/locales/sp/errors.json
- public/locales/sp/translation.json
- public/locales/zh/common.json
- public/locales/zh/errors.json
- public/locales/zh/translation.json
- scripts/mocks/@dicebear/collection.ts
- scripts/mocks/@dicebear/core.ts
- scripts/mocks/fileMock.js
- scripts/githooks/update-toc.js
🧰 Additional context used
🪛 Markdownlint (0.35.0)
.github/ISSUE_TEMPLATE/bug-report.md
36-36: null
Bare URL used
(MD034, no-bare-urls)
33-33: null
Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
.github/ISSUE_TEMPLATE/feature-request.md
28-28: null
Bare URL used
(MD034, no-bare-urls)
25-25: null
Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
CODE_STYLE.md
128-128: Expected: 0; Actual: 2
Unordered list indentation
(MD007, ul-indent)
129-129: Expected: 0; Actual: 2
Unordered list indentation
(MD007, ul-indent)
130-130: Expected: 0; Actual: 2
Unordered list indentation
(MD007, ul-indent)
131-131: Expected: 2; Actual: 4
Unordered list indentation
(MD007, ul-indent)
132-132: Expected: 2; Actual: 4
Unordered list indentation
(MD007, ul-indent)
133-133: Expected: 2; Actual: 4
Unordered list indentation
(MD007, ul-indent)
134-134: Expected: 2; Actual: 4
Unordered list indentation
(MD007, ul-indent)
135-135: Expected: 2; Actual: 4
Unordered list indentation
(MD007, ul-indent)
136-136: Expected: 2; Actual: 4
Unordered list indentation
(MD007, ul-indent)
137-137: Expected: 2; Actual: 4
Unordered list indentation
(MD007, ul-indent)
164-164: Expected: 0; Actual: 2
Unordered list indentation
(MD007, ul-indent)
165-165: Expected: 0; Actual: 2
Unordered list indentation
(MD007, ul-indent)
166-166: Expected: 0; Actual: 2
Unordered list indentation
(MD007, ul-indent)
57-57: null
Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
73-73: null
Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
75-75: null
Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
92-92: null
Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
190-190: null
Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
230-230: null
Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
58-58: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
65-65: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
78-78: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
95-95: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
158-158: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
173-173: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
181-181: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
239-239: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
245-245: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
251-251: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
CONTRIBUTING.md
104-104: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
113-113: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
128-128: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
139-139: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
143-143: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
158-158: null
No empty links
(MD042, no-empty-links)
159-159: null
No empty links
(MD042, no-empty-links)
161-161: null
No empty links
(MD042, no-empty-links)
DOCUMENTATION.md
25-25: null
Bare URL used
(MD034, no-bare-urls)
INSTALLATION.md
321-321: Expected: h3; Actual: h4
Heading levels should only increment by one level at a time
(MD001, heading-increment)
33-33: Expected: 4; Actual: 6
Unordered list indentation
(MD007, ul-indent)
34-34: Expected: 4; Actual: 6
Unordered list indentation
(MD007, ul-indent)
95-95: null
Dollar signs used before commands without showing output
(MD014, commands-show-output)
105-105: null
Bare URL used
(MD034, no-bare-urls)
142-142: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
154-154: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
164-164: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
188-188: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
194-194: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
200-200: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
208-208: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
214-214: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
220-220: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
240-240: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
256-256: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
264-264: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
270-270: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
292-292: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
300-300: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
313-313: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
327-327: Expected: fenced; Actual: indented
Code block style
(MD046, code-block-style)
335-335: Expected: fenced; Actual: indented
Code block style
(MD046, code-block-style)
178-178: Expected: #setting-up-react_app_talawa_url-in-env-file; Actual: #setting-up-REACT_APP_TALAWA_URL-in-env-file
Link fragments should be valid
(MD051, link-fragments)
178-178: Expected: #setting-up-react_app_recaptcha_site_key-in-env-file; Actual: #setting-up-REACT_APP_RECAPTCHA_SITE_KEY-in-env-file
Link fragments should be valid
(MD051, link-fragments)
PR_GUIDELINES.md
31-31: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
39-39: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
README.md
53-53: null
Multiple spaces after hash on atx style heading
(MD019, no-multiple-space-atx)
🪛 LanguageTool
.github/workflows/README.md
[uncategorized] ~13-~13: Possible missing comma found.
Context: ...ding on the type of workflow. Whenever possible you must ensure that: 1. The file roles...
(AI_HYDRA_LEO_MISSING_COMMA)
[duplication] ~24-~24: Possible typo: you repeated a word
Context: ...ors: 1. Place all actions related to to this in the pull-request-target.yml
f...
(ENGLISH_WORD_REPEAT_RULE)
[uncategorized] ~35-~35: The abbreviation “e.g.” (= for example) requires two periods.
Context: ...orrectly if they have a dedicated file (eg. CodeQL
) ## Scripts Follow these gui...
(E_G)
CODE_OF_CONDUCT.md
[duplication] ~11-~11: Possible typo: you repeated a word
Context: ...-responsibilities) - Scope - Enforcement - Enforcement Guidelines ...
(ENGLISH_WORD_REPEAT_RULE)
CODE_STYLE.md
[style] ~127-~127: Consider removing “of” to be more concise
Context: ...tories of src
assets
- This houses all of the static assets used in the project - `...
(ALL_OF_THE)
[style] ~128-~128: Consider removing “of” to be more concise
Context: ... in the project - css
- This houses all of the css files used in the project - `imag...
(ALL_OF_THE)
[style] ~129-~129: Consider removing “of” to be more concise
Context: ... the project - images
- This houses all of the images used in the project - scss
-...
(ALL_OF_THE)
[style] ~130-~130: Consider removing “of” to be more concise
Context: ...in the project - scss
- This houses all of the scss files used in the project - `c...
(ALL_OF_THE)
[grammar] ~134-~134: The singular proper name ‘Sass’ must be used with a third-person or a past tense verb.
Context: ...rms - _talawa.scss
- Partial Sass file for Talawa - _utilities.scss
- Pa...
(HE_VERB_AGR)
[grammar] ~135-~135: The singular proper name ‘Sass’ must be used with a third-person or a past tense verb.
Context: ... - _utilities.scss
- Partial Sass file for utilities - _variables.scss
-...
(HE_VERB_AGR)
[grammar] ~136-~136: The singular proper name ‘Sass’ must be used with a third-person or a past tense verb.
Context: ... - _variables.scss
- Partial Sass file for variables - app.scss
- Main S...
(HE_VERB_AGR)
[style] ~141-~141: Consider removing “of” to be more concise
Context: ...views/screens Constant
- This houses all of the constants used in the project `GraphQl...
(ALL_OF_THE)
[style] ~143-~143: Consider removing “of” to be more concise
Context: ...in the project GraphQl
- This houses all of the GraphQL queries and mutations used in t...
(ALL_OF_THE)
[style] ~145-~145: Consider removing “of” to be more concise
Context: ...in the project screens
- This houses all of the views/screens to be navigated through i...
(ALL_OF_THE)
[style] ~147-~147: Consider removing “of” to be more concise
Context: ... in Talawa-Admin state
- This houses all of the state management code for the project ...
(ALL_OF_THE)
[uncategorized] ~165-~165: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...following order: - React imports - Third party imports - Local imports If there is...
(EN_COMPOUND_ADJECTIVE_INTERNAL)
CONTRIBUTING.md
[style] ~27-~27: This expression usually appears with a “please” in front of it.
Context: ...DUCT.md) to understand what this means. Let us know immediately if you have unacceptable ex...
(INSERT_PLEASE)
[uncategorized] ~34-~34: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...)" videos are extremely helpful for new open source contributors. ## Ways to Contribute I...
(EN_COMPOUND_ADJECTIVE_INTERNAL)
[grammar] ~62-~62: A determiner may be missing.
Context: ...l Request guidelines](PR_GUIDELINES.md) is best resource to follow to start working on ...
(THE_SUPERLATIVE)
[uncategorized] ~68-~68: Loose punctuation mark.
Context: ...ushed to the main
branch: - develop
: For unstable code and bug fixing - `mai...
(UNLIKELY_OPENING_PUNCTUATION)
[uncategorized] ~69-~69: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...d bug fixing - main
: Where the stable production ready code lies. This is our default branch. ...
(EN_COMPOUND_ADJECTIVE_INTERNAL)
[typographical] ~73-~73: Consider adding a comma.
Context: ...ultiple developers are working on issues there is bound to be a conflict of interest (...
(IF_THERE_COMMA)
[typographical] ~73-~73: Consider adding a comma after ‘Usually’ for more clarity.
Context: ...licts) among issues, PRs or even ideas. Usually these conflicts are resolved in a **Fir...
(RB_LY_COMMA)
[grammar] ~73-~73: Did you mean “served” (as in the idiom ‘first come, first served’)?
Context: ...ts are resolved in a First Come First Serve basis however there are certain excep...
(FIRST_SERVED)
[grammar] ~75-~75: Did you mean the communication tool “Slack” (= proper noun, capitalized)?
Context: ...tant to ask the author of the PR in the slack channel or in their PRs or issues thems...
(ON_SKYPE)
[style] ~77-~77: ‘Last but not the least’ might be wordy. Consider a shorter alternative.
Context: ...y and test that function when needed. - Last but not the least, communication is important make sure t...
(EN_WORDINESS_PREMIUM_LAST_BUT_NOT_THE_LEAST)
[grammar] ~77-~77: It seems that “to” is missing before the verb.
Context: ...t the least, communication is important make sure to talk to other contributors, in ...
(MISSING_TO_BETWEEN_BE_AND_VB)
[grammar] ~77-~77: Did you mean the communication tool “Slack” (= proper noun, capitalized)?
Context: ... other contributors, in these cases, in slack channel or in a issue/PR thread. - As a...
(ON_SKYPE)
[misspelling] ~77-~77: Use “an” instead of ‘a’ if the following word starts with a vowel sound, e.g. ‘an article’, ‘an hour’.
Context: ... in these cases, in slack channel or in a issue/PR thread. - As a last resort the...
(EN_A_VS_AN)
[typographical] ~78-~78: It appears that a comma is missing.
Context: ...el or in a issue/PR thread. - As a last resort the Admins would be responsible for dec...
(DURING_THAT_TIME_COMMA)
[grammar] ~135-~135: The operating system from Apple is written “macOS”.
Context: ...r packages can be found for Windows and MacOS. 6. The currently acceptable c...
(MAC_OS)
[uncategorized] ~165-~165: Possible missing comma found.
Context: ...using: git push origin <branch_name>
.(Here branch name must be name of the branch ...
(AI_HYDRA_LEO_MISSING_COMMA)
[uncategorized] ~165-~165: Possible missing article found.
Context: ...: git push origin <branch_name>
.(Here branch name must be name of the branch you wan...
(AI_HYDRA_LEO_MISSING_THE)
[uncategorized] ~165-~165: Possible missing article found.
Context: ...branch_name>`.(Here branch name must be name of the branch you want to push the chan...
(AI_HYDRA_LEO_MISSING_THE)
[grammar] ~178-~178: Did you mean the communication tool “Slack” (= proper noun, capitalized)?
Context: ...dation/talawa) for the link to join our slack channel. 1. We also have a technical em...
(ON_SKYPE)
DOCUMENTATION.md
[grammar] ~25-~25: The modal verb ‘should’ requires the verb’s base form.
Context: ...f docs.talawa.io
should automatically launched in your browser at http://localhost:300...
(MD_BASEFORM)
[grammar] ~26-~26: Did you mean the formatting language “Markdown” (= proper noun)?
Context: ...ttp://localhost:3000/ 1. Add/modify the markdown documents to the docs/
directory of t...
(MARKDOWN_NNP)
[uncategorized] ~32-~32: The preposition “to” seems more likely in this position.
Context: ... PLEASE do not add markdown files in this repository. Add them to `talawa-do...
(AI_EN_LECTOR_REPLACEMENT_PREPOSITION)
INSTALLATION.md
[duplication] ~25-~25: Possible typo: you repeated a word
Context: ...](#running-talawa-admin) - Accessing Talawa-Admin - [Talawa-Admin Registration](#talawa-admin-registratio...
(ENGLISH_WORD_REPEAT_RULE)
[typographical] ~55-~55: It appears that a comma is missing.
Context: ... that follow. # Prerequisites In this section we'll explain how to set up all the pre...
(DURING_THAT_TIME_COMMA)
[uncategorized] ~61-~61: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: .... Basic git
knowledge is required for open source contribution so make sure you're comfor...
(EN_COMPOUND_ADJECTIVE_INTERNAL)
[grammar] ~67-~67: The word “setup” is a noun. The verb is spelled with a space.
Context: ...avigate to the folder where you want to setup the repository. 2. Open a cmd
(Window...
(NOUN_VERB_CONFUSION)
[grammar] ~68-~68: The operating system from Apple is written “macOS”.
Context: ...cmd
(Windows) or terminal
(Linux or MacOS) session in this folder. 1. An easy ...
(MAC_OS)
[uncategorized] ~70-~70: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...e option based on your OS. 3. For Our Open Source Contributor Software Developers: ...
(EN_COMPOUND_ADJECTIVE_INTERNAL)
[grammar] ~102-~102: The operating system from Apple is written “macOS”.
Context: ...node.jspackages in Windows, Linux and MacOS. 1. For Windows: 1. first install
...
(MAC_OS)
[duplication] ~116-~116: Possible typo: you repeated a word
Context: ... 5. Save the document. 6. Exit notepad
7. Exit PowerShell 8. This will ensure...
(ENGLISH_WORD_REPEAT_RULE)
[grammar] ~119-~119: The operating system from Apple is written “macOS”.
Context: ...t version of node.js
2. For Linux and MacOS, use the terminal window. 1. install...
(MAC_OS)
[grammar] ~123-~123: The word “setup” is a noun. The verb is spelled with a white space.
Context: ... the respective recommended commands to setup your node environment 3. This wil...
(NOUN_VERB_CONFUSION)
[uncategorized] ~162-~162: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...at runtime. It is not a part of the repo and you will have to create it. For a sampl...
(COMMA_COMPOUND_SENTENCE)
[grammar] ~228-~228: The word “setup” is a noun. The verb is spelled with a space.
Context: ...E_KEY in .env file You may not want to setup reCAPTCHA since the project will still ...
(NOUN_VERB_CONFUSION)
[grammar] ~232-~232: The word “setup” is a noun. The verb is spelled with a space.
Context: ...ad the following steps. If you want to setup Google reCAPTCHA now, you may refer to ...
(NOUN_VERB_CONFUSION)
[typographical] ~246-~246: Except for inverted sentences, ‘need them’ requires a question mark at the end of the sentence.
Context: ...t need them or want to keep the console clean # Post Configuration Steps It's now t...
(MD_PRP_QUESTION_MARK)
[uncategorized] ~261-~261: Did you mean: “By default,”?
Context: ...n serve ``` ## Accessing Talawa-Admin By default talawa-admin
runs on port `4321` on y...
(BY_DEFAULT_COMMA)
[grammar] ~311-~311: The word ‘lint’ is a noun or an adjective. A verb or adverb is missing or misspelled here, or maybe a comma is missing.
Context: ...w.webp) ## Linting code files You can lint your code files using this command: ``...
(PRP_MD_NN)
ISSUE_GUIDELINES.md
[uncategorized] ~2-~2: Loose punctuation mark.
Context: # Issue Report Guidelines 👍🎉 First off, thanks for taking t...
(UNLIKELY_OPENING_PUNCTUATION)
[style] ~4-~4: Consider a shorter alternative to avoid wordiness.
Context: ...ing the time to contribute! 🎉👍 In order to give everyone a chance to submit a issu...
(IN_ORDER_TO_PREMIUM)
[misspelling] ~5-~5: Use “an” instead of ‘a’ if the following word starts with a vowel sound, e.g. ‘an article’, ‘an hour’.
Context: ...der to give everyone a chance to submit a issues reports and contribute to the Ta...
(EN_A_VS_AN)
[typographical] ~24-~24: Consider adding a comma here.
Context: ...> ___ ## Issue Management In all cases please use the [GitHub open issue search](http...
(PLEASE_COMMA)
[uncategorized] ~27-~27: A comma might be missing here.
Context: ...reported. ### New Issues To create new issues follow these steps: 1. Your issue may ...
(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)
[style] ~30-~30: Consider using a different verb for a more formal wording.
Context: .... 1. Verify whether the issue has been fixed by trying to reproduce it using the lat...
(FIX_RESOLVE)
[style] ~35-~35: The wording of this phrase can be improved.
Context: ...lcome contributors who find new ways to make the code better. ### Existing Issues You can also be ...
(MAKE_STYLE_BETTER)
[grammar] ~44-~44: Did you mean the communication tool “Slack” (= proper noun, capitalized)?
Context: ...butors to assign it to you in #talawa
slack channel. Working on these types of exi...
(ON_SKYPE)
[grammar] ~53-~53: Did you mean the communication tool “Slack” (= proper noun, capitalized)?
Context: ...ew Issues 1. Join our #talawa-github
slack channel for automatic issue and pull re...
(ON_SKYPE)
[grammar] ~57-~57: Did you mean the communication tool “Slack” (= proper noun, capitalized)?
Context: ...lines 1. Discuss issues in our various slack channels when necessary 2. Please do no...
(ON_SKYPE)
[typographical] ~57-~57: Consider adding a comma here.
Context: ...ur various slack channels when necessary 2. Please do not derail or troll issues. 3. Keep...
(PLEASE_COMMA)
PR_GUIDELINES.md
[uncategorized] ~2-~2: Loose punctuation mark.
Context: # Pull Request Guidelines 👍🎉 First off, thanks for taking t...
(UNLIKELY_OPENING_PUNCTUATION)
[style] ~4-~4: Consider a shorter alternative to avoid wordiness.
Context: ...ing the time to contribute! 🎉👍 In order to give everyone a chance to submit a pull...
(IN_ORDER_TO_PREMIUM)
[style] ~46-~46: Style-wise, it’s not ideal to insert an adverb (‘manually’) in the middle of an infinitive construction (‘to test’). Try moving the adverb to avoid split infinitives.
Context: ..., you'll need to tell us what steps you followed to manually test your changes. 1. Please read our [CONTRIBUTING.md](C...
(SPLIT_INFINITIVE)
[style] ~56-~56: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase.
Context: ...o be closed. The quality of our code is very important to us. Therefore we make experienced ma...
(EN_WEAK_ADJECTIVE)
[uncategorized] ~56-~56: A comma may be missing after the conjunctive/linking adverb ‘Therefore’.
Context: ...ty of our code is very important to us. Therefore we make experienced maintainers of our ...
(SENT_START_CONJUNCTIVE_LINKING_ADVERB_COMMA)
[style] ~59-~59: Consider using a different verb for a more formal wording.
Context: ...check if all tests are passing; if not, fix the issues and then create a pull reque...
(FIX_RESOLVE)
[style] ~64-~64: This expression is wordy and overused. Consider replacing it with a more concise and formal alternative.
Context: ...wer your questions, but we'll get to it sooner or later. @mentioning someone just adds to the p...
(SOONER_OR_LATER)
[uncategorized] ~64-~64: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...adds to the pile of notifications we get and it won't make us look at your issue fas...
(COMMA_COMPOUND_SENTENCE)
[style] ~65-~65: Consider shortening or rephrasing this to strengthen your wording.
Context: ...ue faster. 1. Do not force push. If you make changes to your pull request, please simply add a ...
(MAKE_CHANGES)
README.md
[uncategorized] ~56-~56: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...)" videos are extremely helpful for new open source contributors.
(EN_COMPOUND_ADJECTIVE_INTERNAL)
🪛 yamllint (1.29.0-1)
.github/workflows/codeql-codescan.yml
[error] 6-6: trailing spaces
(trailing-spaces)
[error] 17-17: trailing spaces
(trailing-spaces)
[error] 20-20: trailing spaces
(trailing-spaces)
[warning] 31-31: wrong indentation: expected 6 but found 7
(indentation)
[warning] 37-37: wrong indentation: expected 11 but found 10
(indentation)
.github/workflows/issue.yml
[error] 6-6: trailing spaces
(trailing-spaces)
[warning] 15-15: wrong indentation: expected 4 but found 6
(indentation)
[warning] 66-66: too many blank lines
(1 > 0) (empty-lines)
.github/workflows/pull-request-target.yml
[error] 6-6: trailing spaces
(trailing-spaces)
[error] 13-13: trailing spaces
(trailing-spaces)
[error] 15-15: trailing spaces
(trailing-spaces)
[error] 36-36: trailing spaces
(trailing-spaces)
[error] 42-42: trailing spaces
(trailing-spaces)
[error] 67-67: trailing spaces
(trailing-spaces)
.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] 126-126: trailing spaces
(trailing-spaces)
[error] 129-129: trailing spaces
(trailing-spaces)
[error] 150-150: trailing spaces
(trailing-spaces)
[error] 157-157: trailing spaces
(trailing-spaces)
[error] 197-197: trailing spaces
(trailing-spaces)
[error] 201-201: trailing spaces
(trailing-spaces)
[error] 204-204: trailing spaces
(trailing-spaces)
[error] 205-205: trailing spaces
(trailing-spaces)
[error] 213-213: trailing spaces
(trailing-spaces)
[error] 243-243: trailing spaces
(trailing-spaces)
[error] 249-249: trailing spaces
(trailing-spaces)
[error] 251-251: trailing spaces
(trailing-spaces)
.github/workflows/push.yml
[error] 6-6: trailing spaces
(trailing-spaces)
[error] 17-17: trailing spaces
(trailing-spaces)
[error] 18-18: trailing spaces
(trailing-spaces)
[warning] 20-20: wrong indentation: expected 2 but found 4
(indentation)
[error] 21-21: trailing spaces
(trailing-spaces)
[error] 50-50: trailing spaces
(trailing-spaces)
[warning] 62-62: too many blank lines
(1 > 0) (empty-lines)
.github/workflows/stale.yml
[error] 6-6: trailing spaces
(trailing-spaces)
[error] 20-20: trailing spaces
(trailing-spaces)
[error] 21-21: trailing spaces
(trailing-spaces)
🪛 Ruff (0.7.0)
.github/workflows/compare_translations.py
135-135: Within an except
clause, raise exceptions with raise ... from err
or raise ... from None
to distinguish them from errors in exception handling
(B904)
.github/workflows/eslint_disable_check.py
61-61: Loop control variable dirs
not used within loop body
Rename unused dirs
to _dirs
(B007)
🪛 actionlint (1.7.3)
.github/workflows/pull-request.yml
61-61: property "changed_files" is not defined in object type {changed-files: {conclusion: string; outcome: string; outputs: {string => string}}}
(expression)
62-62: shellcheck reported issue in this script: SC2086:info:1:12: Double quote to prevent globbing and word splitting
(shellcheck)
79-79: "github.event.pull_request.head.ref" is potentially untrusted. avoid using it directly in inline scripts. instead, pass it through an environment variable. see https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions for more details
(expression)
207-207: shellcheck reported issue in this script: SC2043:warning:1:13: This loop will only ever run once. Bad quoting or missing glob/expansion?
(shellcheck)
🔇 Additional comments (36)
public/locales/hi/errors.json (1)
4-4
: Verify placeholder usage consistency across languages
The messages use placeholders like {{msg}}
and {{entity}}
. Let's verify that these are used consistently across other language files.
Also applies to: 9-9, 10-10
✅ Verification successful
Placeholder usage is consistent across all language files
The verification shows that all language files (en, fr, zh, sp, hi) consistently use:
{{msg}}
in the "unknownError" message{{entity}}
in both "errorOccurredCouldntCreate" and "errorLoading" messages
Each language file contains exactly 3 placeholders, maintaining perfect consistency across translations.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check placeholder consistency across language files
# Find all error.json files and check for placeholder patterns
echo "Checking placeholder consistency across language files:"
fd "errors.json" public/locales -x grep -H "{{[^}]*}}"
# Compare placeholder counts across files
echo -e "\nComparing placeholder counts:"
for lang_dir in public/locales/*; do
if [ -f "$lang_dir/errors.json" ]; then
lang=$(basename "$lang_dir")
count=$(grep -o "{{[^}]*}}" "$lang_dir/errors.json" | wc -l)
echo "$lang: $count placeholders"
fi
done
Length of output: 2904
public/manifest.json (1)
16-16
: Verify logo512.png location
The icon path has been updated to "images/logo512.png". Let's verify that the file exists at this new location to prevent 404 errors.
✅ Verification successful
Path to logo512.png is valid and properly referenced
The verification confirms that:
- The file exists at the new location:
public/images/logo512.png
- The only reference to
logo512.png
is inmanifest.json
, indicating no other files need updating
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check if the logo512.png exists in the new location
# and if there are any other references to the old path that need updating
# Check if file exists in new location
if [ -f "public/images/logo512.png" ]; then
echo "✓ File exists at new location: public/images/logo512.png"
else
echo "✗ File not found at: public/images/logo512.png"
fi
# Check for any references to the old path
rg -l "logo512.png" --type html --type js --type json --type ts
Length of output: 246
scripts/custom-test-env.js (2)
1-2
: LGTM! Imports are correctly structured.
The imports are properly organized, importing the necessary components for the custom test environment.
1-16
: Verify relationship with @testing-library/user-event upgrade.
This custom test environment seems focused on supporting @pdfme library, but the PR description mentions upgrading @testing-library/user-event. Please clarify if this environment setup is related to the package upgrade or if it should be in a separate PR.
.github/ISSUE_TEMPLATE/bug-report.md (1)
2-6
: LGTM! Metadata changes improve consistency.
The changes to the metadata fields follow GitHub's conventions with consistent capitalization and lowercase label.
scripts/__mocks__/@pdfme/generator.ts (2)
1-9
: LGTM! Well-structured type definitions
The type definitions are clear and maintain compatibility with the actual package types.
14-22
: Consider enhancing mock fidelity for complex test scenarios
The current implementation provides a basic mock that returns valid Uint8Array
data. While this is sufficient for basic testing, consider these potential enhancements:
- Add validation for template structure beyond just length
- Include PDF-specific markers (like EOF) for more realistic mocking
- Consider reflecting input data in the output for more meaningful tests
However, the current implementation is acceptable if the tests only need to verify the function contract.
scripts/__mocks__/@pdfme/generator.test.ts (2)
1-2
: LGTM! Clean and well-organized imports.
The imports are properly separated between values and types, following TypeScript best practices.
4-4
: LGTM! Clear test suite organization.
The describe block clearly indicates the purpose of testing the mock implementation.
.github/pull_request_template.md (1)
51-51
: Verify the contributing guide path
Let's ensure the contributing guide exists at the specified path.
✅ Verification successful
Contributing guide link is valid ✓
The contributing guide exists at the specified path CONTRIBUTING.md
in the repository root, confirming that the link in the PR template is correct.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Verify the existence of CONTRIBUTING.md file
# Expected: File should exist in the repository root
if [ -f "CONTRIBUTING.md" ]; then
echo "✓ CONTRIBUTING.md exists"
else
echo "✗ CONTRIBUTING.md not found"
fi
Length of output: 87
.github/workflows/stale.yml (2)
14-16
: Verify workflow scheduling coordination
The daily midnight schedule is reasonable, but let's verify it doesn't conflict with other scheduled workflows.
✅ Verification successful
No scheduling conflicts detected in GitHub workflows
The stale workflow's daily midnight schedule (0 0 * * *) is the only scheduled workflow in the repository, so there are no timing conflicts to be concerned about.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Check scheduling of other workflow files
rg -l 'schedule:' .github/workflows/ | xargs rg 'cron:'
Length of output: 75
1-11
: Verify the existence of the referenced README.md file
The header references a README.md file that should define what belongs in this workflow file. Let's verify its existence and content.
✅ Verification successful
The stale.yml workflow file should be renamed to follow the documented naming convention
Based on the README.md content, workflow files should be organized according to specific roles:
issues.yml
for issue-related actionspull-request-target.yml
for first-time contributor PR actionspull-request.yml
for all contributor PR actionspush.yml
for push-related actions
Exceptions are allowed only for:
- Jobs with unique cron schedules
- Jobs with unique path-specific triggers
- Jobs that require dedicated files for functionality
Let's verify if this stale workflow falls under any exceptions:
The stale.yml workflow file is correctly placed as a separate file
The workflow file is properly configured as a standalone file because it falls under the documented exceptions in the README.md. Specifically:
- It uses a unique cron schedule (
"0 0 * * *"
) to run daily at midnight - It performs a specialized task (managing stale issues and PRs) that runs on a schedule
Therefore, it doesn't need to be consolidated into one of the main role-based files (issues.yml, pull-request.yml, etc.).
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Check if README.md exists in the workflows directory and contains relevant content
fd -t f "README.md" .github/workflows -x cat {}
Length of output: 2121
Script:
#!/bin/bash
# Check the stale.yml content for cron schedules or path triggers
cat .github/workflows/stale.yml
Length of output: 1960
🧰 Tools
🪛 yamllint (1.29.0-1)
[error] 6-6: trailing spaces
(trailing-spaces)
.github/workflows/check-tsdoc.js (1)
1-68
: Verify the scope of changes
This new TSDoc validation script appears unrelated to the PR's primary objective of upgrading @testing-library/user-event
. Please clarify why this file is included in this PR or consider moving it to a separate PR to maintain a focused scope of changes.
.github/workflows/push.yml (1)
12-17
: Consider limiting branch triggers for resource optimization
The workflow currently runs on all branches ('**'
). Consider limiting it to specific branches (e.g., main/develop) to optimize CI resources, unless coverage tracking is required for all feature branches.
🧰 Tools
🪛 yamllint (1.29.0-1)
[error] 17-17: trailing spaces
(trailing-spaces)
jest.config.js (3)
2-6
: Remove commented code and verify fetch polyfill configuration.
The configuration switches from react-app-polyfill
to whatwg-fetch
. While this change might be intentional, it's important to verify that all fetch-related tests work correctly with this setup, especially considering the upgrade of @testing-library/user-event
.
Also, please remove the commented-out code if it's no longer needed.
✅ Verification successful
The fetch polyfill configuration is appropriate for the codebase
The switch from react-app-polyfill
to whatwg-fetch
is valid as:
- The codebase extensively uses fetch in tests (45+ test files)
setupTests.ts
properly mocks the global fetch API (global.fetch = jest.fn()
)- The test setup includes all necessary configurations for the testing environment
Please remove the commented-out react-app-polyfill
line as it's no longer needed.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Search for fetch usage in test files
rg -t js -t ts -t jsx -t tsx 'fetch\(' src/ --glob '**/*.{test,spec}.*'
Length of output: 101
Script:
#!/bin/bash
# Search for fetch usage in test files with correct file extensions
rg 'fetch\(' src/ -g '*.test.*' -g '*.spec.*'
# Also check for any test files that might use the fetch API
rg -l 'fetch' src/ -g '*.test.*' -g '*.spec.*'
# Look for setupTests.ts content to understand the test setup
fd setupTests.ts -x cat {}
Length of output: 3715
12-19
: Verify babel configuration and transformer compatibility.
Please ensure that:
- The referenced babel config file exists at './config/babel.config.cjs'
- The transformers are compatible with the upgraded version of @testing-library/user-event
✅ Verification successful
Babel configuration and transformers are properly set up
The verification shows:
- Babel config exists with appropriate presets for React, TypeScript, and modern JavaScript
- All required transformers are installed:
[email protected]
[email protected]
@testing-library/[email protected]
The configuration is compatible with the testing setup and no issues were found.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Check if babel config exists
if [ ! -f "./config/babel.config.cjs" ]; then
echo "Error: babel.config.cjs not found"
exit 1
fi
# Check package.json for transformer dependencies
rg -l "jest-preview" package.json
Length of output: 89
Script:
#!/bin/bash
# Check the content of babel.config.cjs
cat ./config/babel.config.cjs
# Check package.json for relevant dependencies and their versions
rg "jest-preview|babel-jest|@testing-library/user-event" package.json -A 1 -B 1
Length of output: 812
27-35
: Verify mock files existence and necessity.
Please ensure that all referenced mock files exist in the scripts/mocks directory and are necessary for the testing setup.
✅ Verification successful
All mock files are present and justified by actual usage
The verification confirms:
- All mock files exist in their respective directories:
scripts/__mocks__/fileMock.js
scripts/__mocks__/@dicebear/{core.ts,collection.ts}
scripts/__mocks__/@pdfme/generator.ts
- The mocked modules are actively used in the codebase:
@dicebear
modules are used in Avatar component@pdfme
modules are used in CheckIn components- SVG mocking is necessary for handling SVG imports
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Check if all mock files exist
for mock in "@dicebear/core.ts" "@dicebear/collection.ts" "fileMock.js" "@pdfme/generator.ts"; do
if [ ! -f "./scripts/__mocks__/$mock" ]; then
echo "Missing mock file: $mock"
fi
done
# Check if these modules are actually used in tests
rg -t js -t ts -t jsx -t tsx '@dicebear|@pdfme' src/ --glob '**/*.{test,spec}.*'
Length of output: 716
Script:
#!/bin/bash
# Check if mock directories and files exist
ls -la scripts/__mocks__/ 2>/dev/null || echo "Main mocks directory not found"
ls -la scripts/__mocks__/@dicebear/ 2>/dev/null || echo "@dicebear mocks directory not found"
ls -la scripts/__mocks__/@pdfme/ 2>/dev/null || echo "@pdfme mocks directory not found"
# Search for test files using these modules (fixing the file type flags)
rg -t ts -t js '@dicebear|@pdfme' --glob '**/*.{test,spec}.{ts,js}'
# Search for actual usage of these modules in source files
rg -t ts -t js '@dicebear|@pdfme' --glob '!**/*.{test,spec}.{ts,js}'
# Check for SVG imports in test files
rg -t ts -t js '\.svg' --glob '**/*.{test,spec}.{ts,js}'
Length of output: 1991
scripts/githooks/check-localstorage-usage.js (1)
1-9
: LGTM! Clean and effective script setup.
The script setup is well-structured with appropriate imports and clean command-line argument handling.
.github/workflows/talawa_admin_md_mdx_format_adjuster.py (2)
15-17
: LGTM!
The imports are appropriate, minimal, and well-organized.
1-96
: Verify the relationship with package upgrade
This new script appears to be unrelated to the main PR objective of upgrading @testing-library/user-event
. Please clarify why this MDX formatting script is included in this PR.
public/locales/sp/common.json (1)
79-79
: Verify interpolation strings are properly translated
The interpolation variables ({{item}}, {{text}}) are correctly formatted, but ensure the surrounding text is properly translated and maintains proper Spanish grammar:
Also applies to: 83-85
✅ Verification successful
Interpolation strings are properly translated and grammatically correct
After comparing both English and Spanish translations, all interpolation variables are consistently used and the surrounding text maintains proper Spanish grammar and structure. For example:
- "Search results for {{text}}" → "Resultados de búsqueda para {{text}}"
- "{{item}} added Successfully" → "{{item}} agregado con éxito"
- "Remove User from {{org}}" → "Eliminar Usuario de {{org}}"
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Search for other interpolation usage in Spanish translations
rg -g '*.json' -A 1 '{{.*}}' public/locales/sp/
Length of output: 131
Script:
#!/bin/bash
# Search for interpolation usage in Spanish translations with proper regex escaping
rg -g '*.json' '\{\{[^}]+\}\}' public/locales/sp/
Length of output: 1219
Script:
#!/bin/bash
# Let's also check the English translations to compare
rg -g '*.json' '\{\{[^}]+\}\}' public/locales/en/
Length of output: 1184
ISSUE_GUIDELINES.md (2)
7-20
: LGTM! Well-structured table of contents
The table of contents is properly formatted with clear hierarchy and correct markdown link syntax.
48-51
: LGTM! Clear feature request guidelines
The section provides clear guidance on submitting feature requests with appropriate emphasis on project scope and context requirements.
README.md (2)
24-32
: LGTM! Well-structured table of contents
The table of contents is properly implemented using HTML comments for markers, making it maintainable and compatible with automatic TOC generators.
45-51
: Verify the existence of all referenced documentation files
The documentation structure looks good, but let's verify that all referenced files exist in the repository.
✅ Verification successful
All referenced documentation files are present and correctly linked
The verification confirms that all documentation files mentioned in the README.md exist in the repository:
- INSTALLATION.md
- CONTRIBUTING.md
- CODE_OF_CONDUCT.md
- ISSUE_GUIDELINES.md
- PR_GUIDELINES.md
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Check if all referenced documentation files exist
files=(
"INSTALLATION.md"
"CONTRIBUTING.md"
"CODE_OF_CONDUCT.md"
"ISSUE_GUIDELINES.md"
"PR_GUIDELINES.md"
)
for file in "${files[@]}"; do
if [ ! -f "$file" ]; then
echo "Missing file: $file"
fi
done
Length of output: 420
Script:
#!/bin/bash
# Let's use fd to find these files as they might be in subdirectories
echo "Searching for documentation files:"
fd -t f -i "installation.md|contributing.md|code_of_conduct.md|issue_guidelines.md|pr_guidelines.md"
echo -e "\nChecking README.md content for any alternative paths:"
rg -i "installation\.md|contributing\.md|code_of_conduct\.md|issue_guidelines\.md|pr_guidelines\.md" README.md
Length of output: 1093
.eslintrc.json (3)
4-4
: LGTM: Environment and extends configuration is well structured
The environment configuration properly includes Node.js support, and the extends section correctly layers TypeScript and Prettier configurations.
Also applies to: 14-16
42-42
: Consider gradual adoption of strict TypeScript rules
Several TypeScript rules are set to "error" which might be too strict for an initial migration:
explicit-module-boundary-types
ban-ts-comment
no-explicit-any
- Multiple strict type assertion rules
Consider a phased approach by temporarily setting some of these rules to "warn" to ease the transition.
Let's check the current TypeScript usage in the codebase:
Also applies to: 57-64
Line range hint 1-142
: Verify the scope of ESLint changes
These extensive ESLint changes seem to go beyond the stated PR objective of upgrading @testing-library/user-event
. Please clarify if these changes are necessary for the package upgrade or if they should be in a separate PR.
Let's check if these changes are related to the package upgrade:
CODE_OF_CONDUCT.md (1)
3-20
: LGTM! Well-structured table of contents.
The addition of a table of contents with proper markdown anchors improves document navigation. The implementation follows markdown best practices using HTML comments for TOC markers.
🧰 Tools
🪛 LanguageTool
[duplication] ~11-~11: Possible typo: you repeated a word
Context: ...-responsibilities) - Scope - Enforcement - Enforcement Guidelines ...
(ENGLISH_WORD_REPEAT_RULE)
package.json (3)
117-130
: Verify TypeScript types compatibility
The addition of multiple @types packages requires verification of TypeScript configuration and type compatibility.
✅ Verification successful
TypeScript configuration and types are compatible
The TypeScript configuration is properly set up with TypeScript v5.6.3 and the added type definitions are compatible with the project's configuration. The tsconfig.json
has appropriate compiler options including strict type checking and React JSX support. The added @types
packages in package.json
are all from DefinitelyTyped and follow semantic versioning, ensuring compatibility.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Check TypeScript config
test -f "tsconfig.json" && echo "TypeScript config exists" || echo "Missing TypeScript config"
# Look for any type errors in the codebase
fd -e ts -e tsx | xargs -I {} sh -c 'echo "Checking {}..." && tsc {} --noEmit --jsx react'
Length of output: 44413
Script:
#!/bin/bash
# Check TypeScript config content
test -f tsconfig.json && cat tsconfig.json
# Check package.json for TypeScript version and related configs
test -f package.json && cat package.json | grep -A 2 -B 2 '"typescript":'
Length of output: 895
5-6
: Verify ESM compatibility across the codebase
The addition of "type": "module"
indicates a migration to ES modules. This change requires verification of import statements across the codebase.
✅ Verification successful
Based on the results, I can now provide a final response:
ESM migration appears to be properly implemented across the codebase
The codebase shows consistent usage of ESM-style imports throughout:
- All imports use the
import/export
syntax rather thanrequire()
- Only two instances of
require()
found, both in test files for mocking purposes - Relative imports follow ESM conventions
- TypeScript/React files are using proper module syntax
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Check for potential CommonJS require statements that need to be converted to ESM imports
rg "require\(" --type ts --type tsx
# Check for .js extensions in import statements (needed for ESM)
rg "from ['\"](\.\/|\.\.\/)[^'\"]+['\"]\s*;" --type ts --type tsx
Length of output: 254
Script:
#!/bin/bash
# Check for potential CommonJS require statements
rg "require\("
# Check for relative imports without .js extension
rg "from ['\"](\./|\.\./)[^'\"]+['\"]"
# Check current JavaScript/TypeScript files
fd "\.(js|jsx|ts|tsx)$"
Length of output: 89621
46-51
:
Verify React 18 compatibility with testing libraries
The upgrade of React to v18.3.1 alongside @testing-library/user-event v13.5.0 requires careful verification:
- @testing-library/react v16.0.1 seems outdated for React 18
- @testing-library/user-event v13.5.0 might need newer @testing-library/react
Consider upgrading @testing-library/react to a version compatible with React 18, such as v13 or newer. The current version (v16.0.1) might cause compatibility issues.
Also applies to: 114-116
✅ Verification successful
Based on the analysis of the codebase through the executed scripts, I can now provide a final response:
React 18 upgrade appears compatible with testing setup
The codebase shows extensive use of @testing-library/react without any React 18-specific features (createRoot, useId, etc.) in the tests. The current testing setup using render method from @testing-library/react v16.0.1 remains compatible with React 18 as:
- The tests are using standard render patterns that work across React versions
- No React 18 concurrent features are being used that would require special test setup
- @testing-library/user-event v13.5.0 is compatible with both React 17 and 18
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Check for potential React 18 features in tests that might be incompatible
rg "createRoot|useId|useDeferredValue|useTransition" --type test
# Look for existing test files that might need updates
fd -e test.tsx -e test.ts
Length of output: 11050
Script:
#!/bin/bash
# Check package.json for testing library versions
cat package.json | jq -r '.dependencies["@testing-library/react"], .dependencies["@testing-library/user-event"]'
# Search for React testing library usage patterns in test files
rg "@testing-library/react" -A 2
# Look for render method usage in tests which might need updates for React 18
ast-grep --pattern 'render($$$)'
Length of output: 132682
Script:
#!/bin/bash
# Check for React 18 specific imports and usage in test files
rg "createRoot|useId|useDeferredValue|useTransition" --type tsx --type ts --type jsx --type js
# Check for React testing library setup files
fd -e setup.ts -e setup.js -e setupTests.ts -e setupTests.js
# Look for test utilities or test setup files
rg "test-utils|testUtils" --type tsx --type ts --type jsx --type js
Length of output: 285
.github/workflows/pull-request.yml (1)
47-48
: Verify the condition logic
The condition steps.changed-files.outputs.only_changed != 'true'
seems counterintuitive. Should this check be inverted? Please verify the intended behavior.
✅ Verification successful
Let me check the context of these conditions by looking at the changed-files step setup.
Let me check the complete workflow file to understand how the only_changed
output is being set and used.
The condition logic is correct and working as intended
The condition steps.changed-files.outputs.only_changed != 'true'
is used consistently throughout the workflow to skip certain checks when only specific files have changed. This is a common pattern when using tj-actions/changed-files@v40
action to optimize CI by running checks only when necessary. The condition is used for:
- Format checking
- Type checking
- Linting
- Tests
The logic is correct because:
- When
only_changed
is 'true', it means only specific files (configured in the action) have changed, so we skip the checks - When
only_changed
is not 'true', it means other files have changed too, so we run the checks
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check how the only_changed output is being used in other workflows
rg -A 2 "only_changed.*true" .github/workflows/
Length of output: 968
Script:
#!/bin/bash
# Check the changed-files step configuration
rg -B 5 -A 2 "id: changed-files" .github/workflows/pull-request.yml
Length of output: 1022
Script:
#!/bin/bash
# Get the complete workflow file
cat .github/workflows/pull-request.yml
Length of output: 9264
CONTRIBUTING.md (2)
7-23
: LGTM! Well-structured table of contents
The addition of a clear table of contents improves document navigation.
Line range hint 1-179
: Overall document structure and content improvements are excellent
The restructured document provides clearer guidance for contributors with comprehensive sections covering all aspects of contribution. The addition of detailed testing instructions and codecov setup is particularly valuable.
🧰 Tools
🪛 Markdownlint (0.35.0)
104-104: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
113-113: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
128-128: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
139-139: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
143-143: null
Fenced code blocks should have a language specified
(MD040, fenced-code-language)
158-158: null
No empty links
(MD042, no-empty-links)
159-159: null
No empty links
(MD042, no-empty-links)
161-161: null
No empty links
(MD042, no-empty-links)
🪛 LanguageTool
[grammar] ~135-~135: The operating system from Apple is written “macOS”.
Context: ...r packages can be found for Windows and MacOS. 6. The currently acceptable c...
(MAC_OS)
[uncategorized] ~165-~165: Possible missing comma found.
Context: ...using: git push origin <branch_name>
.(Here branch name must be name of the branch ...
(AI_HYDRA_LEO_MISSING_COMMA)
[uncategorized] ~165-~165: Possible missing article found.
Context: ...: git push origin <branch_name>
.(Here branch name must be name of the branch you wan...
(AI_HYDRA_LEO_MISSING_THE)
[uncategorized] ~165-~165: Possible missing article found.
Context: ...branch_name>`.(Here branch name must be name of the branch you want to push the chan...
(AI_HYDRA_LEO_MISSING_THE)
[grammar] ~178-~178: Did you mean the communication tool “Slack” (= proper noun, capitalized)?
Context: ...dation/talawa) for the link to join our slack channel. 1. We also have a technical em...
(ON_SKYPE)
.github/workflows/countline.py (1)
296-297
: Ensure the main()
function is called in the standard way
Check that the script uses the standard idiom for script execution.
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
git diff HEAD^ HEAD --exit-code -- ./package.json || npm install |
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
Consider using git diff @{1} HEAD
instead of HEAD^
for post-merge hook
The verification confirms that the repository is using shallow clones, where HEAD^
might not be available. For post-merge hooks specifically, using @{1}
(previous HEAD state) is more reliable than HEAD^
as it:
- Works with shallow clones
- Correctly references the pre-merge state
- Is specifically designed for merge scenarios
Suggested change:
git diff @{1} HEAD --exit-code -- ./package.json || npm install
🔗 Analysis chain
Verify the git diff command behavior across different Git clients.
The current command assumes HEAD^ is always available. However, this might fail in shallow clones or after the first commit.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check if the git diff command works in various scenarios
# Test 1: Check if we're in a shallow clone
if git rev-parse --is-shallow-repository; then
echo "Warning: Repository is shallow cloned, HEAD^ might not be available"
fi
# Test 2: Check commit count to verify if HEAD^ would be available
COMMIT_COUNT=$(git rev-list --count HEAD)
if [ "$COMMIT_COUNT" -le 1 ]; then
echo "Warning: Repository has 1 or fewer commits, HEAD^ won't be available"
fi
Length of output: 253
Script:
#!/bin/bash
# Let's check if there's any existing error handling or alternative approaches in the husky hooks
fd -t f -H . .husky/ -x cat {}
# Also check if there are any similar git diff patterns in the codebase that might have better handling
rg "git diff.*HEAD\^" -A 2 -B 2
Length of output: 280
@@ -0,0 +1,11 @@ | |||
{ | |||
"talawaApiUnavailable": "तलवा-एपीआई सेवा उपलब्ध नहीं है! ", |
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 inconsistent spacing and incomplete messages
There are several formatting issues in the error messages:
- Remove trailing spaces after exclamation marks in "है! " and "मांगना! "
- The message "उफ़! " appears incomplete and should include more context about what wasn't found
Apply these changes:
- "talawaApiUnavailable": "तलवा-एपीआई सेवा उपलब्ध नहीं है! ",
+ "talawaApiUnavailable": "तलवा-एपीआई सेवा उपलब्ध नहीं है!",
- "notAuthorised": "क्षमा मांगना! ",
+ "notAuthorised": "क्षमा मांगना!",
- "notFoundMsg": "उफ़! ",
+ "notFoundMsg": "उफ़! आपके द्वारा खोजा गया पृष्ठ नहीं मिला।",
Also applies to: 5-5, 8-8
@@ -10,10 +10,10 @@ | |||
{ | |||
"src": "logo192.png", | |||
"type": "image/png", | |||
"sizes": "192x192" | |||
"sizes": "16x16" |
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.
Critical: Icon size mismatch with filename
The size "16x16" is inconsistent with the filename "logo192.png" which suggests a 192x192 image. This mismatch could cause display issues or failed image loading.
- "sizes": "16x16"
+ "sizes": "192x192"
📝 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.
"sizes": "16x16" | |
"sizes": "192x192" |
@@ -27,3 +28,9 @@ A clear and concise description of how the code performed w.r.t expectations. | |||
If applicable, add screenshots to help explain your problem. | |||
|
|||
**Additional details** | |||
Add any other context or screenshots about the feature request here. |
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 incorrect template text.
The "Additional details" section incorrectly references a "feature request" instead of a "bug report".
-Add any other context or screenshots about the feature request here.
+Add any other context or screenshots about the bug report here.
📝 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.
Add any other context or screenshots about the feature request here. | |
Add any other context or screenshots about the bug report here. |
fail-fast: false | ||
matrix: | ||
language: [ 'javascript' ] |
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
Enhance language matrix for TypeScript support
Since this is a React project using TypeScript (as evidenced by the upgrade of @testing-library/user-event), the CodeQL analysis should include TypeScript scanning.
Update the language matrix:
matrix:
- language: [ 'javascript' ]
+ language: [ 'javascript-typescript' ]
📝 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.
fail-fast: false | |
matrix: | |
language: [ 'javascript' ] | |
fail-fast: false | |
matrix: | |
language: [ 'javascript-typescript' ] |
type UserPhone { | ||
home: PhoneNumber | ||
mobile: PhoneNumber | ||
work: PhoneNumber | ||
} |
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.
Duplicate type UserPhone
definitions
The type UserPhone
is defined twice at lines 1348-1352 and 1407-1411. This redundancy can cause issues in schema compilation. Please retain only one definition to avoid conflicts.
-type UserPhone {
- home: PhoneNumber
- mobile: PhoneNumber
- work: PhoneNumber
-}
Also applies to: 1407-1411
enum EducationGrade { | ||
GRADE_1 | ||
GRADE_2 | ||
GRADE_3 | ||
GRADE_4 | ||
GRADE_5 | ||
GRADE_6 | ||
GRADE_7 | ||
GRADE_8 | ||
GRADE_9 | ||
GRADE_10 | ||
GRADE_11 | ||
GRADE_12 | ||
GRADUATE | ||
KG | ||
NO_GRADE | ||
PRE_KG | ||
} |
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.
Duplicate enum EducationGrade
definitions
The enum EducationGrade
is defined twice at lines 244-261 and 1223-1240. Duplicate definitions can cause schema errors. Please remove one of the enum definitions.
-enum EducationGrade {
- GRADE_1
- GRADE_2
- GRADE_3
- GRADE_4
- GRADE_5
- GRADE_6
- GRADE_7
- GRADE_8
- GRADE_9
- GRADE_10
- GRADE_11
- GRADE_12
- GRADUATE
- KG
- NO_GRADE
- PRE_KG
-}
Also applies to: 1223-1240
enum EmploymentStatus { | ||
FULL_TIME | ||
PART_TIME | ||
UNEMPLOYED | ||
} |
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.
Duplicate enum EmploymentStatus
definitions
The enum EmploymentStatus
is defined twice at lines 265-269 and 1242-1246. This duplication can lead to conflicts in the schema. Please remove one of the definitions.
-enum EmploymentStatus {
- FULL_TIME
- PART_TIME
- UNEMPLOYED
-}
Also applies to: 1242-1246
enum MaritalStatus { | ||
DIVORCED | ||
ENGAGED | ||
MARRIED | ||
SEPERATED | ||
SINGLE | ||
WIDOWED | ||
} |
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.
Duplicate enum MaritalStatus
definitions and typo correction
The enum MaritalStatus
is defined twice at lines 491-498 and 1254-1261. Additionally, there is a misspelling of SEPARATED
as SEPERATED
at line 1258. Duplicate enums and typos can cause schema validation errors.
Please remove the duplicate enum definition and correct the spelling mistake.
-enum MaritalStatus {
- DIVORCED
- ENGAGED
- MARRIED
- SEPERATED
+ SEPARATED
- SINGLE
- WIDOWED
-}
Also applies to: 1254-1261
organizationId: ID! | ||
type: String! | ||
): OrganizationCustomField! | ||
addOrganizationImage(file: String!, organizationId: String!): Organization! |
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
Inconsistent parameter type in addOrganizationImage
mutation
In the addOrganizationImage
mutation at line 591, the parameter organizationId
is of type String!
. For consistency with other mutations and to utilize the GraphQL ID
type, it should be of type ID!
.
Please update the parameter type to ID!
.
- addOrganizationImage(file: String!, organizationId: String!): Organization!
+ addOrganizationImage(file: String!, organizationId: ID!): Organization!
📝 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.
addOrganizationImage(file: String!, organizationId: String!): Organization! | |
addOrganizationImage(file: String!, organizationId: ID!): Organization! |
This PR has too many submitted files. Please ensure the following:
Closing |
-solve failing tests resulting from upgrade testing-library/user-event'
issue #2072: #2072 (comment)
Summary by CodeRabbit
Release Notes
New Features
.env.example
file to guide environment variable setup for the Talawa-admin project.Documentation
CONTRIBUTING.md
andCODE_STYLE.md
for clearer guidelines.INSTALLATION.md
to provide setup instructions for the Talawa-admin application.DOCUMENTATION.md
to guide users on documentation processes.Bug Fixes