DanConwayDev
7cb3df2dff
fix: remember logged in user
...
fixes
nostr:note18fd52cmq7h6nj32k0xr9q24e0s2j2t0eyqwcamydavut33km7n8qv8mfpg
and
note1pptglp3qmn3nnfc0k7t7mf5y6yv9jq4h72qsf69wtz8e90zs55yqgvr6dq
2 years ago
DanConwayDev
2982f8f5bf
chore: bump ndk
...
in preparation for adding cache
2 years ago
DanConwayDev
290650a435
fix: reattempt to get user profiles
...
as they often are not recieved the first time
2 years ago
DanConwayDev
33d35dcac8
refactor: fetch user profile only when needed
...
store hexpubkey in Repo and Proposal data object
instead of full profile
this prevents unnecessary state updates for those objects
the trade-off is including business logic (getting profile data)
within UI components
this is mitigated by allowing hexpubkey or UserObject to be passed
to UI components so that UI component tests can be written without
having to worry about business logic
this new approach can be abstracted to other object types
2 years ago
DanConwayDev
bfb5c8dc33
feat: reintroduce getUserRelays
...
when fetching user metadata as bug fixed in ndk
when getting lots of user relay events
2 years ago
DanConwayDev
5882c9744f
fix: intermittent unsubscriber err breaking pages
...
pages would stop loading completely and require a refresh due to a
'unsubscriber lexicon' error
2 years ago
DanConwayDev
6d3e24fc71
fix: reliably fetch user profiles
...
- do not get UserRelay list due to ndk bug
- wait 200ms to allow for more batching of requests
2 years ago
jk
8ae123fd0b
eslint + prettier ( #2 )
...
Co-authored-by: DanConwayDev <114834599+DanConwayDev@users.noreply.github.com>
2 years ago
DanConwayDev
2a6ef1fbdc
fix: get user relays
...
replace getLoggedInUserRelays with getUserRelays as
getLoggedInUserRelays was broken and getUserRelays is more flexible
2 years ago
DanConwayDev
7507ea2ea7
feat: use user and repository relays
...
- send status events to user and repository relays
- get repoistory events from base relays
- get pr events and replies from repository relays
2 years ago
DanConwayDev
7256f970ab
feat(navbar): add nip07 login
...
- add login function to call nip07 plugin
- add logged_in_user store
2 years ago
DanConwayDev
4fc877bd3e
feat: add UserHeader
...
add user profile details via a svelte store
this sets a standard for abstracting ui from data wrappers even when
multiple calls are needed
2 years ago