Skip to content

Conversation

@GspikeHalo
Copy link
Contributor

@GspikeHalo GspikeHalo commented Sep 17, 2024

Propose:
Modify the search results on the Hub Workflow page to use the SearchResultComponent from the general search, and implement different redirection behavior based on the user's login status and access permissions.

Change:

  1. Replaced the search results on the Hub Workflow page with the SearchResult Component used in the general search.
  2. Handled different redirection scenarios:
    a) For users who are not logged in: Clicking on any workflow will redirect to the Workflow Detail page.
    b) For logged-in users: If the user clicks on a workflow they have access to, they will be redirected to the Workspace. If the user clicks on a workflow they don't have access to, they will be redirected to the Workflow Detail page.

Demo:
old hub-workflow interface:
368771579-10132eba-dc2a-4e50-98aa-c7a79cc695cb

new hub-workflow interface:
new hub-workflow interface

redirect demo:
https://github.com/user-attachments/assets/21b70275-9f6b-4a71-b977-b39a58bd6a11

@sixsage sixsage added feature refactor Refactor the code starter-task frontend Changes related to the frontend GUI labels Sep 24, 2024
Base automatically changed from texera-hub-published to master September 25, 2024 05:35
Copy link
Contributor

@aglinxinyuan aglinxinyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Left some comments.

@GspikeHalo GspikeHalo merged commit 2c456bf into master Sep 25, 2024
@GspikeHalo GspikeHalo deleted the refactor-hub-workflow-interface branch September 25, 2024 19:33
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
…#2838)

**Propose:**
Modify the search results on the Hub Workflow page to use the
SearchResultComponent from the general search, and implement different
redirection behavior based on the user's login status and access
permissions.

**Change:**
1. Replaced the search results on the Hub Workflow page with the
SearchResult Component used in the general search.
2. Handled different redirection scenarios:
a) For users who are not logged in: Clicking on any workflow will
redirect to the Workflow Detail page.
b) For logged-in users: If the user clicks on a workflow they have
access to, they will be redirected to the Workspace. If the user clicks
on a workflow they don't have access to, they will be redirected to the
Workflow Detail page.

**Demo:**
old hub-workflow interface:

![368771579-10132eba-dc2a-4e50-98aa-c7a79cc695cb](https://github.com/user-attachments/assets/3150b0d8-6226-498f-9019-c88471e59c19)

new hub-workflow interface:
![new hub-workflow
interface](https://github.com/user-attachments/assets/b08404a4-91cd-4e89-8166-a4a04972cea2)

redirect demo:

https://github.com/user-attachments/assets/21b70275-9f6b-4a71-b977-b39a58bd6a11

---------

Co-authored-by: Xinyuan Lin <xinyual3@uci.edu>
Co-authored-by: linxinyuan <linxinyuan@gmail.com>
Co-authored-by: YS0meone <timyuan1016@gmail.com>
Co-authored-by: sixsage <sixsage02@gmail.com>
Co-authored-by: mengw15 <125719918+mengw15@users.noreply.github.com>
Co-authored-by: Minchong(Brian) Wu <143851082+IamtherealBrian@users.noreply.github.com>
Co-authored-by: Yicong Huang <17627829+Yicong-Huang@users.noreply.github.com>
Co-authored-by: Yicong Huang <yicong.huang@observeinc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature frontend Changes related to the frontend GUI refactor Refactor the code starter-task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants