Page MenuHomePhorge

Fix UX regression in Dashboard Tabs Panel
ClosedPublic

Authored by valerio.bozzolan on Jun 12 2023, 14:22.
Tags
None
Referenced Files
F3317698: D25291.1743265362.diff
Fri, Mar 28, 16:22
F3307361: D25291.1743143651.diff
Thu, Mar 27, 06:34
F3307238: D25291.1743141391.diff
Thu, Mar 27, 05:56
F3306859: D25291.1743133508.diff
Thu, Mar 27, 03:45
F3305134: D25291.1743110363.diff
Wed, Mar 26, 21:19
F3298859: D25291.1743010196.diff
Tue, Mar 25, 17:29
F3295881: D25291.1742962959.diff
Tue, Mar 25, 04:22
F3284578: D25291.1742778965.diff
Sun, Mar 23, 01:16

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