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

Add moderator pages with limited CRUD operations #28

Merged

Conversation

RespectMathias
Copy link
Contributor

Add a new "Moderator" directory under "Pages" with limited CRUD operations for moderators.

  • Layout and Navigation:

    • Add _Layout.cshtml for moderator pages.
    • Add _ManageNav.cshtml for moderator navigation with links to Reviews and Users index pages.
  • Reviews Management:

    • Add Index.cshtml and Index.cshtml.cs for listing reviews with limited actions.
    • Add Edit.cshtml and Edit.cshtml.cs for approving or denying reviews.
  • Users Management:

    • Add Index.cshtml and Index.cshtml.cs for listing users with limited actions.
    • Add Edit.cshtml and Edit.cshtml.cs for editing user information.

Add a new "Moderator" directory under "Pages" with limited CRUD operations for moderators.

* **Layout and Navigation:**
  - Add `_Layout.cshtml` for moderator pages.
  - Add `_ManageNav.cshtml` for moderator navigation with links to Reviews and Users index pages.

* **Reviews Management:**
  - Add `Index.cshtml` and `Index.cshtml.cs` for listing reviews with limited actions.
  - Add `Edit.cshtml` and `Edit.cshtml.cs` for approving or denying reviews.

* **Users Management:**
  - Add `Index.cshtml` and `Index.cshtml.cs` for listing users with limited actions.
  - Add `Edit.cshtml` and `Edit.cshtml.cs` for editing user information.
* Include navigation logic for Reviews and Users
* Define methods to get navigation class for Index, Reviews, and Users pages
* Implement logic to determine active page based on ViewContext
* **Index.cshtml**
  - Add a page to display the moderator dashboard
  - Display total reviews and total users
  - Include a chart for review ratings

* **Index.cshtml.cs**
  - Add a code-behind file to fetch and display summary information for moderators
  - Fetch total reviews and total users
  - Fetch review ratings and group them by rating
@RespectMathias RespectMathias reopened this Dec 8, 2024
@RespectMathias RespectMathias merged commit 12a6d48 into Auth-2.0-Extension Dec 8, 2024
Added:
 - Seeded Moderator role
 - Restriction of moderator pages
 - Moved Role tools into its own tab/section/page
@RespectMathias RespectMathias deleted the RespectMathias/add-moderator-pages branch December 8, 2024 18:34
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