Commit graph

160 commits

Author SHA1 Message Date
54e77f72f4
Add completion page 2026-04-03 14:34:46 +00:00
3e0003095b
Add process and submission mocks 2026-04-03 03:57:43 +00:00
095ab828b6
Add contact page in compliance flow 2026-04-03 03:43:55 +00:00
06345099eb
Add permission mock in compliance flow 2026-04-03 03:41:26 +00:00
5cabea8577
Add evidence mock 2026-04-03 03:35:45 +00:00
42bcdb8af8
Add mock for concern page 2026-04-03 03:26:52 +00:00
bfe2b88622
Add compliance address mock 2026-04-03 03:22:09 +00:00
377683c4e3
Update compliance landing page
Show district logo, phone number, etc.
2026-04-03 00:18:15 +00:00
457f123f69
Add simple compliance landing page 2026-04-03 00:12:52 +00:00
a89a4fbec5
Add avatar resource 2026-04-01 21:23:28 +00:00
ab519020fc
Swap out the rest of chi
We're now chi-free.

Not bug-free.
2026-04-01 16:57:33 +00:00
6c311c76e3
Initial draft of shifting from chi to gorilla/mux 2026-04-01 16:19:11 +00:00
a2c3f52ab4
Fix embedded static files on production builds 2026-03-21 05:38:42 +00:00
5cfd16e6a0
Fix references to report organization ID 2026-03-18 19:00:40 +00:00
21e8b9880d
Remove report_location view, add lat lng to report table 2026-03-18 18:55:50 +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
2538638c9d
Create generic backend process, fix background interdependencies
This refactor was born out of the inter-dependency cycles developing
between the "background" module and just about every other module which
was caused by the background module becoming a dependency of every
module that needed to background work and the fact that the background
module was also supposedly responsible for the logic for processing
those tasks.

Instead the "background" module is now very, very shallow and relies
entirely on the Postgres NOTIFY logic for triggering jobs. There's a new
table, `job` which holds just a type and single row ID.

All told, this means that jobs can be added to the queue as part of the
API-level or platform-level transaction, ensuring atomicity, and
processing coordination is handled by the platform module, which can
depend on anything.
2026-03-16 19:52:29 +00:00
148454d392
Push update to public report event when reporter is saved 2026-03-14 18:14:30 +00:00
a20c8918f8
Update mailer query based on changes to lead/site rel 2026-03-14 16:56:04 +00:00
1a9a72adc0
Create district catch-all, make organization on public reports not null 2026-03-14 15:53:16 +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
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
e63646c9a1
Handle EOF markers when reading EXIF data 2026-03-11 22:54:41 +00:00
5e7c547670
Fix map display on RMO status-by-id page
This involves rebuilding the "publicreport.report_location" view after
making a bunch of changes to making publicreport.water the consistent
name (over pool) throughout RMA tables.
2026-03-11 14:59:04 +00:00
3743d63692
Add proxy for managing tiles 2026-03-11 14:28:59 +00:00
ce6c6c1cc1
Initial render of standing water reports from the public 2026-03-09 22:59:21 +00:00
52f2a75ec5
Pass-through error on address creation failure 2026-03-09 22:18:39 +00:00
2071ae9e54
Strip quotes off EXIF values before they go into the database 2026-03-09 22:10:40 +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
2f7ecdfae8
Move publicreport.image to have a point location 2026-03-09 00:48:44 +00:00
cfe399e44f
Add address number to public reports 2026-03-08 03:16:58 +00:00
1e80c62701
Migrate public report classes to point location
...and drop quick report tables
2026-03-08 02:43:00 +00:00
7723f03915
Remove unused search page from RMO 2026-03-06 14:12:02 +00:00
c7dd53b6eb
Create logic and endpoint for confirming report location 2026-03-04 00:22:46 +00:00
9826f3fd70
Show map marker for property location 2026-03-03 23:42:24 +00:00
7cc43bc9ce
Add logo to the mailer lander 2026-03-03 20:47:26 +00:00
6aa7fa60b4
Add region (state) to address 2026-03-03 20:27:12 +00:00
0ff493cd53
Add remainder of the mailer mocks to the mailer flow 2026-03-03 17:52:46 +00:00
c9eee95cbb
Add URL links to mailer page 2026-03-03 17:31:41 +00:00
0f6da8e25f
Move handler objects to common location to share with RMO 2026-03-03 17:08:58 +00:00
6fb7fc7825
Debugging parcel image generation 2026-02-28 23:40:21 +00:00
558412cfb4
Various new modules for mailer 2026-02-28 23:17:30 +00:00
50f0327f59
Don't extract location if there is none 2026-02-17 20:17:32 +00:00
5a7c9fd090
Move data out of import.district and in to organization
Then get the organization settings page to work again.

Tons of other stuff is broken now.
2026-02-17 05:33:12 +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
5802fe4fd3
Show district branding on status page 2026-02-10 14:55:59 +00:00
1b85ce0d78
Actually commit changes to notifications 2026-02-10 05:28:23 +00:00