Commit graph

48 commits

Author SHA1 Message Date
630c6b7342
Stop connecting to email websocket
It doesn't work and is generating errors on startup
2026-03-06 22:45:28 +00:00
b5636af514
Fix making immediate processing of uploads do the correct thing 2026-03-05 02:12:17 +00:00
8e00d3e04b
Fix setting the file to "parsed" when starting parse job 2026-03-04 19:27:33 +00:00
96514d61e2
Add both committing and import CSV jobs to the backlog 2026-03-04 19:02:11 +00:00
daa8cb1748
Push geocoding down a layer
This makes it possible to always save address information from our
geocoder.
2026-03-04 18:29:52 +00:00
bee8097546
Stop creating oauth token debug files 2026-03-04 14:53:11 +00:00
ff2ec0ad14
Split out ability to upload flyover data from pool uploads
Tons of changes here, all in the name of quickly getting to where I can
create test compliance letters.
2026-03-02 18:49:02 +00:00
89eda187be
Get map images working 2026-03-01 20:33:16 +00:00
d4d9749431
Rework arcgis integration for arcgis-go changes and table changes 2026-02-28 23:26:08 +00:00
ea1af2da53
Start to wire up sudo email, add email websocket 2026-02-18 17:01:02 +00:00
7d33354acb
Don't panic if we don't have a FieldseekerURL 2026-02-17 07:05:10 +00:00
4c856ab403
Quiet down startup logs 2026-02-14 15:40:33 +00:00
76f4613320
Keep track of rows that are outside of the district 2026-02-14 04:08:22 +00:00
8932f46900
Fix bug where I stopped initiating the background processes 2026-02-13 21:46:20 +00:00
bdd862e649
Show actual information on oauth integration setting page 2026-02-13 21:14:46 +00:00
62c724b5c2
Update to latest arcgis-go interfacets 2026-02-13 19:19:39 +00:00
8e68230f4a
Handle changes to arcgis-go 2026-02-12 21:05:51 +00:00
c136ff102b
Update to passing newly required context to arcgis-go 2026-02-10 21:30:58 +00:00
a92cb52eb5
Gracefully handle lack of permissions on webhook and permission 2026-02-10 18:54:47 +00:00
648e0ee567
Move emails to platform, make sure to create phone and email in DB 2026-02-10 04:07:59 +00:00
63193c5324
Add test for doing geocoding directly from esri
It works at this point.
2026-02-09 21:40:24 +00:00
aee17d2c7a
Add jobs to process queue when csv is uploaded 2026-02-08 05:06:47 +00:00
e81161ca7f
Actually start reading CSV file 2026-02-08 04:46:54 +00:00
fdd783c19c
Rework userfile yet again
I'm settling on the idea that strings should never be returned from the
userfile system. Instead, indicate which collection you want and pass
objects across.
2026-02-08 04:36:12 +00:00
013ac85a70
Add logic to re-add background uploads that didn't complete 2026-02-08 04:01:48 +00:00
d17c8b8be7
Add worker process for CSV import jobs 2026-02-08 03:52:39 +00:00
21fac37597
Rework files to use strings instead of duplicate functions
There's too many functions at this point.
2026-02-08 00:58:51 +00:00
39e0d9d9f3
Remove chatty oauth debug message about no ouath
Floods my dev setup log
2026-02-06 15:40:25 +00:00
00a75a556e
Fix email sending for report notification confirmation
The links in the email don't work, but it's a first step
2026-02-02 17:00:48 +00:00
9914274d42
Wire in agent to the reporter texting system
Also rework the so the platform absorbs all the business logic that was
going in the wrong place.
2026-01-27 19:56:26 +00:00
a68b8781e7
Add ability to make LLM agent forget the conversation history
This is extremely useful for testing.

In order to do this I needed to actually deploy the migration to a bob
fork so I could start to add support for behaviors I really want.
Specifically the ability to search for ids in a slice.
2026-01-27 18:44:02 +00:00
adc99e8871
Add ability to delay text message sending 2026-01-26 16:10:30 +00:00
c0b6398de2
Overhaul text messaging system to be like emails
It's a better system for organization and makes it so we can have better
logs about what gets sent.
2026-01-25 18:47:22 +00:00
196792810b
Overhaul email sending system
Add logging and saving templates to the database for historical
accuracy.
2026-01-23 20:36:16 +00:00
5e6288ab9b
Add beginnings of work to save emails to database
Not tested yet
2026-01-23 03:32:06 +00:00
44fdaa6c2b
Add initial onboard email
...and patterns for how to do email stuff in the future.
2026-01-23 02:50:25 +00:00
aa7585563b
Fix erroneos copy-paste log message 2026-01-23 02:49:47 +00:00
61d8d14fc2
Bunch of work around assigning reports to districts
I added some DB schema to track logos and to relate reports to
organizations. I reworked how GPS data comes from EXIF data on images
because it wasn't working for JPEGs. I might have broken PNGs in the
process. Also made the config options for domain names more
standardized.
2026-01-22 03:27:32 +00:00
f4a88623af
Overhaul system for handling text messaging
Move away from "SMS" as the operative word - we're going RCS.
Move all comms processing to a separate goroutine
Rename the DB tables
2026-01-21 03:30:03 +00:00
842e6cff43
Move comms work to background goroutine
This is a sort of random checkpoint of work
 * add schema for tracking messages sent to DB
 * add terms of service and privacy policy for RCS compliance
 * standardize some things about background workers
 * update some missing stuff from generated DB code
2026-01-20 17:10:22 +00:00
079d20c086
Extract EXIF data from images
This required a schema change and actually dumps all existing photo data
from the public reports page. That's probably fine since it's not
deployed to any customers so all data is currently test data.
2026-01-16 20:16:58 +00:00
948f967a16
Add aggregation map for traps
This also makes the first time I've done a Mapbox map within a web
component. It's not officially supported according to:

https://github.com/mapbox/mapbox-gl-js/issues/12796

but I found a codepen that had a working example:

https://codepen.io/keichan34/pen/ZEKqeEj?editors=1111
2026-01-15 20:25:00 +00:00
06140a9062
Remove bob submodule, add arcgis.user
I had to remove the submodule because of the go bug at
https://github.com/golang/go/issues/77196
I found the bug because of a bug in bob itself
https://github.com/stephenafamo/bob/issues/610
This was because I'm trying to save data about the Arcgis user for use
in determining if I can set up hooks to avoid the polling for data
changes.
2026-01-15 19:20:39 +00:00
d46d988b4d
Make aggregate layers clean up, add service request aggregate 2026-01-15 04:10:54 +00:00
248cffd323
Rework arcgis oauth flow logic
This is several changes after the demo with Ben
 * When a user adds their oauth and they get an arcgis ID for an
   organization that exits they are added to that organization. The
   previous org isn't removed
 * All layer processing is done in a single large pool. This makes it
   much faster in aggregate
 * Some queries are done more directly instead of through custom sql
2026-01-15 01:05:21 +00:00
cd22818240
Actually exit early on empty aggregate
Previous attempt was subtly wrong.
2026-01-14 21:52:36 +00:00
21a8f9622a
Avoid empty insert statement when there are no aggregations 2026-01-14 21:36:58 +00:00
572b8a9de9 Rip apart several new packages for inter-dependence
This will help make it clear what depends on what for rendering html
pages
2026-01-07 16:07:51 +00:00