-
-
Notifications
You must be signed in to change notification settings - Fork 45
Description
Hey,
When a user gets stuck and just wants to figure out what went wrong in their code, it's super frustrating that clicking "View Solution" just wipes everything and shows the answer. That’s not a great experience. It seems to user like they were waste their time and doing wrong implementation. Which leads to less motivated.
It’d be way better if, when the user clicks "View Solution," a popup showed up with two editors — their code on the left and the actual solution on the right. This way, they can compare both, spot the mistake, and learn from it without losing their work.
It helps them stay involved and actually learn instead of just copying the answer. While there will be copy button to copy the solution but there is one layer more to restrict the user.
Here is video for better understanding
Screencast.from.2025-04-10.21-56-32.webm
Just rough view of suggested design of modal or pop up to compare the code
Activity
AQIB-NAWAB commentedon Apr 10, 2025
HI @JeelRajodiya , Please let me know your thoughts about it.
Thanks
Yashwanth1906 commentedon Apr 11, 2025
Hi @AQIB-NAWAB , I actually proposed, A solution UI design that will be super easy to compare. #149 is this design looks fine?🙂
AQIB-NAWAB commentedon Apr 11, 2025
Hi @Yashwanth1906 , I really liked the solution UI design. It will help user to easily find the mistake in code while comparison their code to actual solution.
CC : @JeelRajodiya
JeelRajodiya commentedon Apr 12, 2025
@AQIB-NAWAB @Yashwanth1906 I have end term exams nearing, so let's just put this idea on hold.
AQIB-NAWAB commentedon Apr 12, 2025
ohh sure JeelRajodiya, Let's put it on hold.
AQIB-NAWAB commentedon Jun 2, 2025
Hi @JeelRajodiya , can we work on this idea ?. Looking for your thoughts
JeelRajodiya commentedon Jun 2, 2025
@AQIB-NAWAB We can move the solution into a separate tab of its own as shown in this comment by @Yashwanth1906. also, transform the show solution link into "use this solution" button and move it into the new tab we created for the solution.
AQIB-NAWAB commentedon Jun 8, 2025
Hi @JeelRajodiya , Please review the PR.