Page MenuHomePhorge

Fix UX regression in Dashboard Tabs Panel
ClosedPublic

Authored by valerio.bozzolan on Jun 12 2023, 14:22.
Tags
None
Referenced Files
F2946992: D25291.1738439925.diff
Fri, Jan 31, 19:58
F2940206: D25291.1738041356.diff
Mon, Jan 27, 05:15
F2940205: D25291.1738041355.diff
Mon, Jan 27, 05:15
F2940203: D25291.1738041353.diff
Mon, Jan 27, 05:15
F2940043: D25291.1738037209.diff
Mon, Jan 27, 04:06
F2938154: D25291.1737974115.diff
Sun, Jan 26, 10:35
F2912979: D25291.1737416700.diff
Sun, Jan 19, 23:45
F2905192: D25291.1737339113.diff
Sun, Jan 19, 02:11

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