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 Admin Dashboard Button on Homepage for Admin Users #206

Open
rjsamra opened this issue Dec 22, 2024 · 0 comments
Open

Add Admin Dashboard Button on Homepage for Admin Users #206

rjsamra opened this issue Dec 22, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@rjsamra
Copy link
Collaborator

rjsamra commented Dec 22, 2024

Feature Request

Add a button linking to the Admin Dashboard on the homepage of job postings, visible only when an admin user is logged in.


Details

  • Current Behavior: The homepage of job postings does not display a link or button to the Admin Dashboard.
  • Expected Behavior: If an admin is logged in, a button labeled "Admin Dashboard" should be visible on the homepage. Clicking the button should redirect to the admin dashboard.

Acceptance Criteria

  1. Display the "Admin Dashboard" button on the homepage only when:
    • The logged-in user is an admin.
    • Proper authentication and role checks are performed.
  2. Ensure the button is styled consistently with the website's UI.
  3. Redirect the button to the correct admin dashboard route (e.g., /admin/dashboard).

Suggested Implementation

  • Add a conditional check for the admin role in the homepage component.
  • Use role-based authentication to display the button.
  • Apply existing styles or create a new button style if necessary.
@rjsamra rjsamra added enhancement New feature or request good first issue Good for newcomers labels Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant