Commit Graph

57 Commits

Author SHA1 Message Date
Alex Gleason f342afde5c
Add useFrequentlyUsedEmojis hook, remove legacy code 2024-11-18 11:31:44 -06:00
Alex Gleason 0c228e13f3
Remove src/hooks barrel export 2024-11-10 15:18:44 -06:00
Alex Gleason 954e074325
Add file extensions to all imports 2024-11-09 21:18:55 -06:00
Alex Gleason be3e86eff2
tsconfig: switch to react-jsx transform, update code to not import React directly 2024-11-09 16:13:56 -06:00
Alex Gleason b5bf0cd967
Remove accidental extra line in test file imports 2024-11-09 15:33:00 -06:00
Alex Gleason 2dbda40969
Import vitest functions explicitly, remove "vitest/globals" from tsconfig 2024-11-09 13:44:37 -06:00
Alex Gleason 45850fdb51
Memoize bunkerSigner 2024-10-31 12:54:46 -05:00
Alex Gleason fdb53c8906
Store the bunkerSeckey in the keyring, include only the pubkey in the plaintext connection storage 2024-10-30 11:59:53 -05:00
Alex Gleason 36427f52d7
NKeys -> keyring 2024-10-30 11:42:10 -05:00
Alex Gleason d3a341c0c6
Revoke Nostr credentials on logout 2024-10-29 18:13:10 -05:00
Alex Gleason 66d082934f
Move nostr hooks to hooks/nostr 2024-10-29 15:08:17 -05:00
Alex Gleason df9cc19714
useBunkerStore: fix parsing of saved connections 2024-10-29 15:00:49 -05:00
Alex Gleason 4d99a6d4f6
Move authorization out of bunkerStore, into loginNostr 2024-10-28 23:09:45 -05:00
Alex Gleason 5c4b73f943
OKAY IT'S WORKING 2024-10-28 20:20:37 -05:00
Alex Gleason 333d3e76d6
Finish rewriting the bunker...? (now everything else is broken) 2024-10-28 17:00:46 -05:00
Alex Gleason 6788be671e
Move useBunkerStore to src/hooks 2024-10-28 15:27:45 -05:00
Alex Gleason 65c8c68e00
Fix auth type errors in other files 2024-10-23 13:03:24 -05:00
Alex Gleason 588b86eb84
Merge remote-tracking branch 'origin/main' into upgrade-deps 2024-10-18 21:49:22 -05:00
Alex Gleason 819711a4f1
Merge remote-tracking branch 'origin/main' into add-nip-05-nag-post 2024-10-14 11:38:50 -05:00
Alex Gleason ad6e1bc099
Upgrade react-query 2024-10-13 18:28:26 -05:00
Alex Gleason 90577fb220 Merge branch 'auth' into 'main'
Start reworking auth

See merge request soapbox-pub/soapbox!3151
2024-10-13 03:14:36 +00:00
Alex Gleason d69d582a38
Add useAuth hook, fix soapboxAuthSchema 2024-10-12 19:17:09 -05:00
Alex Gleason 8e46164653
Remove custom retry from useInstance hooks (prefer the default) 2024-10-12 15:03:35 -05:00
Alex Gleason 5477a3a8c6
useInstance: don't go stale 2024-10-11 15:40:25 -05:00
Alex Gleason fdc03fe610
useApi: prefer BACKEND_URL, if provided 2024-10-11 15:34:46 -05:00
Alex Gleason 82731e633d
Make instance stop aggressively refreshing, replace isStandalone with instance.isNotFound 2024-10-11 15:13:37 -05:00
Alex Gleason 9d1ee47166
Use the instance hook to fetch in SoapboxLoad, also store the data in Redux as a temporary workaround 2024-10-11 04:26:27 -05:00
Alex Gleason 0396cb1aef
Fix useApi auth URL 2024-10-11 03:44:32 -05:00
Alex Gleason ba4ab3d39a
Make useInstance hook call V2 instance, fallback to V1 instance upgraded 2024-10-11 03:39:58 -05:00
Alex Gleason c5c38ed79c
Merge remote-tracking branch 'origin/main' into instance-hooks 2024-10-11 01:49:35 -05:00
Alex Gleason 445649ec1c
Make useInstance return an object containing the instance 2024-10-11 01:28:57 -05:00
Alex Gleason 158392c627
Add instance fetching hooks 2024-10-11 01:13:27 -05:00
Alex Gleason 87ee06fd1f
Remove ky, create a custom fetch client 2024-10-10 22:15:21 -05:00
Alex Gleason 66075ee28a
Update useApi hook to use ky 2024-10-09 01:46:46 -05:00
Alex Gleason 5df511a784
Switch to ky 2024-10-08 21:38:58 -05:00
danidfra adc783761c Add export for useSettingsNotifications hook 2024-10-03 15:34:44 -03:00
Alex Gleason b98f39753d
Let nip05 notification be dismissed 2024-09-01 19:44:25 +02:00
Alex Gleason 78be563bdc
Condense feeds on mobile 2024-06-01 12:15:19 -05:00
Alex Gleason 181bf43bda
Remove useGroupsPath hook 2024-05-25 20:55:49 -05:00
Alex Gleason bd46f1230b
useNostrReq: deduplicate events with NSet 2024-03-27 15:19:00 -05:00
marcin mikołajczak 4871c30b8c Merge branch 'main' into 'black-mode'
# Conflicts:
#   src/features/bookmarks/index.tsx
2024-03-24 23:09:28 +00:00
marcin mikołajczak 067fc9e45d Black mode
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-03-24 17:38:34 +01:00
marcin mikołajczak eceafedec4 Bookmark folders
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-03-22 14:53:25 +01:00
Alex Gleason 603e2cc2ce
Merge remote-tracking branch 'origin/main' into ditto-auth 2024-02-16 15:57:45 -06:00
Alex Gleason 7934d43426
useSettings: useMemo 2024-02-13 23:24:07 -06:00
Alex Gleason ffdb744d16
Refactor useSettings hook, parse with zod schema 2024-02-13 23:20:18 -06:00
Alex Gleason 15af206a45
useAppSelector: export type 2024-02-12 17:57:28 -06:00
marcin mikołajczak 1b31a0558e Fix registration status
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-10-28 16:20:54 +02:00
marcin mikołajczak 59115c8dc5 Remove instance normalizer
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-10-27 17:48:21 +02:00
Alex Gleason 2cdfaf4871
Remove useSentry hook, reorganize in SoapboxHead 2023-10-12 19:52:28 -05:00