-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add View Logs to System Header Menu (ENG-55440) #39
Conversation
abartella-bc
commented
Apr 11, 2024
•
edited
Loading
edited
- Change condition for HeaderSystemMenu component to be displayed when a user has permission to view logs OR permission to download logs
- Added view logs option in dropdown
- Added pseudo-translation for view logs option
- Updated HeaderSystemMenu, Header, and SimplePage in storybook
- Updated tests to include view logs option
![Screen Shot 2024-04-11 at 3 07 20 PM](https://private-user-images.githubusercontent.com/157743396/321754808-7bde05ce-cfe4-471d-8ea6-8012eeda5efc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODY4MTUsIm5iZiI6MTczOTU4NjUxNSwicGF0aCI6Ii8xNTc3NDMzOTYvMzIxNzU0ODA4LTdiZGUwNWNlLWNmZTQtNDcxZC04ZWE2LTgwMTJlZWRhNWVmYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwMjI4MzVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05OThkOTkwOGM4MmE4ZjhjYzU4Mzc4YmQ2NjU2YWJmMjgwYWE2ZWQxMGYyYWFmYjEwYTgzZDU4ZTJjNThlNGJkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.3XtfWYVcADgqocAadFj7ArRz7kMijoLulP7tZ-uwUTw)
@@ -81,6 +81,7 @@ const platformMockValue = { | |||
], | |||
permissions: { | |||
download_logs: true, | |||
view_logs: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be useful to mention view logs somewhere in Limani Story book, similar to existing Download Logs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a brief description, lmk what you think. (located in HeaderSystemMenu.js)
src/header/HeaderSystemMenu.js
Outdated
* all logs as a single file. <br> | ||
* With user access permission, two options for retrieving logs are available. | ||
* "Download logs" retrieves all logs as a single file, and "View logs" allows | ||
* the 1000 lines of the log to be viewed in the UI, where they can be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about
View logs shows the last 1000 lines of relevant Gateway logs, providing searching and filtering options.