-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 Electron Build #1926
Fix Electron Build #1926
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Bundle Stats — desktop-clientHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller
Unchanged
|
Bundle Stats — loot-coreHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset No files were changed View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
Try updating your changes with latest |
Looks like it didn't help. There must be some sort of change that affects them from this PR. |
If you look at the test: "budget-Budget-renders-the-summary-information-available-funds-overspent-budgeted-and-for-next-month-chromium" You can see it expects dark theme but gets light theme. Maybe if you fix that issue the others will be fixed? the theme switch happens in playwright.config.js. It's to do with the window.Actual.setTheme("dark") not working anymore |
Thanks for the info, i'll dig into it a bit. The loading of the theme seems to happen fine in the netlify preview, i've compared it to other older PR's and it seems to be in a similar time. Do you know if the tests run against the netlify instance? |
If you click the demo link and run this in the console
It should toggle it to dark. Or "light" will put it to light. That's broken the web demo - I'm assuming cause you removed it from the globals file. I think the initialisation might be fine, but the VRT tests toggle it from light to dark with that setTheme call to check against the screenshots. |
Interesting, thanks! That gives me a thread to follow. I was going off the fact that the toggle button in the corner still works in the web version. Anyway digging into it now, thanks for the guidance! |
@MikesGlitch Thanks, Fixed! |
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.
Thanks @Shazib ! <3
And also thanks @MikesGlitch for the assist! |
Some of the theme switching stuff has broken electron, at least on Windows builds.
This resolves that issue.
Dark mode still works in the netlify preview, and I haven't changed anything at all front-end wise, so I'm not sure why the visual regression tests have failed.