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
F15448940: D21652.id51521.diff
Fri, Mar 28, 7:47 AM
F15448186: D21652.id51544.diff
Fri, Mar 28, 3:22 AM
F15446888: D21652.diff
Thu, Mar 27, 8:39 PM
F15441110: D21652.id.diff
Wed, Mar 26, 4:27 PM
F15437217: D21652.diff
Tue, Mar 25, 6:22 PM
F15423584: D21652.diff
Sat, Mar 22, 4:12 PM
F15422959: D21652.diff
Sat, Mar 22, 11:39 AM
F15419079: D21652.diff
Fri, Mar 21, 3:19 AM
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.