-
Notifications
You must be signed in to change notification settings - Fork 10
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: Add Wallet Assets #22
Conversation
This is fantastic work. My suggestion would be to remove |
Yes it is a very good idea, we can compact it into the images field, how about if we also add an additional information to indicate the type of image though? For example "logo", "banner", "logotype" and "logomark", what do you think? |
Yes, I like this. But there are so many different ways a logo can be presented, so I'd like to define what each of these mean. E.g., I have a CMS that allows for 6 different logo images for each project: 3 color varieties (light mode, dark mode, and all white) of logo_asset (which, I think is same as what you call logomark), and 3 color varieties of logotype (which is the logo asset + text). |
Yes, I agree, about the image's categories:
If we wanna handle text direction, we can add a property "direction", that can be helpful for accessibility if someone need to use it for |
could have something like this within the schema within an
|
Yes, we add the following one inside the 'images' array: {
"layout": {
"type": "string",
"enum": [
"logo",
"logomark",
"logotype"
],
"description": "logomark == icon only; logotype == text only; logo == icon + text."
},
"text_position": {
"type": "string",
"enum": [
"top",
"bottom",
"left",
"right"
],
"description": "Indicates in which position the text is placed, in case the layout is 'icon' type, it's required only in this case."
},
} I only changed the field name from "logo_layout" to "layout", just to be generic, right now we're using it for logo but maybe in the future we wanna use it for other use cases. Just to avoid confusion (maybe a 'direction' field can be tricky), we can create a "text_position" field, that can be use for "logo" layout and it's required only in this use case. |
I think the text_position is a bit overkill, but I also really like. I'm happy with what you've suggested and would like to implement the same into the Chain Registry to help implement this as a standard. |
Thank you! I'll update the schema |
added fields inside images array.
@JeremyParish69 Done |
It would be useful to have the assets associated with the wallets, for example, their logo, as is done in chain-registry