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
F18861693: D21652.diff
Sun, Nov 2, 4:17 PM
F18835489: D21652.diff
Sun, Oct 26, 4:13 PM
F18830735: D21652.diff
Sat, Oct 25, 8:24 AM
F18809150: D21652.diff
Sun, Oct 19, 11:31 AM
F18794301: D21652.diff
Thu, Oct 16, 11:23 PM
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
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.