-
Notifications
You must be signed in to change notification settings - Fork 537
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
Fix/about page desktop window #8461
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
2bcac1f
fix: about page desktop window
syns2191 4320a2a
Merge branch 'develop' of https://github.com/ever-co/ever-gauzy into …
syns2191 641ab37
fix: about window not fit in windows platform
syns2191 f8cfb51
fix: about window not fit in windows platform
syns2191 7072c60
fix: prevent multiple about window
syns2191 e5517ff
fix: prevent timer window change size on drag the window
syns2191 50d3883
fix: remove unnecessary code
syns2191 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,4 @@ div.logo { | |
|
||
::ng-deep nb-layout .layout .layout-container .content nb-layout-footer nav { | ||
padding: 0px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
💡 Codebase verification
Potential Issue Identified with
titleBar.dispose()
ImplementationThe introduced 'hide-menu' event listener disposes of the
titleBar
, but there is no corresponding mechanism to recreate or show the menu again. This can lead to scenarios where the menu remains hidden indefinitely without a way to restore it.Affected Files:
apps/server-api/src/preload/preload.ts
apps/server/src/preload/preload.ts
apps/desktop-timer/src/preload.ts
apps/desktop/src/preload/preload.ts
🔗 Analysis chain
Verify the implications of disposing the titleBar
The addition of the 'hide-menu' event listener enhances the application's ability to dynamically hide the menu, which can be beneficial for certain UI states or user preferences. However, there are a few concerns to address:
titleBar
variable is not declared with a block scope (let or const), which could lead to unexpected behavior if it's reassigned elsewhere in the code.To ensure this change doesn't introduce unintended side effects, please run the following checks:
Consider adding a mechanism to recreate the titleBar if it needs to be shown again after being hidden. Also, ensure that disposing of the titleBar doesn't cause any side effects in other parts of the application that might depend on its existence.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 255
Script:
Length of output: 1406
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.
@syns2191 I also wonder, what happens after you dispose it!? You seems not recreating it again? What is logic in that?
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.
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.
that's only disposed when about window is created. so it does not affect to another window
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.
hide-menu listener only called when creating the About window. I think we don't show menu inside about window
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.
@syns2191 I totally don't get that... I would prefer to NOT dispose anything that later might be needed etc. Hide - yes, dispose - hm... @adkif can you review this and let us know what you think!?
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.
@evereq, @syns2191 is right, it's just an "About Window", we don't need to attach a title bar, menubar, etc... to it. That is why the
dispose()
method invocation.