feat(zap): move instant-zap config into the zap sheet's Edit Presets#399
Open
dmnyc wants to merge 1 commit into
Open
feat(zap): move instant-zap config into the zap sheet's Edit Presets#399dmnyc wants to merge 1 commit into
dmnyc wants to merge 1 commit into
Conversation
Instant-zap setup was buried in Settings → Interface. Relocate it to the zap sheet where it's used, matching the Android layout: - ZapSheet instantZapRow now shows the configured amount + message and a "configure in Presets" caption when enabled; the bolt tints accent when on. - EditPresetsSheet gains an "Instant zaps" toggle and a per-preset leading selector (checkmark.circle.fill / circle) enabled only when the toggle is on. Done persists quickZapEnabled + the selected preset's amount (clamped 1–10,000 sats) and message. Deleting the selected row reselects the first. - Remove the instant-zap block from InterfaceSettingsView; the Currency (fiat mode) section is unaffected. Instant-zap settings remain device-local per account; NIP-78 cross-device sync stays deferred (#70).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Instant-zap setup was buried in Settings → Interface, easy to miss. Move it into the zap sheet — where it's actually used.
ZapSheetinstant-zap row — when enabled, shows the configured amount + message and a "configure in Presets" caption; the bolt icon tints accent when on.EditPresetsSheet— adds an "Instant zaps" toggle ("Instant payments" in fiat mode) with the caption "Long-press the bolt to send the selected preset instantly," plus a per-preset leading selector (checkmark.circle.fill/circle) enabled only while the toggle is on. Done persistsquickZapEnabled+ the selected preset's amount (clamped 1–10,000 sats) and message. Deleting the selected row reselects the first.InterfaceSettingsView— the instant-zap block is removed. The Currency (fiat mode) section is untouched.Fiat mode is unaffected — it stays in Settings as an app-wide units toggle. Default stays off; long-press instant zap fires the configured amount, unchanged.
Scope notes
quickZapAmountFiat), which is no longer editable in this UI. Fiat-mode instant-zap handling will be addressed in a follow-up — out of scope here.Screenshots
Test plan
Follow-up