-
Notifications
You must be signed in to change notification settings - Fork 10
feat: APP-854 add select field for org/user for signing data post #2790
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
base: dev
Are you sure you want to change the base?
feat: APP-854 add select field for org/user for signing data post #2790
Conversation
✅ Deploy Preview for terrasos ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Summary of ChangesHello @alexander-astrand, 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 introduces a new feature that empowers users to explicitly select whether they want to sign data posts using their personal account or an associated organization account. This enhancement improves user control over data attestation and ensures that the signing entity is accurately represented. The changes involve updating the signing modal's user interface to include an account selection dropdown and modifying the underlying signing logic to correctly handle the chosen account type for transaction processing. Highlights
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request successfully implements the functionality to allow users to select whether to sign a data post as their personal account or as an organization. The changes are well-structured, introducing a selector in the signing modal and correctly passing the choice down to the signing logic. The enhancement to ProjectAccountSelector to use a portal for its dropdown is a great improvement for UI consistency, preventing clipping issues within modals. I have a couple of suggestions to improve the code further by applying React best practices for performance and simplifying some logic for better readability.
web-marketplace/src/components/organisms/PostFlow/hooks/useSign.ts
Outdated
Show resolved
Hide resolved
web-marketplace/src/components/organisms/ProjectAccountSelector/ProjectAccountSelector.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 409fdb46b0
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
web-marketplace/src/components/organisms/PostFlow/hooks/useSign.ts
Outdated
Show resolved
Hide resolved
blushi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Make sure to run i18n scripts
-
If I create a data post for a personal project (from my user account) while being part of an org, then I see the select field when signing it, I don't think it should be the case, it should be only for projects from the org. Thoughts @erikalogie ?
-
"Personal" and "Organization" should be black not grey
web-marketplace/src/components/organisms/PostFlow/hooks/useSign.ts
Outdated
Show resolved
Hide resolved
web-marketplace/src/components/organisms/PostFlow/hooks/useSign.ts
Outdated
Show resolved
Hide resolved
web-marketplace/src/components/organisms/ProjectAccountSelector/ProjectAccountSelector.tsx
Show resolved
Hide resolved
Correct, dropdown should only appear for projects from the org |
|
I've also noticed it and fixed this in #2791 already |
Yes since this is unrelated to the work in this PR, could you create a separate task for that? thanks |
Sure, done: https://regennetwork.atlassian.net/browse/APP-873 |
7e97240 to
8518590
Compare
… signing data post
…oject has orgId, fix avatar not showing for org in dropdown
39d6c87 to
0dd8331
Compare
| iri={iri} | ||
| published={createdPostData?.published} | ||
| hasAddress={hasAddress} | ||
| isOrganizationProject={pathname.startsWith('/dashboard/organization')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh actually after thinking more about this, this doesn't support the case where you create a data post from the project page itself ( and not from the org dashboard)
so I think the best way would be to check that the current user belongs to the org the project belongs to





Description
https://regennetwork.atlassian.net/browse/APP-854
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
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...