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: stream log file in Settings dialog #348

Merged
merged 8 commits into from
Nov 14, 2024
Merged

Conversation

cristianoventura
Copy link
Collaborator

Description

This PR removes the "Application log" button from the sidebar (decluttering the amount of items we currently have) and instead, shows the real-time log stream on a new tab in the Settings dialog.

How to Test

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (npm run lint) and all checks pass.
  • I have run tests locally (npm test) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Screenshots (if appropriate):

image

Related PR(s)/Issue(s)

@cristianoventura cristianoventura self-assigned this Nov 13, 2024
@cristianoventura cristianoventura requested a review from a team as a code owner November 13, 2024 17:16
@cristianoventura cristianoventura requested review from going-confetti and e-fisher and removed request for a team November 13, 2024 17:16
@@ -17,7 +17,7 @@ const handleCreateIssue = () => {
}

const handleOpenLogs = () => {
window.studio.app.openApplicationLog()
window.studio.log.openLogFolder()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved handlers related to logs to its own namespace.

Comment on lines +9 to +10
<Flex direction="column" pt="4" p="1" height="100%">
{children}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made some changes to the parent elements in the tab content so we use flexbox more efficiently with children items.

e-fisher
e-fisher previously approved these changes Nov 14, 2024
Copy link
Collaborator

@e-fisher e-fisher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Copy link
Member

@Llandy3d Llandy3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably small nitpick:

Should it live under settings ?
I find it a little hard to read them there due to inability to resize and fixed size on the smaller side 🤔

image

I noticed that we don't have access to application logs anymore from the help menubar, was it introduced here 👀

Llandy3d
Llandy3d previously approved these changes Nov 14, 2024
Copy link
Member

@Llandy3d Llandy3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@cristianoventura cristianoventura dismissed stale reviews from Llandy3d and e-fisher via 13b214b November 14, 2024 15:29
@cristianoventura cristianoventura merged commit a811d01 into main Nov 14, 2024
2 checks passed
@cristianoventura cristianoventura deleted the feat/stream-log-file branch November 14, 2024 15:33
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