Skip to content
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

Merged
merged 11 commits into from
Apr 15, 2024

Conversation

abartella-bc
Copy link
Contributor

@abartella-bc abartella-bc commented Apr 11, 2024

  • 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

@abartella-bc abartella-bc self-assigned this Apr 11, 2024
@abartella-bc abartella-bc changed the base branch from main to feature/ENG-52664 April 11, 2024 19:09
@abartella-bc abartella-bc marked this pull request as ready for review April 15, 2024 16:33
@@ -81,6 +81,7 @@ const platformMockValue = {
],
permissions: {
download_logs: true,
view_logs: true,
Copy link
Contributor

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.

Copy link
Contributor Author

@abartella-bc abartella-bc Apr 15, 2024

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)

@abartella-bc abartella-bc requested a review from ajbasnet April 15, 2024 20:45
* 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
Copy link
Contributor

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.

@abartella-bc abartella-bc requested a review from ajbasnet April 15, 2024 20:52
@abartella-bc abartella-bc merged commit 72ff45b into feature/ENG-52664 Apr 15, 2024
5 checks passed
@abartella-bc abartella-bc deleted the ENG-55440 branch April 15, 2024 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants