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: marshal based on user's petnames #1092

Merged
merged 5 commits into from
May 13, 2020

Conversation

katelynsills
Copy link
Contributor

@katelynsills katelynsills commented May 11, 2020

This PR adds a library for hydrating and dehydrating values based on a system of the user's petname maps. The next step is using this library in the wallet.

@katelynsills katelynsills changed the title [WIP] feat: marshal based on user's petnames feat: marshal based on user's petnames May 11, 2020
@katelynsills katelynsills marked this pull request as ready for review May 11, 2020 19:25
Copy link
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

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

LGTM! Very nice!

Copy link
Member

@erights erights left a comment

Choose a reason for hiding this comment

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

LGTM

This is a great start on a petname system. What is here is all valid. Future directions (not in this PR please!):

A more full featured petname system would enable the user to assign and change petnames for existing objects afterwards. Ideally, all renderings of that petname on a UI would be updated then. My android phone contacts lists seems to do this perfectly.

A more full featured petname system would have gentler fallbacks before retreating to unnamed-37, such as pathnames. However, pathnames depends on more information being available than can be available to this module or communicated through marshal.

@katelynsills katelynsills merged commit 5e1945c into master May 13, 2020
@katelynsills katelynsills deleted the 1073-dehydrate-based-on-petnames branch May 13, 2020 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmic-swingset package: cosmic-swingset
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants