New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Untangle client and server #4861
Commits on Apr 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3eb1913 - Browse repository at this point
Copy the full SHA 3eb1913View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68ba13c - Browse repository at this point
Copy the full SHA 68ba13cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b67e469 - Browse repository at this point
Copy the full SHA b67e469View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f0ee6a - Browse repository at this point
Copy the full SHA 3f0ee6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0b71ab - Browse repository at this point
Copy the full SHA d0b71abView commit details -
Configuration menu - View commit details
-
Copy full SHA for d716402 - Browse repository at this point
Copy the full SHA d716402View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12a0b0b - Browse repository at this point
Copy the full SHA 12a0b0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f0ee3be - Browse repository at this point
Copy the full SHA f0ee3beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 383907c - Browse repository at this point
Copy the full SHA 383907cView commit details -
changelog: don't type assert to a broken type
The mandatory fields are unset, stop lying to the compiler
Configuration menu - View commit details
-
Copy full SHA for 4d23760 - Browse repository at this point
Copy the full SHA 4d23760View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bc184b - Browse repository at this point
Copy the full SHA 7bc184bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e6920a - Browse repository at this point
Copy the full SHA 8e6920aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7073584 - Browse repository at this point
Copy the full SHA 7073584View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88c8830 - Browse repository at this point
Copy the full SHA 88c8830View commit details -
Configuration menu - View commit details
-
Copy full SHA for 194b4e1 - Browse repository at this point
Copy the full SHA 194b4e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3217536 - Browse repository at this point
Copy the full SHA 3217536View commit details -
Configuration menu - View commit details
-
Copy full SHA for e57e547 - Browse repository at this point
Copy the full SHA e57e547View commit details -
Configuration menu - View commit details
-
Copy full SHA for e43cbb1 - Browse repository at this point
Copy the full SHA e43cbb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6984e8f - Browse repository at this point
Copy the full SHA 6984e8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 636b5c5 - Browse repository at this point
Copy the full SHA 636b5c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9aee3e3 - Browse repository at this point
Copy the full SHA 9aee3e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c869ea9 - Browse repository at this point
Copy the full SHA c869ea9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b89b0ca - Browse repository at this point
Copy the full SHA b89b0caView commit details -
Configuration menu - View commit details
-
Copy full SHA for fceffd4 - Browse repository at this point
Copy the full SHA fceffd4View commit details -
There were quite some errors, where the type was passed the wrong way ``` // This is invalid "change-password": ({ old_password: string, new_password: string, verify_password: string}) // What was actually meant "change-password": (data: { old_password: string, new_password: string, verify_password: string}) ``` The whole callback function is also very verbose as is, with fluff we don't need. It's always a function that returns void, so there's no real information to be gained by spelling it out time and time again. Let's use a helper type that just accepts the payload. That should make the above error impossible to do.
Configuration menu - View commit details
-
Copy full SHA for e9ef59b - Browse repository at this point
Copy the full SHA e9ef59bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 843db17 - Browse repository at this point
Copy the full SHA 843db17View commit details -
The sort event bundled networks and channels for no reason at all. They share none of the actual logic, so combining them just makes the typing poor but serves no benefit.
Configuration menu - View commit details
-
Copy full SHA for 0067c30 - Browse repository at this point
Copy the full SHA 0067c30View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5c691f - Browse repository at this point
Copy the full SHA f5c691fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0660a87 - Browse repository at this point
Copy the full SHA 0660a87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ab9ad0 - Browse repository at this point
Copy the full SHA 9ab9ad0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5621538 - Browse repository at this point
Copy the full SHA 5621538View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46f3fd9 - Browse repository at this point
Copy the full SHA 46f3fd9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 60486bf - Browse repository at this point
Copy the full SHA 60486bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for a8e7022 - Browse repository at this point
Copy the full SHA a8e7022View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98452cc - Browse repository at this point
Copy the full SHA 98452ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for e15b121 - Browse repository at this point
Copy the full SHA e15b121View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ee9c2b - Browse repository at this point
Copy the full SHA 5ee9c2bView commit details -
network event: remove unused array
All the network events only ever emit a single copy There's no point in wrapping it into an array
Configuration menu - View commit details
-
Copy full SHA for bf7eb0e - Browse repository at this point
Copy the full SHA bf7eb0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 35e38d1 - Browse repository at this point
Copy the full SHA 35e38d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c4d24d - Browse repository at this point
Copy the full SHA 9c4d24dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c4ce5d - Browse repository at this point
Copy the full SHA 1c4ce5dView commit details -
publicClient: add FIXME and ignore the type mismatch
The publicClient interface is utterly horrific. It allows any client to inject arbitrary events into the socket.io event stream. This should get wrapped into a "plugin" event so that it can get properly typed, better yet, this should get removed completely.
Configuration menu - View commit details
-
Copy full SHA for c20cd6b - Browse repository at this point
Copy the full SHA c20cd6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe4f497 - Browse repository at this point
Copy the full SHA fe4f497View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ea5170 - Browse repository at this point
Copy the full SHA 3ea5170View commit details -
Configuration menu - View commit details
-
Copy full SHA for 29750a3 - Browse repository at this point
Copy the full SHA 29750a3View commit details -
socket-events/msg: if/else chains are not a switch replacement
If we switch on a field, use switch for god's sake. If/elif chains are for cases where you have multiple selectors.
Configuration menu - View commit details
-
Copy full SHA for 1565eb8 - Browse repository at this point
Copy the full SHA 1565eb8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42ea66c - Browse repository at this point
Copy the full SHA 42ea66cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 300bd4c - Browse repository at this point
Copy the full SHA 300bd4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for bfca0ca - Browse repository at this point
Copy the full SHA bfca0caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7287c6b - Browse repository at this point
Copy the full SHA 7287c6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5003764 - Browse repository at this point
Copy the full SHA 5003764View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14b9169 - Browse repository at this point
Copy the full SHA 14b9169View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d0474b - Browse repository at this point
Copy the full SHA 4d0474bView commit details -
add socket-events import to entry point
socket-events aren't ever imported, if we don't do that however webpack never actually sees any code that leads to it and skips bundling it. So for now, do an import that has the side effect of registering all the events until we have a proper registration in place that's a bit more sane to call
Configuration menu - View commit details
-
Copy full SHA for 0311e5f - Browse repository at this point
Copy the full SHA 0311e5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 17ba07d - Browse repository at this point
Copy the full SHA 17ba07dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f2c82e - Browse repository at this point
Copy the full SHA 9f2c82eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9898f38 - Browse repository at this point
Copy the full SHA 9898f38View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb7c392 - Browse repository at this point
Copy the full SHA bb7c392View commit details -
Configuration menu - View commit details
-
Copy full SHA for 540144c - Browse repository at this point
Copy the full SHA 540144cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4614c35 - Browse repository at this point
Copy the full SHA 4614c35View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4afa08 - Browse repository at this point
Copy the full SHA a4afa08View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8a9fe0 - Browse repository at this point
Copy the full SHA b8a9fe0View commit details -
ignore: keep happy path on the left
It is much easier to follow the control flow if error checks are done on the indented path, immediately returning.
Configuration menu - View commit details
-
Copy full SHA for 5274fdc - Browse repository at this point
Copy the full SHA 5274fdcView commit details -
ignore: move ignorelist to its own command
ignorelist shares no logic with /ignore or /unignore so it shouldn't share a file. That just makes typing awkward.
Configuration menu - View commit details
-
Copy full SHA for 071a5af - Browse repository at this point
Copy the full SHA 071a5afView commit details -
ignore: clean up the types and conditionals
Now that ignorelist doesn't muddy the waters, we can clean up all the funny conditional types and enforce `when`
Configuration menu - View commit details
-
Copy full SHA for b8400a3 - Browse repository at this point
Copy the full SHA b8400a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 917fdb2 - Browse repository at this point
Copy the full SHA 917fdb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3fc54e - Browse repository at this point
Copy the full SHA c3fc54eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c8951f - Browse repository at this point
Copy the full SHA 5c8951fView commit details -
Configuration menu - View commit details
-
Copy full SHA for edb96f6 - Browse repository at this point
Copy the full SHA edb96f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92a0aff - Browse repository at this point
Copy the full SHA 92a0affView commit details -
Configuration menu - View commit details
-
Copy full SHA for e2b56cf - Browse repository at this point
Copy the full SHA e2b56cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c41356 - Browse repository at this point
Copy the full SHA 8c41356View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5001d60 - Browse repository at this point
Copy the full SHA 5001d60View commit details -
server: somewhat type fix auth related functions
The auth functions are a bloody mess and need to be cleaned up. using various callback functions and using variables as pointers makes the logic hard to follow and hence idiotic to type too, as multiple orthogonal logic paths are mixed up into one function. This really needs to be untangled
Configuration menu - View commit details
-
Copy full SHA for e61e356 - Browse repository at this point
Copy the full SHA e61e356View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82e4150 - Browse repository at this point
Copy the full SHA 82e4150View commit details -
userAway is purely server side and we don't send it to the client
Configuration menu - View commit details
-
Copy full SHA for fc98055 - Browse repository at this point
Copy the full SHA fc98055View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b07e05 - Browse repository at this point
Copy the full SHA 4b07e05View commit details -
Configuration menu - View commit details
-
Copy full SHA for 96848c1 - Browse repository at this point
Copy the full SHA 96848c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f25fee4 - Browse repository at this point
Copy the full SHA f25fee4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ceafb6 - Browse repository at this point
Copy the full SHA 4ceafb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31d9872 - Browse repository at this point
Copy the full SHA 31d9872View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1edb5a7 - Browse repository at this point
Copy the full SHA 1edb5a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c866430 - Browse repository at this point
Copy the full SHA c866430View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e444be - Browse repository at this point
Copy the full SHA 5e444beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f5e0f3 - Browse repository at this point
Copy the full SHA 7f5e0f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03151e0 - Browse repository at this point
Copy the full SHA 03151e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6241eed - Browse repository at this point
Copy the full SHA 6241eedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c9d2c3 - Browse repository at this point
Copy the full SHA 6c9d2c3View commit details -
components/MessageTypes/errors: fix eslint errors
This makes the code somewhat ugly, but to properly fix we need to enforce the needed fields
Configuration menu - View commit details
-
Copy full SHA for 91ac363 - Browse repository at this point
Copy the full SHA 91ac363View commit details -
test/chan: getFilteredClone has more fields than the test thinks
The codebase shoves various things into channel objects to transmit them for things like channel lists etc. This however means that the type does contains the fields and needs to export them. We should clean up the events so that we can get rid of all that. But for now, we adapt the test expectation to reality.
Configuration menu - View commit details
-
Copy full SHA for a200bab - Browse repository at this point
Copy the full SHA a200babView commit details -
test/chan: remove users field from test
The client side fetches the user list when needed, we don't send it over from the server. Hence modify the test expectation.
Configuration menu - View commit details
-
Copy full SHA for 5567f07 - Browse repository at this point
Copy the full SHA 5567f07View commit details -
test: token in init event payload is undefined not null
Doesn't matter which, code happens to emit undefined. Adapt test expectation over writing strange || null code. The conditional just checks for a falsey value.
Configuration menu - View commit details
-
Copy full SHA for 8372c5a - Browse repository at this point
Copy the full SHA 8372c5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ec67a6 - Browse repository at this point
Copy the full SHA 1ec67a6View commit details -
NetworkForm: disable unsafe return lints for now
The NetworkForm type is wrong, hence the compiler can't infer the type. This needs quite some changes, so for now we just turn the linter off for the 2 watch functions. The whole component is too dynamic to fix easily.
Configuration menu - View commit details
-
Copy full SHA for 36cb75e - Browse repository at this point
Copy the full SHA 36cb75eView commit details -
server: don't throw in async callback from index requests
This was flagged as an issue by codeQL > Server crash [High] > The server of this route handler will terminate when an > uncaught exception from this location escapes an > asynchronous callback.
Configuration menu - View commit details
-
Copy full SHA for 8eb398c - Browse repository at this point
Copy the full SHA 8eb398cView commit details