Conversation
Summary of ChangesHello @blushi, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the user experience during project creation and editing by implementing a more contextual navigation flow. Instead of a broad redirect to the dashboard upon closing, users are now guided directly to the management page of the specific project they were working on, enhancing workflow continuity. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
In this pull request, you've updated the close button behavior on the project create/edit page to redirect to the project management page. The logic seems correct. I've added one suggestion to refactor the navigation logic to make it more concise and avoid code duplication.
web-marketplace/src/legacy-pages/ProjectCreate/ProjectCreate.tsx
Outdated
Show resolved
Hide resolved
✅ Deploy Preview for terrasos ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@erikalogie @S4mmyb see testing instructions |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d6cade4545
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
web-marketplace/src/legacy-pages/ProjectCreate/ProjectCreate.tsx
Outdated
Show resolved
Hide resolved
|
The issue could be reproduced by clicking "create project" from the dashboard, closing the form then clicking "create project" and trying to close the form again. This was because of both react and next router being used in that case which caused some route re-rendering issue. I've pushed a fix. |
ff4d968 to
cc87ddc
Compare
|
The last remaining issue was after creating a org project from basic info form through "save & exit", for some reason you were still redirected to the rest of the project create flow (location form) and then clicking close button led to user dashboard instead of org dashboard. I've fixed it so that you are not being redirected to location form in the first place since you want to save and EXIT. |
|
if you reload the page, does the project location show up? If yes, then that's a data caching issue, let's open a separate bug for it. |
Yes it works on reload. I'll open a new bug for it |
I've fixed the close button issue from the edit form, this happened when opening the edit form a first time, closing it, opening it a second time and then trying to close it again. |
It looks like this issue is already on dev, so I've created a separate bug for it on jira: https://regennetwork.atlassian.net/jira/software/c/projects/ENG/boards/51?selectedIssue=APP-892 |
|
LGTM! |
|
@alexander-astrand could you have a look at this? thanks! |
| | undefined; | ||
| const [searchParams] = useSearchParams(); | ||
| const fromPath = searchParams.get('from'); | ||
| const fromDashboard = !!fromPath; |
There was a problem hiding this comment.
fromDashboard is now true whenever a from param exists, but from is also set by ListProject and SellOrdersActionsBar, which aren't the dashboard. Could this name be misleading? Maybe hasOriginPath or similar?
| const [searchParams] = useSearchParams(); | ||
| const fromPath = searchParams.get('from'); | ||
| const fromDashboard = !!fromPath; | ||
| const isOrganizationParam = searchParams.get('isOrganization') === 'true'; |
There was a problem hiding this comment.
Is this param only added from MyProjects? If a user bookmarks or shares a URL with isOrganization=true, could it cause unexpected behavior?
There was a problem hiding this comment.
yes
if the user bookmarks the URL then it means it would try to create the project from the org account, which makes sense, I don't see how this is unexpected behavior
|
LGTM! |
2c2c8a9 to
59ef5e5
Compare

Description
https://regennetwork.atlassian.net/browse/APP-868
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
How to test
1.1. then click the x close button at the top right, you should go back to the page you were before.
1.2. Do the same while going through a few steps of the project creation process and click close, you should go back to the page you were before starting the create flow.
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...