From 44dc55c5acbe9c5fed278e1d319d117e1193650e Mon Sep 17 00:00:00 2001 From: Rajat Dabade Date: Wed, 13 Mar 2024 17:37:48 +0530 Subject: [PATCH] FE: Design update for log context tab (#4601) * refactor: initial setup for context view * refactor: updated design for log context view * refactor: updated comments and remove commented code * refactor: updated comments * refactor: handle hight issue * refactor: initial setup for context view * refactor: updated design for log context view * refactor: updated comments and remove commented code * refactor: updated comments * refactor: handle hight issue * refactor: added api version * refactor: height set to parent height and remove unnessarry code * refactor: removed commented code --------- Co-authored-by: Yunus M --- .../LogDetail/LogDetails.styles.scss | 2 + .../src/components/Logs/RawLogView/index.tsx | 6 +- .../ContextLogRenderer.styles.scss | 25 +++ .../ContextView/ContextLogRenderer.tsx | 129 ++++++++++++++ .../ContextView/ContextView.styles.scss | 22 ++- .../ContextView/ContextView.tsx | 24 +-- .../ContextView/useContextLogData.ts | 163 ++++++++++++++++++ 7 files changed, 348 insertions(+), 23 deletions(-) create mode 100644 frontend/src/container/LogDetailedView/ContextView/ContextLogRenderer.styles.scss create mode 100644 frontend/src/container/LogDetailedView/ContextView/ContextLogRenderer.tsx create mode 100644 frontend/src/container/LogDetailedView/ContextView/useContextLogData.ts diff --git a/frontend/src/components/LogDetail/LogDetails.styles.scss b/frontend/src/components/LogDetail/LogDetails.styles.scss index 0dcdc1e5c1..c8ac0be91f 100644 --- a/frontend/src/components/LogDetail/LogDetails.styles.scss +++ b/frontend/src/components/LogDetail/LogDetails.styles.scss @@ -18,6 +18,8 @@ } .ant-drawer-body { + display: flex; + flex-direction: column; padding: 16px; } diff --git a/frontend/src/components/Logs/RawLogView/index.tsx b/frontend/src/components/Logs/RawLogView/index.tsx index 419bb33a76..099e0fcc25 100644 --- a/frontend/src/components/Logs/RawLogView/index.tsx +++ b/frontend/src/components/Logs/RawLogView/index.tsx @@ -163,7 +163,11 @@ function RawLogView({ >