Page MenuHomePhabricator

In prose diff dialogs (like "Show Details" in transactions), show "old", "new" and "diff" tabs
ClosedPublic

Authored by epriestley on Nov 7 2016, 7:23 PM.
Tags
None
Referenced Files
F14057886: D16817.diff
Sun, Nov 17, 7:35 AM
F14010110: D16817.id40503.diff
Thu, Oct 31, 5:07 AM
F14006520: D16817.id40496.diff
Mon, Oct 28, 11:41 AM
F13989003: D16817.id40504.diff
Mon, Oct 21, 5:27 PM
F13984867: D16817.diff
Sun, Oct 20, 4:33 PM
Unknown Object (File)
Oct 9 2024, 6:04 AM
Unknown Object (File)
Oct 2 2024, 3:37 AM
Unknown Object (File)
Sep 29 2024, 2:15 PM
Subscribers
None
Tokens
"Yellow Medal" token, awarded by avivey.

Details

Summary

Ref T7643. When you do something like this:

  • Edit a task description.
  • Click "Show Details" on the resulting transaction.
  • Get a prose diff dialog showing the change.

...now add some "Old" and "New" tabs. These are useful for:

  • reverting to the old text by copy/pasting;
  • reading just the new/old text if the diff is noisy;
  • sometimes just nice to have?

(This looks a little rough but I didn't want to put a negative margin on tab groups inside dialogs? Not sure what the best fix here is.)

Test Plan

Screen Shot 2016-11-07 at 11.18.39 AM.png (812×1 px, 88 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to In prose diff dialogs (like "Show Details" in transactions), show "old", "new" and "diff" tabs.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.

You can add a class to the dialog, we do this with object-lists:

pasted_file (62×207 px, 8 KB)

chad edited edge metadata.
This revision is now accepted and ready to land.Nov 7 2016, 8:53 PM
epriestley edited edge metadata.
  • Uh just kind of fake it, maybe I'll clean this up when I fix Paste/Config code diffs? 🐗
This revision was automatically updated to reflect the committed changes.