Page MenuHomePhorge

Fix UX regression in Dashboard Tabs Panel
ClosedPublic

Authored by valerio.bozzolan on Jun 12 2023, 14:22.
Tags
None
Referenced Files
F2188167: D25291.1715565079.diff
Sun, May 12, 01:51
F2188166: D25291.1715565075.diff
Sun, May 12, 01:51
F2188026: D25291.1715556328.diff
Sat, May 11, 23:25
Unknown Object (File)
Fri, May 10, 19:21
Unknown Object (File)
Wed, May 8, 05:22
Unknown Object (File)
Tue, May 7, 21:34
Unknown Object (File)
Sat, Apr 27, 10:11
Unknown Object (File)
Thu, Apr 25, 11:33

Details

Summary

Before this change, it seems that the Dashboard Tabs Panel could be empty
as default. This was the regression:

cbc0e661544a31290099ab3d88481bb8d4a3003c

The variable $is_selected was defined inside a foreach loop, but that loop
was terminated when it was then read again. This redefines that variable in
the right scope.

BeforeAfter
Before D25291.png (596×591 px, 31 KB)
After D25291.png (596×591 px, 25 KB)

Closes T15474

Test Plan
  • see that now you have something visibile in your Dashboard Tabs Panel

Diff Detail

Repository
rP Phorge
Branch
arcpatch-D25291
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 551
Build 551: arc lint + arc unit

Event Timeline

put the change nearby the problem

valerio.bozzolan added inline comments.
src/applications/dashboard/paneltype/PhabricatorDashboardTabsPanelType.php
114

Note this, that just lives inside the above loop. So it needs to be re-defined in the below loop.

Premising that I would like to see this comparison logic to be in a separate static method, but honestly it would just be an equality, so we can just have a green light for this copy-pasta.

I double-checked and I'm quite sure that this fixes the issue reported by the kind @speck

No worries, I haven’t had time to dig in. I wanted to review D25067

This revision is now accepted and ready to land.Jun 26 2023, 23:44