* refactor: add reason to scheduler error messages
* fix: dismiss schedule confirm dialog on error
* chore(i18n): distinct scheduler starting/stopping messages
* chore(sweep): remove redundant manual destination validation
* chore(sweep): initial sweep options
* chore(ui): add slider component
* chore(sweep): add rounding chance option
* feat(sweep): ability to add/remove destinations
* chore(sweep): use plan tumbler mutation
* refactor(sweep): use tumblerstartMutation
* refactor(sweep): externalize SweepForm
* feat(sweep): ability to set min/max number of collaborators
* chore(sweep): increase time_lambda_seconds in insecure test options
* chore(sweep): fix progress step of quick sweep
* chore(sweep): start refactor schedule entry
* chore(sweep): preserve raw data in ScheduleEntry
* feat(sweep): show destination addresses
* chore(sweep): scroll to top after start/stop
* chore(ui): add Item component
* fix: only abort single taker runs on send page
* chore(sweep): schedule entries with Item component
* chore(sweep): show wait time before next action
* chore(sweep): schedule entries in accordion
* chore(sweep): remove scheduler.progress_current_state_wait_before_next message
* chore(sweep): tab for completed entries
* refactor(sweep): align Schedule object structure
* chore(sweep): display error message on failed actions
* chore(sweep): display completed scheduled sweep
* chore(sweep): move stop button from child component to page
* feat(sweep): ability to review scheduled sweep plan
* chore(sweep): increase schedule polling from 3s to 10s
* chore(sweep): hourglass icon for waiting alerts
* chore(sweep): adapt buttons, labels and alert texts
* fix(sweep): default min confirmations between phases
* chore(sweep): improve time estimate on sweeps
* chore(sweep): show pending tasks in details
* feat(sweep): ability to configure mintxcount
* chore(storybook): add slider, sidebar and item stories
* test(sweep): verify add/remove sweep destination input
* test: load decorators from story meta config
* chore(sweep): add makeSessionIdleTimeoutSeconds to form values
* chore(sweep): reload schedule if not stale or terminated
* chore(sweep): more details in sections
* chore(sweep): reorder entry details
* chore(sweep): show transaction info in destination section
* chore(sweep): estimate duration with fixed runtime info of maker phases
* chore(regtest): setup dummy wallet fidelity bonds
* fix(sweep): maker idle timeout less than runtime duration
* chore(sweep): use taker_utxo_age as min confs in sweep preconditions
* chore(build): add task test:coverage
* chore(sweep): max number of destination addresses
* chore(sweep): maxNumberOfDestinations
* 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>
* 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
* feat: integrate standalone-ng docker wrapper with Jam Web UI
- Add Dockerfile and entrypoint for standalone-ng wrapper service
- Update docker-compose files to support standalone-ng container(joinmarket6)
- Enhance log retrieval and frontend logic for new log file layout
- Update Vite config and constants for standalone-ng backend mode
- Improve documentation for regtest and backend selection
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
* chore(regtest): zero absolute offers for makers in regtest env
* chore: align npm dev command names
* chore(regtest): set minimum makers to 2 for joinmarket-ng backends
* chore(regtest): use jam-dev-standalone-ng:master image
---------
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
Co-authored-by: theborakompanioni <theborakompanioni+github@gmail.com>
* chore(regtest): initial joinmarket-ng backend for regtest environment
Adds jmwalletd, directory servers, makers, and bitcoind to the regtest
docker-compose environment so jam can be developed against the jm-ng
backend end-to-end.
chore(regtest): wire docker compose env and vite dev proxy for jm-ng
Connects the local regtest containers into a single compose network,
adds tor and fund-wallet helpers, and points Vite's dev proxy at the
local jmwalletd instance.
fix(tags): recognize cj-change, used-empty, and flagged UTXO statuses
joinmarket-ng's WalletService emits four statuses jam's JmPlainTagValue
didn't cover: 'cj-change' (deanonymising change from our CJ),
'used-empty' (previously-used address with zero balance), and 'flagged'
(address shared in a CJ that later failed). They fell through to the
generic 'default' badge with no distinguishing styling.
Add them to JmPlainTagValue and the status->variant map. 'used-empty'
maps to the existing 'used' variant, 'flagged' to 'reused' (both signal
a used address the user should avoid reusing). Add a dedicated
'cj-change' badge variant (emerald) next to 'cj-out' so the
deanonymising change output is visually distinct from an equal-amount
CJ output.
fix(send): keep direct send available with maker
Only block collaborative sends while the maker service is running. Direct sends stay enabled and the form explains why the collaborative toggle is unavailable.
Changelog: Allow direct sends while the maker service is running
docs(dev): explain jm-ng backend workflow
fix(auth): only clear auth on invalid_token 401s
Previously every 401 response cleared the session and logged the user out. jm-ng returns 401 for service-state errors (e.g. POST /tumbler/stop when nothing is running), which should never drop the session. Inspect the WWW-Authenticate header and only clear auth when the server signals ``error="invalid_token"``.
Changelog: Non-auth 401 responses no longer log the user out.
fix(dev): proxy /jmws to the jm-ng HTTPS port
jm-ng serves WebSocket on the same port as the HTTPS API. The `jm-ng:dev` script used to override JMWALLETD_WEBSOCKET_PORT to 32283, but the regtest stack exposes that port without a matching listener, so vite proxied WebSocket upgrades into a dead port and the handshake returned empty. Default the env var to JMWALLETD_API_PORT and drop the override.
Changelog: Fix WebSocket proxying in the local jm-ng dev setup.
fix(dev): correct jm-ng websocket port and proxy targets
Update the README and developer docs to reflect that both ports must be
set when overriding for a custom jm-ng setup.
fix(dev): correct jm-ng websocket port (#1237)
chore(dev): distinct server configs for various backends
* chore(regtest): address jm-ng review comments
---------
Co-authored-by: m0wer <m0wer@sgn.space>
Co-authored-by: Parth Bandwal <143504541+parrth20@users.noreply.github.com>