Skip to content

feat: Added "Back to Video" navigation in Quiz component (#561) with some changes#934

Open
Boltu-007 wants to merge 2 commits into
vicharanashala:mainfrom
Boltu-007:feature/back-to-video
Open

feat: Added "Back to Video" navigation in Quiz component (#561) with some changes#934
Boltu-007 wants to merge 2 commits into
vicharanashala:mainfrom
Boltu-007:feature/back-to-video

Conversation

@Boltu-007

@Boltu-007 Boltu-007 commented Apr 10, 2026

Copy link
Copy Markdown

Resolves #561.

This PR introduces the ability for a learner to return to the previous video directly from an active quiz.

Key Changes & Fixes:

  • Added a Back to Video button alongside the skip functionality.
  • Disabled the navigation button during isSaving, isSubmitting, and isProgressUpdating states to strictly prevent race conditions or aborted network requests.
  • Added aria-label tags to the new navigation buttons for screen reader accessibility.
  • Restored missing completedItemIdsRef and itemStartedRef state updates inside handleSkipItem to ensure course progression tracking remains accurate.
  • Cleaned up unused emptyQuizNextTimerRef logic to prevent memory leaks.

@github-actions github-actions Bot added the frontend Changes to the frontend of the project label Apr 10, 2026
@Boltu-007 Boltu-007 changed the title feat: Add "Back to Video" navigation in Quiz component (#561) feat: Added "Back to Video" navigation in Quiz component (#561) Apr 14, 2026
@Boltu-007 Boltu-007 changed the title feat: Added "Back to Video" navigation in Quiz component (#561) feat: Added "Back to Video" navigation in Quiz component (#561) with some changes Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes to the frontend of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to go back to video from quiz (feature request)

1 participant