Skip to content

Add report exercise issue feature (frontend)#901

Merged
mircealungu merged 5 commits intomasterfrom
feature/report-exercise-issue
Feb 15, 2026
Merged

Add report exercise issue feature (frontend)#901
mircealungu merged 5 commits intomasterfrom
feature/report-exercise-issue

Conversation

@mircealungu
Copy link
Member

Summary

  • Add reportExerciseIssue API method
  • Create ReportExerciseDialog with contextual chip options
  • Add subtle flag icon to exercises (always visible)
  • Show "Reported" badge after submission

UI behavior

During exercise (before answering):

  • Word not shown
  • Context confusing
  • Other...

After exercise (after answering):

  • Wrong translation
  • Context wrong
  • Other...

Test plan

  • Open any exercise (e.g., FindWordInContextCloze)
  • Verify flag icon appears near "Show solution"
  • Click flag → dialog with chips appears
  • Select category → toast confirmation, icon changes to badge
  • Verify "Other" option shows text field

Dependencies

Requires backend PR: API report_exercise_issue endpoint

🤖 Generated with Claude Code

- Add reportExerciseIssue API method
- Create ReportExerciseDialog with contextual chips:
  - During exercise: Word not shown, Context confusing, Other
  - After exercise: Wrong translation, Context wrong, Other
- Add subtle flag icon to SolutionFeedbackLinks (always visible)
- Add ReportButton and ReportedBadge styled components

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@netlify
Copy link

netlify bot commented Feb 14, 2026

Deploy Preview for voluble-nougat-015dd1 ready!

Name Link
🔨 Latest commit 4d44b50
🔍 Latest deploy log https://app.netlify.com/projects/voluble-nougat-015dd1/deploys/699139ba1fb29f0008213f9a
😎 Deploy Preview https://deploy-preview-901--voluble-nougat-015dd1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

mircealungu and others added 4 commits February 14, 2026 15:01
- Use placeholder instead of floating label
- Style send button with orange background when active
- Better alignment and spacing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Move flag icon from SolutionFeedbackLinks to ExerciseSession top bar
- Replace exercise type name (was dev-only) with report flag for all users
- Make top bar thinner with reduced padding
- Update dialog title to "What's wrong with the exercise?"
- Reset report state when moving to next exercise

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mircealungu mircealungu merged commit ca8585d into master Feb 15, 2026
3 of 4 checks passed
@mircealungu mircealungu deleted the feature/report-exercise-issue branch February 15, 2026 03:13
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