Skip to content

Conversation

@flacial
Copy link
Member

@flacial flacial commented Jan 13, 2023

Problem

The current implementation of flagging exercises in the DOJO design doc allows users to flag an exercise multiple times, resulting in a poor user experience. When a user attempts to flag an already flagged exercise, the backend returns an error and the frontend displays "Oops, something went wrong" without providing a clear reason for the error.

Changes

  • Display a message "We appreciate your concern. The exercise has already been reported and we are investigating the problem that has been reported." when a user tries to flag an already flagged exercise.

Screenshots

image

Testing

  • Log in to the application
  • Navigate to the /exercises/js0 page
  • Attempt to flag an already flagged exercise
  • Observe the clear error message displayed

Concerns

While this change addresses the immediate issue of poor user experience, it does not address the underlying problem of not allowing multiple flags per exercise. It would be better to allow multiple flags per exercise and provide an easy-to-use interface for reviewing and managing exercises with multiple-flags in the admin panel.

@vercel
Copy link

vercel bot commented Jan 13, 2023

@flacial is attempting to deploy a commit to the c0d3-prod Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jan 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
c0d3-app ✅ Ready (Inspect) Visit Preview Jan 15, 2023 at 5:51PM (UTC)

@codecov
Copy link

codecov bot commented Jan 13, 2023

Codecov Report

Merging #2693 (813d2b4) into master (e33db39) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #2693   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          189       189           
  Lines         3534      3539    +5     
  Branches       976       978    +2     
=========================================
+ Hits          3534      3539    +5     
Impacted Files Coverage Δ
components/ExerciseCard/ExerciseCard.tsx 100.00% <100.00%> (ø)
...mponents/ExerciseReportCard/ExerciseReportCard.tsx 100.00% <100.00%> (ø)
pages/exercises/[lessonSlug].tsx 100.00% <100.00%> (ø)

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.

2 participants