Skip to content

stack/getpaid 2 64 btcpay completeness - #232

Draft
BullishNode wants to merge 2 commits into
stack/getpaid-2-63-connect-and-copyfrom
stack/getpaid-2-64-btcpay-completeness
Draft

stack/getpaid 2 64 btcpay completeness#232
BullishNode wants to merge 2 commits into
stack/getpaid-2-63-connect-and-copyfrom
stack/getpaid-2-64-btcpay-completeness

Conversation

@BullishNode

Copy link
Copy Markdown
Owner

Stack created with GitHub Stacks CLIGive Feedback 💬

Recovery asks for the same network-specific posture initial BTCPay pairing
applies (Bitcoin auto-sweep off, Liquid on) through the if-missing defaults
write, so a behavior the wallet already records survives recovery. The
manifest carries no behavior flags, so those defaults are all the restore
path has in hand.

Filling the two switches independently could still pair a recorded
hide-on-home with a default auto-sweep of off — the combination the
auto-sweep / hide-on-home rule exists to refuse. The filled pair now goes
through resolveWalletBehaviorChange, so a restored hidden wallet whose
auto-sweep lands off comes back visible, and a deliberate toggle afterwards
still changes and persists.

Closes #135
BTCPay's settings screen rendered its own ungated hide-on-home switch, so a
tap the repository rule refuses looked accepted until the reload put the old
value back with no explanation.

Extract the switch pair the shared Get Paid card grew in #159 into
WalletBehaviorSwitches, which owns the coupling gate and the one copy stating
what hiding depends on, and render both surfaces through it. Each surface
keeps its own labels; neither can state the rule differently. BTCPay's
optimistic update now resolves the requested toggle the way the write will,
so turning auto-sweep off unhides in place rather than on the next load.

Closes #162
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.

2 participants