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

TypeScript migration (partial). #1660

Merged
merged 7 commits into from Sep 6, 2023

Conversation

doggan
Copy link
Contributor

@doggan doggan commented Sep 5, 2023

Migrates some of the "schedules" files to typescript.

Related: #1483

@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Sep 5, 2023
@netlify
Copy link

netlify bot commented Sep 5, 2023

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 01ee6d8
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/64f7febf16c3f30008619304
😎 Deploy Preview https://deploy-preview-1660.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.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2023

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
18 → 16 2.47 MB → 2.46 MB (-16.7 kB) -0.66%
Changeset
File Δ Size
src/components/schedules/SchedulesTable.tsx 🆕 +12.58 kB 0 B → 12.58 kB
src/components/schedules/StatusBadge.tsx 🆕 +2.93 kB 0 B → 2.93 kB
src/components/table.tsx 📉 -9 B (-0.03%) 32.45 kB → 32.44 kB
src/ResponsiveProvider.tsx 📉 -94 B (-5.25%) 1.75 kB → 1.66 kB
src/components/budget/MobileBudgetTable.js 📉 -2.1 kB (-5.53%) 37.96 kB → 35.86 kB
webpack/runtime/get javascript chunk filename 📉 -59 B (-11.05%) 534 B → 475 B
src/tokens.ts 📉 -108 B (-14.19%) 761 B → 653 B
src/components/responsive/index.tsx 📉 -165 B (-19.16%) 861 B → 696 B
src/components/budget/MobileBudgetTableSmall.js 🔥 -35.91 kB (-100%) 35.91 kB → 0 B
src/components/schedules/SchedulesTable.js 🔥 -12.62 kB (-100%) 12.62 kB → 0 B
src/components/budget/MobileBudgetSmall.js 🔥 -9.56 kB (-100%) 9.56 kB → 0 B
src/components/schedules/StatusBadge.js 🔥 -2.93 kB (-100%) 2.93 kB → 0 B
src/components/responsive/small.ts 🔥 -195 B (-100%) 195 B → 0 B
View detailed bundle breakdown

Added

No assets were added

Removed

Asset File Size % Changed
static/js/small-components.chunk.js 14.27 kB → 0 B (-14.27 kB) -100%
static/js/228.chunk.js 12.3 kB → 0 B (-12.3 kB) -100%

Bigger

Asset File Size % Changed
static/js/narrow-components.chunk.js 14.81 kB → 25.3 kB (+10.49 kB) +70.88%
static/js/wide-components.chunk.js 125.44 kB → 125.44 kB (+1 B) +0.00%

Smaller

Asset File Size % Changed
static/js/main.js 1.11 MB → 1.11 MB (-326 B) -0.03%
asset-manifest.json 2.38 kB → 2.07 kB (-323 B) -13.23%

Unchanged

Asset File Size % Changed
static/js/678.chunk.js 420.74 kB 0%
static/media/Inter-italic.var.woff2 239.29 kB 0%
static/media/Inter-roman.var.woff2 221.86 kB 0%
static/js/713.chunk.js 156.56 kB 0%
static/js/231.chunk.js 117.37 kB 0%
static/js/reports.chunk.js 28.65 kB 0%
static/js/473.chunk.js 13 kB 0%
static/js/389.chunk.js 12.76 kB 0%
static/js/resize-observer-polyfill.chunk.js 8.88 kB 0%
static/css/main.css 7.41 kB 0%
index.html 1.66 kB 0%
static/media/browser-server.js 903 B 0%

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2023

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
2 2.22 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.23 MB 0%
xfo.xfo.kcab.worker.js 1014.46 kB 0%

@@ -193,7 +193,6 @@ export function SchedulesTable({
<Row
height={ROW_HEIGHT}
inset={15}
backgroundColor="transparent"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Row doesn't have this property. This is detected after switching the file to tsx.

@doggan doggan marked this pull request as ready for review September 5, 2023 22:52
@doggan doggan marked this pull request as draft September 6, 2023 03:58
@doggan doggan marked this pull request as ready for review September 6, 2023 05:04
Copy link
Member

@MatissJanis MatissJanis left a comment

Choose a reason for hiding this comment

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

Perfect! Thanks for all the hard work on the TS migration!

@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 Sep 6, 2023
@MatissJanis MatissJanis merged commit 21d5f11 into actualbudget:master Sep 6, 2023
19 checks passed
@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 Sep 6, 2023
@doggan doggan deleted the shyam/0905-ts branch September 6, 2023 22:28
FlorianLang06 pushed a commit to FlorianLang06/actual that referenced this pull request Mar 7, 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