Skip to content
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

Orders feature in dashboard #88

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Conversation

niyobern
Copy link
Contributor

@niyobern niyobern commented Jul 11, 2024

Pull Request Description

Overview

This PR implements the Orders feature in the admin's dashboard according to the Figma design.

Implementation Details

Orders Component

  • Structure: Set up the Orders component in the admin's dashboard.
  • Integration: Ensured seamless integration with existing sidebar and navbar components.

Data Management

  • Fetch Orders: Use Redux Toolkit to retrieve orders data from the backend.
  • State Management: Define and manage state for orders with actions and reducers.

User Interface

  • Orders Table: Implement the table UI, displaying columns for ID, Order, Date, Status, Total, and Action.
  • Pagination: Add controls for navigating through pages of orders.

Filters and Search

  • Status Filters: Implement filters for All, Pending, Completed, and Cancelled orders, updating the table accordingly.
  • Search Functionality: Add a search bar for users to find specific orders, updating the table based on the query.

Actions

  • View and Delete: Implement functionality for viewing and deleting orders with backend integration.

Styling

  • Design: Apply styling per the Figma design, ensuring responsiveness and cross-device compatibility.

Acceptance Criteria

  • Orders feature matches the Figma design.
  • Orders data is accurately fetched and displayed.
  • Filters and search work as expected.
  • delete action is functional.
  • Responsive design with proper styling.

Additional Notes

  • Follow best practices for TypeScript, Redux Toolkit, and React.
  • Thoroughly review and test the functionality before merging.

@niyobern niyobern linked an issue Jul 11, 2024 that may be closed by this pull request
Copy link

netlify bot commented Jul 11, 2024

Deploy Preview for dynamite-frontend ready!

Name Link
🔨 Latest commit 57174bc
🔍 Latest deploy log https://app.netlify.com/sites/dynamite-frontend/deploys/6699365717087f0008639fa3
😎 Deploy Preview https://deploy-preview-88--dynamite-frontend.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.

@niyobern niyobern changed the title implement stage 1 design of otp form (#58) (#61) Orders feature in dashboard Jul 11, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jul 11, 2024

Codecov Report

Attention: Patch coverage is 54.78673% with 477 lines in your changes missing coverage. Please review.

Project coverage is 79.82%. Comparing base (eaec0e8) to head (57174bc).

Files Patch % Lines
src/components/Orders/EditableOrder.tsx 0.00% 185 Missing and 1 partial ⚠️
src/components/Cart/CartItem.tsx 0.00% 106 Missing and 1 partial ⚠️
src/components/Cart/Cart.tsx 0.00% 42 Missing and 1 partial ⚠️
src/components/Orders/NavigationIcon.tsx 14.58% 41 Missing ⚠️
src/components/Orders/ElipsisIcon.tsx 0.00% 33 Missing ⚠️
src/features/Orders/ordersSlice.ts 61.33% 29 Missing ⚠️
src/components/Orders/Pagination.tsx 76.71% 17 Missing ⚠️
src/pages/Orders.tsx 0.00% 12 Missing and 1 partial ⚠️
src/components/Orders/Orders.tsx 93.98% 8 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #88      +/-   ##
===========================================
- Coverage    84.34%   79.82%   -4.53%     
===========================================
  Files           67       79      +12     
  Lines         5846     6900    +1054     
  Branches       406      455      +49     
===========================================
+ Hits          4931     5508     +577     
- Misses         911     1384     +473     
- Partials         4        8       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@niyobern niyobern force-pushed the 82-orders-feature-in-dashboard branch 9 times, most recently from 8d82a46 to 21f0915 Compare July 17, 2024 17:04
@wayneleon1 wayneleon1 self-requested a review July 17, 2024 17:46
@niyobern niyobern force-pushed the 82-orders-feature-in-dashboard branch from 21f0915 to 855c6b1 Compare July 17, 2024 23:27
@niyobern niyobern self-assigned this Jul 17, 2024
@niyobern niyobern added Front-End ready for review The PR is ready for review to be mergrd labels Jul 17, 2024
Copy link
Contributor

@wayneleon1 wayneleon1 left a comment

Choose a reason for hiding this comment

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

Well done
but you can also show us the screenshots of how it look like in every devices

@niyobern niyobern force-pushed the 82-orders-feature-in-dashboard branch from 855c6b1 to bb8b922 Compare July 18, 2024 08:08
working on orders page

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>
@niyobern niyobern force-pushed the 82-orders-feature-in-dashboard branch from bb8b922 to 57174bc Compare July 18, 2024 15:35
Copy link
Contributor

@bertrandshema bertrandshema left a comment

Choose a reason for hiding this comment

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

It looks good now.

@dushimeemma dushimeemma merged commit e8dad2c into develop Jul 19, 2024
6 checks passed
niyibi250 pushed a commit that referenced this pull request Jul 19, 2024
- implement wishlist UI components

[Delivers #96]

implement stage 1 design of otp form (#58) (#61) (#88)

working on orders page

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

fix the image on popular section on langing page

fix the image on popular section on langing page
niyibi250 pushed a commit that referenced this pull request Jul 19, 2024
- implement wishlist UI components

[Delivers #96]

implement stage 1 design of otp form (#58) (#61) (#88)

working on orders page

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

fix the image on popular section on langing page

fix the image on popular section on langing page
niyibi250 pushed a commit that referenced this pull request Jul 19, 2024
- implement wishlist UI components

[Delivers #96]

implement stage 1 design of otp form (#58) (#61) (#88)

working on orders page

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

fix the image on popular section on langing page

fix the image on popular section on langing page
niyibi250 pushed a commit that referenced this pull request Jul 19, 2024
- implement wishlist UI components

[Delivers #96]

implement stage 1 design of otp form (#58) (#61) (#88)

working on orders page

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

fix the image on popular section on langing page

fix the image on popular section on langing page

add exclude for caverage
niyibi250 pushed a commit that referenced this pull request Jul 22, 2024
- implement wishlist UI components

[Delivers #96]

implement stage 1 design of otp form (#58) (#61) (#88)

working on orders page

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

fix the image on popular section on langing page

fix the image on popular section on langing page

add exclude for caverage
niyibi250 added a commit that referenced this pull request Jul 22, 2024
rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

users can now signup with facebook (#74)

side bar implementation (#75)

implement stage 1 design of otp form (#58) (#61)

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

implementation of dashboard nav bar (#79)

added Admin Dashboard Home (#85)

fix bannerSection (#87)

feat(dashboard-metrics): implement visitor insights chart and top categories (#84)

- implement visitor insights chart
- implement top categories section

[Delivers #73]

Fix image and routing (#92)

fix lint error

finall fix lint

finall fix lint

show message when product deleted

fix the commit

fix console lint error

Fix image and routing (#92)

finall fix lint

show message when product deleted

fix the commit

fix console lint error

fix the store

fix the husky

add created at column

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

vendor should add product (#67)

Co-authored-by: Pray Eddy SHIMWA <shedpray16@gmail.com>

feat(product-details-page): implement product details page (#108)

- implement product details ui components
-write appropriate tests

[Delivers #101]

Co-authored-by: AMBROISE Muhayimana <107347030+ambroisegithub@users.noreply.github.com>

implemented add to cart and cart (#112)

added Seller Dashboard (#110)

feat(wishlist): implement buyer wishlist (#100)

- implement wishlist UI components

[Delivers #96]

implement stage 1 design of otp form (#58) (#61) (#88)

working on orders page

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

fix the image on popular section on langing page

fix the image on popular section on langing page

add exclude for caverage

feat(wishlist): implement buyer wishlist (#100)

- implement wishlist UI components

[Delivers #96]

implement stage 1 design of otp form (#58) (#61) (#88)

working on orders page

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

fix the image on popular section on langing page

fix the image on popular section on langing page

add exclude for caverage

fix the add new product button

fix the add new product button
dushimeemma pushed a commit that referenced this pull request Jul 22, 2024
rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

users can now signup with facebook (#74)

side bar implementation (#75)

implement stage 1 design of otp form (#58) (#61)

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

implementation of dashboard nav bar (#79)

added Admin Dashboard Home (#85)

fix bannerSection (#87)

feat(dashboard-metrics): implement visitor insights chart and top categories (#84)

- implement visitor insights chart
- implement top categories section

[Delivers #73]

Fix image and routing (#92)

fix lint error

finall fix lint

finall fix lint

show message when product deleted

fix the commit

fix console lint error

Fix image and routing (#92)

finall fix lint

show message when product deleted

fix the commit

fix console lint error

fix the store

fix the husky

add created at column

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

vendor should add product (#67)

Co-authored-by: Pray Eddy SHIMWA <shedpray16@gmail.com>

feat(product-details-page): implement product details page (#108)

- implement product details ui components
-write appropriate tests

[Delivers #101]

Co-authored-by: AMBROISE Muhayimana <107347030+ambroisegithub@users.noreply.github.com>

implemented add to cart and cart (#112)

added Seller Dashboard (#110)

feat(wishlist): implement buyer wishlist (#100)

- implement wishlist UI components

[Delivers #96]

implement stage 1 design of otp form (#58) (#61) (#88)

working on orders page

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

fix the image on popular section on langing page

fix the image on popular section on langing page

add exclude for caverage

feat(wishlist): implement buyer wishlist (#100)

- implement wishlist UI components

[Delivers #96]

implement stage 1 design of otp form (#58) (#61) (#88)

working on orders page

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

fix the image on popular section on langing page

fix the image on popular section on langing page

add exclude for caverage

fix the add new product button

fix the add new product button
niyibi250 pushed a commit that referenced this pull request Jul 22, 2024
added Seller Dashboard (#110)

implement stage 1 design of otp form (#58) (#94) (#106)

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

users can now signup with facebook (#74)

side bar implementation (#75)

implement stage 1 design of otp form (#58) (#61)

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

implementation of dashboard nav bar (#79)

added Admin Dashboard Home (#85)

fix bannerSection (#87)

feat(dashboard-metrics): implement visitor insights chart and top categories (#84)

- implement visitor insights chart
- implement top categories section

[Delivers #73]

Fix image and routing (#92)

fix lint error

finall fix lint

finall fix lint

show message when product deleted

fix the commit

fix console lint error

Fix image and routing (#92)

finall fix lint

show message when product deleted

fix the commit

fix console lint error

fix the store

fix the husky

add created at column

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

vendor should add product (#67)

Co-authored-by: Pray Eddy SHIMWA <shedpray16@gmail.com>

feat(product-details-page): implement product details page (#108)

- implement product details ui components
-write appropriate tests

[Delivers #101]

Co-authored-by: AMBROISE Muhayimana <107347030+ambroisegithub@users.noreply.github.com>

implemented add to cart and cart (#112)

added Seller Dashboard (#110)

feat(wishlist): implement buyer wishlist (#100)

- implement wishlist UI components

[Delivers #96]

implement stage 1 design of otp form (#58) (#61) (#88)

working on orders page

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

fix the image on popular section on langing page

fix the image on popular section on langing page

add exclude for caverage

feat(wishlist): implement buyer wishlist (#100)

- implement wishlist UI components

[Delivers #96]

implement stage 1 design of otp form (#58) (#61) (#88)

working on orders page

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

fix the image on popular section on langing page

fix the image on popular section on langing page

add exclude for caverage

fix the add new product button

fix the add new product button

 add the best selling products table in admin dashboard (#107)

Added changes on footer (#117)

fix link to product details

fix link to product details

fix link to product details

fix link to product details

 add the best selling products table in admin dashboard (#107)

Added changes on footer (#117)

fix link to product details

fix link to product details

fix link to product details

fix link to product details
dushimeemma pushed a commit that referenced this pull request Jul 22, 2024
added Seller Dashboard (#110)

implement stage 1 design of otp form (#58) (#94) (#106)

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

users can now signup with facebook (#74)

side bar implementation (#75)

implement stage 1 design of otp form (#58) (#61)

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

implementation of dashboard nav bar (#79)

added Admin Dashboard Home (#85)

fix bannerSection (#87)

feat(dashboard-metrics): implement visitor insights chart and top categories (#84)

- implement visitor insights chart
- implement top categories section

[Delivers #73]

Fix image and routing (#92)

fix lint error

finall fix lint

finall fix lint

show message when product deleted

fix the commit

fix console lint error

Fix image and routing (#92)

finall fix lint

show message when product deleted

fix the commit

fix console lint error

fix the store

fix the husky

add created at column

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

vendor should add product (#67)

Co-authored-by: Pray Eddy SHIMWA <shedpray16@gmail.com>

feat(product-details-page): implement product details page (#108)

- implement product details ui components
-write appropriate tests

[Delivers #101]

Co-authored-by: AMBROISE Muhayimana <107347030+ambroisegithub@users.noreply.github.com>

implemented add to cart and cart (#112)

added Seller Dashboard (#110)

feat(wishlist): implement buyer wishlist (#100)

- implement wishlist UI components

[Delivers #96]

implement stage 1 design of otp form (#58) (#61) (#88)

working on orders page

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

fix the image on popular section on langing page

fix the image on popular section on langing page

add exclude for caverage

feat(wishlist): implement buyer wishlist (#100)

- implement wishlist UI components

[Delivers #96]

implement stage 1 design of otp form (#58) (#61) (#88)

working on orders page

rebase from dev and fix eslint errors

implement nextSibling functiion

implement previousSibling while you delete

rebase from develop

resolve deployment errors

implement 2fa functionality

working on verify otp codes and redirect

rebasing from develop

resolve vendor token must be string

implement 2fa verfication

Co-authored-by: Rurangwa Leo <88591087+wayneleon1@users.noreply.github.com>

fix the image on popular section on langing page

fix the image on popular section on langing page

add exclude for caverage

fix the add new product button

fix the add new product button

 add the best selling products table in admin dashboard (#107)

Added changes on footer (#117)

fix link to product details

fix link to product details

fix link to product details

fix link to product details

 add the best selling products table in admin dashboard (#107)

Added changes on footer (#117)

fix link to product details

fix link to product details

fix link to product details

fix link to product details

Co-authored-by: NIYOMUGABO BERNARD <85235653+niyobern@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Front-End ready for review The PR is ready for review to be mergrd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Orders feature in dashboard
6 participants