Page MenuHomePhorge

Workboard: fix CTRL+click on "Create Task" and "Edit Task"
ClosedPublic

Authored by valerio.bozzolan on Mar 7 2023, 12:35.
Tags
None
Referenced Files
F3553308: D25072.1744928085.diff
Wed, Apr 16, 22:14
F3506928: D25072.1744801414.diff
Tue, Apr 15, 11:03
F3394342: D25072.1744505384.diff
Sat, Apr 12, 00:49
F3387143: D25072.1744433028.diff
Fri, Apr 11, 04:43
F3373893: D25072.1744279516.diff
Wed, Apr 9, 10:05
F3373800: D25072.1744278007.diff
Wed, Apr 9, 09:40
F3370232: D25072.1744220503.diff
Tue, Apr 8, 17:41
F3368460: D25072.1744209216.diff
Tue, Apr 8, 14:33
Tokens
"Dat Boi" token, awarded by valerio.bozzolan.

Details

Summary

The CTRL+click now opens the links in a new tab, like any other
normal link opened with CTRL+click.

Note that the middle-click was already working.

Closes T15157

Test Plan
  • visit a Workboard
  • column > menu > mouse on "Create Task"
    • CTRL+click: open in new tab (→ now works)
    • normal click: open the pop-up (→ still works)
    • middle-click: open in new tab (→ still works)
  • column > single Task > mouse on "Edit"
    • CTRL+click: open in new tab (→ now works)
    • normal click: open the pop-up (→ still works)
    • middle-click: open in new tab (→ still works)

Diff Detail

Repository
rP Phorge
Branch
T15157-workboard-fix-create-task-ctrl-click
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 127
Build 127: arc lint + arc unit

Event Timeline

I tried to keep the diff as much small as possible. That is why I just added a small piece of code with a return; instead of a bigger refactoring.

So the goal is:

  • stop other listeners: that's why I've adopted stop()
  • don't prevent anything: that's why I've not called prevent()
  • don't open the pop-up: that's why I've set that return;

This patch also tries improves the user experience of this diff:

D25068: Workboard: improve the Create Task link to mention the Project slug

Anyway we can approve and land this or that in any order.

So the goal is:

  • stop other listeners: that's why I've adopted stop()
  • don't prevent anything: that's why I've not called prevent()
  • don't open the pop-up: that's why I've set that return;

The funny part is: every time I read this comment I'm even more confused. But hey, it works.

This revision is now accepted and ready to land.Mar 18 2023, 08:11