Skip to content

[Finishes #187788610] create buyers page on the admin-dashboard - #42

Open
hatfelicien wants to merge 1 commit into
developfrom
187788610-ft-create-buyers-page-on-admin-dashboard
Open

[Finishes #187788610] create buyers page on the admin-dashboard#42
hatfelicien wants to merge 1 commit into
developfrom
187788610-ft-create-buyers-page-on-admin-dashboard

Conversation

@hatfelicien

Copy link
Copy Markdown
Collaborator

Purpose

Implement a Buyers Page on the admin dashboard that fetches and displays a list of buyers with their details.
pull request

Changes Made

  • Created the BuyersPage component to fetch and display buyer data.
  • Implemented search functionality to filter buyers by name.
  • Added edit and delete icons for future implementation of respective functionalities.
  • Utilized local storage to retrieve the authentication token for API requests.

Testing Instructions

  1. Ensure you have the authentication token stored in local storage.
  2. Navigate to the Buyers Page on the admin dashboard.
  3. Verify that the list of buyers is fetched and displayed correctly.
  4. Use the search input to filter buyers by their first and last names.

Related Issues

Lists all related issues

Checklist

Please review the following checklist and make sure all tasks are complete before submitting:

  • Code follows the project's coding standards
  • Changes are covered by tests
  • Documentation is updated (if applicable)
  • All tests pass

@netlify

netlify Bot commented Jul 19, 2024

Copy link
Copy Markdown

Deploy Preview for e-commerce-mavericks-fn ready!

Name Link
🔨 Latest commit c90bb7d
🔍 Latest deploy log https://app.netlify.com/sites/e-commerce-mavericks-fn/deploys/669a04cd13e1390008b8420c
😎 Deploy Preview https://deploy-preview-42--e-commerce-mavericks-fn.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@patrickhag patrickhag left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

Comment thread src/pages/admin/Buyers.tsx Outdated
const fetchBuyers = async () => {
try {
const response = await fetch(
'https://e-commerce-mavericcks-bn-staging-istf.onrender.com/api/users/role/buyer',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why didn't you use RTK query here?
Use it please!

@niyontwali
niyontwali force-pushed the 187788610-ft-create-buyers-page-on-admin-dashboard branch from c90bb7d to c6b55bf Compare August 1, 2026 11:43
@netlify

netlify Bot commented Aug 1, 2026

Copy link
Copy Markdown

Deploy Preview for e-commerce-mavericks-fn failed.

Name Link
🔨 Latest commit 9eb2fc5
🔍 Latest deploy log https://app.netlify.com/projects/e-commerce-mavericks-fn/deploys/6a8b579e69d58a0008775891

@niyontwali
niyontwali force-pushed the 187788610-ft-create-buyers-page-on-admin-dashboard branch from c6b55bf to 88804d2 Compare August 1, 2026 12:28
@niyontwali
niyontwali force-pushed the 187788610-ft-create-buyers-page-on-admin-dashboard branch from 88804d2 to 9eb2fc5 Compare August 23, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants