01f35b603e
Add centralized error handler for sync Vue app
2026-05-08 23:33:49 +00:00
da90401b2d
Push location config to client
...
We'll let the default stay the default.
2026-05-08 22:48:51 +00:00
28cf7683a7
Pass-through an address shim with whatever data we have
2026-05-08 22:45:26 +00:00
d1ba2f53fa
Fix setting address on compliance reports
...
This error was subtle. First, we want to set the GID and raw content
directly using the updater instead of doing two round trips because we
can. Second, we want to do some geocoding if the address isn't already
in the system. Likely it is, because the frontend would have requested a
geocode, but it's possible that it isn't.
2026-05-08 22:43:57 +00:00
24a3610c4c
Correctly build updaters with New
...
Otherwise we have nil columns
2026-05-08 22:22:52 +00:00
7da653efc6
Avoid a DB query if there are no address IDs
2026-05-08 22:21:56 +00:00
735a9dc1d2
Properly close rows on empty results
...
I we don't do this we get "conn busy" errors.
2026-05-08 22:21:27 +00:00
f2585c569c
Woops, actually set all columns on compliance because it doesn't have a serial key
2026-05-08 01:08:06 +00:00
0fc46d5916
Only set mutable columns on insert
...
Because we don't want to set ID and other primary keys
2026-05-08 00:56:55 +00:00
61ad3fbe45
Remove string-based queries for public report data
...
Use the new jet hotness
2026-05-07 23:22:50 +00:00
12213fb31b
Remove string-only references to location_* generated columns
2026-05-07 17:01:54 +00:00
7a361a330d
Remove now-extraneous latitude/longitude generated columns
...
Now that we can pull out the geometry directly into a go object we don't
need these and they complicate our insertions
2026-05-07 16:38:42 +00:00
34a136eba5
Move user to compliance complete page for submitted reports
2026-05-07 16:17:00 +00:00
fcd95f1a25
Get back to compiling, but using new jet for publicreport
...
This was an epically long change, and a terrible idea, but it compiles.
This was essentially a cascade that came about because I can't blend jet
and bob in the same transaction. In for a penny, I guess...
2026-05-07 10:39:17 +00:00
a95e44cf42
Use transactions to set the communication status changes
...
Not doing it yet, but soon we'll do log entries for them.
2026-05-04 20:57:50 +00:00
040ab106b4
Fix failing to set timestamp in mark query
...
I accidentally didn't understand how this API works.
2026-05-04 20:30:36 +00:00
5f3fcc2b3e
Fix a bunch of not-checking-error lints
2026-05-04 20:29:02 +00:00
114aec73ed
Fix setting timestamp for when action is taken
2026-05-04 20:09:56 +00:00
60bf09e813
Avoid emitting error on transaction rollback that's complete
...
It's on purpose
2026-05-04 19:53:36 +00:00
347f62bd6d
Fix method on marking communications
2026-05-04 19:43:37 +00:00
878f0e9bcf
Try a different way to limit linting
2026-05-04 19:43:20 +00:00
18db17fe0b
Don't lint every go file on every commit.
...
Faster commits, less redundancy
2026-05-04 19:40:12 +00:00
b53c908b55
Fix warning from sentry setup
2026-05-04 19:39:17 +00:00
dc2fee3a9d
Fix selecting items in the communication list
2026-05-04 19:39:03 +00:00
387be40076
Return ID as a string from API
...
Because they are opaque, not something to math
2026-05-04 19:37:05 +00:00
3153e8bf13
Initial work marking communications
...
And a bunch of lint fixes
2026-05-04 19:07:29 +00:00
67c99436d1
Properly set submitted on PUT, return new status properties on comms
2026-05-02 00:41:31 +00:00
431435f8bd
Set the organization on inserted communications
2026-05-02 00:38:38 +00:00
57dc2023cd
Remove unused submit function
2026-05-02 00:38:12 +00:00
d6b664d84a
Return the communication we create
...
...or else it'll be empty.
2026-05-02 00:37:51 +00:00
52d4c47e43
Fix lint errors related to not checking errors
2026-05-02 00:37:28 +00:00
7f71ff9a2e
Send submit PUT on compliance report flow, create communication then
...
This makes it so that people don't see compliance reports as they're
being formulated in the communication workbench
2026-05-01 21:27:17 +00:00
a82732a49c
Return communication database rows from communication API
...
This is a pretty big refactor of how communication works to start moving
us in the direction we want to go long-term. This adds the new
communication row and migrates existing reports to add rows for
communication.
There's also a bunch of automatic fixes from the new linter. I should
have added them separately, but whatever.
2026-05-01 21:00:23 +00:00
a6ce0b7e67
Add golangci-lint to lefthook workflow
2026-05-01 17:36:32 +00:00
bab3200b6c
Port all of the arcgis schema to using jet
...
Have not tested anything at this point, it just compiles.
2026-05-01 17:28:33 +00:00
89ed2003fa
Ignore custom jet schema binary
2026-05-01 15:13:50 +00:00
a82b2b8cb8
Add new communication table
...
It allows us to track when communication tasks are complete, and
information about how they were completed, separate from the entries
that created the tasks in the first place (reports, emails, texts)
2026-05-01 15:13:05 +00:00
6a47302192
Create custom jet template for both stadia and arcgis
2026-05-01 15:11:20 +00:00
0e0b2489e6
Get beginnings of custom column type working
2026-05-01 06:27:26 +00:00
9ef4dad27c
Initial custom jet generator
...
I'll need it for Postgis data types
2026-05-01 05:45:45 +00:00
e5a84e09a8
Initial working version of using jet for SQL building
2026-05-01 05:11:28 +00:00
4bd62b3567
Fix publicreport store name pollution
...
This was causing a request to be made to the wrong API endpoint by going
to /api/publicreport instead of /api/rm/publicreport which doesn't work
on RMO's hostname.
2026-05-01 02:37:54 +00:00
503cde6063
Init sentry first, then mount the app
...
Gets rid of a warning from the Sentry SDK
2026-05-01 01:52:44 +00:00
8757f1cda3
Fix loading on status page
...
It was infinite looping in the computed value for report
2026-05-01 01:52:11 +00:00
ace2557a60
Fix navigation from RMO status page on report table
2026-05-01 01:43:57 +00:00
537d5c9133
Save address input if the user clicks the "back" button.
2026-04-30 16:46:28 +00:00
00d26a684a
Handle EXIF location data set to "NaN"
...
Probably Android's new privacy thing. Jerks.
2026-04-30 15:34:08 +00:00
1cfe51f894
Actually check the error state for saving an image
2026-04-30 14:27:45 +00:00
43edca7093
Add new response template
2026-04-30 13:58:31 +00:00
839ed138ca
Ignore vite deps
2026-04-30 03:48:53 +00:00