Pujit Mehrotra
05765495c4
test(NotificationsService): add snapshot test to legacy script execution error
2024-10-09 13:12:15 -04:00
Pujit Mehrotra
f7cccc8c37
test(NotificationsService): add special characters to legacy script test
2024-10-09 13:12:15 -04:00
Pujit Mehrotra
85e0f7993e
feat(NotificationsService): use existing notifier script to create notifications when possible
2024-10-09 13:12:15 -04:00
Pujit Mehrotra
d5a424ebe1
refactor(api): directly accept importance level in UnraidLocalNotifier
2024-10-09 13:12:15 -04:00
Pujit Mehrotra
01441961c3
doc(cors): update name of bypass flag
2024-10-08 15:52:43 -04:00
Pujit Mehrotra
836f64d28f
test(api): add auth-sessions to paths test snapshot
2024-10-08 15:52:43 -04:00
Pujit Mehrotra
79bb4e585b
refactor(CookieService): use paths store to get default sessions directory instead of a literal
2024-10-08 15:52:43 -04:00
Pujit Mehrotra
409e88b727
refactor(cors): use BYPASS_CORS_CHECKS flag to ignore cors failures instead of BYPASS_PERMISSION_CHECKS
2024-10-08 15:52:43 -04:00
Pujit Mehrotra
5034a8981a
chore(CookieService): remove unused CookieGuard
2024-10-08 15:52:43 -04:00
Pujit Mehrotra
e61d9f195d
fix(CookieService): potential race condition in unit tests
2024-10-08 15:52:43 -04:00
Pujit Mehrotra
b3e213ba04
refactor(CookieService): rename SESSION_COOKIE_OPTIONS to SESSION_COOKIE_CONFIG for clearer semantics
2024-10-08 15:52:43 -04:00
Pujit Mehrotra
a7ea678683
fix(cors): excessive instantiation of CookieService to improve memory overhead
2024-10-08 15:52:43 -04:00
Pujit Mehrotra
791e16ce52
test(CookieService): reading valid & invalid session cookies
2024-10-08 15:52:43 -04:00
Pujit Mehrotra
173da0e65b
refactor(CookieService): make cookie prefix & session directory injectable via Nest.js
2024-10-08 15:52:43 -04:00
Pujit Mehrotra
287aabfda7
feat(auth): make cors aware of authenticated sessions
2024-10-08 15:52:43 -04:00
Pujit Mehrotra
d8656cc6b3
fix: replace express cookie parser with fastify's
2024-10-08 15:52:43 -04:00
Pujit Mehrotra
a3500c9bc9
feat(Auth): add cookie guard to check for valid sessions
2024-10-08 15:52:43 -04:00
Zack Spear
b513cbe614
refactor(web): update README.md with instructions for dev testing and builds
2024-10-03 13:47:12 -07:00
Zack Spear
b5c525a9c2
refactor(web): tailwind config use .env VITE_TAILWIND_BASE_FONT_SIZE
2024-10-03 13:47:12 -07:00
Zack Spear
648b560148
refactor(package.json): update build scripts for dev and webgui
...
- Update the prebuild and postbuild scripts in package.json to handle environment variables and file paths correctly for the dev and webgui builds.
2024-10-03 13:47:12 -07:00
Zack Spear
6eb34c3501
refactor(prebuild-webgui-set-env.sh): update default file paths and handle requested env file
...
This commit updates the default file paths in the prebuild-webgui-set-env.sh script to use the requested env file instead of always using .env.production. If a specific env file is provided as an argument, its contents will be copied to .env. If the requested env file is not found, an error message will be displayed.
2024-10-03 13:47:12 -07:00
Zack Spear
21544bd2dc
refactor(UserProfile): update text classes in banner section
2024-10-03 13:47:12 -07:00
Eli Bosley
3e115f84d7
fix: text classes
2024-10-02 16:02:01 -04:00
Eli Bosley
ba586fc438
feat: rem converter
2024-10-02 16:02:01 -04:00
Pujit Mehrotra
e6cbed14a9
fix(NotificationsService): edge-case in deleteAllNotifications by adding fs-extra package
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
f531e68b87
doc(NotificationService): rm obsolete note about race conditions
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
53f718e240
test: fix test definition for safely encoding top-level fields into INI strings
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
de36bfab99
chore: fix lint issues
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
1e2f57a4cd
feat(NotificationService): endpoint to manually recalculate notification overview
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
46aa3a3e24
refactor(NotificationService): batchProcess util, gql Notifications->list instead of ->data to get notifications
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
0c627d1ade
refactor(NotificationService): replace removeFromOverview
...
with `decrement` & `publishOverview`
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
f20349fb2a
chore: update vitest major version
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
dc72d63481
fix(NotificationService): file watcher initialization
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
e9efed8067
test(NotificationService): compatibility of outputs & combine archival filter tests
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
71ce064008
fix: rm getServerIdentifier wrapping Notifications id
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
b67b0ea633
test: filtering notifications
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
bf3d46d190
test,fix: crud'ing notifications, timestamp format consistency
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
a1fa3462eb
feat,refactor: update notifications by filter & by id's
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
c84175e763
feat: implement mutations for updating many notifications at once
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
0f9fe18379
refactor: unraid timestamp into src/utils
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
76c0d35783
feat: make notification id logic
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
3ece0d1acc
chore: update uuid@10.0.0 for v7 uuids
...
v7 uuids are basically v4 uuids that are sortable (by creation time)
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
0473c9b676
fix: use correct ini encoder in notification service
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
1956227f63
fix: mv paths() to top of NotificationsService to make it more intuitive
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
c515d08d5c
fix: race condition when updating notification types
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
0bd9820c00
feat: expose mutations for notifications over graphql
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
0c2299cfcd
feat: add deletion & update methods to NotificationService
...
also stubs create method
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
12fdfac467
chore: update prettier line width limit to 105ch
...
to prevent over-aggressive line breaks & wraps.
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
3fc20ec593
fix: disable permissions bypass to avoid incorrect role assignment to api keys
2024-10-02 12:30:12 -04:00
Pujit Mehrotra
69a6163e29
feat: wrap Notifications in a GraphQL Node & implement notification overviews
2024-10-02 12:30:12 -04:00