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

CreateSubOrgV3 #107

Merged
merged 3 commits into from
Sep 2, 2023
Merged

CreateSubOrgV3 #107

merged 3 commits into from
Sep 2, 2023

Conversation

andrewkmin
Copy link
Collaborator

@andrewkmin andrewkmin commented Aug 25, 2023

Summary & Motivation

How I Tested These Changes

Screen.Recording.2023-08-30.at.12.59.01.PM.mov

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 25, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@andrewkmin andrewkmin changed the title [do not merge] update gen CreateSubOrgV3 Aug 30, 2023
@andrewkmin andrewkmin force-pushed the andrew/suborg-v3 branch 3 times, most recently from 1d10559 to 0c2c0e6 Compare August 30, 2023 17:11
console.error(e);

res.status(500).json({
message: "Something went wrong.",
Copy link
Contributor

Choose a reason for hiding this comment

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

interpolate e?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

will leave it out and just handle on the server side for now. don't feel too strongly either way 🤷

Comment on lines 101 to +103
await axios.post("/api/proxyRequest", signedRequest);

alert(`Hooray! Key ${data.privateKeyName} created.`);
await sleep(1000); // alternative would be to poll the activity itself repeatedly
await getPrivateKeys(subOrgId);
Copy link
Contributor

Choose a reason for hiding this comment

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

A bit messy but I get why that's the simplest for now. I'm onboard 👍

Comment on lines 151 to 176
const privateKeysTable = (
<div className={styles.baseTable}>
<table className={styles.table}>
<tr>
<th className={styles.th}>Name</th>
<th className={styles.th}>Address</th>
</tr>
{privateKeys.map((val, key) => {
return (
<tr key={key}>
<td className={styles.td}>{val.privateKeyName}</td>
<td className={styles.td}>{val.privateKeyAddress}</td>
</tr>
);
})}
</table>
</div>
);

const privateKeyElements = privateKeys.map((pk) => (
<li key={pk.privateKeyId} className={styles.prompt}>
{pk.privateKeyAddress}
</li>
));
Copy link
Contributor

Choose a reason for hiding this comment

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

This demo is getting fancier and fancier! 😍

Copy link
Contributor

@r-n-o r-n-o left a comment

Choose a reason for hiding this comment

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

Overall looks good to me! Let's wait until the next deploy, then we should be good to merge this! 🙌

@andrewkmin andrewkmin merged commit 0e6fb91 into main Sep 2, 2023
@andrewkmin andrewkmin deleted the andrew/suborg-v3 branch September 2, 2023 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants