Commit Graph

175 Commits

Author SHA1 Message Date
Dillon Kearns
195469806e Handle multiple concurrent new-item submissions. 2022-08-19 10:20:48 -07:00
Dillon Kearns
eed8c29c43 Comment out debug pane for prod deploy. 2022-08-19 09:26:04 -07:00
Dillon Kearns
047d5f0631 Move debug pane and add wrapping. 2022-08-19 08:38:34 -07:00
Dillon Kearns
55b81d4297 Add loading spinner. 2022-08-18 20:44:32 -07:00
Dillon Kearns
d45a3aff71 Show debug output. 2022-08-18 20:16:01 -07:00
Dillon Kearns
779032858c Hide some buttons. 2022-08-18 20:14:25 -07:00
Dillon Kearns
96a3db6523 Show loading state with elipsis. 2022-08-17 15:12:43 -07:00
Dillon Kearns
978f00f5a0 Set createdAt from server to make it more consistent. 2022-08-16 19:33:57 -07:00
Dillon Kearns
4cc27a7017 Reorganize code. 2022-08-16 16:44:03 -07:00
Dillon Kearns
7d7cefe68b Move function for cleaner diff. 2022-08-16 16:41:53 -07:00
Dillon Kearns
7ac3cce9c1 Extract forms list. 2022-08-16 16:41:45 -07:00
Dillon Kearns
79b8a6589a Extract and format. 2022-08-16 16:39:20 -07:00
Dillon Kearns
d728e57858 Remove head tags since this is a logged-in-only page. 2022-08-16 16:32:15 -07:00
Dillon Kearns
67d55d8156 Inline subscriptions. 2022-08-16 16:30:19 -07:00
Dillon Kearns
86c80e9438 Update imports and formatting. 2022-08-16 16:21:00 -07:00
Dillon Kearns
bd058c069b Refactor session code. 2022-08-16 16:09:16 -07:00
Dillon Kearns
f3d5a67c2f Extract icons to module. 2022-08-16 16:05:36 -07:00
Dillon Kearns
fe3c46c8be Use Route helper function. 2022-08-16 16:04:18 -07:00
Dillon Kearns
ab1344113c Rearrange code for diff. 2022-08-16 16:01:24 -07:00
Dillon Kearns
c85936614f Change nesting to minimize diff. 2022-08-16 15:57:10 -07:00
Dillon Kearns
3c9d761d60 Reorder to minimize diff. 2022-08-16 15:54:32 -07:00
Dillon Kearns
6930075676 Use helper function. 2022-08-16 15:52:14 -07:00
Dillon Kearns
4c280a5bca Use helper function. 2022-08-16 15:51:39 -07:00
Dillon Kearns
725675a94f Use helper function. 2022-08-16 15:51:12 -07:00
Dillon Kearns
8f60815d22 Use helper function. 2022-08-16 15:50:38 -07:00
Dillon Kearns
c6986fc1fc Use helper function. 2022-08-16 15:49:59 -07:00
Dillon Kearns
2d912ffcb3 Extract helper function. 2022-08-16 15:49:15 -07:00
Dillon Kearns
564e410817 Reduce the diff with Elm TodoMVC code. 2022-08-16 15:43:35 -07:00
Dillon Kearns
64827c0b14 Add missing import. 2022-08-16 10:24:22 -07:00
Dillon Kearns
592d7d54ed Use optimistic visibility for faster transitions. 2022-08-16 10:10:12 -07:00
Dillon Kearns
ea945f6f6a Make toggle-all optimistic. 2022-08-16 08:43:37 -07:00
Dillon Kearns
2016e5be0b Implement toggle-all with hardcoded toggle-to value. 2022-08-16 08:38:30 -07:00
Dillon Kearns
fd6ece625b Optimistically clear completed todos. 2022-08-15 15:49:21 -07:00
Dillon Kearns
ec95dd4319 Implement clear completed action. 2022-08-15 15:49:08 -07:00
Dillon Kearns
c1f95bdd59 Implement edit action and form handling. 2022-08-15 15:30:59 -07:00
Dillon Kearns
314f15dbf3 Add edit form. 2022-08-15 15:13:31 -07:00
Dillon Kearns
ef0e421aea Clear new item input field on optimistic submit. 2022-08-15 14:16:23 -07:00
Dillon Kearns
bc38e8b43b Update SEO tags. 2022-08-15 10:55:54 -07:00
Dillon Kearns
c4e365e50c Order todos by created_at. 2022-08-15 09:52:27 -07:00
Dillon Kearns
075f72a5fc Use svg's for toggle icons. 2022-08-15 09:48:56 -07:00
Dillon Kearns
bcaa009582 Fix logout button form parsing. 2022-08-15 09:47:38 -07:00
Dillon Kearns
876b282bb7 Add logout button. 2022-08-14 13:50:29 -07:00
Dillon Kearns
8b7fba507a Redirect after getting magic link. 2022-08-14 08:16:35 -07:00
Dillon Kearns
4d7039b50e Remove Debug statements. 2022-08-14 08:11:16 -07:00
Dillon Kearns
e819b354df Delete obsolete route. 2022-08-14 08:10:21 -07:00
Dillon Kearns
a86c6c4648 Use BASE_URL env variable for hosted url. 2022-08-14 08:08:16 -07:00
Dillon Kearns
74e05446d7 Hide login form after submission. 2022-08-14 08:05:15 -07:00
Dillon Kearns
2fa5bb34b2 Try using netlify's URL environment variable. 2022-08-14 07:53:47 -07:00
Dillon Kearns
44dfe04c88 Build without debug flag. 2022-08-14 07:46:22 -07:00
Dillon Kearns
99fc9b44d0 Try different error rendering in server-render script. 2022-08-14 07:38:39 -07:00
Dillon Kearns
75c11eebcb Turn off fake email sending for production deploy. 2022-08-14 07:30:45 -07:00
Dillon Kearns
2cb4692423 Update netlify config for todos example. 2022-08-14 07:28:14 -07:00
Dillon Kearns
617796570a Show optimistic completion state for toggling items. 2022-08-13 12:19:28 -07:00
Dillon Kearns
880e6fa034 Change visibility to a custom type. 2022-08-13 07:03:40 -07:00
Dillon Kearns
9883323280 Add optional visibility route param. 2022-08-13 06:54:26 -07:00
Dillon Kearns
2f62713e91 Show pending new items with delete button disabled. 2022-08-13 06:38:22 -07:00
Dillon Kearns
fc17849da8 Optimistically hide deleted items. 2022-08-13 06:12:38 -07:00
Dillon Kearns
d4f2f3e35d Wire up delete button. 2022-08-12 18:44:59 -07:00
Dillon Kearns
8e84792621 Add todo complete button. 2022-08-12 11:01:18 -07:00
Dillon Kearns
200e47314c Create new todo items. 2022-08-12 09:43:36 -07:00
Dillon Kearns
a68094bcf4 Fetch todos by session. 2022-08-12 08:34:02 -07:00
Dillon Kearns
4d4ac95fbc Remove old header title. 2022-08-12 08:33:49 -07:00
Dillon Kearns
008e13fba5 Get session cookie. 2022-08-12 08:08:11 -07:00
Dillon Kearns
22356d4511 Remove unused imports. 2022-08-12 08:03:58 -07:00
Dillon Kearns
814ea506b1 Render new item form. 2022-08-12 08:03:37 -07:00
Dillon Kearns
5634b8788b Copy over starting point from Evan's TodoMVC app. 2022-08-12 07:56:01 -07:00
Dillon Kearns
bb1239fbba Remove unused. 2022-08-11 20:37:46 -07:00
Dillon Kearns
76208360ae Extract common code. 2022-08-11 20:26:50 -07:00
Dillon Kearns
9a4850ba10 Remove log statements. 2022-08-11 20:11:50 -07:00
Dillon Kearns
53b4a08db8 Parse magic links and create sessions. 2022-08-11 20:09:29 -07:00
Dillon Kearns
db6303b2d9 Update send-grid project. 2022-08-11 11:45:47 -07:00
Dillon Kearns
2fd7becbf8 Wire up encrypt/decrypt logic for magic hash on form submit and on page load with query param. 2022-08-11 11:43:43 -07:00
Dillon Kearns
8314fa06c5 Add send-grid package submodule. 2022-08-11 06:03:47 -07:00
Dillon Kearns
2cfac9abeb Wire in encrypt port data source. 2022-08-11 06:01:44 -07:00
Dillon Kearns
ea03083bf2 Add starting point for todos app example. 2022-08-10 15:24:41 -07:00