Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor UI routing #2605

Open
leafty opened this issue Jun 19, 2023 · 0 comments · Fixed by #3009
Open

Refactor UI routing #2605

leafty opened this issue Jun 19, 2023 · 0 comments · Fixed by #3009

Comments

@leafty
Copy link
Member

leafty commented Jun 19, 2023

Currently, routing in the UI is done in source files found in various places which makes searching and finding UI components based on the URL difficult to do, e.g. /projects/:projectId/sessions/new goes through index.js > App.js (2 components with <Route>) > project/Project.present.js (2 components with <Route>).

Suggestion

Refactor routing to have it defined from client/src/routes so that finding which components are rendered based on the URL is made easier.

@lorenzo-cavazzi lorenzo-cavazzi linked a pull request Feb 5, 2024 that will close this issue
@lorenzo-cavazzi lorenzo-cavazzi moved this from Todo to In Progress in Renku UI board Feb 5, 2024
leafty added a commit that referenced this issue Feb 6, 2024
See #2605.

First part of refactoring UI routing:
* Refactor routing to remove the use of the `render` in favor of a child component
* Refactored some components to remove one level of prop drilling and replace the propagation of `location` and `history` to use the hooks from `react-router`
@github-project-automation github-project-automation bot moved this from In Progress to Done in Renku UI board Feb 6, 2024
@leafty leafty reopened this Feb 7, 2024
@lorenzo-cavazzi lorenzo-cavazzi moved this from Done to Todo in Renku UI board May 28, 2024
@lorenzo-cavazzi lorenzo-cavazzi moved this from Todo to In Progress in Renku UI board May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

2 participants