Skip to content

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Oct 30, 2025

The confetti animation on the landing page header was broken after upgrading to p5.js v2.0 in PR #1244. This fixes two breaking changes:

  1. Changed p5 import from namespace import to default import

    • Before: import * as p5 from "p5"
    • After: import p5 from "p5"
  2. Changed CLOSE constant reference from global to sketch instance

    • Before: sketch.endShape(p5.CLOSE)
    • After: sketch.endShape(sketch.CLOSE)

These changes restore the animated colored squares that appear behind the Apache Airflow header text.

Fixes the regression introduced in #1244

Oct-30-2025 23-24-52

@kaxil kaxil requested review from ashb, jscheffl and potiuk October 30, 2025 23:25
@kaxil kaxil force-pushed the fix-confetti-animation-p5js-v2 branch from f78d1ef to 0c19e16 Compare October 30, 2025 23:29
The confetti animation on the landing page header was broken after
upgrading to p5.js v2.0 in PR #1244. This fixes two breaking changes:

1. Changed p5 import from namespace import to default import
   - Before: import * as p5 from "p5"
   - After: import p5 from "p5"

2. Changed CLOSE constant reference from global to sketch instance
   - Before: sketch.endShape(p5.CLOSE)
   - After: sketch.endShape(sketch.CLOSE)

These changes restore the animated colored squares that appear
behind the Apache Airflow header text.

Additionally, removed package-lock.json since the project uses yarn
(yarn.lock) for dependency management, not npm. Having both lock files
can cause conflicts and the CI uses yarn exclusively. The yarn.lock was
also regenerated to fix a syntax error that was causing CI failures.

Fixes the regression introduced in #1244
@kaxil kaxil force-pushed the fix-confetti-animation-p5js-v2 branch from 0c19e16 to 3eceae5 Compare October 30, 2025 23:36
@kaxil kaxil merged commit 1bdfcb6 into main Oct 30, 2025
1 check passed
@kaxil kaxil deleted the fix-confetti-animation-p5js-v2 branch October 30, 2025 23:51
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.

2 participants