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
Unknown Object (File)
Wed, Dec 18, 3:14 PM
Unknown Object (File)
Fri, Dec 13, 10:45 AM
Unknown Object (File)
Fri, Dec 13, 3:19 AM
Unknown Object (File)
Wed, Dec 11, 4:42 AM
Unknown Object (File)
Tue, Dec 10, 2:22 PM
Unknown Object (File)
Mon, Dec 9, 4:44 PM
Unknown Object (File)
Sun, Dec 8, 3:54 PM
Unknown Object (File)
Fri, Dec 6, 6:58 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.