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

build: fix electron build gain focus on reloading in dev #2088

Merged
merged 1 commit into from
Apr 23, 2023

Conversation

pengx17
Copy link
Collaborator

@pengx17 pengx17 commented Apr 23, 2023

🤖 Generated by Copilot at ad9e520

This pull request enhances the electron app's logging, window showing, and protocol handling. It adds more log messages to main-window.ts and dev.mjs, and adjusts the window showing logic based on the development mode. It also removes the node environment check for the file and assets protocols in protocol.ts, and deletes an obsolete TODO comment in preload.ts.

  • clean up some development script
  • use showInactive instead of show when creating new window in development

@pengx17 pengx17 temporarily deployed to development April 23, 2023 06:31 — with GitHub Actions Inactive
@vercel
Copy link

vercel bot commented Apr 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
affine-preview ✅ Ready (Inspect) Visit Preview Apr 23, 2023 6:40am
affine-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 23, 2023 6:40am

@pengx17 pengx17 temporarily deployed to development April 23, 2023 06:31 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development April 23, 2023 06:31 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development April 23, 2023 06:31 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development April 23, 2023 06:31 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development April 23, 2023 06:31 — with GitHub Actions Inactive
@github-actions github-actions bot added the app:electron Related to electron app label Apr 23, 2023
@pengx17 pengx17 temporarily deployed to development April 23, 2023 06:33 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Apr 23, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.02 ⚠️

Comparison is base (2ad1b77) 73.91% compared to head (ad9e520) 73.90%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2088      +/-   ##
==========================================
- Coverage   73.91%   73.90%   -0.02%     
==========================================
  Files         298      298              
  Lines        5980     5981       +1     
  Branches     1105     1097       -8     
==========================================
  Hits         4420     4420              
- Misses       1334     1335       +1     
  Partials      226      226              
Flag Coverage Δ
e2etest 72.64% <ø> (-0.03%) ⬇️
server-test 90.78% <ø> (ø)
storybook-test 49.05% <ø> (ø)
unittest 37.33% <ø> (-0.25%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@vercel vercel bot temporarily deployed to Preview – affine-storybook April 23, 2023 06:35 Inactive
@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: ad9e520
Status: ✅  Deploy successful!
Preview URL: https://323cfa3a.affine.pages.dev
Branch Preview URL: https://0423-fix-electron-dev.affine.pages.dev

View logs

@pengx17 pengx17 temporarily deployed to development April 23, 2023 06:37 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development April 23, 2023 06:37 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development April 23, 2023 06:37 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development April 23, 2023 06:37 — with GitHub Actions Inactive
@vercel vercel bot temporarily deployed to Preview – affine-preview April 23, 2023 06:40 Inactive
@perfsee
Copy link

perfsee bot commented Apr 23, 2023

affine-toeverything

Bundle main

diff ------------------- Bundle Size Diff -------------------------

@@                       EntryPoint: main                        @@
##                     master …/electron-dev                 +/- ##
===================================================================
< Bundle              4.26 MB        4.26 MB       +71 B(+0.00%)   
< Initial JS          1.75 MB        1.75 MB       +71 B(+0.00%)   
= Initial CSS         13.2 kB        13.2 kB                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
= Assets                   43             43                       
= Chunks                   41             41                       
= Packages                150            150                       
= Duplicates                5              5                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Warnings ~~~~~~~~~~~~~~~~~~~~~~~~~~~#
! Deduplicate versions of libraries                                
! Separate mixed content assets files                              
! Avoid non-minified assets                                        
! Avoid cache wasting                                              

@@                    EntryPoint: pages/_app                     @@
##                     master …/electron-dev                 +/- ##
===================================================================
< Bundle              4.16 MB        4.16 MB       +71 B(+0.00%)   
< Initial JS          1.64 MB        1.64 MB       +71 B(+0.00%)   
= Initial CSS         13.2 kB        13.2 kB                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
= Assets                   41             41                       
= Chunks                   39             39                       
= Packages                150            150                       
= Duplicates                5              5                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Warnings ~~~~~~~~~~~~~~~~~~~~~~~~~~~#
! Deduplicate versions of libraries                                
! Separate mixed content assets files                              
! Avoid non-minified assets                                        
! Avoid cache wasting                                              

@@                   EntryPoint: pages/_error                    @@
##                     master …/electron-dev                 +/- ##
===================================================================
= Bundle              16.7 kB        16.7 kB                       
= Initial JS          16.7 kB        16.7 kB                       
= Initial CSS             0 B            0 B                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
= Assets                    2              2                       
= Chunks                    2              2                       
= Packages                  5              5                       
= Duplicates                0              0                       

...and more

@himself65 himself65 merged commit be9095e into master Apr 23, 2023
@himself65 himself65 deleted the 0423/fix/electron-dev branch April 23, 2023 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:electron Related to electron app
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants