Skip to content

feat: added renderError fire event when a render issue occurs#526

Merged
theashraf merged 7 commits intomainfrom
fix/crash-event-on-draw
Apr 24, 2025
Merged

feat: added renderError fire event when a render issue occurs#526
theashraf merged 7 commits intomainfrom
fix/crash-event-on-draw

Conversation

@samuelOsborne
Copy link
Copy Markdown
Member

Description

Fires a loadError event when loading succeeds but rendering doesn't inside draw().

Type of change

  • dotlottie-web Patch: Bug (non-breaking change which fixes an issue)

Checklist

  • This is something we need to do.

Copilot AI review requested due to automatic review settings April 15, 2025 13:55
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 15, 2025

🦋 Changeset detected

Latest commit: fcd1316

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@lottiefiles/dotlottie-web Minor
@lottiefiles/dotlottie-react Patch
@lottiefiles/dotlottie-solid Patch
@lottiefiles/dotlottie-svelte Patch
@lottiefiles/dotlottie-vue Patch
@lottiefiles/dotlottie-wc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

packages/web/src/dotlottie.ts:542

  • Verify that _dispatchError dispatches the intended 'loadError' event, matching the PR title and description. If it only serves a generic role, consider renaming it or ensuring its configuration clearly reflects the loadError event.
this._dispatchError(`Error in animation frame: ${error}`);

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2025

Coverage Report for @lottiefiles/dotlottie-web (packages/web)

Status Category Percentage Covered / Total
🟢 Lines 73.58% (🎯 52%) 596 / 810
🟢 Statements 69.93% (🎯 51%) 621 / 888
🟢 Functions 68.86% (🎯 52%) 146 / 212
🟢 Branches 66.03% (🎯 58%) 418 / 633
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/web/src/dotlottie.ts 69.66% 65.39% 62.1% 73.46% 150-157, 180, 221-225, 260, 274, 285-287, 295, 325, 348, 352, 429, 451, 455, 488, 510-511, 527, 602, 607, 617, 645-650, 654, 659-662, 669-683, 739, 760-765, 769, 790, 825, 852-893, 897, 907-1034, 1050-1116
packages/web/src/event-manager.ts 100% 87.5% 100% 100%
packages/web/src/worker/dotlottie.ts 64.13% 64.79% 68.49% 68.7% 239, 260, 278, 335, 343, 379, 403, 408, 415, 422-425, 429, 443-446, 450, 469, 488-501, 505, 512-515, 519, 556, 563-566, 577-580, 596, 603-609, 613, 640, 664-775
Generated in workflow #1804 for commit fcd1316 by the Vitest Coverage Report Action

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2025

Coverage Report for @lottiefiles/dotlottie-react (packages/react)

Status Category Percentage Covered / Total
🟢 Lines 97.46% (🎯 95%) 77 / 79
🟢 Statements 97.61% (🎯 95%) 82 / 84
🟢 Functions 100% (🎯 95%) 27 / 27
🟢 Branches 90.38% (🎯 89%) 47 / 52
File CoverageNo changed files found.
Generated in workflow #1804 for commit fcd1316 by the Vitest Coverage Report Action

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2025

Coverage Report for @lottiefiles/dotlottie-wc (packages/wc)

Status Category Percentage Covered / Total
🟢 Lines 98.46% (🎯 98%) 64 / 65
🟢 Statements 98.52% (🎯 98%) 67 / 68
🟢 Functions 100% (🎯 100%) 10 / 10
🟢 Branches 94.64% (🎯 94%) 53 / 56
File CoverageNo changed files found.
Generated in workflow #1804 for commit fcd1316 by the Vitest Coverage Report Action

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
@lottiefiles/dotlottie-web 43.52 KB (+0.19% 🔺) 871 ms (+0.19% 🔺) 120 ms (+72.5% 🔺) 990 ms
@lottiefiles/dotlottie-web WASM 552.59 KB (0%) 11.1 s (0%) 0 ms (+100% 🔺) 11.1 s
@lottiefiles/dotlottie-react 46.38 KB (+0.06% 🔺) 928 ms (+0.06% 🔺) 215 ms (+31.78% 🔺) 1.2 s
@lottiefiles/dotlottie-vue 50.43 KB (+0.19% 🔺) 1.1 s (+0.19% 🔺) 137 ms (+6.24% 🔺) 1.2 s
@lottiefiles/dotlottie-wc 51.16 KB (-0.03% 🔽) 1.1 s (-0.03% 🔽) 164 ms (+54.32% 🔺) 1.2 s
@lottiefiles/dotlottie-svelte 50.97 KB (+0.07% 🔺) 1.1 s (+0.07% 🔺) 96 ms (-4.27% 🔽) 1.2 s
@lottiefiles/dotlottie-solid 49.8 KB (+0.08% 🔺) 996 ms (+0.08% 🔺) 112 ms (-12.42% 🔽) 1.2 s

Copy link
Copy Markdown
Member

@theashraf theashraf left a comment

Choose a reason for hiding this comment

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

Looks good to merge, but few things left:

  • fix type-check issues
  • comments to resolve

Comment thread packages/web/tests/dotlottie.test.ts Outdated
Comment thread packages/web/tests/dotlottie.test.ts Outdated
Comment thread packages/web/tests/dotlottie.test.ts Outdated
Comment thread .changeset/fifty-drinks-melt.md Outdated
@samuelOsborne samuelOsborne changed the title fix: added loadError fire event when a render issue occurs fix: added renderError fire event when a render issue occurs Apr 24, 2025
@theashraf theashraf force-pushed the fix/crash-event-on-draw branch from ec4160a to e9c131b Compare April 24, 2025 06:26
@theashraf theashraf changed the title fix: added renderError fire event when a render issue occurs feat: added renderError fire event when a render issue occurs Apr 24, 2025
@theashraf theashraf merged commit 3320fe2 into main Apr 24, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants