Commit Graph

156 Commits

Author SHA1 Message Date
Michael Peters
f9ef4edf9f fixed react-helper hooks
slight performance hit but we can work on optimizing that later
(most noticable that the avatars flicker to loading when changing channels. although this may have already been happening...)
2022-02-07 01:15:32 -06:00
Michael Peters
e002b7092c most react hooks updated 2022-02-07 01:09:38 -06:00
Michael Peters
434bc6bfe5 preparing for hooks linting 2022-02-07 00:57:28 -06:00
Michael Peters
eab1dfca03 eslint config complete 2022-02-07 00:42:42 -06:00
Michael Peters
afd02757d9 ALMOST DONE WITH ESLINT BASE CONFIG 2022-02-07 00:25:06 -06:00
Michael Peters
09b24a6e19 most syntax checks in. going through personal formatting options 2022-02-06 23:19:01 -06:00
Michael Peters
12519e5f0b more linting. still more to come! 2022-02-06 21:54:48 -06:00
Michael Peters
a112da96db updates to linter (more to come soon) 2022-02-06 21:14:19 -06:00
Michael Peters
ddd15972aa archive old guild-subscriptions stuff 2022-02-06 19:24:25 -06:00
Michael Peters
fb0981e92b infinite scroll with recoil works! 2022-02-06 19:16:04 -06:00
Michael Peters
00c99cefc8 fix spelling 2022-02-06 18:52:58 -06:00
Michael Peters
75d585880f more infinite scroll functionality. preparing to use recoil infinite scroll element 2022-02-06 18:48:52 -06:00
Michael Peters
0b4c5356a9 rename atoms-2.ts to atoms.ts 2022-02-06 17:29:45 -06:00
Michael Peters
eac2c42e53 split up atoms-2 helper functions into different file 2022-02-06 17:22:49 -06:00
Michael Peters
df832f7294 working state - channel messages being prepared 2022-02-06 15:23:02 -06:00
Michael Peters
601a5bd3d6 refactor listeners in atoms 2022-02-05 14:38:16 -06:00
Michael Peters
dfd50c7e20 preparing for channel messages 2022-02-05 11:05:31 -06:00
Michael Peters
54ad823ebe function-scoping functions for less globalism in atoms-2 2022-02-05 09:01:50 -06:00
Michael Peters
6da480c36e recoilize resources 2022-02-04 00:40:28 -06:00
Michael Peters
0c1c900724 guildResourceState and preparing for soft img src state too 2022-02-04 00:11:15 -06:00
Michael Peters
5b708f2a94 improved single/multiple guild subscription effect - use the { node } destructed vaglue from the effect parameter 2022-02-03 23:08:02 -06:00
Michael Peters
09390fad8f fixed bug with verification
Fixes problem with guildMeta not updating from the server
Fixes problem with unknown member for "second" guild

The pairVerifier was getting unverified due to the socket connecting
*after* the fetch request was sent. Unfortunately, this unverification
happened *before* the fetch request was resolved. Fixed by re-fetching
the trusted promise after unverification. For a perfect solution in the
future, we should remove the re-fetch. This could be done by canceling
socket-guild fetches if the socket isn't connected yet.
2022-02-03 18:06:26 -06:00
Michael Peters
222feb1de1 RECOIL IS SUPREME! 2022-02-02 23:05:38 -06:00
Michael Peters
7ceceecbb1 No more exporeted useMembersSubscription 2022-01-29 17:07:24 -06:00
Michael Peters
0609aa687c recoilize members 2022-01-29 17:05:12 -06:00
Michael Peters
245637bed6 Use Recoil State for Guild Metadata 2022-01-27 21:46:40 -06:00
Michael Peters
e0814f1096 Guild list in Recoil!
I'm liking it already. Quite a bit nicer than passing state all over the place.
2022-01-27 00:40:29 -06:00
Michael Peters
4f2d272d00 beginnings of react-recoil
Starting off with Recoilizing setOverlay

Also set up the atom structure
2022-01-26 19:57:29 -06:00
Michael Peters
a0f25158d3 add a touch more documentation in the code 2022-01-25 19:03:47 -06:00
Michael Peters
9ca2a22881 archive print-new-key-pair.ts 2022-01-25 18:05:01 -06:00
Michael Peters
59856ca197 don't require connection to view guild 2022-01-24 00:10:58 -06:00
Michael Peters
afd2939fa1 fetch messages before/after based on order
This way, if the reference message was deleted at some point, the fetch request can still go through.
Also it's easier to run the queries directly on an order id/text anyway
2022-01-23 17:23:43 -06:00
Michael Peters
b97db81fa2 Jump messages to bottom when current user sent the message 2022-01-23 16:39:14 -06:00
Michael Peters
ce9b17535b merge ends and elements in scrolling subscription 2022-01-23 15:12:42 -06:00
Michael Peters
7e703f84fd don't add to the bottom if there is nothing at the bottom 2022-01-23 10:45:33 -06:00
Michael Peters
a7866df1ff remove unused useMemo 2022-01-22 20:19:15 -06:00
Michael Peters
62c209a6fe don't call onFetch when the fetch function returns null 2022-01-22 19:34:29 -06:00
Michael Peters
9a5e5d822e improve guild subscriptions by linking guild with the fetched result 2022-01-22 19:09:15 -06:00
Michael Peters
e35187b877 Fixed glaring bugs when switching between guilds 2022-01-20 19:54:36 -06:00
Michael Peters
fa10c8a7a9 added the guild that the fetch value was fetched from alongside fetch values in guild subscriptions 2022-01-13 23:17:15 -06:00
Michael Peters
a1bd951812 fix not refreshing when re-connecting, cancel load commands when changing guilds 2022-01-13 22:34:38 -06:00
Michael Peters
228352bedb support for unverifying during cache update 2022-01-13 20:31:18 -06:00
Michael Peters
0bb0e79939 allow specification of "not updated" to allow re-fetch
Fixes tokens not getting re-fetched.
2022-01-02 23:05:21 -06:00
Michael Peters
6e0fd0d182 fix makefile 2022-01-02 11:36:52 -06:00
Michael Peters
6c419440d5 Buttons can have hover text 2022-01-01 21:31:22 -06:00
Michael Peters
c289f28bb3 fix preview extension 2021-12-30 23:30:21 -06:00
Michael Peters
155681da04 get rid of extraneous document reference 2021-12-30 21:34:23 -06:00
Michael Peters
1e437c33ae move GuildSubscriptions to just function exports 2021-12-30 21:33:15 -06:00
Michael Peters
6fe1016047 Convert ReactHelper to just export functions 2021-12-30 21:28:30 -06:00
Michael Peters
7acb245c76 fix font size flickering bug 2021-12-30 21:16:32 -06:00