Feature #22394
Updated by Peter Amstutz 16 days ago
# If it's not too expensive, consider showing counts in tab title as @|Data (50)|Workflows (10)|@ # Have a preferred tab which is always displayed after a navigation action (right now, the one that it shows after navigation is based on React state) ## Specifically, if I'm looking at workflows right now and my preferred tab is Data, then navigation will always switch to show the Data tab # User option to choose which tab to prefer showing ## From discussion, I think preference saved in local storage (unfortunately we add a new "User Preferences" panel accessed through the top right "User" menu. ## This would don't really have a toggle button an established UI convention for the desired behavior user preferences like this, so we have to decide on one) ## I was thinking it could be saved in local storage, but actually think the "user record":https://doc.arvados.org/v3.1/api/methods/users.html has a "prefs" field which was kind of intended for this sort of thing, so maybe we preferred tab should use that? Stretch goal: If it's not too expensive, show counts appear first in tab title as @|Data (50)|Workflows (10)|@. This should just use order, so if you want to see workflows, the same count as tabs are @|Workflows (10)|Data (50)|@ # If the data table under preferred tab is empty, switch to the alternate tab, we definitely don't want unless they are both empty. ## In practice this means, if the workflows tab was preferred, but there are no workflow runs, automatically switch to the data tab -- practically speaking it will never be doing any additional API queries. the case where there are workflow runs (container requests) but no collections in the same project, but it is easy for there to be collections and no workflow runs.