From fa7a39e48af8ad582414970de024f4f376c3e605 Mon Sep 17 00:00:00 2001 From: noahspannbauer Date: Tue, 7 Apr 2026 20:41:08 -0500 Subject: [PATCH 1/6] fixing all logs showing when user is unauthenticated --- api/package.json | 2 +- api/src/log/log.interceptor.ts | 3 +-- client/package.json | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/api/package.json b/api/package.json index b288dab..aba3d42 100644 --- a/api/package.json +++ b/api/package.json @@ -1,6 +1,6 @@ { "name": "api", - "version": "2.1.2", + "version": "2.1.3", "description": "", "author": "", "private": true, diff --git a/api/src/log/log.interceptor.ts b/api/src/log/log.interceptor.ts index 5918b73..f980f4b 100644 --- a/api/src/log/log.interceptor.ts +++ b/api/src/log/log.interceptor.ts @@ -62,7 +62,7 @@ export class LogInterceptor implements NestInterceptor { const logs = publicData.slice(0, 5) return { - entities: publicData, + entities: logs, total: data.total, hasNextPage: false }; @@ -71,7 +71,6 @@ export class LogInterceptor implements NestInterceptor { return publicData } - } }) ); diff --git a/client/package.json b/client/package.json index 467d679..7728df2 100644 --- a/client/package.json +++ b/client/package.json @@ -1,7 +1,7 @@ { "name": "client", "private": true, - "version": "2.1.2", + "version": "2.1.3", "type": "module", "scripts": { "dev": "vite", diff --git a/package.json b/package.json index a6edfa3..da98613 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@noahspan/flying", - "version": "2.1.2", + "version": "2.1.3", "scripts": { "start": "node api/dist/main", "format": "prettier --write \"**/src/**/*.ts\" \"**/test/**/*.ts\"", -- 2.49.1 From 1c46f58afc45fdd7d14f4f0920e58a36e1d86929 Mon Sep 17 00:00:00 2001 From: noahspannbauer Date: Thu, 16 Apr 2026 08:27:33 -0500 Subject: [PATCH 2/6] updating api log interceptor --- api/src/log/log.interceptor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/log/log.interceptor.ts b/api/src/log/log.interceptor.ts index f980f4b..329cbc9 100644 --- a/api/src/log/log.interceptor.ts +++ b/api/src/log/log.interceptor.ts @@ -63,7 +63,7 @@ export class LogInterceptor implements NestInterceptor { return { entities: logs, - total: data.total, + total: logs.length, hasNextPage: false }; } else { -- 2.49.1 From a6af3c222924e230de9fd7de2dbe4740a852f180 Mon Sep 17 00:00:00 2001 From: noahspannbauer Date: Sat, 18 Apr 2026 13:05:11 -0500 Subject: [PATCH 3/6] updating api log interceptor --- client/src/components/logbook/Logbook.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/logbook/Logbook.tsx b/client/src/components/logbook/Logbook.tsx index 5d122f7..8fcfefc 100644 --- a/client/src/components/logbook/Logbook.tsx +++ b/client/src/components/logbook/Logbook.tsx @@ -528,8 +528,8 @@ const Logbook: React.FC = () => { }, [state.totalEntries, state.pagination?.pageSize]) useEffect(() => { - console.log(state.pagination) - }, [state.pagination]) + console.log(state) + }, [state]) return ( <> @@ -554,7 +554,7 @@ const Logbook: React.FC = () => { onClose={() => dispatch({ type: 'SET_ALERT', payload: undefined }) } - severity={'info'} + severity={state.alert.severity} > {state.alert.message} -- 2.49.1 From 928a4dae430f42778a7e4997ccb24f9364bb2f6c Mon Sep 17 00:00:00 2001 From: noahspannbauer Date: Sat, 18 Apr 2026 13:33:32 -0500 Subject: [PATCH 4/6] updating api log interceptor --- client/src/components/logbook/Logbook.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/logbook/Logbook.tsx b/client/src/components/logbook/Logbook.tsx index 8fcfefc..639ced8 100644 --- a/client/src/components/logbook/Logbook.tsx +++ b/client/src/components/logbook/Logbook.tsx @@ -528,8 +528,8 @@ const Logbook: React.FC = () => { }, [state.totalEntries, state.pagination?.pageSize]) useEffect(() => { - console.log(state) - }, [state]) + console.log(state.alert) + }, [state.alert]) return ( <> -- 2.49.1 From 5c4245179f8bcb6395fa4a838a31f5f50a0dcec5 Mon Sep 17 00:00:00 2001 From: noahspannbauer Date: Sat, 18 Apr 2026 11:37:23 -0700 Subject: [PATCH 5/6] 126 all logs shown when unauthenticated (#130) * fixing all logs showing when user is unauthenticated * updating api log interceptor * updating api log interceptor * updating api log interceptor --- client/src/components/logbook/Logbook.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/logbook/Logbook.tsx b/client/src/components/logbook/Logbook.tsx index 8fcfefc..639ced8 100644 --- a/client/src/components/logbook/Logbook.tsx +++ b/client/src/components/logbook/Logbook.tsx @@ -528,8 +528,8 @@ const Logbook: React.FC = () => { }, [state.totalEntries, state.pagination?.pageSize]) useEffect(() => { - console.log(state) - }, [state]) + console.log(state.alert) + }, [state.alert]) return ( <> -- 2.49.1 From 075508413ed19a5f86b9f7be7c1e74b7409c166f Mon Sep 17 00:00:00 2001 From: noahspannbauer Date: Sun, 26 Apr 2026 17:05:58 -0500 Subject: [PATCH 6/6] logbook page unauthenticated alert --- client/src/components/logbook/Logbook.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/logbook/Logbook.tsx b/client/src/components/logbook/Logbook.tsx index 639ced8..2e6606c 100644 --- a/client/src/components/logbook/Logbook.tsx +++ b/client/src/components/logbook/Logbook.tsx @@ -413,7 +413,7 @@ const Logbook: React.FC = () => { setColumnVisibility(columnVisibility) dispatch({ type: 'SET_ENTRIES', payload: { entries: entries, totalEntries: response.data.total }}); - if (!isUserLoggedIn && response.data.length >= 5) { + if (!isUserLoggedIn && response.data.entities.length >= 5) { dispatch({ type: 'SET_ALERT', payload: { severity: 'info', message: 'A limited number of log entries displayed. Sign in to view all log entries.'}}) } else { dispatch({ type: 'SET_ALERT', payload: undefined}) -- 2.49.1