Skip to content

Add Admin Pack Feature to Improve Dashboard Functionality#47

Open
rohitdhakane6 wants to merge 8 commits intocode100x:mainfrom
rohitdhakane6:new
Open

Add Admin Pack Feature to Improve Dashboard Functionality#47
rohitdhakane6 wants to merge 8 commits intocode100x:mainfrom
rohitdhakane6:new

Conversation

@rohitdhakane6
Copy link
Contributor

This PR introduces a new admin/pack module that enhances the administrative functionality within the dashboard. The key features include:

  • New admin/pack folder: This directory now contains all logic and UI components related to the admin pack functionality.

    • admin/pack/page.tsx: Shows all Pack in Db
    • admin/pack/[packId]/page.tsx: Edit particular pack.
  • Backend Middleware:

  • Features added:

    • Ability for admins to manage certain packs directly from the dashboard.
    • Included UI elements for viewing, editing, and deleting packs.
    • Integration with the existing admin dashboard routes and navigation.
  • Known Issues:

    • The adminMiddleware needs further testing to validate its functionality.
    • No other known issues at the moment, but further enhancements for filtering and search within the pack list are planned in future iterations.

Screenshots:

all Pack

Screenshot from 2025-02-28 22-43-04

delete warning

Screenshot from 2025-02-28 22-43-13

add new pack

Screenshot from 2025-02-28 22-43-22

edit pack

Screenshot from 2025-02-28 22-44-50

How to Test:

  1. Navigate to the admin/packs dashboard.
  2. Test pack management by adding, editing, or deleting packs.
  3. Ensure the middleware correctly restricts access to admin-only routes (pending additional tests).

@rohitdhakane6
Copy link
Contributor Author

If any changes or improvements are needed please feel free to leave comments on the PR, and I’ll address them
@hkirat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant