Commit Graph

91 Commits

Author SHA1 Message Date
Joe Ardent b59dfb5bf0 final tweak of proc macro 2023-06-14 15:44:54 -07:00
Joe Ardent f456e07559 make derive not do a trait 2023-06-13 22:08:28 -07:00
Joe Ardent 62955548bb tidy the generated code a bit 2023-06-13 16:15:47 -07:00
Joe Ardent 46f52ff7ee Merge branch 'maybemaybeuser' 2023-06-13 15:57:12 -07:00
Joe Ardent 695f450c64 Use proc macro for optional optional user. 2023-06-13 15:56:15 -07:00
Joe Ardent ec2b60098e add user-aware header 2023-06-13 14:33:31 -07:00
Joe Ardent e310e547f6 shit is fucked up, probably abandoning 2023-06-13 12:34:54 -07:00
Joe Ardent 4026bf16b7 add logo 2023-06-11 17:06:27 -07:00
Joe Ardent 256f71b4a8 more readme formatting 2023-06-11 15:53:18 -07:00
Joe Ardent a0105dd178 tweak readme formatting 2023-06-11 15:50:59 -07:00
Joe Ardent f71daa703c add readme 2023-06-11 15:42:17 -07:00
Joe Ardent 28182ff604 Checkpoint merge in from "watches". 2023-06-10 15:34:01 -07:00
Joe Ardent 9ac4810d80 Add demo of query params for searching watches. 2023-06-10 15:32:50 -07:00
Joe Ardent 8b1eef17f7 Simplify form input handling.
The form input values were coming to the handlers already-urldecoded, so no need to re-decode them.
2023-06-10 15:30:36 -07:00
Joe Ardent c94890b9f0 checkpoint 2023-06-10 11:32:40 -07:00
Joe Ardent a8356dae58 Merge branch 'main' into watches 2023-06-09 15:05:13 -07:00
Joe Ardent dc3f90228f Merge WIP material from "watches" branch. 2023-06-09 15:03:52 -07:00
Joe Ardent dd9a32dfd7 minor mod and visibility re-org 2023-06-09 15:01:16 -07:00
Joe Ardent c44c89005c add working endpoints for getting your watches 2023-06-08 15:45:34 -07:00
Joe Ardent 1e9d97bd19 tweak endpoints 2023-06-08 09:17:11 -07:00
Joe Ardent 9505266ef9 minor re-org and rename of main page template struct. 2023-06-08 09:16:38 -07:00
Joe Ardent 55c75110d0 add comment about using ULIDs maybe 2023-06-06 14:59:00 -07:00
Joe Ardent 898e8d381e tweak the db model for watches, add handler skeletons 2023-06-06 14:08:49 -07:00
Joe Ardent 1a4ffaa99d adds Watches struct 2023-06-05 16:51:27 -07:00
Joe Ardent edaf9e50f3 remove unreachable error code 2023-06-04 15:37:08 -07:00
Joe Ardent 6b8589575c Merge branch 'tests' into 'main'
Yoontigration tests

See merge request nebkor/ww!1
2023-06-03 23:12:42 +00:00
Joe Ardent 9292454dd3 Add test for duplicate username. 2023-06-03 16:10:48 -07:00
Joe Ardent 8d040ad368 Finish signup tests. 2023-06-03 15:45:19 -07:00
Joe Ardent 38a6cdeb84 backport test utils improvments to login tests 2023-06-03 13:58:37 -07:00
Joe Ardent 09a07f2c57 more test skeletons 2023-06-03 12:36:18 -07:00
Joe Ardent bad698cc19 add skeleton for signup tests 2023-06-03 10:42:23 -07:00
Joe Ardent 0f0d7f488f Add more test utils. 2023-06-03 10:11:07 -07:00
Joe Ardent 14fade1832 Merge branch 'tests' 2023-06-02 17:35:52 -07:00
Joe Ardent 81d35e1661 Fix broken test and move helpers to test util module. 2023-06-02 17:32:48 -07:00
Joe Ardent 30169733a0 More login testing, added reference user factory fn. 2023-06-02 17:01:59 -07:00
Joe Ardent 613814a648 Merge branch 'tests' 2023-06-02 15:34:04 -07:00
Joe Ardent 569b19e837 Minor tweaks. 2023-06-02 14:15:13 -07:00
Joe Ardent 659bc0d008 Add tests for login/logout endpoints.
Changes in the test DB setup are there to support persistent in-memory DBs for testing.
2023-06-02 14:12:29 -07:00
Joe Ardent 81adffe7f0 fix migration test with hack
Without sleeping after migration, the tests fail, so...
2023-06-01 12:24:43 -07:00
Joe Ardent b691e6ee8d add automatic migration on startup 2023-05-31 21:47:59 -07:00
Joe Ardent 453a126b95 Add generic handlers tests, remove broken doctests for session store. 2023-05-31 15:58:03 -07:00
Joe Ardent bfda5a6fbb Merge branch 'main' into tests 2023-05-31 13:58:38 -07:00
Joe Ardent 352a85eaef Move router creation to lib to allow easier testing. 2023-05-31 13:15:33 -07:00
Joe Ardent 8c666c3f78 only update last_seen every 12 hours 2023-05-31 12:43:57 -07:00
Joe Ardent ac0af7970d No actual tests added. 2023-05-30 18:46:32 -07:00
Joe Ardent 57a6b69ec3 tidy up db stuff 2023-05-30 18:44:25 -07:00
Joe Ardent 6425dd4016 Add middleware to update `last_seen`. 2023-05-30 14:51:52 -07:00
Joe Ardent 5dcd726df1 move all db stuff to db mod. 2023-05-29 17:17:23 -07:00
Joe Ardent ba9205c9f2 add license 2023-05-29 16:01:53 -07:00
Joe Ardent d2613b0ef9 End-to-end web-based signup, login, and logout flows work. 2023-05-29 14:25:50 -07:00