-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Remove estimated matching from staging #4991
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThis pull request introduces a comprehensive removal of matching-related fields and strategies across multiple files in the Giveth dApp. The changes systematically eliminate references to Changes
Possibly related issues
Possibly related PRs
Suggested reviewers
Poem
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (3)
src/helpers/qf.ts (1)
Line range hint
73-95
: Remove commented-out code.Since we're removing the estimated matching feature, we should also remove the commented-out
getEstimatedMatchingRange
function to maintain code cleanliness.src/components/views/project/projectActionCard/QFSection.tsx (2)
Line range hint
236-241
: Remove commented-out code.Remove the commented-out code block about "Last updated" since it's no longer needed after removing the matching feature.
Line range hint
1-1
: High-level Feedback: Incomplete Feature RemovalThe PR aims to remove the estimated matching feature, but the implementation seems incomplete:
- Helper functions for estimated matching calculations still exist in
qf.ts
- Components like
QFSection
still use these calculations- Commented-out code related to the feature remains in multiple files
Consider:
- Removing or deprecating the helper functions in
qf.ts
- Removing all estimated matching calculations from components
- Cleaning up commented-out code
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (10)
src/apollo/gql/gqlDonations.ts
(0 hunks)src/apollo/gql/gqlProjects.ts
(0 hunks)src/apollo/types/types.ts
(0 hunks)src/components/modals/HarvestAll.sc.tsx
(1 hunks)src/components/project-card/ProjectCard.tsx
(0 hunks)src/components/views/donate/DonatePageProjectDescription.tsx
(0 hunks)src/components/views/donate/OneTime/EstimatedMatchingToast.tsx
(0 hunks)src/components/views/project/projectActionCard/QFSection.tsx
(1 hunks)src/components/views/project/projectDonations/ProjectTotalFundCard.tsx
(0 hunks)src/helpers/qf.ts
(1 hunks)
💤 Files with no reviewable changes (7)
- src/apollo/gql/gqlDonations.ts
- src/components/views/donate/DonatePageProjectDescription.tsx
- src/components/views/donate/OneTime/EstimatedMatchingToast.tsx
- src/components/project-card/ProjectCard.tsx
- src/components/views/project/projectDonations/ProjectTotalFundCard.tsx
- src/apollo/types/types.ts
- src/apollo/gql/gqlProjects.ts
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: build
🔇 Additional comments (3)
src/helpers/qf.ts (1)
Line range hint
41-54
: Verify the mathematical formulas for matching calculations.The functions
calculateTotalEstimatedMatching
andcalculateEstimatedMatchingWithDonationAmount
contain complex mathematical formulas. Let's verify these calculations are still relevant after removing the estimated matching feature.Also applies to: 56-71
src/components/modals/HarvestAll.sc.tsx (1)
90-90
: Verify UI change impact.The tooltip width reduction from 250px to 200px seems unrelated to the removal of estimated matching. Please verify this change doesn't cause content overflow issues.
src/components/views/project/projectActionCard/QFSection.tsx (1)
59-60
:⚠️ Potential issueInconsistent removal of estimated matching feature.
The component still uses
estimatedMatching
calculations despite the feature being removed. This seems inconsistent with the PR's objective of removing estimated matching from staging.Also applies to: 69-74
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx
Summary by CodeRabbit
Refactor
Style
Impact