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
F14057346: D12186.diff
Sun, Nov 17, 2:22 AM
F14040065: D12186.id29293.diff
Mon, Nov 11, 7:17 AM
F14016315: D12186.id29293.diff
Mon, Nov 4, 7:51 AM
F14009663: D12186.id.diff
Wed, Oct 30, 10:29 PM
F14003822: D12186.id29293.diff
Sat, Oct 26, 11:13 AM
F13993451: D12186.diff
Tue, Oct 22, 10:55 PM
F13969149: D12186.id29293.diff
Oct 17 2024, 12:47 AM
Unknown Object (File)
Sep 21 2024, 4:11 AM
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

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)