0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-08 20:48:39 +00:00
Commit Graph

680 Commits

Author SHA1 Message Date
Víctor Losada Hernández a82e9758b3 fix test errors 2024-10-03 09:08:24 +02:00
Víctor Losada Hernández 6adac74f76 updated test 2024-10-03 09:01:12 +02:00
Víctor Losada Hernández 3c3b4d8466 "Updated mock implementation for deleting a notification in admin API test" 2024-10-03 09:00:57 +02:00
Víctor Losada Hernández 9cc4d2d7c5 add last test 2024-10-03 08:53:27 +02:00
Víctor Losada Hernández d216216df7 remove unnecessary methods and comments 2024-10-03 08:48:54 +02:00
Trevor Buckner 84f49aebce Add test for "add notification" 2024-10-01 21:54:22 -04:00
Trevor Buckner 8949248bc4 Example test
Added an example test that queries /admin/notification/all and checks if the response returns a list of notifications.

Since we don't have a real database, we overwrite (mock) NotificationModel to just return some fake data, otherwise the test would crash.
2024-10-01 17:15:36 -04:00
Trevor Buckner 5c2ad7dfee More Linting 2024-09-18 15:50:46 -04:00
Víctor Losada Hernández 84f84782f5 Merge branch 'experimentalNotificationDB' of https://github.com/G-Ambatte/homebrewery; branch 'master' of https://github.com/naturalcrit/homebrewery into experimentalNotificationDB 2024-09-18 21:32:17 +02:00
Trevor Buckner dfd3b99232 Merge branch 'master' into experimentalLocalStorageHistory 2024-09-16 01:50:54 -04:00
Trevor Buckner 63675a46e0 Lint more things 2024-09-16 01:42:21 -04:00
Trevor Buckner 1645a5acf4 Lint App.js
Just whitespace changes
2024-09-16 01:39:44 -04:00
G.Ambatte 2f392a7517 Lint fixes 2024-09-15 14:19:32 +12:00
G.Ambatte 531e6efa5e Get configuration from config files 2024-09-15 14:19:24 +12:00
Víctor Losada Hernández ebc3b4ee66 "Updated admin notification management: added error handling and styling, modified notification add and lookup functionality, and refactored server-side API routes and error handling." 2024-09-14 23:58:47 +02:00
Víctor Losada Hernández 9bf28f1433 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into experimentalNotificationDB 2024-09-13 23:54:01 +02:00
Víctor Losada Hernández c411691fd6 remove lookup by id and admin access middleware from lookup all 2024-09-13 20:29:09 +02:00
Trevor Buckner 29460edca9 Merge branch 'master' into metadata-api-endpoint 2024-09-10 13:26:40 -04:00
Gazook89 03c14e5847 adds meta tags for the Vault page
So they show up when sharing the link in Discord or wherever.
2024-09-05 11:24:59 -05:00
Trevor Buckner d7d690a9d1 Lint 2024-09-04 01:06:56 -04:00
Trevor Buckner 1990064be4 Tidy findTotal 2024-09-03 23:44:43 -04:00
Trevor Buckner 44099c813c Fix err is not defined. Remove extra console.error (central error handler already prints the error) 2024-09-03 23:44:24 -04:00
Trevor Buckner 56185e2a1c Tidy findBrews 2024-09-03 23:11:10 -04:00
Trevor Buckner 590318ff1d Simplify rendererConditions 2024-09-03 22:58:50 -04:00
Víctor Losada Hernández 849da23829 bring back thumbnails! 2024-09-03 23:17:33 +02:00
Víctor Losada Hernández 9e694e5e46 move email catching to api 2024-09-03 22:56:45 +02:00
Víctor Losada Hernández 1517c00132 error logging to vault 2024-09-01 19:39:00 +02:00
Víctor Losada Hernández 226ad49663 renaming to keep some consistency 2024-09-01 19:12:25 +02:00
Víctor Losada Hernández 3fc2e5202e rest of the suggested changes 2024-09-01 11:14:09 +02:00
Víctor Losada Hernández f0b447866c suggested changes 2 2024-09-01 11:10:46 +02:00
Víctor Losada Hernández df21f978df bring back throws 2024-08-31 22:34:04 +02:00
Víctor Losada Hernández fb8c4c5c44 all sugggested changes 2024-08-31 22:28:29 +02:00
Víctor Losada Hernández 19102db23a indent with tabs 2024-08-31 22:11:43 +02:00
Víctor Losada Hernández 8d2a9ed9cb adress app.js changes requested 2024-08-31 22:08:21 +02:00
Víctor Losada Hernández f7c3e81b7b "Added new route for '/vault' and updated catch-all for invalid routes" 2024-08-31 19:35:44 +02:00
Víctor Losada Hernández c7f695e86a Merge branch 'master' of https://github.com/naturalcrit/homebrewery into experimental-development 2024-08-31 19:21:06 +02:00
Víctor Losada Hernández 3825bcbbfb "Simplified brewsQuery construction in buildBrewsQuery function" 2024-08-31 18:41:36 +02:00
Víctor Losada Hernández 4488fe36db "Refactored notification lookup and management functionality in admin API and model, added new endpoints for getting all notifications and deleting a notification by dismiss key." 2024-08-31 12:17:12 +02:00
Víctor Losada Hernández 78642e514d revert console log 2024-08-29 10:47:38 +02:00
Víctor Losada Hernández 4edbfa10b5 log config vars 2024-08-29 10:45:36 +02:00
Víctor Losada Hernández b39e8eea16 Merge branch 'experimentalNotificationDB' of https://github.com/G-Ambatte/homebrewery; branch 'master' of https://github.com/naturalcrit/homebrewery into experimentalNotificationDB 2024-08-29 00:24:22 +02:00
Víctor Losada Hernández 46882c4fb4 add error logging on admin route 2024-08-29 00:00:55 +02:00
Trevor Buckner a124bd8657 I'm dumb. 2024-08-28 16:59:22 -04:00
Víctor Losada Hernández 760c1a9e8c Merge branch 'master' of https://github.com/naturalcrit/homebrewery into experimentalNotificationDB 2024-08-28 22:28:24 +02:00
Trevor Buckner e8aceac133 Move check for account up a little 2024-08-28 15:21:43 -04:00
Víctor Losada Hernández 6436e62ec0 set up error page 2024-08-28 21:10:28 +02:00
Víctor Losada Hernández c9947d7f91 handle invalid account in account page, redirect to home 2024-08-28 20:42:53 +02:00
Trevor Buckner 3d3ad3f284 Small tweaks 2024-08-26 19:58:28 -04:00
Víctor Losada Hernández ca5a7a1dbb Merge branch 'master' into addCSSRoute-#1097 2024-08-23 23:16:19 +02:00
Trevor Buckner 40ab2c2283 rearrange code 2024-08-22 14:24:33 -04:00