Loading
Show the suggestion onboarding popover in Rapid Diffs
What
On legacy diffs, a first-time user who opens a comment form on a diff line sees a one-time onboarding popover pointing at code suggestions, with a "Got it" button that dismisses it permanently for that user. Rapid Diffs never showed this popover and did not offer code suggestions on new-line comment forms at all. This restores that popover and re-enables spec/features/merge_request/user_suggests_changes_on_diff_spec.rb's "hides suggestion popover" example.
Reproduction
- Enable the
rapid_diffs_default_on_mr_showfeature flag. - As a user who has never dismissed the suggestion popover, open a merge request's Changes tab.
- Hover a diff line and start a new comment. The onboarding popover appears.
- Click "Got it". The popover disappears.
- Reload the page and start another comment. The popover no longer appears.