Commit Graph

177 Commits

Author SHA1 Message Date
Michael Peters
aa79034d7e styled error messages. bug where clicking to fetch above (and I assume below too) doesn't actually run anything 2022-02-12 13:23:10 -06:00
Michael Peters
73e81f0bc9 message date spacer 2022-02-10 17:36:16 -06:00
Michael Peters
43814a0b6e fix eslint error 2022-02-08 23:00:04 -06:00
Michael Peters
4f2ee4fbd7 verify before fetching with socket 2022-02-08 22:57:49 -06:00
Michael Peters
33f880f4b1 jump to bottom 2022-02-08 22:43:56 -06:00
Michael Peters
515738ae41 select first guild by default 2022-02-08 22:03:52 -06:00
Michael Peters
c1e669f697 prettier apply 2022-02-08 18:05:45 -06:00
Michael Peters
dd3e2824df add prettier 2022-02-08 17:46:52 -06:00
Michael Peters
ac5733a02b eslint complete! 2022-02-07 01:18:31 -06:00
Michael Peters
aa420a1bf2 message hook 2022-02-07 01:17:12 -06:00
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
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
Michael Peters
ca7c683526 missed one of the context menus 2021-12-30 21:06:32 -06:00
Michael Peters
e8ca0d0ed4 right click context menu custom effect 2021-12-30 21:04:14 -06:00
Michael Peters
640b671568 escape closes context menus 2021-12-30 20:40:45 -06:00
Michael Peters
59f4829fa9 moved q to archive
It's been fun while it lasted!
2021-12-30 20:35:56 -06:00
Michael Peters
b9da8c73c6 Move scss to its own directory structure rather than inline with components 2021-12-30 19:34:18 -06:00
Michael Peters
46aade557d COR-192 Don't set status if it's the same 2021-12-30 18:19:22 -06:00
Michael Peters
80bb3b0581 Fix COR-166 Add guild background is too dark 2021-12-30 18:10:23 -06:00
Michael Peters
090c77209c Fix COR-191 2021-12-30 18:03:45 -06:00
Michael Peters
c90641a14c pure react overlays 2021-12-29 23:53:04 -06:00
Michael Peters
4909998144 react root node 2021-12-29 23:01:40 -06:00
Michael Peters
0d36daacca guilds-manager element
Almost to the root node!
2021-12-29 21:16:19 -06:00
Michael Peters
9410fe3829 guild list context menu
(disconnect button)
2021-12-29 19:46:53 -06:00
Michael Peters
22c258bafd react guild list 2021-12-29 18:50:03 -06:00
Michael Peters
7136fbfb0b minor bugs in new guild stuff 2021-12-27 22:40:58 -06:00
Michael Peters
579050e867 remove unused old guild root element 2021-12-27 22:28:50 -06:00
Michael Peters
3620c758fd guild root element 2021-12-27 21:55:33 -06:00
Michael Peters
71baabab46 paste an image 2021-12-27 21:13:55 -06:00
Michael Peters
dea18a9a9c remove old upload overlays 2021-12-27 21:08:13 -06:00
Michael Peters
15c92c2eac drop target for send message component 2021-12-27 21:02:02 -06:00
Michael Peters
f39c3f0a51 remove non-react send message pieces 2021-12-26 22:09:55 -06:00
Michael Peters
ccba0f1057 react text-based send message input 2021-12-26 17:23:24 -06:00
Michael Peters
26139af512 react hover indicators
implemented in channel list element
2021-12-26 14:25:59 -06:00
Michael Peters
f7433c23be split off context-menu into sub-functional component 2021-12-26 13:41:17 -06:00
Michael Peters
6f26181b43 react text channel list 2021-12-25 22:10:32 -06:00
Michael Peters
2f526c8ecc hanging changes 2021-12-25 21:06:56 -06:00
Michael Peters
916c3b2f24 message list image context menu 2021-12-25 19:21:15 -06:00
Michael Peters
54536c1b03 useContextMenu hook 2021-12-25 19:04:55 -06:00
Michael Peters
2bae6c72cd image overlay context menu
Also did a refactor on how overlays decide to close
2021-12-25 18:35:57 -06:00
Michael Peters
7fde5e70cf react guild title 2021-12-25 12:58:20 -06:00
Michael Peters
80c2a352da connection info and context menus 2021-12-25 12:00:20 -06:00
Michael Peters
a47804d980 React channel title 2021-12-24 18:49:50 -06:00
Michael Peters
6f715ccc87 last few messages things 2021-12-24 18:30:43 -06:00
Michael Peters
16054af1f8 remove old message handling code 2021-12-24 18:29:11 -06:00
Michael Peters
49f3a7096a infinite scroll messages! 2021-12-24 17:37:27 -06:00
Michael Peters
69c239ebc9 Now display a react message list! 2021-12-22 00:54:03 -06:00
Michael Peters
971b4c4d79 remove old members stuff 2021-12-20 23:24:05 -06:00
Michael Peters
3c14ecb6ec AsyncButtonSubscription Improvements 2021-12-16 20:12:52 -06:00
Michael Peters
b5f22212d9 async button subscription, overlay channel consolidation 2021-12-16 19:25:55 -06:00
Michael Peters
965de83433 move scss for overlays 2021-12-13 19:00:04 -06:00
Michael Peters
97bb08c255 autofix unused imports 2021-12-13 18:29:20 -06:00
Michael Peters
7820853def different token sort order, support null expirey time 2021-12-13 02:39:40 -06:00