Refine Petname UX - #688
Conversation
e9a4ac1 to
1f43055
Compare
There was a problem hiding this comment.
Redundant, we can just refresh the profile
There was a problem hiding this comment.
We need to be able to change this field to achieve #613
There was a problem hiding this comment.
I'm mildly wary of mixed mutation semantics (confusing), and try to go either all immutable or all mutable.
- Should we just var everything? (Are there interdependencies among fields?)
- Alternatively, could we make a "copy" method that changes this one field and constructs a new struct?
Non-blocking. Just a thought.
gordonbrander
left a comment
There was a problem hiding this comment.
A few small questions + comments
There was a problem hiding this comment.
Might consider type names that map directly to concepts from one of the petname papers? https://spritely.institute/static/papers/petnames.html
petname(following directly)selfNicknameorautonymorselfProposedName(the nickname a sphere proposes for itself in its header)nicknameorproposedName(The nickname a 3p proposes for another sphere. This is the petname that sphere gives another sphere.)
There was a problem hiding this comment.
Yes, this is better. I dropped the unknown case & reworked the mapping API introducing UserProfile.toNameVariant() which can hold all the logic about this mapping.
|
I think we can say this fixes #615. If we decide we need further refinement, we can always re-open. |
There was a problem hiding this comment.
Couldn't find a specific recommendation in the google swift styleguide for formatting long switch tuples like this, so this is a best guess.
There was a problem hiding this comment.
I'm mildly wary of mixed mutation semantics (confusing), and try to go either all immutable or all mutable.
- Should we just var everything? (Are there interdependencies among fields?)
- Alternatively, could we make a "copy" method that changes this one field and constructs a new struct?
Non-blocking. Just a thought.
8751ed4 to
8707a87
Compare
Fixes #649
Fixes #613
Fixes #610
Fixes #611
Potentially resolves #615
.knownDemo
Screen.Recording.2023-06-08.at.10.58.16.am.mov