Commit graph

11 commits

Author SHA1 Message Date
393836a86a
Fix notification of job happening before transaction is closed
This is kind of a wild one. Turns out that the triggers I was using
actually fire before the transaction is closed and I was primarily
getting lucky that the job was present on the other side of the
connection rather than having things built correctly.

I've fixed this by removing the trigger entirely and instead manually
triggering as part of the transaction. This makes the NOTIFY call happen
as soon as the transaction closes, just at the cost of making my
application be in charge of ensuring the NOTIFY gets called. Seems like
a win.

Part of doing this is porting the existing job creation code over to use
Jet. It's something I want to do anyway, so it's a win all around.
2026-05-22 23:34:38 +00:00
b9f2107c79
feat: show ErrorNotification in ReportSubmitted on submission failure
Some checks failed
/ golint (push) Failing after 9s
- Add ErrorNotification component above the contact form
- Replace console.error with user-visible error messages in
  handleSubmit for both HTTP error responses and exceptions
- Add isSubmitting ref with :disabled binding to prevent
  double-submission (consistent with Nuisance/Water forms)
- Clear errorMessage on each submission attempt

Issue: #8
2026-05-21 15:47:43 +00:00
aefb5ec6bd
Fix tooltips on water report page 2026-04-29 15:37:38 +00:00
ab5dd13fcb
Make "Submit Anothe Report" go to root so they can choose the type 2026-04-29 15:21:54 +00:00
4ae0410930
Fix various inter-linkings of public report paths 2026-04-28 06:53:58 +00:00
8fcd926d43
Format report IDs with hyphens 2026-04-28 05:33:53 +00:00
68adab88bc
Re-add notifications registered page 2026-04-28 05:30:08 +00:00
5527731e83
Add can SMS question, fix error handling of client ID 2026-04-14 15:15:19 +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
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
2c0bfb9904
Update nuisance submission to go to submitted page 2026-04-08 17:51:41 +00:00