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

fix: optimize app updater #2452

Merged
merged 3 commits into from
May 19, 2023
Merged

fix: optimize app updater #2452

merged 3 commits into from
May 19, 2023

Conversation

pengx17
Copy link
Collaborator

@pengx17 pengx17 commented May 19, 2023

🤖 Generated by Copilot at 023ad39

This pull request adds collapsible functionality and animations to the favorite list component in the workspace slider bar, using the @radix-ui/react-collapsible and @vanilla-extract/css libraries. It also improves the app updater button component by using standard CSS properties and pseudo-elements for the animation, and by dismissing the changelog modal when the button is clicked.

@codesandbox
Copy link

codesandbox bot commented May 19, 2023

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview

@pengx17 pengx17 requested a review from himself65 May 19, 2023 06:29
@vercel
Copy link

vercel bot commented May 19, 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 💬 Add feedback May 19, 2023 6:47am
affine-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 19, 2023 6:47am

@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:29 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:29 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:29 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:29 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:29 — with GitHub Actions Inactive
@cloudflare-pages
Copy link

cloudflare-pages bot commented May 19, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: ba506eb
Status: ✅  Deploy successful!
Preview URL: https://e03962d7.affine.pages.dev
Branch Preview URL: https://xp-0519-fix-styles.affine.pages.dev

View logs

@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:30 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:30 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:30 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:30 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:30 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented May 19, 2023

Codecov Report

Patch coverage: 66.66% and project coverage change: +0.05 🎉

Comparison is base (c82fb89) 72.75% compared to head (ba506eb) 72.80%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2452      +/-   ##
==========================================
+ Coverage   72.75%   72.80%   +0.05%     
==========================================
  Files         315      315              
  Lines        7035     7034       -1     
  Branches     1147     1147              
==========================================
+ Hits         5118     5121       +3     
+ Misses       1716     1715       -1     
+ Partials      201      198       -3     
Flag Coverage Δ
e2etest 66.37% <50.00%> (+0.04%) ⬆️
e2etest-macos-latest-x64 ?
e2etest-ubuntu-latest-x64 47.48% <0.00%> (ø)
e2etest-windows-latest-x64 ?
server-test 73.12% <ø> (ø)
storybook-test 57.17% <0.00%> (+0.15%) ⬆️
unittest 37.35% <50.00%> (-0.03%) ⬇️

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

Impacted Files Coverage Δ
...omponents/app-sidebar/app-updater-button/index.tsx 40.67% <0.00%> (-0.71%) ⬇️
...re/workspace-slider-bar/favorite/favorite-list.tsx 95.83% <100.00%> (-0.17%) ⬇️
...onents/app-sidebar/app-updater-button/index.css.ts 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

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

@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:35 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:39 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:39 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:39 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:39 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:39 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:39 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:39 — with GitHub Actions Inactive
@pengx17 pengx17 temporarily deployed to development May 19, 2023 06:39 — with GitHub Actions Inactive
@vercel vercel bot temporarily deployed to Preview – affine-storybook May 19, 2023 06:41 Inactive
@perfsee
Copy link

perfsee bot commented May 19, 2023

affine-toeverything

Bundle main

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

@@                       EntryPoint: main                        @@
##                     master …19/fix/styles                 +/- ##
===================================================================
< Bundle              3.11 MB        3.31 MB     +198 kB(+6.37%)   
< Initial JS          1.86 MB        2.08 MB    +221 kB(+11.87%)   
< Initial CSS         16.8 kB        35.3 kB  +18.6 kB(+110.79%)   
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
< Assets                   41             47                  +6   
< Chunks                   39             40                  +1   
< Packages                132            145                 +13   
= Duplicates                3              3                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Warnings ~~~~~~~~~~~~~~~~~~~~~~~~~~~#
! Separate mixed content assets files                              
! Avoid cache wasting                                              

@@                    EntryPoint: pages/_app                     @@
##                     master …19/fix/styles                 +/- ##
===================================================================
< Bundle                 3 MB        3.19 MB     +189 kB(+6.29%)   
< Initial JS          1.75 MB        1.96 MB    +211 kB(+12.10%)   
< Initial CSS         16.8 kB        35.3 kB  +18.6 kB(+110.79%)   
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
< Assets                   39             45                  +6   
< Chunks                   37             38                  +1   
< Packages                132            145                 +13   
= Duplicates                3              3                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Warnings ~~~~~~~~~~~~~~~~~~~~~~~~~~~#
! Separate mixed content assets files                              
! Avoid cache wasting                                              

@@                   EntryPoint: pages/_error                    @@
##                     master …19/fix/styles                 +/- ##
===================================================================
= Bundle              16.6 kB        16.6 kB                       
= Initial JS          16.6 kB        16.6 kB                       
= Initial CSS             0 B            0 B                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
= Assets                    2              2                       
= Chunks                    2              2                       
= Packages                  5              5                       
= Duplicates                0              0                       

...and more

@vercel vercel bot temporarily deployed to Preview – affine-preview May 19, 2023 06:47 Inactive
@himself65 himself65 merged commit ef2d135 into master May 19, 2023
9 checks passed
@himself65 himself65 deleted the xp/0519/fix/styles branch May 19, 2023 07:07
Brooooooklyn pushed a commit that referenced this pull request May 19, 2023
himself65 pushed a commit that referenced this pull request Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants