({
+ __esModule: true,
+ default: jest.fn(),
+}))
+
describe('PageApplicationLogs', () => {
it('should render successfully', () => {
const { baseElement } = render(
)
diff --git a/libs/pages/logs/application/src/lib/page-application-logs.tsx b/libs/pages/logs/application/src/lib/page-application-logs.tsx
index 6eb715f1873..a84f51f6766 100644
--- a/libs/pages/logs/application/src/lib/page-application-logs.tsx
+++ b/libs/pages/logs/application/src/lib/page-application-logs.tsx
@@ -82,28 +82,32 @@ export function PageApplicationLogs() {
},
})
- useWebSocket(nginxLogsUrl, {
- onMessage: (message) => {
- const data = { ...JSON.parse(message?.data), pod_name: 'nginx' }
+ useWebSocket(
+ nginxLogsUrl,
+ {
+ onMessage: (message) => {
+ const data = { ...JSON.parse(message?.data), pod_name: 'nginx' }
- if (pauseStatusLogs) {
- setPauseLogs((prev: Log[]) => {
- const sortedLogs = [...prev, data].sort(
- (a: Log, b: Log) => new Date(a.created_at).valueOf() - new Date(b.created_at).valueOf()
- )
- return sortedLogs
- })
- } else {
- setLogs((prev: Log[]) => {
- const sortedLogs = [...prev, ...pauseLogs, data].sort(
- (a: Log, b: Log) => new Date(a.created_at).valueOf() - new Date(b.created_at).valueOf()
- )
- return sortedLogs
- })
- setPauseLogs([])
- }
+ if (pauseStatusLogs) {
+ setPauseLogs((prev: Log[]) => {
+ const sortedLogs = [...prev, data].sort(
+ (a: Log, b: Log) => new Date(a.created_at).valueOf() - new Date(b.created_at).valueOf()
+ )
+ return sortedLogs
+ })
+ } else {
+ setLogs((prev: Log[]) => {
+ const sortedLogs = [...prev, ...pauseLogs, data].sort(
+ (a: Log, b: Log) => new Date(a.created_at).valueOf() - new Date(b.created_at).valueOf()
+ )
+ return sortedLogs
+ })
+ setPauseLogs([])
+ }
+ },
},
- })
+ debugMode
+ )
useEffect(() => {
// reset state when the applicationId change
diff --git a/libs/pages/logs/application/src/lib/ui/row/row.tsx b/libs/pages/logs/application/src/lib/ui/row/row.tsx
index 305aefe424e..8001747a2b0 100644
--- a/libs/pages/logs/application/src/lib/ui/row/row.tsx
+++ b/libs/pages/logs/application/src/lib/ui/row/row.tsx
@@ -59,7 +59,7 @@ export const formatVersion = (version: string) => {
export interface RowProps {
data: Log
- filter: TableFilterProps
+ filter?: TableFilterProps
}
export function Row(props: RowProps) {
diff --git a/libs/pages/settings/src/lib/page-settings.tsx b/libs/pages/settings/src/lib/page-settings.tsx
index 338e6ff54ca..37b9b8a4dde 100644
--- a/libs/pages/settings/src/lib/page-settings.tsx
+++ b/libs/pages/settings/src/lib/page-settings.tsx
@@ -91,16 +91,8 @@ export function PageSettings() {
],
}))
- const accountLinks = [
- {
- title: 'General',
- icon: IconAwesomeEnum.WHEEL,
- onClick: () => window.open('https://console.qovery.com/platform/organization/user/settings/general'),
- },
- ]
-
return (
-
+
{ROUTER_SETTINGS.map((route) => (
diff --git a/libs/pages/settings/src/lib/ui/container/container.tsx b/libs/pages/settings/src/lib/ui/container/container.tsx
index 4b12d00cf37..16ed61cf904 100644
--- a/libs/pages/settings/src/lib/ui/container/container.tsx
+++ b/libs/pages/settings/src/lib/ui/container/container.tsx
@@ -6,13 +6,12 @@ import { NavigationLeft, NavigationLeftLinkProps, useModal } from '@qovery/share
export interface ContainerProps {
organizationLinks: NavigationLeftLinkProps[]
projectLinks: NavigationLeftLinkProps[]
- accountLinks: NavigationLeftLinkProps[]
children: ReactNode
}
export function Container(props: ContainerProps) {
const { organizationId = '' } = useParams()
- const { organizationLinks, projectLinks, accountLinks, children } = props
+ const { organizationLinks, projectLinks, children } = props
const { openModal, closeModal } = useModal()
return (
@@ -33,11 +32,6 @@ export function Container(props: ContainerProps) {
}}
className="py-6 border-t border-element-light-lighter-400"
/>
-