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

feat (48829): agent stuff updates #94

Merged
merged 3 commits into from
Oct 23, 2024
Merged

Conversation

@maryjanyes maryjanyes requested a review from dchernokur October 21, 2024 11:40
@maryjanyes maryjanyes self-assigned this Oct 21, 2024
Copy link

vercel bot commented Oct 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
accelerator-defi-eip-ui-fiim ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2024 1:39pm

Copy link

netlify bot commented Oct 21, 2024

👷 Deploy Preview for swirlds-eip processing.

Name Link
🔨 Latest commit 40942e8
🔍 Latest deploy log https://app.netlify.com/sites/swirlds-eip/deploys/67163d95ae45e900086c5cde

Copy link

netlify bot commented Oct 21, 2024

Deploy Preview for swirlds-eip ready!

Name Link
🔨 Latest commit 49250e8
🔍 Latest deploy log https://app.netlify.com/sites/swirlds-eip/deploys/6718fc4f256c850008398f45
😎 Deploy Preview https://deploy-preview-94--swirlds-eip.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

src/hooks/useTokenIdentityRegistryAgents.ts Outdated Show resolved Hide resolved
src/hooks/useTokenIdentityRegistryAgents.ts Outdated Show resolved Hide resolved
src/components/manage-registry/ManageRegistry.tsx Outdated Show resolved Hide resolved
src/views/eip3643/EIP3643.tsx Outdated Show resolved Hide resolved
src/hooks/useTokenIdentityRegistryAgents.ts Outdated Show resolved Hide resolved
src/hooks/useTokenIdentityRegistryAgents.ts Outdated Show resolved Hide resolved
const accountIdentity = identityItems.find(
(item) => item.wallet === accountEvm,
);
const isAccountAgentAdmin = filteredNotAgentsYet?.includes(
Copy link
Collaborator

Choose a reason for hiding this comment

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

why are we sure that having a record here makes a user an Admin? Maybe user was removed afterwards? Is there a reliable way to detect Agent vs Admin?

Copy link
Collaborator Author

@maryjanyes maryjanyes Oct 22, 2024

Choose a reason for hiding this comment

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

why are we sure that having a record here makes a user an Admin? Maybe user was removed afterwards? Is there a reliable way to detect Agent vs Admin?

Admin is the one who can perform edit operations, because of it Agent became Admin and Admin also became Agent. Correct me if i wrong @dchernokur.

Copy link
Collaborator

@dchernokur dchernokur left a comment

Choose a reason for hiding this comment

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

couple more notes, otherwise lgtm

src/hooks/useTokenIdentityRegistryAgents.ts Outdated Show resolved Hide resolved
@maryjanyes maryjanyes merged commit c63e557 into main Oct 23, 2024
1 of 4 checks passed
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.

2 participants