-
Notifications
You must be signed in to change notification settings - Fork 19
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(backend): create settings property in user profile #3770
feat(backend): create settings property in user profile #3770
Conversation
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.
Approved with the caveat that default needs to be implemented and the backend needs to be deployed first.
@@ -219,6 +222,7 @@ type UserCredential = record { | |||
type UserProfile = record { | |||
credentials : vec UserCredential; | |||
version : opt nat64; | |||
settings : Settings; |
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.
Should this be opt?
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.
As discussed offline, I included #[serde(default)]
; would that be enough? WDYT?
Motivation
We add stored settings to the user profile. For now it will just include dApps Settings, that hold only the list of hidden dApps in the carousel.
Tests
Add small assertion in the profile creation test