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)
Wed, Nov 20, 9:26 AM
Unknown Object (File)
Sat, Nov 16, 9:10 AM
Unknown Object (File)
Tue, Nov 12, 1:30 AM
Unknown Object (File)
Fri, Nov 8, 8:53 AM
Unknown Object (File)
Oct 15 2024, 9:34 AM
Unknown Object (File)
Oct 3 2024, 11:43 AM
Unknown Object (File)
Oct 3 2024, 10:45 AM
Unknown Object (File)
Sep 1 2024, 6:16 PM
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.