Closed GradleD closed 2 weeks ago
@GradleD is attempting to deploy a commit to the LFG Labs Team on Vercel.
A member of the Team first needs to authorize it.
The changes introduce a new asynchronous method deleteQuest
in the Page
component of the app/admin/quests/page.tsx
file, which allows users to delete quests. This method validates the questId
, prompts for user confirmation, and calls AdminService.deleteQuest
to perform the deletion. Upon successful deletion, the local state is updated to remove the quest, and a notification is displayed. A delete button is added for each quest in the UI, and the aria-label
for the Tabs
component is corrected for better accessibility.
File | Change Summary |
---|---|
app/admin/quests/page.tsx | - Added deleteQuest method for deleting quests. - Updated component to include delete buttons for each quest. - Corrected aria-label for the Tabs component. |
sequenceDiagram
participant User
participant Page
participant AdminService
User->>Page: Clicks delete button
Page->>AdminService: deleteQuest(questId)
AdminService-->>Page: Confirmation of deletion
Page->>Page: Update local state (remove quest)
Page-->>User: Display success/error notification
@GradleD Is it linked to an issue ? If so, can you provide the issue please ?
Resolves: Admin Side Delete Quest button functionality added
Other information
Summary by CodeRabbit
New Features
Bug Fixes