This repository was archived by the owner on Apr 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
[Proposal] Profile Interface #3
Copy link
Copy link
Open
Description
[WIP] Let me sleep on this, wake up, and realize the bad choices I've made.
We should aim to have a standard between profiles for anyone who would like to implement one.
Questions
- Should users enter this into a JSON file?
- I don't think we can have type handling if we do that.
- Should profiles be static singletons?
- Would we want a top level/primary SocialProfile?
- Maybe require it to be a meetup profile?
- The proposal below doesn't account for that, nor work for that example.
- Maybe require it to be a meetup profile?
interface Profile {
name: string;
alias?: string;
avatar: string;
socialProfiles: SocialProfile[];
}
interface SocialProfile {
network: SocialNetwork;
handle: string;
}
enum SocialNetwork {
Github,
Twitter,
Email,
...
}Additional Stories
There are additional stories that should be created if we decide to move forward with this. Please reference this issue if you create them.
- Profile link generator - should be able to take a SocialProfile and create a link from it -- assuming that they're composed of a standard base URL and the handle.
Metadata
Metadata
Assignees
Labels
No labels