Add option to delete individual quizzes from history.#569
Add option to delete individual quizzes from history.#569Adilkhan6465 wants to merge 3 commits intoAOSSIE-Org:mainfrom
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughReplaces the per-row navigation icon with a trash button and adds a handler that removes a quiz by index from localStorage ("last5Quizzes") and component state; the trash button stops event propagation to preserve existing row click behavior. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can approve the review once all CodeRabbit's comments are resolved.Enable the |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@eduaid_web/src/pages/Previous.jsx`:
- Around line 93-100: The delete button is icon-only and lacks an accessible
name; update the button that calls handleDeleteQuiz(index) (the button wrapping
the FaTrash icon) to provide an accessible label by adding an aria-label (e.g.,
aria-label="Delete quiz") or include visually hidden text inside the button so
screen readers announce its purpose while keeping the FaTrash icon visible.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 08506ea9-cb3b-4e7a-9421-991d29340ec5
📒 Files selected for processing (1)
eduaid_web/src/pages/Previous.jsx
|
Hi @yatikakain @Aditya062003 , I have addressed the CodeRabbit review comments and updated the implementation accordingly. |
Addressed Issues:
Fixes #568
Feature: Delete Individual Quiz from History
This PR adds the ability to delete individual quizzes from the quiz history page.
Changes
Testing
Screenshots/Recordings:
delete-quiz-demo.mp4.mp4
AI Usage Disclosure:
We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact. AI slop is strongly discouraged and may lead to banning and blocking. Do not spam our repos with AI slop.
Check one of the checkboxes below:
Checklist
Summary by CodeRabbit