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

♻️ (tooltip) refactoring to react-aria (vol.7) #2778

Merged
merged 4 commits into from
May 21, 2024

Conversation

MatissJanis
Copy link
Member

Refactoring custom reports usages of the old Tooltip component to react-aria.

@MatissJanis MatissJanis requested a review from carkom May 18, 2024 10:10
@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label May 18, 2024
Copy link

netlify bot commented May 18, 2024

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 2b90261
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/66491dc8a8a7fe0008f8d6ed
😎 Deploy Preview https://deploy-preview-2778.demo.actualbudget.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

github-actions bot commented May 18, 2024

Bundle Stats — desktop-client

Hey 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

Files count Total bundle size % Changed
9 4.72 MB → 4.72 MB (+886 B) +0.02%
Changeset
File Δ Size
src/components/common/MenuButton.tsx 📈 +98 B (+27.68%) 354 B → 452 B
src/components/reports/SaveReport.tsx 📈 +836 B (+16.05%) 5.09 kB → 5.9 kB
src/components/reports/reports/CustomReportListCards.tsx 📈 +768 B (+9.04%) 8.29 kB → 9.04 kB
src/components/common/MenuTooltip.tsx 📈 +2 B (+0.90%) 222 B → 224 B
src/components/reports/SaveReportName.tsx 📉 -23 B (-1.00%) 2.24 kB → 2.22 kB
src/components/reports/ReportSidebar.tsx 📉 -235 B (-1.44%) 15.94 kB → 15.71 kB
src/components/reports/SaveReportChoose.tsx 📉 -122 B (-4.40%) 2.71 kB → 2.59 kB
src/components/reports/SaveReportDelete.tsx 📉 -113 B (-7.95%) 1.39 kB → 1.28 kB
src/components/reports/SaveReportMenu.tsx 📉 -128 B (-8.88%) 1.41 kB → 1.28 kB
src/components/reports/GraphButton.tsx 📉 -197 B (-23.29%) 846 B → 649 B
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
static/js/ReportRouter.js 1.23 MB → 1.23 MB (+786 B) +0.06%
static/js/wide.js 261.78 kB → 262 kB (+224 B) +0.08%

Smaller

Asset File Size % Changed
static/js/AppliedFilters.js 20.54 kB → 20.41 kB (-124 B) -0.59%

Unchanged

Asset File Size % Changed
static/js/indexeddb-main-thread-worker-e59fee74.js 13.5 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/usePreviewTransactions.js 790 B 0%
static/js/BackgroundImage.js 122.29 kB 0%
static/js/narrow.js 59.97 kB 0%
static/js/index.js 3 MB 0%

Copy link
Contributor

github-actions bot commented May 18, 2024

Bundle Stats — loot-core

Hey 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

Files count Total bundle size % Changed
1 1.2 MB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
kcab.worker.js 1.2 MB 0%

@carkom
Copy link
Contributor

carkom commented May 18, 2024

A couple regressions that need fixed:

  • Small nit - the buttons used to highlight even while the menu was open.
  • The bottom border of the "Options" button gets covered by the menu (didn't used to)
  • "Choose Graph" option in the main menu needs padding
    image

@MatissJanis
Copy link
Member Author

"Choose Graph" option in the main menu needs padding

Good catch! This one is now patched: 6ac0c4c

Small nit - the buttons used to highlight even while the menu was open.

Yea, there is a small visual difference between the old implementation and the new one we have.

The bottom border of the "Options" button gets covered by the menu (didn't used to)

Not quite sure what you mean.

Edge PR
Screenshot 2024-05-18 at 21 46 16 Screenshot 2024-05-18 at 21 46 13

@carkom
Copy link
Contributor

carkom commented May 18, 2024

It seems to only be present in Firefox. Chrome is fine.
PR
image

Edge
image

@MatissJanis
Copy link
Member Author

Interesting.. 🤔

Edge PR
Screenshot 2024-05-18 at 22 24 49 Screenshot 2024-05-18 at 22 24 52

@MatissJanis
Copy link
Member Author

Added 1px offset. Though this will affect all the popovers.

Copy link
Contributor

@carkom carkom left a comment

Choose a reason for hiding this comment

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

LGTM!

@trafico-bot trafico-bot bot added ✅ Approved Pull Request has been approved and can be merged and removed 🔍 Ready for Review Pull Request is not reviewed yet labels May 18, 2024
@MatissJanis MatissJanis merged commit 5f16349 into master May 21, 2024
19 checks passed
@MatissJanis MatissJanis deleted the matiss/tooltip-7 branch May 21, 2024 20:40
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed ✅ Approved Pull Request has been approved and can be merged labels May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Merged Pull Request has been merged successfully
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants