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

refactor: split app menu into smaller components #46370

Merged
merged 4 commits into from
Jul 10, 2024
Merged

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jul 9, 2024

Summary

Currently the app menu code is big chunk of code which is hard to maintain as you have to go through a lot of code first.
So I split it into smaller components for better maintainability.

This will also fix a problem where app icons are currently shown in their full size, e.g. if your app icon is 50x50px it will be shown as 50x50 pixels, as the previous 20px limitation was not working correctly.

There should be no visual changes except the previous icon size issue.

Checklist

@susnux susnux added 3. to review Waiting for reviews ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Jul 9, 2024
@susnux susnux added this to the Nextcloud 30 milestone Jul 9, 2024
@susnux susnux changed the title Refactor/app menu refactor: split app menu into smaller components Jul 9, 2024
Copy link
Member

@AndyScherzinger AndyScherzinger left a comment

Choose a reason for hiding this comment

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

🐘

Copy link
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

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

🦣

@susnux
Copy link
Contributor Author

susnux commented Jul 9, 2024

/compile

@susnux susnux force-pushed the refactor/app-menu branch 2 times, most recently from dcde62a to a2bcc56 Compare July 9, 2024 22:40
This allows to split one large block of code into three components with each one usecase.
Allowing for better readability and maintainablility.

Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux merged commit 038836c into master Jul 10, 2024
165 checks passed
@susnux susnux deleted the refactor/app-menu branch July 10, 2024 00:11
@blizzz blizzz mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants