Page MenuHomePhorge

Dashboard Tabs: fix action "Move Right"
ClosedPublic

Authored by valerio.bozzolan on Jun 23 2023, 10:35.
Tags
None
Referenced Files
F3114015: D25307.1741144033.diff
Tue, Mar 4, 03:07
F3110464: D25307.1741135664.diff
Tue, Mar 4, 00:47
F3110462: D25307.1741135663.diff
Tue, Mar 4, 00:47
F3110213: D25307.1741134863.diff
Tue, Mar 4, 00:34
F3082451: D25307.1741071463.diff
Mon, Mar 3, 06:57
F3012266: D25307.1740670402.diff
Wed, Feb 26, 15:33
F2982487: D25307.1739960405.diff
Tue, Feb 18, 10:20
F2950595: D25307.1738790398.diff
Feb 4 2025, 21:19

Details

Summary

It seems that if you use the "Move Right" action, you can get
an unrelated error message about "Move Left":

This is already the first tab. It can not move any farther to the left.

This happened because there was an incomplete condition.

Closes T15493

Test Plan
  • visit /dashboard/panel/ and create at least two panels (please, owned by you)
  • visit a Dashboard, and add a Tabs Panel
  • take the first Tab: "Move Right"

After this change, "Move Right" now always works.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

src/applications/dashboard/controller/panel/PhabricatorDashboardPanelTabsController.php
322

Note that here it checks $is_next

330

Note that here it was not checking if it was previous (!$is_next)

valerio.bozzolan retitled this revision from Dashboard Tabs: fix Move Right to Dashboard Tabs: fix action "Move Right".Jun 29 2023, 08:36
valerio.bozzolan edited the summary of this revision. (Show Details)
valerio.bozzolan edited the test plan for this revision. (Show Details)
src/applications/dashboard/controller/panel/PhabricatorDashboardPanelTabsController.php
314

When true: is next.

When false: is previous.

This revision is now accepted and ready to land.Jul 6 2023, 07:16