1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-16 11:52:40 +01:00
phorge-phorge/src/applications/differential/view
epriestley de7aa2186c Resolve great internal confusion about left vs right inline comments
Summary:
This code was just all kinds of wrong, but got all the common cases anyone cares
about correct.

  - In edit-inline-comments.js, if isOnRight() is true, use data.right, not
data.left (derp).
  - Set data.left correctly, not to the same value as data.right (derp derp).
  - Set "isNewFile" based on $is_new, not $on_right (derp derp derp).

Test Plan:
 - Added JS debugging code to print "OLD" vs "NEW" and "LEFT" vs "RIGHT".
Clicked the left and right sides of diff-vs-base and diff-vs-diff diffs,
verified output was accurate in all cases.
 - Added comments to the left-display-side of a diff-of-diffs, saved them, they
showed up where I put them.

Reviewers: btrahan, vrana

Reviewed By: btrahan

CC: aran, epriestley

Maniphest Tasks: T543

Differential Revision: https://secure.phabricator.com/D1567
2012-02-03 15:26:47 -08:00
..
addcomment Improve behavior when user submits a no-op action in Differential 2012-01-15 03:44:09 -08:00
changesetdetailview Resolve great internal confusion about left vs right inline comments 2012-02-03 15:26:47 -08:00
changesetlistview Resolve great internal confusion about left vs right inline comments 2012-02-03 15:26:47 -08:00
difftableofcontents Factor out DifferentialDiffTableOfContentsView::renderChangesetLink() 2012-01-24 10:42:01 -08:00
inlinecomment Retry failed page anchor navigation 2012-01-05 18:02:02 -08:00
localcommits Display local commit information in Differential 2011-08-31 13:49:50 -07:00
primarypane Allow comment panel to be stuck/unstuck to the bottom of the display 2011-07-08 13:24:20 -07:00
revisioncomment Make Differential comments be styled similarly to Maniphest comments 2012-01-29 16:18:10 -08:00
revisioncommentlist Link to undisplayed inline comments 2012-01-06 11:50:59 -08:00
revisiondetail Hide auxiliary fields that have no value set 2011-12-16 16:49:45 -08:00
revisionlist Unify terminology in Differential overview 2012-01-23 17:39:49 -08:00
revisionupdatehistory Fix issue where all rows in "Revision Update History" render the same base 2012-01-31 12:07:41 -08:00