Skip to content

feat: move wallet.html to vue component. FINAL DynamicComponent pr#3559

Merged
dni merged 11 commits intodevfrom
refactor/final2
Nov 25, 2025
Merged

feat: move wallet.html to vue component. FINAL DynamicComponent pr#3559
dni merged 11 commits intodevfrom
refactor/final2

Conversation

@dni
Copy link
Copy Markdown
Member

@dni dni commented Nov 24, 2025

this is the last of the extensive frontend refactoring getting rid of Dynamic Component

difference in generic /wallet api.

  • lastActiveWallet is now saved into localstorage
  • there is no wallet creation if a user has no wallets now
  • wallets check are in the frontend now done from g.user.wallets

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.46%. Comparing base (0c6e839) to head (588813b).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #3559      +/-   ##
==========================================
- Coverage   56.47%   56.46%   -0.02%     
==========================================
  Files         121      121              
  Lines       15873    15856      -17     
==========================================
- Hits         8965     8953      -12     
+ Misses       6908     6903       -5     

☔ 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.

@dni dni marked this pull request as draft November 24, 2025 10:24
@dni dni marked this pull request as ready for review November 24, 2025 10:49
@dni dni marked this pull request as draft November 24, 2025 10:49
@dni dni marked this pull request as ready for review November 24, 2025 11:00
):
if wal:
wallet = await get_wallet(wal.hex)
elif len(user.wallets) == 0:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is still important. An user should ALWAYS have at least one wallet.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about we always create 1 wallet when creating an user and an user can only delete his last wallet when he deletes his account?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a wallet is already created within the create_user_account service and with this would that be good? #3564

@dni dni requested a review from motorina0 November 25, 2025 08:07
@dni dni merged commit 33e2fc2 into dev Nov 25, 2025
44 checks passed
@dni dni deleted the refactor/final2 branch November 25, 2025 10:45
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.

3 participants