Feedback can race with selection
A review panel may stay open while a background result arrives or the user chooses a different thumbnail. A generic submit handler that reads selected_asset at submission time can attach the comment to the wrong output, degrading both support and product evaluation.
What to do next
- 01
Capture the review target
When opening feedback, store the asset version, attempt identity and brief context in the form state. Show a thumbnail or concise version label so the user can see exactly which output the comment concerns.
- 02
Handle target changes deliberately
If the gallery selection changes, either keep the feedback target fixed with a visible label or ask the user to move the unsent comment. Do not silently follow the current selection during final submission.
- 03
Validate the association server-side
Check that the user can review the referenced asset and that it belongs to the intended application context. Preserve the submitted target and timestamp so later reports do not rejoin comments through a mutable project selection pointer.
A concrete example
Illustrative example: the user opens feedback on output A, then views B to compare. Submitting the still-labeled A form records the comment on A. The application never infers that viewing B changed the subject of the comment.
Before you call it ready
- Feedback targets an immutable asset.
- Selection changes have explicit semantics.
- Historical reports do not use today's selection.
When to stop or choose another method
Stop associating feedback through whichever output happens to be selected when the submit callback runs.
