Skip to content

refactor: use intersection observer and website config#134

Merged
JohnsonMao merged 2 commits intodevfrom
refactor/code
Apr 5, 2025
Merged

refactor: use intersection observer and website config#134
JohnsonMao merged 2 commits intodevfrom
refactor/code

Conversation

@JohnsonMao
Copy link
Copy Markdown
Owner

No description provided.

- Move IntersectionObserver initialization to useEffect
- Properly disconnect and nullify observer instances
- Fix array element filtering in setInternalElementRef
- Update tests to reflect new observer behavior
Move scattered website configuration variables from metadata.ts into a single
WEBSITE_CONFIGS object in constants/index.ts for better maintainability.
@JohnsonMao JohnsonMao self-assigned this Apr 5, 2025
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
amao ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 5, 2025 4:31pm

@JohnsonMao JohnsonMao merged commit befa1ec into dev Apr 5, 2025
3 checks passed
@JohnsonMao JohnsonMao deleted the refactor/code branch April 5, 2025 16:31
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (258ad9e) to head (40051e1).
Report is 4 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #134   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           33        33           
  Lines          539       542    +3     
  Branches        93        93           
=========================================
+ Hits           539       542    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant