Page MenuHomePhabricator

Touch up PHP/JS interactions for inline comments
ClosedPublic

Authored by epriestley on Mar 27 2015, 11:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 14, 2:40 PM
Unknown Object (File)
Thu, Apr 11, 9:28 AM
Unknown Object (File)
Tue, Apr 9, 5:28 PM
Unknown Object (File)
Fri, Apr 5, 7:01 PM
Unknown Object (File)
Thu, Apr 4, 9:08 AM
Unknown Object (File)
Sun, Mar 31, 8:22 AM
Unknown Object (File)
Thu, Mar 21, 9:16 AM
Unknown Object (File)
Mar 20 2024, 6:42 PM
Subscribers

Details

Summary

Ref T1460. Overall:

  • Pass objectOwnerPHID consistently.
  • Pass viewer consistently.
  • Set the correct draft state for checkboxes on the client.
Test Plan
  • Made inline comments in Differential.
  • Made inline comments in Diffusion.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Touch up PHP/JS interactions for inline comments.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
src/infrastructure/diff/view/PHUIDiffInlineCommentDetailView.php
139

I renamed this (currently unused) class because inlines show up on commits too, so "diff author" was a little un-general.

webroot/rsrc/css/application/differential/phui-inline-comment.css
247–250

This is just making sure that the interaction works.

chad edited edge metadata.
This revision is now accepted and ready to land.Mar 28 2015, 12:08 AM
This revision was automatically updated to reflect the committed changes.

Should marking "done" state show in comment previews? It doesn't currently.

It shouldn't be possible to mark "Done" on inline comments which are showing in the inline preview, unless I'm misunderstanding?

There's no preview for the "epriestley marked 17 inlines done." transaction, just because the way that preview is built hasn't been fully modernized. It will show up eventually.

Inlines which you've altered by merely marking "Done" also don't show up in the inline preview. I think this is desirable/correct, at least for now, maybe? Feels kind of heavy/awkward to mix inlines you've added and inlines you've marked "Done" down there. I would expect "epriestley marked 17 inlines done." to show up there eventually, and probably for there to be other queues depending on other views of done-ness.

Generally, my expectation is:

  • We should show "epriestley marked 17 inlines done." as a transaction preview, and don't only because the code isn't fully modern. This will either autofix eventually or I can explicitly fix it sooner.
  • Adding the actual comments down there feels kind of heavy/weird offhand, but there's no technical reason we can't pursue it if it feels like it's missing. I'd want to get the transaction preview working first and see if that's good enough, though, and have a clearer idea of where we're going with the top of the revision.

Yeah, it just confused me at first. We say "unsubmitted", so you'll scroll down ... but it's not attached to the preview.

(and I get a dialog when I submit)

pasted_file (210×562 px, 32 KB)