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

[ABW-1304] Behaviours and tags #666

Merged
merged 17 commits into from
Aug 17, 2023
Merged

[ABW-1304] Behaviours and tags #666

merged 17 commits into from
Aug 17, 2023

Conversation

kugel3
Copy link
Contributor

@kugel3 kugel3 commented Aug 15, 2023

Jira ticket: ABW-1304

Proposal

Description

Adds logic and UI for behaviors and tags, for fungible and non-fungible resources. Only shown in the respective details screens.

Notes

When we can't parse the RoleKey.name string to something recognizable (like "minter"), we ignore it, which is probably the only reasonable option. There is also the case where the explicit_rule value can't be parsed to one of "DenyAll", "AllowAll" and "Protected". That case is now treated the same as the Protected case (and the non-explicit, owner case), meaning that we assume that someone, but not anyone, is able to either perform or update the role in question.

What details are we showing:

NFTS:
description
resourceAddress
resourceName
(currentSupply should be here, when we have it)
behaviors
tags

Fungibles:
description
resourceAddress
currentSupply
behaviors
tags

LSUs and Pool Units:
description
resourceAddress
validatorAddress
resourceName (is this just the normal resource name?)
currentSupply
behaviors
tags

Screenshot

image image

@kugel3 kugel3 changed the title [ABW-1304] behaviours and tags [ABW-1304] Behaviours and tags Aug 15, 2023
Copy link
Contributor

@GhenadieVP GhenadieVP left a comment

Choose a reason for hiding this comment

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

LGTM,
some minor comments.

@GhenadieVP
Copy link
Contributor

Separate question - shouldn't the behaviours and tags be also displayed in Poll Unit related details?

Copy link
Contributor

@CyonAlexRDX CyonAlexRDX left a comment

Choose a reason for hiding this comment

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

Nice! Left some comments, not preventing merge, but maybe worth considering!

@kugel3
Copy link
Contributor Author

kugel3 commented Aug 16, 2023

Separate question - shouldn't the behaviours and tags be also displayed in Poll Unit related details?

Very possibly. That view didn't exist when I started this, but I will check and add it there.

@kugel3 kugel3 force-pushed the ABW-1304-Behaviours-and-tags branch from 269846e to b81019f Compare August 16, 2023 19:53
@kugel3 kugel3 merged commit 731ca5e into main Aug 17, 2023
@kugel3 kugel3 deleted the ABW-1304-Behaviours-and-tags branch August 17, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants