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

feat(streaks): Add streak page from real code and bd. #20

Merged
merged 8 commits into from
Nov 5, 2024
Merged

Conversation

WelldoneM
Copy link
Contributor

@WelldoneM WelldoneM commented Nov 5, 2024

  1. File Modifications

    • common/Header: Use real data from DB instead of hard code.
    • hooks/useGoalsUpdater: Refactored to streamline goal and streak updates, update streak every time task status update.
    • pages/Streak: Use MUI calendar implement real DB data.
    • utils/streakUtils: Consolidated streak-related functions and logic into this utility
  2. Dependency Updates

    • Added new dependencies for updated streak logic.
    • Note: Please run npm install to ensure all dependencies are up-to-date.
Screen.Recording.2024-11-05.at.9.04.40.AM.mov

Copy link

github-actions bot commented Nov 5, 2024

🚀 Preview for this PR is available at: https://stepwise-bdab7--pr-20-biftjgzr.web.app

🧪 Test Results

🗂 Test Summary: Test Files 2 passed (2)
Tests Passed: Tests 4 passed (4)
⏱️ Total Duration: Duration 16.57s (transform 7.14s, setup 0ms, collect 31.33s, tests 323ms, environment 882ms, prepare 147ms)

🎉 All tests passed successfully!

@ZL-Asica
Copy link
Member

ZL-Asica commented Nov 5, 2024

Hold on approving this for now I will review it.

- Moved streak logic from context to streamlined streakUtils.js for better modularity
- Removed redundant streakUtils and taskCompletion utils in firebase directory
- Updated Streak.jsx to improve rendering logic and performance, optimized tileContent for calendar
- Refactored useGoalsUpdater.js to consolidate goal and streak updates
- Directly use context for streak in Header
ZL-Asica
ZL-Asica previously approved these changes Nov 5, 2024
Copy link

github-actions bot commented Nov 5, 2024

🚀 Preview for this PR is available at: https://stepwise-bdab7--pr-20-biftjgzr.web.app

🧪 Test Results

🗂 Test Summary: Test Files 2 passed (2)
Tests Passed: Tests 4 passed (4)
⏱️ Total Duration: Duration 16.11s (transform 6.89s, setup 0ms, collect 30.50s, tests 319ms, environment 788ms, prepare 153ms)

🎉 All tests passed successfully!

@ZL-Asica ZL-Asica changed the title Implement automatic streak and progress tracking based on daily task completion feat(streaks): Add streak page from real code and bd. Nov 5, 2024
@ZL-Asica ZL-Asica enabled auto-merge (squash) November 5, 2024 16:54
@ZL-Asica
Copy link
Member

ZL-Asica commented Nov 5, 2024

It's all good now, please go ahead and approve this commit. Remember to do npm install after rebase or pull from the updated main branch.

Copy link

github-actions bot commented Nov 5, 2024

🚀 Preview for this PR is available at: https://stepwise-bdab7--pr-20-biftjgzr.web.app

🧪 Test Results

🗂 Test Summary: Test Files 2 passed (2)
Tests Passed: Tests 4 passed (4)
⏱️ Total Duration: Duration 15.93s (transform 6.81s, setup 0ms, collect 30.08s, tests 335ms, environment 822ms, prepare 164ms)

🎉 All tests passed successfully!

@ZL-Asica ZL-Asica merged commit d736d62 into main Nov 5, 2024
3 checks passed
@ZL-Asica ZL-Asica deleted the steaks branch November 7, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants