reanahub / reana-ui

REANA UI frontend
http://reana-ui.rtfd.io
MIT License
4 stars 32 forks source link

wf-list: nothing happens when clicking on REANA logo #374

Open mdonadoni opened 7 months ago

mdonadoni commented 7 months ago

Clicking the REANA logo in the top-left part of the UI brings the user back to the workflow list page.

image

However, if the user is already on the workflow list page nothing happens, even if the workflow list is being filtered and/or if the selected page is not the first one. Instead, I would expect the page to be refreshed, any filtering to be removed and to be brought back to the first page of the workflow list.

Alputer commented 1 month ago

Currently, we use local state for search parameters and the page number on the WorkflowList page as shown below:

image

However, to refresh the page after clicking on the "reana" logo, the best approach is to switch this local state to a global state in Redux since we do not have access to this local state inside the header component. Global state in Redux is also bit tricky because we already have another "WORKFLOW_LIST_REFRESH" action in Redux, which is somewhat misleading in its purpose.

image

Therefore, I propose combining this task with refactoring the refreshing, pagination, and searching mechanism of the WorkflowList page.

mdonadoni commented 1 month ago

See also: https://github.com/reanahub/reana-ui/issues/398