Page MenuHomePhorge

Dashboard Text Panel: improve feed when changing Description
ClosedPublic

Authored by valerio.bozzolan on May 8 2024, 09:45.

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.May 8 2024, 10:53