Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests for the extension request tab in the /request route using Puppe…
…teer (#781) * tabs are switching on request page * added extension-request in request page * added extension-request in request page * feat: Added the whole extension page UI * refactor: Abstract fetch logic into reusable function - Created fetchData function to handle fetch requests with different query parameters and controllers. - Updated getOooRequests and getExtensionRequests to use fetchData. * refactor: Abstract fetch logic into reusable function - Created fetchData function to handle fetch requests with different query parameters and controllers. - Updated getOooRequests and getExtensionRequests to use fetchData. * refactor: createExtensionCard function to optimize element creation - Use DocumentFragment to accumulate and append elements efficiently - Simplify element creation with template literals - Extract repetitive tasks and event listeners into separate functions - Maintain coding standards and improve readability Resolves PR comment regarding optimizing document.createElement calls in createExtensionCard function. * refactor: code refactored to show superusers the extension request * Merge branch 'feat/extension-request-page' of github.com:Real-Dev-Squad/website-dashboard into feat/extension-request-page bbbjbLines starting with '#' will be ignored, and an empty message aborts e commit. :wq Merge branch 'feat/extension-request-page' of github.com:Real-Dev-Squad/website-dashboard into feat/extension-request-page This merge is necessary to integrate the latest changes from the remote branch into the local branch. * fix: delete the mock-date, will raise the test PR separately * feat: add UI for listing extension requests with status update controls - Implemented a separate tab for listing extension requests on the /requests page. - Added functionality for super users to approve or reject extension requests directly from the UI. - Updated script.js to handle API calls for both OOO and extension requests. - Ensured correct query parameters are reflected in the URL when switching between tabs. - Improved error handling and message display for extension requests. * fix(css): center the loading text on the requests page - Updated .container__body__loader class to center the loading text both horizontally and vertically using Flexbox. * add: test for listing extension request --------- Co-authored-by: devanshdixit <[email protected]> Co-authored-by: Amit Prakash <[email protected]>
- Loading branch information