Page MenuHomePhorge

Dashboard Text Panel: improve feed when changing Description
ClosedPublic

Authored by valerio.bozzolan on Wed, May 8, 09:45.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 18, 06:40
Unknown Object (File)
Wed, May 15, 11:11
Unknown Object (File)
Wed, May 15, 04:45
Unknown Object (File)
Mon, May 13, 21:33
Unknown Object (File)
Sun, May 12, 16:11
Unknown Object (File)
Sat, May 11, 18:29
Unknown Object (File)
Fri, May 10, 21:39
Unknown Object (File)
Fri, May 10, 18:21

Details

Summary

When creating a Dashboard Text Panel, from example from here:

http://phorge.localhost/dashboard/panel/edit/?panelType=text

After you change its Description,

Before this change, this was the feed (but you must have Developer Mode):

foo.bar edited this object (transaction type "text.text").

After this change, this is the feed:

foo.bar edited the the panel text. (Show Details)

So, not only we show a nice title, but we also allow to see details.

BeforeAfter
D25624 Before.png (664×542 px, 69 KB)
D25624 After.png (684×542 px, 70 KB)

Credits:

  • LegalpadDocumentTextTransaction for the getTitle() method
  • ManiphestTaskDescriptionTransaction for the details

Closes T15817

Test Plan
  • Create a Text Panel from /dashboard/panel/edit/?panelType=text
  • Change description
  • See the new feed
  • Click on "Show Details". Also that works. You see A/B changes.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

aklapper subscribed.

Tested this patch on http://phorge.localhost/feed/transactions/ and in the feed at the bottom of http://phorge.localhost/W20 itself.
Also tested changing panel visibility from Public to Admin only and accessing these URIs as an average user.
All working as expected, no explosions.

This revision is now accepted and ready to land.Wed, May 8, 10:53