-
Notifications
You must be signed in to change notification settings - Fork 16
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
Adding buckets user logic #1394
Conversation
Your Render PR Server URL is https://storage-ui-stage-pr-1394.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c44jjtht9ds8sa1cj68g. |
Your Render PR Server URL is https://gaming-ui-stage-pr-1394.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c44jjtpt9ds8sa1cj6l0. |
Your Render PR Server URL is https://files-ui-stage-pr-1394.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c44jju9t9ds8sa1cj6ug. |
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.
This is dope. One thing that is missing is getting those Users in the CreateOrEditSharedFolderModal.tsx
or more precisely in the useLookupSharedFolderUser
hook.
nit: can we have the 0x from Ethereum addresses with a small X, the big is unusual (I guess this is something for the api? worst case with toLowerCase
it here)
packages/files-ui/src/Components/Modules/FileBrowsers/views/FileSystemItem/SharedFolderRow.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
…leSystemItem/SharedFolderRow.tsx Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
return { | ||
...b, | ||
encryptionKey: await getKeyForBucket(b) || "", | ||
permission: getPermissionForBucket(b) | ||
permission: getPermissionForBucket(b), | ||
owners: userData.owners || [], |
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.
btw the type tells this can't be null, but I see it is. I added it to an issue I opened for a similar problem https://github.com/ChainSafe/files-api/issues/1383#issuecomment-891879713
I think we won't need the API call in |
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.
amazing!
looks like this PR also closes #1280
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.
That's dope, 2 suggestions to add the uuid as fallback.
closes #1266
closes #1280