37c7f909a3
* Revert "Revert "Notifications ux fixes - wip (#383)""
This reverts commit 699b03eb42
.
* Group & provide more control over notification display
* UI/UX improvements
* Remove unused text key
* Refactor
* Refactor
* Show answer resolution in notification
* Disable eslint on single linefor exhaustive deps
* Handle arbritrary notifications
* Refactor
* Remove unused vars
* Add follow user
* Various UX improvements, add follow notif
* Various small ui changes
* Show notification settings breakdown
* Improve notification status lines
43 lines
1007 B
TypeScript
43 lines
1007 B
TypeScript
export type User = {
|
|
id: string
|
|
createdTime: number
|
|
|
|
name: string
|
|
username: string
|
|
avatarUrl?: string
|
|
|
|
// For their user page
|
|
bio?: string
|
|
bannerUrl?: string
|
|
website?: string
|
|
twitterHandle?: string
|
|
discordHandle?: string
|
|
|
|
balance: number
|
|
totalDeposits: number
|
|
totalPnLCached: number
|
|
creatorVolumeCached: number
|
|
|
|
followedCategories?: string[]
|
|
}
|
|
|
|
export const STARTING_BALANCE = 1000
|
|
export const SUS_STARTING_BALANCE = 10 // for sus users, i.e. multiple sign ups for same person
|
|
|
|
export type PrivateUser = {
|
|
id: string // same as User.id
|
|
username: string // denormalized from User
|
|
|
|
email?: string
|
|
unsubscribedFromResolutionEmails?: boolean
|
|
unsubscribedFromCommentEmails?: boolean
|
|
unsubscribedFromAnswerEmails?: boolean
|
|
unsubscribedFromGenericEmails?: boolean
|
|
initialDeviceToken?: string
|
|
initialIpAddress?: string
|
|
apiKey?: string
|
|
notificationPreferences?: notification_subscribe_types
|
|
}
|
|
|
|
export type notification_subscribe_types = 'all' | 'less' | 'none'
|