Commit graph

50 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
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
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
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
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
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
86ab67e70b
Bind access information to the compliance model 2026-04-09 22:42:47 +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
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
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
882636de8f
Add nuisance report detail to status by ID page 2026-04-09 01:15:13 +00:00
f88ca57d97
Migrate existing ts types from the API into the API module
This makes it possible to start hydrating the types into valid data
types like Dates which means I can get type safety guarantees when
displaying information.
2026-04-09 00:25:21 +00:00
b2c24a0438
Show nuisance report status 2026-04-08 23:37:00 +00:00
37ce3183ca
Add beginnings of status page 2026-04-08 22:54:20 +00:00
2c0bfb9904
Update nuisance submission to go to submitted page 2026-04-08 17:51:41 +00:00
4faa7fa8c0
Figure out router pattern for compliance steps 2026-04-07 00:04:40 +00:00
20614acb86
Add initial compliance intro page 2026-04-06 22:38:17 +00:00
6203e3da75
Add nuisance style, fix header on non-home district pages 2026-04-03 19:07:20 +00:00
51fe851c5a
Add district-styled pages for all 3 main RMO pages 2026-04-03 18:50:23 +00:00
c0e414bdc3
Add status page to RMO 2026-04-03 18:29:29 +00:00
5842b6251d
Add district header on root page 2026-04-03 18:28:41 +00:00
4f9617aa2f
Add RMO water page, start district layout 2026-04-03 16:37:09 +00:00
fd7607f5b7
Add nuisance view for RMO 2026-04-03 16:08:57 +00:00
4a9d6e0db6
Port root RMO with style to main page 2026-04-03 15:58:50 +00:00
4d718f9a12
Add router and basic home view 2026-04-03 15:43:44 +00:00