Commit graph

88 commits

Author SHA1 Message Date
bad50a8772
Clean up compliance report creators and share UI 2026-04-21 14:45:11 +00:00
bd3e42f83e
Use the same create logic for Mailer report creation 2026-04-21 14:41:06 +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
8eae73eefb
Add initial compliance mailer page
It loads at this point. Woot.
2026-04-20 23:16:57 +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
3379251ccb
Fix missing AddressAndMapLocator import for RMO water 2026-04-16 18:03:40 +00:00
e1f3c93a1d
Make it possible to click on either map to choose a pool 2026-04-16 04:47:41 +00:00
347e8dcb86
Update geocode store to use new naming pattern 2026-04-14 18:40:54 +00:00
67dcb87b81
Add missing water report detail component 2026-04-14 16:31:08 +00:00
b849eec7ea
Restore status page for standing water report 2026-04-14 16:28:58 +00:00
4a28a16639
Show address location, not reporter location, in the status page 2026-04-14 15:46:52 +00:00
5527731e83
Add can SMS question, fix error handling of client ID 2026-04-14 15:15:19 +00:00
84db38c985
Include client ID in nuisance and water reports 2026-04-14 14:50:28 +00:00
7545b2e4ef
Update the report after uploading images 2026-04-14 02:44:10 +00:00
2408bcbeff
Save public_id after creating report so we see it in the UI 2026-04-14 02:35:41 +00:00
e2b6bc6502
Use JSON POST for creating the compliance report 2026-04-14 02:33:39 +00:00
cadf6afb5f
Use embedded address location rather than external location on geocode 2026-04-14 01:42:53 +00:00
3c62fe2ca1
Be consistent about using report.public_id over report.id 2026-04-14 01:26:23 +00:00
a189348b36
Remove existing report URI when submission completes 2026-04-13 23:51:43 +00:00
8f494991e2
Make final pages show real data 2026-04-13 22:46:43 +00:00
f74d2c3ca1
Show phone and email as present if they are only on the server 2026-04-13 22:35:00 +00:00
9c557a0391
Make it possible to save SMS support status on phone record 2026-04-13 22:23:29 +00:00
96878f24de
Get contact information to save in compliance flow 2026-04-13 21:45:29 +00:00
083c4ddae9
Save access information to database 2026-04-13 20:42:03 +00:00
b701771dfb
Remove district loading debug log 2026-04-13 15:17:57 +00:00
447ea18d95
Bit of type cleanup when debugging 2026-04-13 15:17:57 +00:00
756cc0d266
Add properties to update compliance permission access 2026-04-13 15:15:33 +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
ae10e4fee8
Initial pattern for populating different report types 2026-04-12 17:53:25 +00:00
875298fe88
Show a warning if they will replace the images on the report 2026-04-12 16:44:20 +00:00
ab47259534
Fix sending empty longitude when creating the initial report 2026-04-12 16:29:37 +00:00
60eb6b9bbf
Use class heirarchy for different report types. 2026-04-10 23:57:47 +00:00
4060e7ddcd
Upload images on compliance report 2026-04-10 22:34:14 +00:00
e04b86218d
Fix bad compliance report PUT
Avoid attempting to PUT the location when we don't have a report URI
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
14c0d453e9
Add loading indicator when checking for previous report data 2026-04-10 15:38:31 +00:00
c48aebcb0b
Set initial camera based on location in compliance 2026-04-10 14:20:04 +00:00
553b65556a
Begin work on saving compliance report 2026-04-10 00:56:51 +00:00
3ad95e1365
Bind contact info to compliance model 2026-04-09 22:48:49 +00:00
86ab67e70b
Bind access information to the compliance model 2026-04-09 22:42:47 +00:00
3bde7a9cac
Save image data on the compliance model 2026-04-09 22:33:45 +00:00
a4a9662c94
Make submit page read from model values 2026-04-09 22:29:42 +00:00
79a56c2d20
Don't show default locator value 2026-04-09 22:29:26 +00:00
d3662b8240
Preserve the locator model
This makes it possible to move back-and-forth in the compliance process
and still retain data.
2026-04-09 22:22:27 +00:00
dbc5db9727
Link up data to final page. 2026-04-09 20:55:30 +00:00
5b5a63114c
Make the permission property an enum 2026-04-09 19:55:08 +00:00
a6912929a7
Establish basic pattern for compliance data flow
We can get location, images, and string data. It's the trifecta.
2026-04-09 17:35:00 +00:00
8d6976c770
Actually go to the next step when we get the location 2026-04-09 17:24:50 +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
cb9e5146bf
Fix display of report ID and status on the by-id page. 2026-04-09 13:48:48 +00:00