Commit Graph
14970 Commits
Author SHA1 Message Date
Vitor PamplonaandGitHub c6ac3bebed Merge pull request #3197 from davotoula/fix/relay-log-diagnostics
Make relay failure logs diagnosable (exception class on null message, correct NIP-11 error label)
2026-06-12 13:42:31 -04:00
David KasparandGitHub 83a32c685a Merge pull request #3198 from vitorpamplona/l10n_crowdin_translations
New Crowdin Translations
2026-06-12 19:41:42 +02:00
Crowdin Bot 7f0a902ece New Crowdin translations by GitHub Action 2026-06-12 17:37:46 +00:00
David KasparandGitHub efe23db553 Merge pull request #3195 from vitorpamplona/l10n_crowdin_translations
New Crowdin Translations
2026-06-12 19:35:45 +02:00
Vitor PamplonaandGitHub e0e21f4562 Merge pull request #3192 from vitorpamplona/claude/eager-ptolemy-rwso2r
Add NIP-89 app recommendation management UI
2026-06-12 13:33:38 -04:00
davotoula d2f0b717ba Code review:
- apply exception-class fallback to connect() too
- dedup message construction
2026-06-12 19:30:09 +02:00
davotoula 16e5ddbc5f fix(amethyst): report NIP-11 fetch failures as FAIL_TO_REACH_SERVER 2026-06-12 19:30:09 +02:00
davotoula 91a003d72d fix(quartz): include exception class in relay failure logs when message is null 2026-06-12 19:30:09 +02:00
Crowdin Bot bd8f4cdb48 New Crowdin translations by GitHub Action 2026-06-12 17:23:00 +00:00
Claude 24ef184de5 fix: start the app recommendations flow eagerly to pin notes in the soft cache
With WhileSubscribed, nothing held a strong reference to my own 31989
notes while no UI was collecting; under memory pressure the soft cache
could drop them, and the next recommendApp would rebuild that kind's
event from an empty snapshot, wiping previously recommended apps.
Eagerly keeps the observer registered (its result set strongly
references the notes), matching the sibling account states.

https://claude.ai/code/session_015dX5vWqvXUYD8rzPYX8vTB
2026-06-12 17:22:57 +00:00
Vitor PamplonaandGitHub 5d1e9d3a6e Merge pull request #3194 from vitorpamplona/claude/vibrant-feynman-awdqs4
Exclude metadata tags from text search
2026-06-12 13:21:11 -04:00
Claude ac7f55eb3e refactor: extract NIP-89 recommendation logic into AppRecommendationsState
Follows the Account state-class convention (InterestSetsState et al.):
the observed flow, the publish mutex, and recommendApp/unrecommendApp
now live in model/nip89AppHandlers/AppRecommendationsState, publishing
through account.sendMyPublicAndPrivateOutbox. Account just links it as
val appRecommendations = AppRecommendationsState(signer, cache, scope).

https://claude.ai/code/session_015dX5vWqvXUYD8rzPYX8vTB
2026-06-12 15:40:15 +00:00
Claude 5263e3b1d9 fix: exclude p, e, a, and alt tags from note text search matching
Their values are ids or descriptions of other events, not content of
the event itself, so they shouldn't make an event match a text search.

https://claude.ai/code/session_01YMs6aXuvs5NaYjzyPH6Zqj
2026-06-12 15:37:16 +00:00
Vitor PamplonaandGitHub ee95312700 Merge pull request #3193 from vitorpamplona/claude/nifty-brown-egcooi
Add --payer-data flag to offer request command
2026-06-12 11:30:20 -04:00
Claude cbe4b030e1 refactor: expose my 31989s as a LocalCache-observed StateFlow on Account
Account.myAppRecommendations is now LocalCache.observeEvents (indexed
kind+author filter) stated in the account scope, seeded with a
synchronous scan so the editor's first frame still sorts correctly.
The editor and the Recommend button collect it instead of rescanning
the cache on every newEventBundles emission; isAppRecommended is gone.
The synchronous scan stays only as the seed and for the mutex-guarded
read-modify-write publishers, which must read current cache truth.

https://claude.ai/code/session_015dX5vWqvXUYD8rzPYX8vTB
2026-06-12 15:29:30 +00:00
Claude 18c21ad51b feat(cli): add --payer-data to amy offer request
Offers can be configured (via nmanage / ShockWallet) to require payer
fields; Lightning.Pub rejects requests missing them with the misleading
"Invalid Offer" (code 1) reply. A flag to attach payer_data makes such
offers testable from the CLI.

https://claude.ai/code/session_01Fh7MRv8477pJiAJZ7yF87r
2026-06-12 15:18:45 +00:00
Claude eed490f579 fix: open app definitions by address instead of version event id
Clicking an app in the recommendations editor (or any 31990 link)
navigated to Route.Note(event.id) — the per-id version note, which the
soft cache evicts and relays can't serve for replaceables — leaving the
thread stuck on 'Event is loading or can't be found'. Route by
addressTag() like the generic AddressableEvent branch already does.

https://claude.ai/code/session_015dX5vWqvXUYD8rzPYX8vTB
2026-06-12 15:08:42 +00:00
Claude 7f39a18a02 fix: exclude client tag from note text search matching
Searching for an app name (e.g. "Amethyst") was returning every event
published through that client, because the local-cache note search
matched the search term against all tag values including the NIP-89
["client", ...] tag. Skip the client tag when matching tag values in
findNotesStartingWith.

https://claude.ai/code/session_01YMs6aXuvs5NaYjzyPH6Zqj
2026-06-12 15:07:13 +00:00
Vitor PamplonaandGitHub 1927ce1ef0 Merge pull request #3191 from vitorpamplona/claude/elegant-allen-9mt4he
Unify payment card UI with PaymentCard component
2026-06-12 10:59:49 -04:00
David KasparandGitHub f161cfce77 Merge pull request #3190 from vitorpamplona/l10n_crowdin_translations
New Crowdin Translations
2026-06-12 16:56:31 +02:00
Claude 4b47da9c5d feat: 'by author' chip on app items + stable scroll on return to the editor
- New ByAuthorChip ('by <picture> <name>' pill, tappable to the profile,
  with the following-checkmark overlay on the picture) shown under the
  app name in the recommendations editor rows and on the app definition
  card, so apps from known authors are distinguishable from impersonators.
- The editor's ordering pins now initialize from cached data instead of
  empty sets, so the first frame after returning from an item sorts the
  same as before leaving; previously the restored scroll anchor jumped
  down the list when the recommended/follows tiers kicked in.

https://claude.ai/code/session_015dX5vWqvXUYD8rzPYX8vTB
2026-06-12 14:44:05 +00:00
Crowdin Bot 061da30553 New Crowdin translations by GitHub Action 2026-06-12 13:33:32 +00:00
Vitor PamplonaandGitHub b37e62cd62 Merge pull request #3186 from nrobi144/feat/unhealthy-relay-review
feat(desktop): unhealthy-relay review banner + popup
2026-06-12 09:31:34 -04:00
Claude 7605a5659a revert: drop the kind 31989 search result collapsing
Restores SearchBarViewModel to return search results unmodified.

https://claude.ai/code/session_015dX5vWqvXUYD8rzPYX8vTB
2026-06-12 13:28:38 +00:00
Vitor PamplonaandGitHub da8dca29d7 Merge pull request #3188 from davotoula/feat/onchain-failure-translations
Localize onchain zap send UI and failure messages
2026-06-12 09:20:18 -04:00
davotoula a593ec35f4 Code review:
- Account.kt: collapse three identical backend-not-configured Failure
  constructions into one helper
- OnchainZapSendError: declare causeIsUserFacing on the enum so the
  sender owns which failures carry a human-readable cause, instead of
  the UI mapper hardcoding the list
- SendPaymentScreen: fee chip label is now a single format resource
  instead of manual string concatenation
2026-06-12 14:05:12 +02:00
davotoula 97f9cca43e feat(l10n): localize onchain zap send dialog and failure messages 2026-06-12 14:04:55 +02:00
davotoula 7265a9da36 refactor: extract duplicated string literals into constants (sonar) 2026-06-12 14:04:47 +02:00
David KasparandGitHub 078ceac846 Merge pull request #3187 from vitorpamplona/l10n_crowdin_translations
New Crowdin Translations
2026-06-12 10:22:48 +02:00
Crowdin Bot bbd039cd74 New Crowdin translations by GitHub Action 2026-06-12 08:21:53 +00:00
davotoulaandClaude Fable 5 5bfe20b673 feat: add cs, de, sv, pt-BR translations for CLINK, Send Payment, workouts, and pin strings
Source-identical values (Cashu, Lightning, On-chain, and per-locale
loanwords like Meditation/Yoga/Workouts in de) are intentionally left
to the English fallback since Crowdin strips them on export anyway.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 10:16:11 +02:00
nrobi144 a46a72a89f feat(desktop): unhealthy-relay review banner + popup
Surfaces relays unresponsive for 7+ days across the user's NIP-65 (10002),
DM (10050), and Search (10007) relay lists. A non-modal banner appears
above feed columns (and above the single-pane content) whenever the
classifier finds anything; tapping it opens an anchored Popup with one
row per unhealthy relay and per-row Remove / Open Dashboard / Snooze 7d
actions plus a banner-level "Snooze all 7d".

Quartz
- RelayStat gains best-effort lastConnectAt + lastIncomingAt timestamps
  (epoch seconds, 0 = never observed). RelayStats listener pushes them
  on onConnected / onIncomingMessage. Durable per-relay history lives
  outside quartz in the commons RelayHealthStore.

Commons (new commons/relays/health/ package)
- classifyRelayHealth() pure function with the v1 gates:
  * first-run grace (don't flag for 7d after firstScanAt)
  * offline grace (don't flag if no relay anywhere has responded)
  * Tor-mode skip (relay timing is intentionally lossy through Tor)
  * per-relay snooze (snoozedUntil > now)
  * 10006 (blocked) excluded from detection but still part of the
    multi-list Remove action
- RelayHealthStore (account-scoped, supervised scope, 5s debounced
  persist, 60s ticker for snooze expiry).
- RelayHealthListener wires the quartz lifecycle into the store.
- RelayHealthPersistence interface (no expect/actual — single impl per
  platform via injection).
- RelayListMutator interface + RelayRemovalResult sealed type.
- Shared UnhealthyRelayBanner (errorContainer @ 50% alpha) and
  UnhealthyRelayRow (static outlined tag chips, no ripple) composables.
- 8 classifier unit tests covering each gate + multi-list membership.

Desktop wiring
- PreferencesRelayHealthPersistence (java.util.prefs.Preferences, per
  account via 8-char pubkey prefix).
- DesktopRelayListMutator runs the 4 sign-and-broadcast jobs in
  parallel via async/awaitAll so a slow NIP-46 bunker doesn't multiply
  latency by 4.
- Banner placed in DeckColumnContainer + SinglePaneLayout, store +
  listener + per-account scan trigger wired in Main.kt's MainContent.

Scope: Desktop only for v1. Android wiring is intentionally not in
this PR — the commons module is platform-neutral and ready for Android
to follow whenever someone wants to pick it up.
2026-06-12 06:40:46 +03:00
Claude ae993068aa fix: NIP-89 UI polish — chip alignment, compact button, list quality, 31989 rendering and search dedup
- App card: '+n' kinds overflow is now a chip with the same metrics as
  KindChip so it centers with the others; Recommend button is compact
  (32dp), sits flush with the banner's right edge, and gains breathing
  room below the cover.
- Recommendations editor: hides unnamed kind 31990 events (kept only if
  already recommended) and only opens an EventFinder subscription for
  rows whose definition isn't in cache yet, so the list stops filling
  with 'Unnamed app' rows that never resolve.
- Editor ordering: the follow list is now collected as it loads (it was
  snapshotted once at screen entry, so the follows tier was empty when
  the screen opened before kind 3 loaded) and freezes on first edit like
  the recommended tier.
- NoteCompose/ThreadFeedView: render kind 31989 as a 'Recommended apps'
  card with the target kind chip and tappable app chips.
- Search: collapse the per-kind 31989 fan-out to the newest event per
  author so one user's recommendations don't flood the results.

https://claude.ai/code/session_015dX5vWqvXUYD8rzPYX8vTB
2026-06-12 00:52:43 +00:00
Claude 275c53ad7b feat: modernize inline payment cards and surface their descriptions
Redesign the three payment cards rendered in the middle of a post
(Lightning invoice, CLINK Offer, Cashu token) around a shared PaymentCard
scaffold that follows the wallet screens' Material3 idiom: tonal card,
icon + label header with a copy action, centered headline amount, and a
full-width themed Pay/Redeem button (no more hardcoded white text or
7sp mint lines).

Descriptions were not being rendered at all:
- BOLT-11: LnInvoiceUtil only decoded the amount from the HRP. Add
  tagged-field parsing (description 'd', expiry 'x', timestamp) with
  BOLT-11 spec-vector tests; the invoice card now shows the memo and
  flags expired invoices (Pay disabled). Desktop card shows it too.
- Cashu: V3 'memo'/'unit' and V4 'd'/'u' were parsed then dropped.
  CashuToken now carries them; the card shows the memo and no longer
  mislabels non-sat units (usd/eur cents formatted as decimals).
- CLINK Offers: the card now shows who gets paid (avatar + name from
  the pointer's pubkey, tappable to the profile).

https://claude.ai/code/session_019VuZ4y3ij6Ly4VVExE1W1W
2026-06-12 00:05:30 +00:00
Claude c3f59a92ba feat: tiered ordering for the app recommendations editor
Sort the management list as: my recommended apps, then apps authored
by my follows, then the rest (most recent first within each tier).
The ordering snapshot freezes at the first toggle so rows don't jump
mid-edit; deselected apps stay in place until the screen is reopened.

https://claude.ai/code/session_015dX5vWqvXUYD8rzPYX8vTB
2026-06-11 23:59:52 +00:00
Claude 38b16f0328 feat: editable NIP-89 app recommendations on profile + richer app cards
- Profile 'Apps' section now mirrors the Badges component: header with
  count and a Settings icon (own profile only) that opens a new
  management screen at Route.ProfileAppRecommendations.
- New ProfileAppRecommendationsScreen lists known kind 31990 app
  definitions (recommended first) with toggles that publish/remove the
  per-kind 31989 recommendation events, backed by a new relay
  subscription for the user's 31989s and recent 31990 candidates.
- Account gains recommendApp/unrecommendApp with mutex-serialized
  read-modify-write per d-tag, mirroring the profile-badges flow.
- Profile recommendations render as logo+name pills instead of bare
  35dp icons; in-post app definition cards now show platform
  availability (web/android/ios), handled event kinds as chips, and a
  Recommend/Recommended button.
- Quartz: AppDefinitionEvent.platformLinks() reader and
  AppRecommendationEvent.buildFromTags() to rebuild a 31989 while
  preserving other apps' tags; round-trip tests included.

https://claude.ai/code/session_015dX5vWqvXUYD8rzPYX8vTB
2026-06-11 23:37:27 +00:00
Vitor PamplonaandGitHub d91988b26b Merge pull request #3185 from vitorpamplona/claude/focused-einstein-6jjqmj
Add unified profile payment screen with multi-rail support
2026-06-11 19:14:43 -04:00
Claude 98d8a73337 fix(profile): move the payment rail chips below the identity claims
The chip row now renders after the website link and external identities
(GitHub/Twitter/etc.) instead of between NIP-05 and the website.
2026-06-11 23:07:05 +00:00
Claude 86cd1315c2 fix(profile): equalize wrapped-row spacing across all Send Payment chip groups
Pay from, zap receipt, amount preset, and on-chain fee chips wrap with
the same 8dp row gap as the Receive-on pills. Material chips reserve a
48dp interactive height around their 32dp visual, inflating wrapped-row
gaps to ~24dp; the new shared ChipFlowRow drops that enforcement inside
the chip groups so the spacing matches.
2026-06-11 23:05:39 +00:00
Claude a311ffec22 fix(profile): wrap spacing on Send Payment chip rows + cashu mark on its chips
- All chip FlowRows on the Send Payment screen (Receive on, Pay from,
  zap types, amount presets, fee tiers) now declare an 8dp vertical
  arrangement so wrapped lines get the same gap as the in-row spacing —
  the custom Receive-on pills had no intrinsic padding and touched when
  the row broke.
- The cashu rail chip and the cashu 'Pay from' wallet chip use the Cashu
  vector mark (tinted with the chip content color) instead of the
  generic wallet symbol.
2026-06-11 22:34:39 +00:00
Vitor PamplonaandGitHub 1e23b14ff2 Merge pull request #3184 from vitorpamplona/claude/beautiful-turing-j0czsm
Add NIP-101e fitness workout support (Kind 1301)
2026-06-11 18:26:36 -04:00
Claude 5635f89f3a feat(profile): drop Receive-on detail line; long-press chips copy destinations
The detail text under the Send Payment rail selector (e.g. the lightning
address, already visible in the recipient header) is gone. Instead every
chip carries its destination via long-press copy:

- Send Payment 'Receive on' chips copy the lightning address, the
  noffer pointer, the on-chain destination (announced target address or
  the pubkey-derived Taproot address — otherwise invisible), and the
  shared cashu mint URL. The chips are now custom selectable pills since
  M3 FilterChip has no long-press support.
- Profile rail chips gain the same copy values (clink noffer, derived
  taproot address, mint URL) alongside the existing lightning and
  payment-target copies.
- The announced bitcoin address moved from the detail line into the
  on-chain receipt note so it stays visible when it differs from the
  derived address.
2026-06-11 22:15:07 +00:00
Claude dcb6c6a2ba fix(profile): render rail and payment-target chips in one FlowRow
The wallet-rail chips and the NIP-A3 payment-target chips were two
separately padded FlowRows, so the gap between the two rows was about
double the in-row spacing. The target chips now render inside the same
FlowRow as the rail chips, wrapping together with uniform 6dp spacing.
DisplayPaymentTargets is gone; PaymentTargetChip is rendered by
DisplayPaymentRailChips directly.
2026-06-11 22:09:42 +00:00
Claude 1883f1b032 refactor: full-screen NewWorkout route + audit fixes
- Replace the NewWorkoutDialog with a Route.NewWorkout full screen
  (NewGoalScreen pattern: NewWorkoutViewModel + PostingTopBar), which
  also fixes the audit-found race where the dialog closed before the
  signer finished — the screen now pops back only after a successful
  sign/broadcast, keeping external-signer (Amber) flows alive.
- Move template building from Account.sendWorkout into the ViewModel.
- Render workout cards in thread view (ThreadFeedView fall-through gap).
- Snapshot parsed workout tags once per note (remember + WorkoutInfo)
  instead of re-scanning the tag array on every recomposition.
- Fix Double.trimmed() Int overflow on absurd distances.
- Flatten the distance-unit chip layout.

https://claude.ai/code/session_01Kpx53UEeJqqR7CASzMu6GB
2026-06-11 22:09:12 +00:00
David KasparandGitHub 8b9176bc02 Merge pull request #3179 from vitorpamplona/l10n_crowdin_translations
New Crowdin Translations
2026-06-12 00:08:29 +02:00
Claude adb59eb276 fix(profile): tint the cashu chip icon and brighten its purple
The Cashu vector is a monochrome black outline meant to be tinted like a
Material Symbol — with Color.Unspecified it rendered black and vanished
on dark backgrounds. Tint it with the chip color and lift the purple
from 0xFF7E57C2 to 0xFFA855F7 so the chip reads on both themes.
2026-06-11 22:06:43 +00:00
Crowdin Bot 344797ce87 New Crowdin translations by GitHub Action 2026-06-11 22:01:40 +00:00
Claude e7b4f8edbb feat(profile): unified payment rail chips on the profile header
Replaces the lightning-address icon+text row with a chip and completes
the rail set, so every way to pay a profile reads as one chip row:

- Lightning chip shows the lud16 (long-press still copies it) and opens
  the Send Payment screen on the Lightning rail.
- CLINK Offer chip moves into the same row (same look as before).
- New On-chain chip (when the chain backend is configured) and Cashu
  chip (when the logged-in user's cashu wallet shares a mint the
  recipient accepts), each opening their rail on the Send Payment
  screen.
- All four render through a shared ProfilePaymentChip pill that matches
  the NIP-A3 payment-target chips, replacing the old DisplayLNAddress
  row and the one-off clink chip in DrawAdditionalInfo.

https://claude.ai/code/session_01UERRsbDoRPz46Qx5HCXgAa
2026-06-11 21:59:47 +00:00
Vitor PamplonaandGitHub ae17c2378b Merge pull request #3183 from vitorpamplona/claude/friendly-lovelace-aw7vfj
Add pinned chatrooms feature with NIP-78 sync
2026-06-11 17:59:24 -04:00
Claude afa341f2fc fix(profile): rename rail selector label from 'Pay with' to 'Receive on'
The rail chips describe how the recipient receives the funds, not which
wallet pays — that's the 'Pay from' row below.
2026-06-11 21:51:09 +00:00