Compare commits

...

6 Commits

Author SHA1 Message Date
ee0e10072c updating version number 2026-04-26 17:19:20 -05:00
899f92f342 126 all logs shown when unauthenticated (#131)
* fixing all logs showing when user is unauthenticated

* updating api log interceptor

* updating api log interceptor

* updating api log interceptor

* logbook page unauthenticated alert
2026-04-26 17:08:34 -05:00
5c4245179f 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
2026-04-18 11:37:23 -07:00
a7a9f01fd9 126 all logs shown when unauthenticated (#129)
* fixing all logs showing when user is unauthenticated

* updating api log interceptor

* updating api log interceptor
2026-04-18 11:09:50 -07:00
a367b517db updating api log interceptor (#128)
* fixing all logs showing when user is unauthenticated

* updating api log interceptor
2026-04-16 06:31:28 -07:00
fd514e4c8b fixing all logs showing when user is unauthenticated (#127) 2026-04-07 20:44:21 -05:00
5 changed files with 9 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "api",
"version": "2.1.2",
"version": "2.1.4",
"description": "",
"author": "",
"private": true,

View File

@@ -62,8 +62,8 @@ export class LogInterceptor implements NestInterceptor {
const logs = publicData.slice(0, 5)
return {
entities: publicData,
total: data.total,
entities: logs,
total: logs.length,
hasNextPage: false
};
} else {
@@ -71,7 +71,6 @@ export class LogInterceptor implements NestInterceptor {
return publicData
}
}
})
);

View File

@@ -1,7 +1,7 @@
{
"name": "client",
"private": true,
"version": "2.1.2",
"version": "2.1.4",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -413,7 +413,7 @@ const Logbook: React.FC<unknown> = () => {
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})
@@ -528,8 +528,8 @@ const Logbook: React.FC<unknown> = () => {
}, [state.totalEntries, state.pagination?.pageSize])
useEffect(() => {
console.log(state.pagination)
}, [state.pagination])
console.log(state.alert)
}, [state.alert])
return (
<>
@@ -554,7 +554,7 @@ const Logbook: React.FC<unknown> = () => {
onClose={() =>
dispatch({ type: 'SET_ALERT', payload: undefined })
}
severity={'info'}
severity={state.alert.severity}
>
{state.alert.message}
</Alert>

View File

@@ -1,6 +1,6 @@
{
"name": "@noahspan/flying",
"version": "2.1.2",
"version": "2.1.4",
"scripts": {
"start": "node api/dist/main",
"format": "prettier --write \"**/src/**/*.ts\" \"**/test/**/*.ts\"",