Page MenuHomePhabricator

Reduce code duplication for inline "Undo"
ClosedPublic

Authored by epriestley on Mar 8 2015, 10:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 24, 10:01 PM
Unknown Object (File)
Tue, Dec 24, 9:44 PM
Unknown Object (File)
Mon, Dec 23, 6:45 AM
Unknown Object (File)
Thu, Dec 12, 10:14 AM
Unknown Object (File)
Wed, Dec 11, 3:21 AM
Unknown Object (File)
Sat, Nov 30, 10:21 AM
Unknown Object (File)
Nov 20 2024, 9:26 AM
Unknown Object (File)
Nov 16 2024, 9:10 AM
Subscribers

Details

Summary

Ref T2009. This is another almost-identical copy of the row scaffolding, which has the same 1up/2up bugs as the 8 other copies of this code.

Turn the "undo" element into an InlineCommentView so we can scaffold it.

Then, scaffold it with the same code as everything else.

Test Plan

Hit "Undo", swapped from 1up to 2up, hit "undo" again, swapped back, tried left/right, everything rendered with proper scaffolding.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Reduce code duplication for inline "Undo".
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
chad edited edge metadata.
chad added inline comments.
src/infrastructure/diff/view/PHUIDiffInlineCommentUndoView.php
38

pht

This revision is now accepted and ready to land.Mar 8 2015, 11:32 PM
This revision was automatically updated to reflect the committed changes.