Commit graph

26 commits

Author SHA1 Message Date
10e368c403
Get initial nuisance and water resources working
This is a straight port of the form-encoded POST submission logic.

It is missing a bunch of data.
2026-04-03 22:04:22 +00:00
341c3ef6b9
Fix publicreport creation
The consistency is good, but I added some errors, like not using an enum
2026-03-18 18:45:18 +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
e8d865d0ab
Wire up events for creating new public reports
This involved moving a lot of stuff to the platform layer since I don't
want event interfaces leaking out.

Also this includes a fix to the user authentication which I had
previously broken by making a platform-layer user object independent of
the database layer.
2026-03-13 17:56:24 +00:00
52f2a75ec5
Pass-through error on address creation failure 2026-03-09 22:18:39 +00:00
d2eecdef90
Create address records from nuisance report data if provided 2026-03-09 19:09:42 +00:00
e932c2c473
Rework publicreport addressing
This adds the ability to link a proper address in the database to the
report and harmonizes the field names with the address table. It also
migrates away from mapbox entirely.

And I fixed the "pool" naming for the publicreports, which are supposed
to be the more generic 'water'.
2026-03-09 18:02:22 +00:00
cfe399e44f
Add address number to public reports 2026-03-08 03:16:58 +00:00
ef205bd622
Populate district from image location on standing water 2026-02-10 15:22:27 +00:00
c74fff6da9
Match districts on pool reports too 2026-02-10 15:09:57 +00:00
b263d50b76
Remove debug log spam 2026-02-09 22:33:44 +00:00
0265e9d3ec
Rework template system, merge templates
The embedded portion doesn't work yet.
2026-02-07 05:53:38 +00:00
9328e7a2f8
Properly record and display pool reports 2026-02-05 21:43:29 +00:00
5fc0f9fa3d
Update storage and display of nuisance report 2026-02-05 16:56:36 +00:00
2066840a40
Add district-specific nuisance reporting page. 2026-02-01 03:14:36 +00:00
93079c5c8e
Make urls with district slugs 2026-02-01 03:07:46 +00:00
c5f6db0b73
Lookup district and show on report submission complete 2026-02-01 02:37:35 +00:00
527f6a5628
Store images with nuisance reports 2026-01-31 22:14:46 +00:00
f20067b323
Actually update reports when a subscriber subscribes 2026-01-31 21:07:03 +00:00
a9b0a55f20
Create report platform layer
Rework phone subscription at the database layer so that we have a
seprate phone status and subscriptions to district communications.
2026-01-31 20:08:08 +00:00
cbcd998803
Migrate latest mocks for report submission 2026-01-31 16:44:41 +00:00
bf8c4ca6da
Prune data layer on nuisance report
After this, we can successfully POST the report.
2026-01-31 16:14:19 +00:00
1fbe41b725
Clean out a bunch of unused nuisance report fields
Feedback had us simplify the form significantly
2026-01-31 15:39:14 +00:00
bab8af4572
Get basic bones of the nuisance page copied from the mock 2026-01-30 20:41:02 +00:00
9b1d75d47f
Rename htmlpage to html
Because it's going to get more tools.
2026-01-30 19:32:01 +00:00
e7681c7d6e
Change public-report to rmo
We're leaning into the branding and shorter directory names
2026-01-29 23:59:35 +00:00
Renamed from public-report/nuisance.go (Browse further)