Commit graph

19 commits

Author SHA1 Message Date
a89a4fbec5
Add avatar resource 2026-04-01 21:23:28 +00:00
6fbde6389d
Start creating user resources without ID. 2026-04-01 20:22:15 +00:00
a656d45a6d
Move QueryParams to resource module 2026-04-01 18:23:43 +00:00
5172400803
Begin switch to gorilla/mux
I'm realizing with this code that I'm going to have a problem if I want
to do HATEOAS-style APIs. chi just doesn't do resource-oriented API
design, and I'd have to build a lot of stuff myself.

I'm in the middle of swapping out the UI. Now is the time to make the
switch.
2026-04-01 15:32:27 +00:00
6f9a511874
WIP of user avatar work
Switching from laptop
2026-03-29 17:09:01 -07:00
4bbfbdb9e6
Pretty all the things I missed
My laptop didn't have lefthook running. Oops.
2026-03-27 14:06:50 -07:00
1ad3c5a5c8
On upload redirect to upload detail page 2026-03-27 11:33:21 -07:00
747544bb58
Get file upload working
Even though the UI doesn't do anything with it yet.
2026-03-27 08:39:38 -07:00
d7c07fc65f
Move all POST endpoints to the API 2026-03-27 06:08:55 -07:00
68e0da1133
Add log message when we can't marshal JSON
Been seeing this in prod
2026-03-20 05:01:52 +00:00
44c4f17f32
Massive rework of platform layer user/organization
The goal of this rework is to make it so I can pass around platform.User
instead of a pair of models.Organization and models.User. This is useful
for reason I kind of forget now, but it started with working on
notifications and ballooned massively from there into refactoring a
number of things that were bugging me.

This also includes a tiny amount of work on server-side events (SSE).

 * background stuff lives inside the platform now, which I need for
   having it push updates through SSE
 * userfile now lives in the platform, under file, so other platform
   functions can safely use it
 * oauth is broken into pieces and inside platform because other stuff
   was calling it already, but badly.
 * notifications go into the platform as well
2026-03-12 23:49:16 +00:00
d0a920b8d9
Log errors on POST, send JSON bodies back 2026-03-11 23:52:44 +00:00
4ac7e29909
Sort messages by creation time 2026-03-10 15:46:17 +00:00
636a0379aa
Early process converting communication page to use actual data. 2026-03-06 23:45:12 +00:00
502a4d15df
Add organization to all authorized endpoints
We use it in filtering quite a bit.
2026-03-06 22:08:08 +00:00
de63a47c64
Add query args passing to API endpoints 2026-03-06 14:12:47 +00:00
dd50035a47
Create leads from signal 2026-03-05 17:24:50 +00:00
89197df6b0
Add fake API endpoint for creating leads 2026-03-05 14:18:10 +00:00
438c946bad
Start creating struct-based JSON encoding for API endpoints 2026-03-04 18:30:21 +00:00