summaryrefslogtreecommitdiff
path: root/ui/lib/apiServer.js
Commit message (Collapse)AuthorAge
* Split "set up the event source" and "apply events to state" from one another.Owen Jacobson2025-02-21
|
* Use axios to compute event stream URL, why not.Owen Jacobson2025-02-20
| | | | It's amazing what you can learn by skimming the docs.
* Prefer camelCase to snake_case in argument namesKit La Touche2024-11-29
| | | | Even when they get mapped to snake_case searchParams.
* Deletable messages.Owen Jacobson2024-11-08
| | | | This also fixes some rendering jank with the message timestamp chip.
* Tweak addMessage call signatureKit La Touche2024-11-07
|
* Run spaces-style prettier formattingKit La Touche2024-11-03
|
* Address outstanding lint issues.Owen Jacobson2024-11-02
|
* Run prettier, make lint part of pre-commitOwen Jacobson2024-11-02
|
* Remove notification permissions prompt.Owen Jacobson2024-11-02
| | | | On Safari (iOS and macOS), the permissions prompt can only be done during a user gesture; mounting is sufficiently disconnected from any user gestures that it's not allowed. The browser raises an exception, which, since it is unhandled, then leaks out and interrupts SvelteKit's element unmounting, leading to the whole UI being duplicated when switching channels (the old UI is not unmounted).
* Do some toast notificatingKit La Touche2024-10-31
|
* Don't leave field binding vars uninitialized.Owen Jacobson2024-10-30
| | | | | | This was causing problems for changing passwords: if the user didn't type anything in the "original password" field, the code path to sending that field to the server was just straight-up omitting the field from the message, rather than setting it to empty string, causing a 422 Unprocessable Entity. On investigation we had latent bugs related to this in a bunch of spots.
* Add `change password` UI + API.Owen Jacobson2024-10-29
| | | | The protocol here re-checks the caller's password, as a "I left myself logged in" anti-pranking check.
* Take a swing at putting an invite UI in place.Owen Jacobson2024-10-25
|
* Initial invite accept UIOwen Jacobson2024-10-12
|
* Return a distinct error when an invite username is in use.Owen Jacobson2024-10-11
| | | | I've also aligned channel creation with this (it's 409 Conflict). To make server setup more distinct, it now returns 503 Service Unavailable if setup has not been completed.
* Provide a separate "initial setup" endpoint that creates a user.Owen Jacobson2024-10-11
|
* Move login to its own route.Owen Jacobson2024-10-11
| | | | This - in passing - fixes the problem where the client failed to subscribe after logging in, by causing the whole subscription process to be re-run when returning to the main interface.
* Compute the active channel from the current routing state, not from a store.Owen Jacobson2024-10-10
|
* Hoist the UI one step up furtherOwen Jacobson2024-10-10