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: remove antd and antd icons #452

Merged
merged 12 commits into from
Feb 25, 2024

Conversation

Benjozork
Copy link
Member

@Benjozork Benjozork commented Jan 3, 2024

Summary of Changes

  • Removed antd and @ant-design/icons and their remaining usages, to save about 8MB on the final exe size and be able to upload to CF again
  • Fixes a potential leak with update state callbacks, clean up update state keeping

@Benjozork Benjozork force-pushed the refactor/remove-antd branch from cb61934 to 8199c0b Compare January 6, 2024 13:06
Copy link
Member

@FoxtrotSierra6829 FoxtrotSierra6829 left a comment

Choose a reason for hiding this comment

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

Font size issues in several places like settings, simbridge settings, simbridge release notes etc. Generally font sizes are observed to be smaller, buttons also affected. Please compare with latest release.

PR 3.3.8
Screenshot (3448) Screenshot (3450)
Screenshot (3455) Screenshot (3449)
Screenshot (3456) Screenshot (3457)

Also the full screen crash report that currently occurs on initial start when updating from the latest release to master has UI issues.

3.3.8 -> PR 3.3.8 -> master
Screenshot (3453) Screenshot (3459)

Changes on InstallerUpdate LGTM and are tested by auto-updating PR -> 3.3.8. No issues observed.

@Benjozork
Copy link
Member Author

@FoxtrotSierra6829 I fixed the styling issues, however I could not reproduce the issue coming from latest release

@@ -72,6 +72,8 @@ ipcRenderer.invoke(channels.sentry.requestSessionID).then((sessionID) => {

// Obtain configuration and use it
InstallerConfiguration.obtain().then((config: Configuration) => {
throw new Error('a'.repeat(255));
Copy link
Member

Choose a reason for hiding this comment

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

should be removed

Copy link
Member Author

Choose a reason for hiding this comment

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

lol, yeah, probably...

Copy link
Member

@FoxtrotSierra6829 FoxtrotSierra6829 left a comment

Choose a reason for hiding this comment

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

Still some small issues

  • Don't show again (tickbox) too small in SimBridge autostart modal (can be disregarded if issue is opened to replace it with the normal don't show again (toggle) version from other modals)
    Screenshot (3490)

  • Location for temporary folders path to small (visibible if option above is enabled)
    Screenshot (3492)

  • Configuration download URL path too small

  • Error code in modal spills over
    Screenshot (3493)

# Conflicts:
#	src/renderer/components/Modal/ErrorDialog.tsx
@Benjozork Benjozork merged commit c5c1ba2 into flybywiresim:master Feb 25, 2024
2 checks passed
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