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: Gifts model #224

Merged
merged 10 commits into from
Feb 3, 2025
Merged

Feat: Gifts model #224

merged 10 commits into from
Feb 3, 2025

Conversation

tuul-wq
Copy link
Contributor

@tuul-wq tuul-wq commented Oct 3, 2024

  • Introduced gifts-model that handles all gift related actions
  • Request claim status on chain connect and gift request from local storage
  • Tests

closes #216

@tuul-wq tuul-wq requested review from ERussel and johnthecat October 3, 2024 14:46
@tuul-wq tuul-wq self-assigned this Oct 3, 2024
Copy link

github-actions bot commented Oct 3, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 27.05% 1705 / 6301
🔵 Statements 27.05% 1705 / 6301
🔵 Functions 32.2% 86 / 267
🔵 Branches 63.61% 243 / 382
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
app/models/balances/balances-model.ts 97.87% 91.66% 84.61% 97.87% 40-42, 52
app/models/gifts/gift-utils.ts 0% 0% 0% 0% 1-58
app/models/gifts/gifts-model.ts 90.1% 86.48% 100% 90.1% 54-60, 63-75, 138-139
app/models/gifts/index.ts 0% 0% 0% 0% 1
app/routes/dashboard/index.tsx 0% 0% 0% 0% 1-171
app/routes/gifts/index.tsx 0% 0% 0% 0% 1-87
app/routes/transfer/gift/$chainId.$assetId/create.tsx 0% 0% 0% 0% 1-153
app/shared/api/blockchain/balances/native-balance.ts 6% 0% 0% 6% 11-66
app/shared/api/blockchain/balances/orml-balance.ts 6.25% 0% 0% 6.25% 20-96
app/shared/api/blockchain/balances/statemine-balance.ts 8.16% 0% 0% 8.16% 11-64
app/shared/api/blockchain/balances/types.ts 100% 100% 100% 100%
app/shared/helpers/index.tsx 100% 100% 100% 100%
app/shared/hooks/index.ts 0% 0% 0% 0% 1
app/types/substrate/gift.ts 100% 100% 100% 100%
app/types/substrate/index.ts 100% 100% 100% 100%
app/ui/molecules/CreatedGiftPlate/CreatedGiftPlate.tsx 0% 0% 0% 0% 1-35
app/ui/molecules/GiftClaim/GiftClaim.tsx 0% 0% 0% 0% 1-220
app/ui/molecules/GiftPlate/GiftPlate.tsx 0% 0% 0% 0% 1-37
Generated in workflow #265 for commit 6a050a6 by the Vitest Coverage Report Action

@tuul-wq tuul-wq requested a review from sokolova-an January 28, 2025 07:04
@tuul-wq tuul-wq removed the request for review from ERussel January 28, 2025 07:53
app/models/gifts/gift-utils.ts Outdated Show resolved Hide resolved
app/models/gifts/gifts-model.test.ts Outdated Show resolved Hide resolved
@tuul-wq tuul-wq merged commit 5d2574d into dev Feb 3, 2025
3 checks passed
@tuul-wq tuul-wq deleted the feat/gift_claim branch February 3, 2025 12:23
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.

Suggestion. Shared gift list.
2 participants