Skip to content

feat(react): add token, vault, proposal, and toast product components… - #1068

Open
aishagbadamosi wants to merge 3 commits into
BCPathway:mainfrom
aishagbadamosi:feature/950-product-components
Open

aishagbadamosi wants to merge 3 commits into
BCPathway:mainfrom
aishagbadamosi:feature/950-product-components

Conversation

@aishagbadamosi

Copy link
Copy Markdown
Contributor

… (Closes #950)

What does this PR do?

Adds the six product components for the React package, so apps can build token, mint, vault, proposal, and transaction UX on top of the SDK instead of raw RPC. Closes #950.

Also enables browser-wallet signing for VaultClient write calls (optional source, wallet-adapter fallback).

Type of change

  • Bug fix
  • Feature
  • Refactor
  • Docs
  • CI
  • Chore

Checklist

  • I ran pre-commit run --all-files locally and it passed
  • All CI jobs pass on this branch
  • I added or updated tests for new behaviour
  • I updated relevant docs / comments
  • No secrets or credentials are included
  • No breaking changes to public APIs (or I've documented them)

Breaking changes?

Related issues

Closes #950

@drips-wave

drips-wave Bot commented Sep 28, 2026

Copy link
Copy Markdown

@aishagbadamosi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

…ay#950)

The forward-merge of main into feature/950-product-components interleaved
two versions of the wallet-adapter signing path in sdk/src/vaultClient.ts
(267 tsc errors) and two implementations of useVaultDeposit in
react/src/hooks.ts (duplicate declarations, mangled useProposalVoting).

- sdk/src/vaultClient.ts: restore main's canonical implementation, which
  already carries the optional-source wallet-adapter fallback.
- react/src/hooks.ts: keep main's context-based useVaultDeposit /
  useProposalVote, re-add useVaultShareBalance (now takes a resolved
  VaultClient, keeping hooks.ts free of SDK runtime imports) and
  useProposalVoting; make Keypair a type-only import.
- react/src/context.tsx: add useOptionalVaultClient for provider-less
  product component fallback.
- react/src/components/VaultDepositWidget.tsx: build the client from props
  with provider fallback instead of a hooks-level useVaultClient.
- react/src/hooks.test.tsx: add missing @testing-library/jest-dom import.
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.

Add token, vault, proposal, and toast product components

1 participant