Problem to solve
GroupTabsJS class is tightly coupled with
UserTabsclass which complexifies the maintenance.
UserTabsJS class is not flexible enough to configure it and build different tabs switching logic on top of it.
Proposal / Implementation plan
Create a generic
Tabsclass without any "user tabs" specific details
defaultActionconfigurable and separate "action" and "tab" concerns in code
GroupTabsclasses to be built on top of
Tabsand independent on each other
Investigate the reason for the JS-introduced redirect to the
'show'action's path from whatever the first tab URL is and discuss if it's a good thing to have this redirect; otherwise remove; may need a separate issue for that