Commit graph

97 commits

Author SHA1 Message Date
f599d831c8
Add breeding source detail page
A bunch of it is currently placeholders, but I got the map marker
working so I'm saving it.
2025-11-20 14:56:34 +00:00
6dca03fd0a
Order rows in the data tables 2025-11-19 22:36:19 +00:00
216c91ed10
Add links to source-specific details page 2025-11-19 22:34:07 +00:00
aab9bd0c44
Add inspections to cell page 2025-11-19 22:30:01 +00:00
7b13b4b1ad
Add treatments information to cell debug page 2025-11-19 16:32:56 +00:00
782b13c6a0
Add basic query for breeding sources
Still a lot of placeholders.
2025-11-19 15:59:51 +00:00
c0b527c9a3
Add cell debug page.
This makes it much easier to troubleshoot information related to a cell
by showing detailed data about a single cell. At this point much is a
placeholder, but we at least get the cell boundary coordinates and a
map.

This also starts to make some code common around doing things like
mapping.
2025-11-19 15:21:06 +00:00
7c2d7eef25
Create separate signin page, make auth redirect there. 2025-11-19 15:19:42 +00:00
60a1eba2eb
Detect clicks on hexes in the map display.
This will allow us to focus on a single region.
2025-11-17 22:13:02 +00:00
ec1a4cc6fa
Add the organization ID to the Tegola URL
We'll eventually want this provided through the template, but for now
the direct coding proves that it works.
2025-11-16 21:25:54 +00:00
930906dba3
Filter vector tiles by resolution
This is not really efficient - we're pulling across high-resolution data
then throwing it away on the frontend. But it proves the important
thing: that we're loading the data correctly.
2025-11-15 22:02:50 +00:00
a14249710d
Add geometry info to h3 aggregation table
This makes it possible to use Tegola to show vector tiles.
2025-11-15 21:33:01 +00:00
6f6af23578
Convert endpoint.go to use zerolog
Yay, consistency.
2025-11-14 23:09:27 +00:00
0614a768c3
Remove redundant API error type, use arcgis
That's what the library is supposed to be for.
Errors still aren't working quite right.
2025-11-14 23:08:26 +00:00
e48abb09c0
Go to h3 v4, Add initial h3 aggregation work
This calculates the summary information of data in h3 nodes and puts it
in the database for fast lookup.
2025-11-13 23:49:12 +00:00
7919f0da66
Wrap errors. Don't emit crash message on no oauth tokens. 2025-11-13 20:53:20 +00:00
8e71542c3f
Convert arcgis.go to use zerolog 2025-11-13 20:34:48 +00:00
968a934df7
Convert database.go to use zerolog 2025-11-13 20:16:23 +00:00
0dce12b059
Begin switch to nice colorized zerolog
Makes it easier to read
2025-11-13 20:11:00 +00:00
134dcd7444
Push an H3 cell to javascript and render it
A proof-of-concept.
2025-11-13 20:01:15 +00:00
b6c078f04c
Make heatmap fit inside the page layout. 2025-11-13 17:55:44 +00:00
bc60be3b48
Add logging to catch specific error type on double notification insert 2025-11-13 17:48:56 +00:00
a6fe8f9027
Add basic MapBox integration.
It's just a demo at this point.
2025-11-13 17:48:38 +00:00
fc40309dd0
Make it possible to resolve notifications 2025-11-13 16:48:23 +00:00
20186f65bf
Create settings page placeholder, add auth pattern
This adds a pattern for creating pages that require authentication. The
settings page is currently empty, but it's helpful to figure out how to
do this pattern.
2025-11-13 16:48:23 +00:00
ae4be91d52
Use max refresh token expiration time in production
Keep the value low for dev so that I can test that we recover well.
2025-11-13 15:15:35 +00:00
942fc42d5f
Show dashboard numbers with commas for readability 2025-11-13 15:05:05 +00:00
e6a90631ff
Fix search for latest sync data
We were pulling the oldest sync data
2025-11-13 14:57:14 +00:00
6fb5d48791
Maintain tokens in a loop forever. 2025-11-13 14:34:50 +00:00
9f82c483e2
Don't cross-write token types 2025-11-13 14:33:08 +00:00
901f65361a
Don't pass the redirect URI through
It's always the same, might as well just get it where we need it.
2025-11-13 14:31:33 +00:00
4198f18d94
Timestamp token debug files so I can view them all 2025-11-13 03:17:49 +00:00
ddb204995f
Refresh refresh tokens too
I'm not sure yet if this is making the request correctly, but I'm pretty
sure it needs to be done.
2025-11-13 03:17:23 +00:00
249cb15e5b
Only use tokens that are valid 2025-11-13 03:17:05 +00:00
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