Skip to content

AI Tutor: add warning dialog when mid-accept/reject and trying to navigate between lab2 levels#72140

Open
bencodeorg wants to merge 5 commits intostagingfrom
ben/simpler-navigation-blocker
Open

AI Tutor: add warning dialog when mid-accept/reject and trying to navigate between lab2 levels#72140
bencodeorg wants to merge 5 commits intostagingfrom
ben/simpler-navigation-blocker

Conversation

@bencodeorg
Copy link
Copy Markdown
Contributor

@bencodeorg bencodeorg commented Apr 14, 2026

This PR adds a warning dialog if you try to navigate to another lab2 level when in the middle of accepting/rejecting AI Tutor changes. It offers the same behavior if you are using the forward/back browser history to navigate between levels. Finally, it also adds a "reject" event to your chat history if you do navigate to another lab2 level.

block.nav.mid.accept.reject.mov

Links

Testing story

Tested manually (see video above).

return;
}
// Notify the Lab2 system (that handles changing levels without reload) about the level change.
// The browser history API does not provide access to the state of the page we just came from,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is true, but we're able to reconstruct the "from" page from Redux (see new logic), so I removed this comment.

@bencodeorg bencodeorg requested a review from a team April 14, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant