* chore(deps): migrate to joinmarket-ng-api-ts
- Uninstall legacy (v0.3.0).
- Install new (v1.0.0).
- Update package.json for to apply to the new ng-api package.
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* refactor: update all api client imports to use joinmarket-ng-api-ts
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* refactor(types): replace ErrorMessage with unknown for ng-api compatibility
- Remove ErrorMessage type imports from @joinmarket-webui/joinmarket-ng-api-ts/jm across the codebase.
- Update error types in React Query hooks (useQuery, useMutation) and context states to use unknown instead of ErrorMessage.
- Update error handler callbacks (onError) to accept unknown type, adapting to the error type changes in the generated ng-api client.
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* fix(types): handle nullable fields from ng-api client
- Add nullish/undefined checks for sessionInfo.wallet_name in create, import, and login flows.
- Handle nullable progress field in rescanInfo by checking != null and defaulting to undefined.
- Fallback block_height to undefined if nullish in layout and session contexts.
- Default walletInfo.accounts to an empty array to prevent mapping errors if nullish.
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* fix(types): fix typescript errors from ng-api transition
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* fix(lint): resolve typescript-eslint errors in tests and providers
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* feat: redesign sweep to tumbler api with minimal adaptations
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* pin api-ts deps and validate rescan progress value
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* simplify active session check in import flows and harden report parsing
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* refactor: fastapi error parsing and SweepPage ux
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* fix: set VITE_JM_API_BASE_URL to empty for joinmarket-ng-api-ts
-Endpoints generated by the new client package already include the
'/api/v1' path prefix in their definitions.
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* refactor(ui): use session state as single source of truth for active wallets
- Use as the sole condition to display the active session warning in wallet create/import flows, rather than relying on the presence of a .
- Update to dynamically fall back to a localized placeholder ('another wallet') when is missing.
- Add fallback key to English translation file.
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* style: format create, import files
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* refactor(earn): support only ng backend format in yieldgen report hook
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* refactor: improve active wallet warning translations
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* fix(sweep): use includes instead of repeated equality checks for lint check
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* refactor(sweep): align phase completion check strictly with ng backend PhaseStatus
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
---------
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* chore: add csp meta tag
* chore: add base-uri and form-action to csp tag
Co-authored-by: Kishore B <kishorebsm8@gmail.com>
---------
Co-authored-by: Kishore B <kishorebsm8@gmail.com>
* feat(navbar): toggle lock wallet/logout button based on running services (#1311)
* fix(navbar): disable logout button while pending and localize its label
* fix(i18n): add navbar.button_logout translations for all locales
* dev(regtest): remove unnecessary env vars
* dev(regtest): expose jmwalletd port for init routine
* Fix typo in BITCOIN__RPC_PASSWORD to "regtest"
---------
Co-authored-by: Kishore B <kishorebsm8@gmail.com>
* refactor(validation): add shared form field validators
* refactor(send): use shared source jar and destination address validators
* refactor(receive): use shared source jar validator and align amount bound
* refactor(earn): use shared source jar validator for fidelity bonds
* refactor(sweep): reuse shared bitcoin address predicates
* fix(validation): guard chained destination address tests and trim input
* dev(regtest): adapt bitcoin rpc users
* dev(regtest): update to bitcoind v30.0
* chore(regtest): create descriptor wallets for clientserver regtest containers
* chore(regtest): add backend descriptor to clientserver directory node
* chore(regtest): rectify tor setup and downgrade to core v29
* dev(regtest): set ENSURE_WALLET to false and remove unused DESCRIPTOR_WALLET_NAME for ng nodes