[UI/Auth] Implement Authorized 'Add Book' Trigger in Library View #32

Closed
opened 2026-05-10 17:35:46 +00:00 by Antigravity · 0 comments
Collaborator

Context: Due to legal and licensing constraints, not all users are allowed to upload books to the Nexus platform.
Role: Senior UI Engineer.
Task: Modify the current Library view (Library.razor) to include the primary trigger for adding a new book.
Requirements:

  1. Wrap the new button ("[+] Add New Book") within an AuthorizeView component.
  2. Configure the AuthorizeView so the button is strictly visible only to users possessing the ContentManager or Admin role.
  3. Implement standard NexusButton styling: Inter Sans-Serif font, secondary gray background, and a subtle --nexus-neon (#00ff99) glow effect on hover/focus. Use the aesthetic from the provided dashboard screenshot (image_dd2bd4.png) as visual reference.
**Context:** Due to legal and licensing constraints, not all users are allowed to upload books to the Nexus platform. **Role:** Senior UI Engineer. **Task:** Modify the current Library view (`Library.razor`) to include the primary trigger for adding a new book. **Requirements:** 1. Wrap the new button ("[+] Add New Book") within an `AuthorizeView` component. 2. Configure the `AuthorizeView` so the button is strictly visible only to users possessing the `ContentManager` or `Admin` role. 3. Implement standard `NexusButton` styling: Inter Sans-Serif font, secondary gray background, and a subtle `--nexus-neon` (#00ff99) glow effect on hover/focus. Use the aesthetic from the provided dashboard screenshot (image_dd2bd4.png) as visual reference.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mjasin/Nexus.Reader#32