Page MenuHomePhabricator

When creating an inline comment, populate the content state with the default suggestion text
ClosedPublic

Authored by epriestley on Mar 25 2021, 9:07 PM.
Tags
None
Referenced Files
F18785902: D21652.id.diff
Tue, Oct 14, 2:33 PM
F18784986: D21652.diff
Mon, Oct 13, 4:38 PM
F18783260: D21652.id51521.diff
Mon, Oct 13, 5:28 AM
F18751166: D21652.id51544.diff
Sat, Oct 4, 9:56 AM
F18734414: D21652.id.diff
Tue, Sep 30, 10:53 PM
F18671300: D21652.id.diff
Thu, Sep 25, 3:24 AM
F18632852: D21652.diff
Tue, Sep 16, 6:40 PM
F18593383: D21652.id.diff
Sep 12 2025, 2:46 PM
Subscribers
None

Details

Summary

Ref T13559. Currently, the default text for inline comment side-loads in a bizarre way. Instead, when a user creates an inline comment, load the inline context and set it as part of the initial content state.

This allows the side channel (and the code that puts the text in place at the last second on the client) to be removed.

Test Plan

Created inlines, clicked "Suggest Edit". See followup changes.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 29 2021, 4:00 PM
This revision was automatically updated to reflect the committed changes.