-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add public datasets under "Hub" (#3129)
### Purpose: Added a new interface for public datasets, allowing non-logged-in users to view datasets shared by others. The behavior of public datasets aligns with that of public workflows, ensuring consistent access and interaction with public resources. ### Changes: 1. Added "Hub Dataset" to the left sidebar. Clicking on it will display public datasets. 2. Updated the list item behavior: When a user clicks a list item of type "dataset," different navigation actions are taken depending on the situation: - If the user is not logged in, they will always be redirected to the Hub Dataset page. This page disables the download functionality and does not display the publish switch. - If the user is logged in but lacks direct access permissions (e.g., read or write), they will still be redirected to the Hub Dataset page. - If the user is logged in and has read or write permissions, they will be redirected to the User Dataset page, which is the original dataset page we had. ### Demos: **Before:** Left sidebar: ![image](https://github.com/user-attachments/assets/4d461f79-1a5d-4e65-b6d9-08c55005410d) **After:** Left sidebar: ![image](https://github.com/user-attachments/assets/a468cbe7-f40f-40f1-8458-4b5c39ad056a) Public Dataset Interface Before Login: ![image](https://github.com/user-attachments/assets/89819585-e401-43f6-82bb-8fcb50dace1f) Public Dataset Interface After Login: ![image](https://github.com/user-attachments/assets/0c0ad66f-764d-4261-9137-0ae433cfd38a) Non-logged-in user clicking any dataset: ![image](https://github.com/user-attachments/assets/04643d12-57af-4b94-bbb6-331db13ae038) Logged-in user without direct permissions clicking any dataset: ![image](https://github.com/user-attachments/assets/ce693abc-a6b3-47cc-8b5f-63c0b5e24f62) Logged-in user with direct permissions clicking any dataset: ![image](https://github.com/user-attachments/assets/df28fd0b-9992-4e40-b480-ec83bfe3dc9d)
- Loading branch information
1 parent
f319d5a
commit 460e078
Showing
22 changed files
with
334 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.