84 Commits

Author SHA1 Message Date
Hayden Hargreaves
bb52e1bee3 (FIX): Dev environemnt fixes in the backend 2026-01-09 10:07:55 -07:00
Hayden Hargreaves
f93ff6501a Merge branch 'master' into refactor/react 2025-12-28 22:27:33 -07:00
Hayden Hargreaves
f027a16b8c (FEAT): Deployed! Need to work on the CI/CD! 2025-12-28 22:20:39 -07:00
Hayden Hargreaves
6bbd58b471 (FIX): Migrated services to returning the IDs. 2025-12-28 18:06:21 -07:00
Hayden Hargreaves
54c557bec5 (FEAT): Finished fixing up the search page! 2025-12-28 17:39:28 -07:00
Hayden Hargreaves
14b41d204f forgot this 2025-12-27 23:46:01 -07:00
Hayden Hargreaves
90b3b7b1b0 (FIX): So so so much has been migrated.
But this includes templ builds also... Needed for compilation. Search is
the last broken piece, I believe.
2025-12-27 23:45:09 -07:00
Hayden Hargreaves
25ac0fd527 (FEAT): Searching is working!
So much progress! Yay!! Whats missing is the global storage of the
filters. That is the final touch for searching.
2025-11-30 21:53:07 -07:00
Hayden Hargreaves
00acb981b0 (FEAT): Created GetUserV2 API.
This is used to finish the recipe display page!
2025-11-20 12:40:49 -07:00
Hayden Hargreaves
c68cb72ffb (FEAT): Engagement for recipes is translated. 2025-11-19 13:44:41 -07:00
Hayden Hargreaves
cfaace1bfd (FEAT): Working on the recipe page! This one is making lots of progress.
But there is lots to be done!
2025-11-18 22:28:22 -07:00
Hayden Hargreaves
3e138089dd (DOC): Added some optmization notes 2025-11-15 23:59:22 -07:00
Hayden Hargreaves
6cd46cffc3 (FIX): Updated the recipe of the week with optional help. 2025-11-15 23:56:10 -07:00
Hayden Hargreaves
38f3c87885 (FEAT): Migrated the home page APIS.
Just need a fix for the optinal authenticated user for the ROTW.
2025-11-15 23:43:20 -07:00
Hayden Hargreaves
c0b76506c4 (FEAT): Profile page APIs are complete!!!!
This also includes a shell.nix file for use just in case the flake
isn't.
2025-11-15 23:26:16 -07:00
Hayden Hargreaves
f66a990040 (FEAT): Profile APIs are almost totally migrated! 2025-11-14 23:46:46 -07:00
Hayden Hargreaves
983d326a47 (FIX): Auth seems to be working much better!
Finally, thank god. I still want a better way to manage the cookies. But
not right now.
2025-11-14 23:31:23 -07:00
Hayden Hargreaves
3177a4d089 (FEAT): Working on auth still 2025-11-14 22:33:54 -07:00
Hayden Hargreaves
1749a91bf9 (FEAT): Context is somewhat working
It works okay, feels a bit slugish, but that might just be the
environments fault.
2025-11-14 13:08:05 -07:00
Hayden Hargreaves
25ea3fcfd7 (FEAT): JWT auth is coming along so well!
We have it in the UI, just need a way to send it back and handle it in
the backend.
2025-11-13 22:57:05 -07:00
Hayden Hargreaves
7df879b04a (CHORE): Removed the handlers directory, they were old 2025-11-13 21:39:09 -07:00
Hayden Hargreaves
34b0cc4199 (FEAT): Translated the first API.
Auth is next...
2025-11-13 21:38:47 -07:00
Hayden Hargreaves
dd8bdcaa81 (FIX): Small update from apollo 2025-10-30 11:58:17 -07:00
Hayden Hargreaves
aad4640527 (REFACTOR): Working on dependency injection.
However, everything seems really slow now... 950ms for a page request?
Something is wrong, just not sure what yet.
2025-09-04 21:51:16 -07:00
Hayden Hargreaves
1e6a06e8ed (FEAT): Added errors to each of the handlers.
I think this is really the only place we need them. For now at least.
2025-09-04 20:25:12 -07:00
Hayden Hargreaves
47b8386844 (FEAT): Errors can now be displayed using the RenderErrorBanner fx.
This is found in the components domain. Make sure only HTMX routes call
it. Although, I think I put this into the page handlers WHICH IS WRONG.

However, it does work, ish. But it does not load into the DOM properly.
But it seems to display just fine.
2025-09-03 22:22:23 -07:00
Hayden Hargreaves
2dc99c30c8 (FIX/UI): Only displaying 3 lines in search results. 2025-07-27 18:41:10 -07:00
Hayden Hargreaves
09aa311d52 (FIX): This got missed...
This is part of the merge that fixed the issues with the nil derefs
2025-07-27 14:20:42 -07:00
Hayden Hargreaves
eccc4885cc (FIX): This should be the last of the user nil deref updates!
I believe this can mark the tasks about fixing the deref issues with
auth completed. Will test in production to find out!
2025-07-27 14:11:26 -07:00
Hayden Hargreaves
dbf8470195 (FIX): More auth issues solved.
If a user is logged into an account that cannot be found, they will be
silently logged out, so they can log back into their account. In the
event that the data becomes stale.
2025-07-27 13:00:03 -07:00
Hayden Hargreaves
a28f8edd54 (FIX): Fixed the auth issue, at least on the profile page. 2025-07-27 12:47:25 -07:00
Hayden Hargreaves
37c88561b6 (FEAT): Loading search filters in homepage!
This was a simple update, just missing in the past. I really need to
cleanup the page loading, but that will come when the error displays get
implemented.
2025-07-27 12:07:14 -07:00
Hayden Hargreaves
c608744696 (FIX): Working on the nil derefs, removed tx's from select queries.
Lots of the derefs were from the transactions failing, which meant that
removing most of them, helped prevent them!
2025-07-27 12:00:28 -07:00
Hayden Hargreaves
ae2b2791ce (FIX): Fixed one of small deref errors.
The recipe get tags method was failing when a nil recipe is provided.
Not sure when that would happen, but without fixing it, we can just
return nil when a blank recipe is returned.
2025-07-26 23:02:34 -07:00
Hayden Hargreaves
05f67566f8 (FIX): Removed date requirement from rotf 2025-07-26 22:46:45 -07:00
Hayden Hargreaves
53943dd183 (FEAT): Implemented recipe of the week! And image placeholder.
Still having the stupid ass nil dereferences, I think I might need to
migrate to using success returns instead of pointers. Because they're
fucked. And even more so now.
2025-07-26 22:36:48 -07:00
Hayden Hargreaves
157fd8d3c1 (FIX): Fixed the cookies! They are now abstracted and env controlled
Need to test this in production to ensure they are working properly.
2025-07-23 18:10:12 -07:00
Hayden Hargreaves
296f32aa6d (FIX): Forgot to update this. Need to change cookies too. 2025-07-22 22:50:12 -07:00
Hayden Hargreaves
e0e1230660 (FEAT): Dev/prod environment toggle is complete!
We can now use environment values to dictate which values are used for
the DB and the domain. This is a simple solution, but for now, it works!

This will merge into master and we can then see it live in action!
2025-07-22 22:43:40 -07:00
Hayden Hargreaves
94740b4b54 (FEAT): Added a handler to recover from panics.
This is not perfect, and def not set in stone. But for now, it will
return a JSON page, and not crash. I want this to log the user out,
clear the cookies, and then direct home with a message saying something
went wrong.

I also want it to send me an email with the details, but one step at a
time for now, that is not 100% necessary, I just need to fix the bugs.
I also need to fix the environments.
2025-07-22 22:11:11 -07:00
Hayden Hargreaves
65c73bddfa (FIX): Working on finding all of the nil-deref errors.
This may have caught a few. Next I need to actually work on the
development/testing/production environment setup.
2025-07-22 21:37:47 -07:00
Hayden Hargreaves
eec8ed00c3 (FEAT): Application has been dockerized.
The application can now be built, tailwind is built, AND templ
components are generated! Which means, we can no longer push the
tailwind generated CSS file OR the templ generated go files!

Plus, this is the first step towards deployment and CI/CD!
2025-07-21 20:14:03 -07:00
Hayden Hargreaves
21f958a4fb (FEAT): Completed the lists section on the home page.
This includes backend updates as well as frontend changes! The backend
also includes a new repository to get a list of jobs via their IDs,
which does respect order!

The list displays for users that are logged in and a small message when
the user is not logged in. The last piece is the recipe of the week
segment, which can be as simple as a DB cron-job. But that will require
stored procedures. Need to learn those next.

Though I want to deploy the application soon, so I need to begin working
on that.
2025-07-20 21:56:56 -07:00
Hayden Hargreaves
27d5b59cfc (UI/FIX): Displaying a heart next to favorites.
This effect is seen in the favorites page AND the search page! But of
course, only for users that are logged in.
2025-07-16 19:32:54 -07:00
Hayden Hargreaves
045dc13fbe (FEAT): Created favorites search route which allows for better search.
This basically marks the favorites page completed. Updating the recipe
repository to allow the search function to accept a userId and favorites
flag. This flag will toggle a "favorites only" search. Which can be used
to replicate the same functionality from the search page in the
favorites page. This later can serve as a baseline for updating to also
work for activity search.

I am starting to think an ORM is a good idea...I heard Gorm is good, but
for now, there is a bit too much tech debt.
2025-07-16 18:57:36 -07:00
Hayden Hargreaves
aacca77890 (FEAT): Created backend API to get users favorite recipes.
The UI is wired up and connected as well, for the profile page. Next
step is to create the favorites page.
2025-07-15 22:11:25 -07:00
Hayden Hargreaves
15cb03589c (UI/FIX): Fixed the view engagement to only run on clicks.
But that means we have to redirect from the handler. I didn't want to,
but I guess that makes it easier when more pages direct to the recipe
page.
2025-07-15 21:44:20 -07:00
Hayden Hargreaves
2a33edc8f6 (FEAT): Implemented API for the share engagement.
This includes user and no user routes! Now wired to the frontend,
however, it will still create an engagement even if it fails...
2025-07-15 21:19:47 -07:00
Hayden Hargreaves
e4c1a575be (FEAT): Implemented anon engagements.
This required some fixing of old repo methods, since the nullable user
id was a bit hard to parse. But it should be working now.
2025-07-15 20:14:32 -07:00
Hayden Hargreaves
7e355d5eda (UI/FIX): Fixed the favorite button rendering and updating!
I don't like the way that templ requires JS, but it is what it is. I
just don't want to return HTML from the server.
2025-07-15 19:44:19 -07:00