Page MenuHomePhabricator

Reduce code duplication for inline "Undo"
ClosedPublic

Authored by epriestley on Mar 8 2015, 10:28 PM.
Tags
None
Referenced Files
F18048513: D12019.id.diff
Sun, Aug 3, 1:36 PM
F17920222: D12019.diff
Wed, Jul 30, 3:29 AM
Unknown Object (File)
Jun 17 2025, 3:32 AM
Unknown Object (File)
Jun 16 2025, 9:52 PM
Unknown Object (File)
Jun 16 2025, 3:21 AM
Unknown Object (File)
May 21 2025, 4:01 AM
Unknown Object (File)
May 12 2025, 3:42 AM
Unknown Object (File)
May 10 2025, 8:49 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.