Commit graph

45 commits

Author SHA1 Message Date
61ad3fbe45
Remove string-based queries for public report data
Use the new jet hotness
2026-05-07 23:22:50 +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
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
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
a1b2d580a8
Return nil through on by id compliance 2026-04-29 20:37:36 +00:00
c6cb645453
Don't error out on missing report 2026-04-29 20:24:41 +00:00
2fbceb11e3
Don't bail on district match early, check address
This is the other half of doing proper district match via raw address -
we have to use the address if available for looking up a district.
2026-04-29 15:01:35 +00:00
524353bfa1
Geocode address if we only have a raw value
This will help with matching when the user does not select a suggested
address.
2026-04-29 13:55:10 +00:00
8bdd18649d
Separate out a public and non-public halves to publicreport APIs
This prevents us from leaking text messaging details on public
endpoints.
2026-04-28 06:36:55 +00:00
be8d92d7ae
Add 'submitted' field to compliance reports 2026-04-27 16:23:16 +00:00
a8819c907e
Add concern page to mailer compliance flow 2026-04-22 21:22:03 +00:00
fe2041f22b
Add an evidence field to compliance reports
This allows us to show a page with information about what the district
is concerned about when asking the user to fill a report.
2026-04-21 21:35:40 +00:00
f927b0a911
Split out ComplianceDistrict view for creating new compliance reports
The idea here is that we'll make compliance reports two different ways,
The first is if the user navigates to /district/:slug/compliance, the
second if they open a QR code from a mailer. In both cases we create the
report then feed them into a flow for updating the data on that report.
2026-04-21 14:35:13 +00:00
ffd424df12
Save the organization with the compliance report on creation
This avoids the problem of having to assign the compliance report later
when we get location data and image data.
2026-04-20 16:21:08 +00:00
2ea47f03f4
Start wiring together request for a mailer to database 2026-04-16 10:15:28 +00:00
fe41df3e16
Make publicreport by ID base redirect to detailed information 2026-04-14 16:07:17 +00:00
083c4ddae9
Save access information to database 2026-04-13 20:42:03 +00:00
ba76c8b1db
Return full compliance report on PUT 2026-04-13 19:32:22 +00:00
ffedae0373
Update address foreign key when updating the address 2026-04-13 19:22:41 +00:00
dcab2e1f8f
Fix failing to find matching address with publicreport 2026-04-13 17:19:20 +00:00
1a031f16bd
Update event types to include compliance reports 2026-04-13 16:59:11 +00:00
6f5b8f5575
Add implementation of insertAddresses 2026-04-12 19:42:37 +00:00
9ba99d5ceb
Remove now-empty report address fields
We'll instead create address rows and reference those
2026-04-12 18:33:41 +00:00
5306f8ba62
Populate nuisance and water public reports by ID 2026-04-12 18:02:42 +00:00
ae10e4fee8
Initial pattern for populating different report types 2026-04-12 17:53:25 +00:00
c8f74d3c26
Consistently use 'public' prefix for reports 2026-04-12 17:07:14 +00:00
a3c340f787
Split public report URIs by type
This allows us to have different signatures for the different types
2026-04-12 17:01:30 +00:00
4735734404
Helper functions for parsing geocode data 2026-04-10 22:34:34 +00:00
4060e7ddcd
Upload images on compliance report 2026-04-10 22:34:14 +00:00
12aedaf543
Update the address when provided on a report 2026-04-10 20:30:22 +00:00
bac55774f8
Switch address to contain an embedded location, start saving compliance 2026-04-10 16:59:29 +00:00
b23fc6edc5
Fix dodgy creation of compliance report in database 2026-04-10 15:38:05 +00:00
553b65556a
Begin work on saving compliance report 2026-04-10 00:56:51 +00:00
9dccd21cee
RMO frontend checkpoint
* Create a nwe AddressAndMapLocator which abstracts out the behavior of
   selecting a location
 * Fix the overlay causing render errors on the MapLocator by getting
   rid of the overlay and just using a lock indicator
 * Fix MapLocator zooming in to the wrong place by not framing the
   markers
 * Remove Latlng from platform and just use Location with optional
   accuracy
 * Use nested types with form-encoded POST
 * Fix styles on water report page
2026-04-09 17:21:35 +00:00
b2c24a0438
Show nuisance report status 2026-04-08 23:37:00 +00:00
2c0bfb9904
Update nuisance submission to go to submitted page 2026-04-08 17:51:41 +00:00
21180816be
Start providing organization info and URLs is user/self
The new frontend needs it to do its work.
2026-03-22 01:22:44 +00:00
685b7456b6
Return logs on comms public reports
...and start to display them. A bit.
2026-03-18 18:56:51 +00:00
1e071d5ce5
Overhaul publicreport storage layer, create unified tables
This is a huge change. I was getting really sick of the split between
nuisance/water tables when more than half of the data they store is
common. I finally bit off the big work of switching it all.

This creates a single unified table, publicreport.report and copies the
existing report data into it. It also ports existing data from the
original tables into the new table.

Along with all of this I also overhauled the system for handling
asynchronous work to use a LISTEN/NOTIFY connection from the database
and a single cache table to avoid ever losing work.
2026-03-18 15:36:20 +00:00
cc95c38ab5
Initial creation of endpoint to send messages to public reporters 2026-03-16 00:20:41 +00:00
148454d392
Push update to public report event when reporter is saved 2026-03-14 18:14:30 +00:00
e2af49a323
Make lead creation and invalidation for public reports work
The only thing wrong at this point that I can tell is that address
aren't being correctly populated when I reverse geocode.
2026-03-14 01:14:30 +00:00