]> git.arvados.org - arvados.git/commit
21642: Fix tab state misalignment by oursourcing tab state management
authorStephen Smith <stephen@curii.com>
Thu, 18 Apr 2024 20:27:01 +0000 (16:27 -0400)
committerStephen Smith <stephen@curii.com>
Thu, 18 Apr 2024 20:27:01 +0000 (16:27 -0400)
commitfda8272ebf1a38844760bca03aef3472795b6a9e
treee1c1207d0adb02db9d46c741b83c884dec10b039
parent299bde122ec3174db566a19a82862f3f138215fe
21642: Fix tab state misalignment by oursourcing tab state management

ConditionalTabs component ensures no state misalignments by displaying tab
content by indexing into the same array of tabs that are given to the tab bar

By grouping tab and contents, we can simply remove inactive tabs before trying
to figure out which contents to show, making the logic much easier.

Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>
services/workbench2/src/components/conditional-tabs/conditional-tabs.tsx [new file with mode: 0644]
services/workbench2/src/views/process-panel/process-io-card.tsx