Commit graph

113 commits

Author SHA1 Message Date
8382009492
Attempt to request webhook data
This isn't exactly working for me right now since I don't have an API
key that has access to control webhooks, but it is making the request to
the correct endpoint and getting back a permission error.
2025-11-13 03:15:45 +00:00
567c1b5064
Remove 'timeSince' debug logging 2025-11-12 21:28:07 +00:00
390e5120e1
Forward from the notification URL to the oauth flow 2025-11-12 21:27:51 +00:00
1fd407681e
Only keep valid oauth tokens alive 2025-11-12 21:27:39 +00:00
bf3dedf7cd
Pull notifications from the database
Previously we were storing them, just not showing them.
2025-11-11 22:53:48 +00:00
337e5f7a7d
Get error reports of failure in goroutines 2025-11-11 22:36:29 +00:00
ec5203a6a6
Add missing 'created' column to history_treatment table
This was a simple copy-paste error.
2025-11-11 20:26:31 +00:00
1a2e9f8a18
Don't crash on no latest sync
This makes the template function timeSince a little more forgiving of
situations where we don't have a latest time for sync because it's never
happened.
2025-11-11 20:10:56 +00:00
a2e67e3d60
Add oauth token failure model and notification
This will allow me to mark when an oauth token fails and surface it to
the user so that they can re-up on their auth token.
2025-11-11 20:10:56 +00:00
0a74bd8345
Embed html templates for deployment 2025-11-11 17:47:27 +00:00
f0ace114b0
Make buildable release for prod 2025-11-11 16:09:18 +00:00
e3234332f0
More compact interface for phone call mock
Tighter technicion roster, reduction of redundancies, showing calendar
percent filled, and unified search.
2025-11-11 02:12:42 +00:00
96c25b256b
Add simple notifications system to header
This just allows me to indicate that I need to tell the user something.
2025-11-10 22:48:57 +00:00
89c4072a35
Add phone call page
Just mocks, and probably not great ones at that.
2025-11-10 22:43:31 +00:00
ae46b03e4b
Convert existing pages over to report template errors 2025-11-10 22:23:46 +00:00
b4830f7684
Add system for showing template render errors
Makes troubleshooting bad templates much easier. Need to convert
everything over.
2025-11-10 22:16:23 +00:00
7b48f6eddf
Add quick report page 2025-11-10 15:27:22 +00:00
d19c3fe265
Add a quick report link which shows at the top on mobile 2025-11-10 14:43:46 +00:00
31ca1a2f45
Add mocks for service request, sync information to dashboard
Should have been split, but I had commit challenges
2025-11-08 00:04:44 +00:00
eb52b36f45
Show recent activity from the actual account. 2025-11-07 11:03:06 +00:00
ed1b878b8d
Do update work in a pool for speed, and show some actual data. 2025-11-07 10:48:12 +00:00
b0432f3243
Add statistics on the sync and save org ID with fieldseeker tables
We need the org ID so that we can avoid bleedover between different
organizations.
2025-11-07 09:30:31 +00:00
bf6e40d877
Shorten the time waiting for air to kill my webserver 2025-11-07 08:46:26 +00:00
9010726707
Add initial synchronization of Fieldseeker data by oauth
This involves a lot of copy-pasta of code from the previous version of
this logic in another code base. It'll need to be cleaned up, but for
now I need something sooner rather than later.
2025-11-07 08:34:32 +00:00
46ea655073
Add Fieldseeker table schema 2025-11-07 06:08:48 +00:00
109495b702
Track access token and refresh token expiry
Also make a bunch more progress on actually updating the tokens when we
need them updated.
2025-11-07 05:46:41 +00:00
cf01c8c5c6
Create clean shutdown logic for http worker 2025-11-07 02:29:34 +00:00
a08cd87813
Save information about the organization and user from ArcGIS 2025-11-07 02:07:33 +00:00
07d3b3ea76
Update arcgis-go 2025-11-06 22:59:09 +00:00
72cbe2de5e
Check if we have oauth information, only prompt if its missing
Also include a rough dashboard of information that we'll pull from
Fieldseeker
2025-11-06 22:58:18 +00:00
fa89e0719f
Format all source files. 2025-11-06 22:31:51 +00:00
f7ad8b9c5f
Add lefthook configuration for formatting 2025-11-06 22:31:29 +00:00
ff1fd18da1
Start using the ArcGIS client to get user data with the token 2025-11-06 22:28:56 +00:00
858bc031a0
Save oauth tokens to the database for use later. 2025-11-06 00:23:58 +00:00
8cd11b350d
Add update location page. 2025-11-05 23:41:21 +00:00
44e39fa44a
Add update URL to the detail page. 2025-11-05 22:11:51 +00:00
7d4628cf20
Fix whitespace formatting on main report page template 2025-11-05 22:08:18 +00:00
68c36f8576
Fix links on main diagnostics page. 2025-11-05 22:04:53 +00:00
711302f25d
Add a report confirmation page 2025-11-05 22:03:33 +00:00
a2a0fdb90a
Add a fake schedule page 2025-11-05 21:57:59 +00:00
056b871c38
Add pages for reviewing evidence and contributing evidence. 2025-11-05 21:51:23 +00:00
4eebb6b88a
Add a report detail page. 2025-11-05 21:37:11 +00:00
c99a5a3f62
Add support for generating the QR code in the page. 2025-11-05 21:21:58 +00:00
24aa1b88ef
Make links consistent on the report number, link actual QR image. 2025-11-05 21:09:19 +00:00
f6acb6ab83
Add initial report outline page. 2025-11-05 21:05:10 +00:00
ac736cced1
Add dashboard page with login header
A lot of things here don't work yet, but this is the basic layout.
2025-11-05 17:49:19 +00:00
4d55a391c9
Retroactively fix some SQL schema problems
I originally wasn't going to do passwords, but after struggling with
webauthn I decided I'd just go for it. It simplifies the code a lot if I
assert that I always have a password, displayname, etc.
2025-11-05 17:36:32 +00:00
981f043b7f
Air: Don't rebuild for html, don't restart on error 2025-11-05 17:34:51 +00:00
963994abbc
Ignore air's temp building directory 2025-11-05 17:17:21 +00:00
c0b501981b
Update readme with air instructions 2025-11-05 17:17:03 +00:00