94 Commits
Author SHA1 Message Date
JeffGandGitHub d57a883e53 Implement iOS NSE notifications and Android push token plumbing (#673)
* Add remote push notification plumbing

* Checkpoint notification reliability cleanup

* Prepare notification reliability PR

* Fix notification PR review findings

* Address notification review follow-ups

* Clean up failed iOS data migration copies

* Address app resume and migration cleanup review

* Restore coverage for notification review fixes

* Fix App Group migration guard

* Address notification PR review feedback

* Cover notification review edge cases

* Address notification test review feedback

* Address NSE migration and startup retry review

* Use foreground catch-up for notification refresh

* Update whitenoise-rs foreground catch-up dependency

* Cover notification catch-up error paths

* Fix notification review edge cases
2026-05-20 14:47:09 +02:00
JeffGandGitHub 30ab65da28 [codex] Add key package developer controls (#685)
* Add key package developer controls

* Refactor bulk key package deletion hook

* Localize key package d-tag label

* Preserve bulk delete action on refresh failure
2026-05-20 12:21:45 +02:00
Mubarak AuwalandGitHub bc32a14ed9 fix: reset Whitenoise lifecycle after deleting data (#662)
* fix: reset Whitenoise lifecycle after deleting data

* fix: preserve global instance on failed delete

* docs: clarify delete reset recovery

* fix: await delete all data completion

* fix: ignore stale dm group ids

* fix: repair delete data test assertion

* fix: serialize whitenoise initialization

* fix: reset Whitenoise lifecycle after deleting data

* fix: satisfy delete reset CI checks

* test(reset_marker): cover default FlutterSecureStorage.deleteAll fallback

* fix: keep start dm errors visible
2026-05-19 17:29:15 +01:00
9b2d034d2f Add markdown rendering for chat messages (#665)
* Bridge whitenoise-markdown AST through flutter-rust-bridge

Bumps the whitenoise dep to 53fbbdd, which replaces the
`Vec<SerializableToken>` content representation with a
`whitenoise_markdown::Document` (CommonMark + GFM + nostr-extension
AST). Field names `tokens` / `content_tokens` are retained for FFI
continuity as the upstream author signaled.

- rust/src/api/markdown.rs: new module mirroring every AST node
  (Document, Block, Inline, ListItem, ListKind, Alignment,
  CodeBlockKind, AutolinkKind, NostrEntity, NostrHrp, TableCell) as
  FRB-friendly types, with From impls and 24 unit tests.
- rust/src/api/messages.rs: SerializableToken removed; tokens and
  content_tokens retyped to MarkdownDocument.
- rust/src/api/groups.rs: add disappearing_message_secs: None to
  NostrGroupConfigData / NostrGroupDataUpdate (incidental upstream
  change pulled in by the rev bump).
- Regenerated FRB bindings — recursive AST bridged cleanly as Dart
  sealed classes.
- lib/screens/chat_raw_debug_screen.dart: rewrote the token-dump
  section as a recursive AST pretty-printer.
- 12 test fixtures: tokens/contentTokens fixtures retyped.

No new rendering yet — content is still rendered as plain text by
WnMessageBubble; the parsed AST sits unused on ChatMessage until the
renderer lands in the next commit.

* Render markdown in chat message bubbles

Wires the parsed whitenoise_markdown::Document AST through to a new
WnMarkdownText widget that renders inside ChatMessageBubble.

Renderer (lib/widgets/wn_markdown_text.dart, 480 lines):
- Faithful AST walk: every Block (Paragraph, Heading, ThematicBreak,
  CodeBlock, BlockQuote, List, Table, MathBlock) and every Inline
  (Text, SoftBreak, HardBreak, Code, Emph, Strong, Strikethrough,
  Link, Image, Autolink, Math, NostrMention, NostrUri) renders.
- Task-list checkboxes for ListItem.checked = Some(...).
- Table with per-column alignment, scrolls horizontally on overflow.
- Inline images render as tappable '[image: alt]' text — no
  in-bubble network image loads.
- Math: source rendered as italic monospace (no LaTeX engine).
- URL scheme allow-list: http, https, mailto, nostr, tel. Anything
  else (javascript:, data:, file:, ...) gets no tap recognizer.
- Highlight-query support: per-inline substring matching merged with
  AST rendering, so search results show both markdown formatting and
  highlight backgrounds in the same view.
- HookWidget manages TapGestureRecognizer lifetimes via useRef +
  useEffect cleanup (no StatefulWidget).

Integration (lib/widgets/wn_message_bubble.dart, chat_message_bubble.dart):
- New `document` parameter on WnMessageBubble; `onLinkTap` /
  `onNostrTap` callbacks.
- Plain-text fast path: when the document is empty, or is a single
  Paragraph whose inlines are only Text/SoftBreak/HardBreak, the
  existing Text widget is used — plain messages render byte-identically
  to before, preserving the inline-timestamp layout in _TextWithTimestamp.
- Formatted messages route through WnMarkdownText; timestamp moves to
  its own row below the content.
- Deleted messages ignore the document.
- ChatMessageBubble provides default tap handlers using url_launcher
  (LaunchMode.externalApplication), guarded by isSafeMarkdownUrl.

Tests:
- test/widgets/wn_markdown_text_test.dart (51 widget tests) covers
  every Block and Inline variant, URL safety, highlight merging,
  maxLines truncation, empty / edge cases.
- test/widgets/wn_message_bubble_test.dart: 8 new tests for the
  plain-text / markdown routing and callback wiring.
- test/widgets/chat_message_bubble_test.dart: 3 new tests verifying
  url_launcher integration (safe URL launches externally, javascript:
  is silently dropped, nostr: URIs launch).
- All 4487 tests pass. Coverage: 99.04%.

Known limitations (worth surfacing in QA):
- Chat-list previews, reply quotes, and notifications still render
  the raw message string — markdown syntax characters will appear
  as literal text in those surfaces. This matches what most chat
  apps do and Whitenoise gives us plain content there anyway.
- Multi-block markdown messages move the timestamp to its own row;
  plain-text and single-formatted-paragraph messages keep the inline
  timestamp behavior.

* Render SoftBreak as newline so user-typed line breaks survive

The CommonMark default for SoftBreak is a space, which is fine on the
web where authors hard-wrap source for readability and expect rendering
to reflow. In a chat composer every Enter press produces an in-paragraph
newline, which the parser emits as SoftBreak — so the default would
collapse multi-line messages into one long visual line.

This matches what every chat app does (Slack, Telegram, Discord,
iMessage all map SoftBreak → newline). HardBreak already mapped to
newline; the two now share an arm.

The image-alt flattening helper (_flattenInlines) still emits a space
for SoftBreak — alt text shouldn't carry hard line breaks.

* Render @npub mentions as underlined display name

Per Vlad's design call: Nostr npub mentions should appear as the
mentioned user's display name with an underline, not as a chip and not
in link-blue. Other Nostr HRPs (note/nevent/nprofile/naddr/nrelay)
still render with the link-style fallback since they point to events,
not people.

- WnMarkdownText: new `mentionDisplayName: String? Function(String hexPubkey)?`
  callback. For each npub mention/URI the renderer decodes the bech32
  to a hex pubkey via hexFromNpub() and asks the caller for a display
  name. If resolved → '@DisplayName'. If unresolved or callback absent
  → '@npub1abcdefgh…wxyz' truncated fallback. Style is the surrounding
  text's color with TextDecoration.underline — mentions inherit the
  bubble text color rather than the link color.
- Plumbed through WnMessageBubble and ChatMessageBubble as a single
  optional param at each layer; ChatScreen wires it to its existing
  `presentName(getAuthorMetadata(hex))` cache. Mentions of message
  authors resolve immediately; mentions of users not yet in the
  metadata cache fall back to truncation until metadata loads (a
  later follow-up can subscribe to mentioned pubkeys).
- 3 new widget tests: resolved name, empty-name fallback, no-callback
  fallback. 55 markdown tests pass. Coverage 99.03%.

* Plumb mentionDisplayName into the long-press action menu

When a user long-presses a message, the action menu re-renders the
bubble inside MessageActionsModal — a separate widget tree from the
chat list. The mentionDisplayName callback was not being forwarded to
that re-render, so @mentions fell back to truncated npubs in the
preview while showing resolved names in the main chat. Wire it through
MessageActionsScreen \u2192 MessageActionsModal \u2192 ChatMessageBubble.

* Bump whitenoise-rs to 7577289f (bare-npub parsing)

Picks up two commits on the markdown PR since 53fbbdd:

  c4ef3d99  address review feedback
              \u2014 cosmetic-only: drops `#[cfg(feature = "serde")]`
              gating (serde derives now unconditional), removes doc
              references to deleted PLAN.md, internal scanner refactor.
              Database path switches from re-deriving the AST on read
              to reading from a persisted `content_tokens` column \u2014
              same observable behavior at the FFI boundary.

  7577289f  bare npubs should also parse
              \u2014 the parser now recognizes bare `npub1\u2026` strings as
              `Inline::NostrMention` (previously only `@npub1\u2026` and
              `nostr:npub1\u2026` worked). Restricted to the `npub` HRP
              to avoid false positives on prose starting with
              `note1\u2026` / `nevent1\u2026`. No AST shape change.

No bridge or renderer changes needed: our existing NostrMention/Npub
path with the mentionDisplayName callback handles the new shape
identically.

* Bump whitenoise-rs to f421a8ad (fix nested-blockquote misparse)

Single fast-forward commit on the markdown PR:

  f421a8ad  fix bug with inner quotes inside quotes
              \u2014 trailing paragraphs after a blank \`> >\` line inside
              a nested blockquote were escaping to the document root.
              Verified by re-running the local AST dump on the user's
              repro input: 'Trailing paragraph in inner quote.' now
              sits as the third child of the inner BlockQuote, not as
              document.blocks[0].

No FFI shape changes; bridge regen is format-noise only (handled by
dart format).

* Tapping an @npub mention opens the user's profile in a shade

Per Vlad's design call. Previously, tapping a mention launched a
nostr:<bech32> URI externally; that bounced users out to the OS and
felt out of place inside a chat.

New flow:
- chat_message_bubble: when the renderer reports an Npub tap, decode
  bech32 to hex and open UserProfileShade in-app. Non-npub Nostr URIs
  (note/nevent/nprofile/naddr/nrelay) keep the external launchUrl
  behavior \u2014 those point to events, not people.
- lib/screens/user_profile_shade.dart: new HookConsumerWidget pushed
  via PageRouteBuilder with an opaque:false barrier. Wraps
  WnUserProfileCard inside a WnSlate. Header navigates back with
  Navigator.pop. For non-self users, a 'Start chat' button pops the
  shade and routes to StartChatScreen. Copy actions surface as
  SnackBars.
- The shade drops input focus before opening (mirrors what chat_screen
  does before MessageActionsScreen.show). Without this the chat list
  snaps to the bottom on dismiss because the keyboard reappears and
  resizes the viewport.
- 7 new shade tests cover: card rendered, button shown/hidden by
  isSelf, copy and copy-error snackbars, header dismiss, and the
  start-chat button popping then routing via a stub GoRouter.
- Updated chat_message_bubble tests: the npub tap test now asserts
  launchUrl is NOT called; a new test exercises the non-npub
  external-launch fallback.

4498 tests pass. Coverage 99.03%.

* Bump whitenoise-rs to 935683af (bare-URL autolinks + longer bech32)

Two fast-forward commits from f421a8ad:

  dbd595b3  nostr bech32 are not limited to 90ch
              \u2014 lifts the bech32 length cap from BIP-173's 90 to 1024
              per NIP-19, which explicitly waives 90 for TLV-encoded
              nevent / naddr / nprofile entities with multiple relay hints.
              Pure parser change.

  935683af  add better bare-url parsing for whitenoise, http, https, tel, mailto
              \u2014 bare URLs now parse as Inline::Autolink for the schemes
              http://, https://, mailto:, tel:, whitenoise://, and
              whitenoise-staging://. Trailing punctuation excluded.
              The opaque form 'whitenoise:foo' (no //) stays literal.

No AST shape change. Bare URLs flow through our existing autolink path.
Bridge regen is format-noise only.

Note: my URL allow-list in wn_markdown_text.dart includes http, https,
mailto, nostr, tel but not whitenoise(-staging). Bare whitenoise://
links will render styled but tap is a no-op until that's extended.

* Restyle @npub mentions: user color, bold, no @ prefix

Per the latest design call (Vlad). Mentions now render with three
properties:

- No '@' prefix.
- Bold (FontWeight.w700).
- Color seeded from the pubkey via AvatarColor.fromPubkey() \u2014 same
  palette the bubble already uses for sender names, so a mention of
  someone reads in the same hue as their own messages in a group.

Underline is dropped \u2014 color + bold is the new mention affordance.

When hexFromNpub fails to decode (malformed bech32), the mention falls
back to its surrounding text color so it stays bold but doesn't pretend
to identify someone.

Tests updated: drop '@' from expected strings, replace underline
assertions with FontWeight.w700 + per-pubkey color.

* Bump whitenoise-rs to bb717d1c (content_tokens backfill migration)

Two fast-forward commits from 935683af:

  6fae0178  fix stale comment
  bb717d1c  backfill migration to reparse content_tokens with markdown parser

The migration adds m0044_reparse_content_tokens.rs in the whitenoise
crate. It runs once at app init and reparses any persisted
content_tokens rows whose stored AST is older than the current parser
(necessary now that the AST is persisted instead of re-derived on each
read). All internal to whitenoise; no FFI surface change.

The only types.rs touch is a doc-comment update on
ChatMessage::content_tokens, removing the now-stale 'never persisted'
sentence.

* bump + just regenerate

* Address review: rename MarkdownText, honor list 'tight' flag, stable test keys

Three findings from PR review:

1. Drop the 'Wn' prefix on MarkdownText.
   Per CLAUDE.md, the 'Wn'/'wn_' prefix is for design-system widgets
   that are presentational only and make no Rust API calls. This
   widget calls hexFromNpub (Rust) for mention decoding, so it doesn't
   belong in the design-system namespace.
   - Renamed class WnMarkdownText -> MarkdownText.
   - Renamed file lib/widgets/wn_markdown_text.dart -> markdown_text.dart.
   - Renamed test file accordingly.
   - Updated imports in chat_message_bubble, wn_message_bubble, and
     both test files (66 references in total).

2. Honor MarkdownBlock_List.tight.
   The renderer previously destructured only kind and items and used a
   fixed 4.h gap between list items, ignoring the tight flag the
   parser emits. Now forwards tight to _buildList and picks a smaller
   inter-item gap (2.h) for tight lists vs a larger one (8.h) for
   loose lists, matching CommonMark semantics.

3. Stable keys on task-list checkbox icons.
   The two task-list rendering tests were keying off Icons.check_box
   and Icons.check_box_outline_blank via find.byIcon, which is fragile
   if the underlying Icon ever changes. Added Key('check_box') and
   Key('check_box_outline_blank') to the renderer's checkbox Icon and
   switched the tests to find.byKey.

All 4536 Flutter + 75 Rust tests pass. Coverage 99.05%.

* Tap-to-open whitenoise:// links; unify mention/profile UI under Start Chat shade

- Allow whitenoise:// and whitenoise-staging:// in markdown_text safe schemes
  so taps on the Rust-emitted autolinks dispatch to the bubble handler.
- whitenoise://chat/<id> routes through GoRouter; whitenoise://user/<npub>
  and bare @npub mentions now open the Start New Chat menu as a shade.
- Show a localized error dialog when a whitenoise:// URL fails to parse.
- Make StartChatScreen shade-capable (transparent scaffold, scrollable
  content) and remove the now-redundant UserProfileShade.

Co-authored-by: nvk <797193+nvk@users.noreply.github.com>

* Add @mention picker with rich input and npub display resolution

- Typing `@` in a group chat opens a member picker driven by useGroupMembers;
  selecting an entry inserts a styled `@DisplayName` token in the input.
- MentionTextEditingController tracks mention spans, renders them in the
  primary color via buildTextSpan, and exposes `messageText` so the wire
  representation is the bare `@npub1...` form regardless of how it's
  displayed.
- Bare `@npub1...` strings typed or pasted into the input are auto-tracked:
  if a name resolver is wired, they show as `@DisplayName`; otherwise they
  truncate to `@npub1abcdefgh…wxyz` matching the receiver bubble.
- chat_screen wires the resolver from getAuthorMetadata so mentions of users
  outside the current group still display by name when we know them, while
  the picker stays group-only.
- useChatInput now uses MentionTextEditingController and saves
  controller.messageText to drafts.

Adapted from PR #659 (rich message rendering / mentions); the receiver-side
markdown path on this branch already handles NostrMention inlines so no
bubble changes were needed.

Co-authored-by: erskingardner <202880+erskingardner@users.noreply.github.com>

* fix jumpy cursor bug

* coderabbit

* strikethrough

* render in reply content block thing

* fmt

* carrots for our rabbit, including THE GOLDEN CARROT

* tests: cover mention-controller branches and bubble truncation path

Restores coverage above the 99% gate after the markdown/mention/timestamp
fixes. New cases:

- insertMention shifts a later tracked mention via _TrackedMention.shift
- buildTextSpan emits a leading text segment before a mention span
- setMentionTargets snaps the cursor when it sat mid-URI
- setMentionTargets handles a known URI that sits past existing text
- _shiftMentions shifts a mention past a prefix insertion
- _replaceBareNpubs preserves and remaps a later mention via
  _shiftPastReplacements when a bare npub is inserted before it
- IME composing-at-mention-boundary preservation + the non-composing
  drop control case
- A tight finite-height truncation path for _TextWithTimestamp

* fix: synchronous recognizer disposal + permissive mention boundaries

Markdown link/nostr recognizers were being torn down via
addPostFrameCallback. If the widget was removed before the next frame
(Navigator.pop during scroll, hot reload, fast list rebuild), the
callback still ran but no longer had a clean owner. Switch to disposing
the previous frame's recognizers synchronously at the start of build,
before assigning the new list. Unmount cleanup via useEffect stays.

Add a testWidgets that mounts a MarkdownText with a link, tears the
subtree down, pumps a follow-up frame, and asserts no exception is
thrown. Use Flutter's experimentalLeakTesting + leak_tracker so any
leaked TapGestureRecognizer surfaces a test failure.

Also:
- _isMentionBoundary now accepts sentence punctuation (. , ; : ! ? ) ])
  so '@npub1...!' / '@npub1...,' auto-truncate the way the Rust parser
  already permits.
- markdown_text's display-name resolver trims the returned name before
  the empty-check, matching the controller's behavior and dropping
  whitespace-only resolutions back to the truncated fallback.

* fix: use theme color for markdown highlight fallback; move mention picker below images

Addresses two review notes:

1. r3261917942 ("Use colors set in theme") — markdown_text.dart:145.
   The default highlightColor was Colors.yellow, a raw Material color
   inconsistent with the rest of the codebase. Fall back to
   context.colors.intentionInfoContent, which matches how
   wn_message_bubble.dart already builds its highlight color when the
   caller doesn't specify one.

2. Mention picker UX — chat_screen.dart. When media attachments are
   present the @-picker was being rendered above the entire input box,
   pushing the image preview down. It now rides along inside the
   attachment area, sitting below the image previews but still above
   the text field. Without media it still appears above the input as
   before. Two new chat-screen tests pin both branches in place,
   asserting the picker's position relative to the media preview and
   the input via getTopLeft / getBottomLeft.

---------

Co-authored-by: nvk <797193+nvk@users.noreply.github.com>
Co-authored-by: erskingardner <202880+erskingardner@users.noreply.github.com>
2026-05-19 17:40:59 +02:00
Javier G. Montoya S.andGitHub 418fca8beb test(integration): add integration test support with basic messaging flow test (#666)
* test(integration): add integration test support with basic messaging flow test

* chore(): add docker-compose file with needed relays for integration tests
2026-05-18 12:03:00 -04:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>josefinalliende
d2fdd3101e chore(deps): bump the flutter-dependencies group with 10 updates (#652)
* chore(deps): bump the flutter-dependencies group with 9 updates

Bumps the flutter-dependencies group with 10 updates:

| Package | From | To |
| --- | --- | --- |
| [build_runner](https://github.com/dart-lang/build) | `2.13.1` | `2.15.0` |
| [flutter_rust_bridge](https://github.com/fzyzcjy/flutter_rust_bridge) | `2.11.1` | `2.12.0` |
| [flutter_secure_storage](https://github.com/mogol/flutter_secure_storage) | `10.0.0` | `10.1.0` |
| [flutter_svg](https://github.com/flutter/packages/tree/main/third_party/packages) | `2.2.4` | `2.3.0` |
| [go_router](https://github.com/flutter/packages/tree/main/packages) | `17.2.2` | `17.2.3` |
| [image_picker](https://github.com/flutter/packages/tree/main/packages/image_picker) | `1.2.1` | `1.2.2` |
| [video_player_platform_interface](https://github.com/flutter/packages/tree/main/packages/video_player) | `6.6.0` | `6.7.0` |
| [widgetbook](https://github.com/widgetbook/widgetbook/tree/main/packages) | `3.22.0` | `3.23.0` |
| [widgetbook_generator](https://github.com/widgetbook/widgetbook/tree/main/packages) | `3.22.0` | `3.23.0` |

Updates `build_runner` from 2.13.1 to 2.15.0
- [Release notes](https://github.com/dart-lang/build/releases)
- [Commits](https://github.com/dart-lang/build/compare/build_runner-v2.13.1...build_runner-v2.15.0)

Updates `flutter_rust_bridge` from 2.11.1 to 2.12.0
- [Release notes](https://github.com/fzyzcjy/flutter_rust_bridge/releases)
- [Changelog](https://github.com/fzyzcjy/flutter_rust_bridge/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fzyzcjy/flutter_rust_bridge/compare/v2.11.1...v2.12.0)

Updates `flutter_secure_storage` from 10.0.0 to 10.1.0
- [Release notes](https://github.com/mogol/flutter_secure_storage/releases)
- [Commits](https://github.com/mogol/flutter_secure_storage/compare/v10.0.0...v10.1.0)

Updates `flutter_svg` from 2.2.4 to 2.3.0
- [Commits](https://github.com/flutter/packages/commits/flutter_svg-v2.3.0/third_party/packages)

Updates `go_router` from 17.2.2 to 17.2.3
- [Commits](https://github.com/flutter/packages/commits/go_router-v17.2.3/packages)

Updates `image_picker` from 1.2.1 to 1.2.2
- [Commits](https://github.com/flutter/packages/commits/image_picker-v1.2.2/packages/image_picker)

Updates `video_player_platform_interface` from 6.6.0 to 6.7.0
- [Commits](https://github.com/flutter/packages/commits/video_player_platform_interface-v6.7.0/packages/video_player)

Updates `widgetbook` from 3.22.0 to 3.23.0
- [Release notes](https://github.com/widgetbook/widgetbook/releases)
- [Commits](https://github.com/widgetbook/widgetbook/commits/widgetbook-v3.23.0/packages)

Updates `widgetbook_generator` from 3.22.0 to 3.23.0
- [Release notes](https://github.com/widgetbook/widgetbook/releases)
- [Commits](https://github.com/widgetbook/widgetbook/commits/widgetbook_generator-v3.23.0/packages)

---
updated-dependencies:
- dependency-name: build_runner
  dependency-version: 2.15.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: flutter-dependencies
- dependency-name: connectivity_plus
  dependency-version: 7.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: flutter-dependencies
- dependency-name: flutter_rust_bridge
  dependency-version: 2.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: flutter-dependencies
- dependency-name: flutter_secure_storage
  dependency-version: 10.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: flutter-dependencies
- dependency-name: flutter_svg
  dependency-version: 2.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: flutter-dependencies
- dependency-name: go_router
  dependency-version: 17.2.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: flutter-dependencies
- dependency-name: image_picker
  dependency-version: 1.2.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: flutter-dependencies
- dependency-name: video_player_platform_interface
  dependency-version: 6.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: flutter-dependencies
- dependency-name: widgetbook
  dependency-version: 3.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: flutter-dependencies
- dependency-name: widgetbook_generator
  dependency-version: 3.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: flutter-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: upgrade rust bridge for rust side too

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: josefinalliende <mariajosefinaalliende@gmail.com>
2026-05-16 00:36:30 -04:00
PepiandGitHub 594f58aa78 Leave group from chatlist for non-last admins (#638)
* feat: add self demote to bridge

* feat: add leave warnings translations

* feat: add admin demote logic to leave hook

* feat: handle admin leave from chat list

* docs: update changelog
2026-05-15 11:38:51 -04:00
08d5c44a9b Add Chinese localizations (#647)
* Add Chinese localizations

* Fix Chinese locale selection

* Revert "Fix Chinese locale selection"

This reverts commit fa59dc2df05e90551334622d72b600ccc8f6816e.

* Use zh fallback for Simplified Chinese

* Fix script-specific locale equality

* fix: persist Chinese locale settings

Bump whitenoise-rs to the current ref with Chinese language variants and map zh/zh_Hant through the Rust language bridge.

Co-authored-by: stupidloud <klever1988@protonmail.com>

* fix: preserve system locale scripts

Preserve supported system locale script codes when resolving language settings and rendering the system language label.

---------

Co-authored-by: Jeff Gardner <202880+erskingardner@users.noreply.github.com>
2026-05-13 10:14:57 -04:00
Danny MandGitHub 7f69b3e11e Adopt whitenoise-rs arch-refactor: per-account sessions replace the god object (#649) 2026-05-13 11:05:48 +02:00
Danny MandGitHub 8135cbe1e4 fix: load chat summary via point query so archived chats render correctly (#653) 2026-05-12 12:24:25 +02:00
Javier G. Montoya S.andGitHub 9bfd3e5898 feat(rust/api/group_state): expose subscribe_to_group_state stream to dart (#644) 2026-05-11 12:12:26 -04:00
JeffGandGitHub e480f49e9e fix(android): external signer notification recovery (#635)
* Reconcile external signer callbacks on auth lifecycle

* Fix headless external signer notification recovery

* Point whitenoise-rs dependency at merged recovery fix

* Address external signer notification review feedback

* Address notification review follow-ups

* Cover external signer registry fallback paths

* Use developer log in foreground task
2026-05-11 17:21:50 +02:00
Jeff Gardner f77d85db44 chore: prepare v2026.5.7+24 release 2026-05-07 13:46:17 +02:00
bed6630303 Filter blocked users across Flutter messaging surfaces (#623)
* Filter blocked users and fix widgetbook analysis

* Filter blocked users across messaging surfaces

* Guard blocked-user loading windows

* Remove chat list subscription from chat screen and use chat summary  (#633)

* chore: update rust crate

* refactor: move chat summary type to its own rust bridge file

* feat: add get chat summary to rust bridge

* refactor: add use chat summary hook

* feat: add util for shared logig on chat summary dispplay across screens

* refactor: remove chat list suscription from chat screen and replace use chat profile with chat summary

* refactor: use chat summary instead of chat profile in chat info screen

* refactor: use chat summary instead of chat profile in chat invite screen

* refactor: remove use chat profile hook

* Address blocked chat review feedback

* Preserve unread count for blocked chat updates

---------

Co-authored-by: Pepi <mariajosefinaalliende@gmail.com>
2026-05-07 11:07:31 +02:00
JeffGandGitHub 931cec376a [codex] Bump whitenoise-rs master and refresh Android assets (#617)
* Bump whitenoise-rs master and refresh Android assets

* Update version to 2026.5.4

* Use shared group chat flag in chat screen
2026-05-05 17:46:22 +02:00
PepiandGitHub de9ea70804 chore: update rust crate (#608) 2026-04-29 16:24:08 -04:00
PepiandGitHub 2300885c67 Use group capabilities in leave group hook (#600)
* feat: add feature flags provider for leave group

* feat: update leave group locales

* feat: add self remove to chat list chat summary

* feat: adjust use leave group hook to show it only when allowed

* chore: update podfile.lock
2026-04-29 10:08:16 -04:00
Javier G. Montoya S.andGitHub a1312dd9f8 feat(rust): add group_required_proposals method (#590) 2026-04-24 15:38:49 -04:00
PepiandGitHub ca85425958 Replace delete all key packages with delete legacy key packages (#585)
* refactor: rename debug info pill to wn pill

* feat: update rust crate and replace delete all kp with delete legacy kp

* docs: update changelog
2026-04-22 10:28:19 -04:00
PepiandGitHub f67b27dc83 Leave group hook (#571)
* feat: add leave group translations

* feat: add leave group to bridge

* feat: add hook to leave group
2026-04-16 15:13:57 -04:00
Javier G. Montoya S.andGitHub 1abe545f69 feat(rust): add clear_chat, delete_chat and leave_and_delete_group methods (#572) 2026-04-15 13:19:11 -04:00
Mubarak AuwalandGitHub 2cd588272d feat: add block/unblock user Flutter bridge (#554)
* feat: add UserBlockChanged to ChatListUpdateTrigger bridge

* feat: add block/unblock user bridge functions

* chore: regenerate flutter_rust_bridge bindings for mute_list API

* test: enforce exact order in userBlockChanged chat list assertions

* chore: bump whitenoise-rs rev and regenerate bridge bindings

* chore: format generated dart bridge files

* chore: rustfmt generated bridge file

* chore: rebase with master and regenerate bridge bindings

* fix: remove duplicate test function in chat_list
2026-04-14 11:32:43 +01:00
PepiandGitHub 594d817bc6 Refactor default relays urls (#564)
* refactor: move default relays to its own file to avoid repetition

* test: add mock for default relays
2026-04-13 18:58:33 -04:00
JeffGandGitHub 733bc72742 Update whitenoise-rs master ref (#566) 2026-04-13 22:51:56 +02:00
emir yorulmazandGitHub d450a042bb UI Polish: Network & Appearance Screens (#545) 2026-04-11 15:07:41 +03:00
Danny MandGitHub 9e5881bc28 Search 2.0: cross-group message content search in chat list (#557) 2026-04-10 16:50:23 +02:00
Danny MandGitHub 9b0c7b8d3a Remove direct mdk-core dependency in favor of whitenoise re-exports (#559) 2026-04-09 15:06:13 +02:00
Danny MandGitHub a23c1d13b1 Fixes #356: search message content via Rust backend (#494) 2026-04-07 21:39:03 +02:00
fa9112c90b feat: add thumbhash support with blurhash fallback (#549)
* feat: add thumbhash support with blurhash fallback

Bump whitenoise-rs to 0d8024be and mdk-core to fbd3a1be to pick up
thumbhash generation alongside blurhash. Surface the new thumbhash
field through the Flutter Rust bridge, add the thumbhash Dart package,
and replace WnBlurhashPlaceholder with WnMediaPlaceholder that prefers
thumbhash, falls back to blurhash, then a neutral color.

Also wire the new LeftGroup ChatListUpdateTrigger variant from upstream.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* style: fix dart formatting in wn_media_error_placeholder

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* chore: add CLAUDE.md symlink pointing to AGENTS.md

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* test: add thumbhash and leftGroup test coverage

- WnMediaPlaceholder: thumbhash rendering, preference over blurhash,
  invalid thumbhash fallback (already covered)
- WnMediaErrorPlaceholder: thumbhash display, preference over blurhash
- ChatMediaThumbnail: thumbhash placeholder while loading, preference
- ChatMessageMedia: thumbhash placeholder, preference, error state
- MediaImage: thumbhash placeholder, preference, error state,
  removal after fade
- useChatList: leftGroup trigger removes chat, no-op for unknown chat

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: leftGroup trigger keeps chat in list; guard empty hash tags

- leftGroup now updates the chat item in the map (like removedFromGroup)
  instead of removing it, so ChatScreen's isRemovedFromGroup check can
  detect the removal and show the notice/disable input
- Guard thumbhash and blurhash imeta tag emission against empty/whitespace
  strings

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: use trimmed hash values in imeta tag emission

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 09:30:13 +02:00
JeffGandGitHub f1174d9d2f feat: update whitenoise-rs and add MIP-05 push registration bridge (#548) 2026-04-03 03:08:08 -03:00
Danny MandGitHub 4f4eeb6c86 feat: cursor-based pagination for chat messages (closes #122) (#493) 2026-04-02 17:28:55 +02:00
Mubarak AuwalandGitHub f654badd5f feat: expose mute/unmute chat through Flutter bridge (#541)
* feat: expose mute/unmute chat through Flutter bridge

Bridge whitenoise-rs mute_chat, unmute_chat, and mute_forever_timestamp
to Dart via flutter_rust_bridge. Add muted_until to ChatSummary and
ChatMuteChanged trigger for real-time UI updates.

Also fixes pre-existing subscribe_to_group_messages API mismatch
(new limit parameter added upstream).

* test: cover chatMuteChanged trigger in use_chat_list

* make ccoderabbit happy

* feat: expose ChatMuteDuration enum through Flutter bridge

* chore: regenerate freezed code for ChatMuteDuration

* remove MUTE_FOREVER reference from doc comment
2026-03-30 22:14:38 +01:00
PepiandGitHub 3b768d2365 Archive chats (#532)
* feat: add archive translations

* feat: add archive rust bridge methods

* feat: extend use chat list hook to work with archived stream

* feat: add archive/unarchive actions to chat list tile menu

* feat: show archived chats view in chat list screen

* feat: add hook to archive/unarchive by receiving account and group id

* feat: add archive/unarchive option in chat info screens

* docs: udpate changelog

* test: improve coverage
2026-03-27 12:46:09 -03:00
PepiandGitHub ff9dc8e206 Notifications settings screen (#535)
* feat: add disabled style to checkbox when not enabled

* feat: add notifications translations

* feat: add notification settings methods in rust bridge

* feat: add hook to enable and disabel notifications

* feat: add notification settings screen

* feat: show notification option in settings screen for android

* docs: update changelog
2026-03-27 11:25:17 -03:00
Mubarak AuwalandGitHub f1e94ecb23 feat: expose removed_at and RemovedFromGroup trigger in Rust bridge (#536)
Bumps whitenoise-rs to b5c9e8b and regenerates flutter_rust_bridge bindings.

- Add removed_at: Option<DateTime<Utc>> to ChatSummary so the Flutter
  layer can tell when a group membership was revoked by an admin
- Add RemovedFromGroup variant to ChatListUpdateTrigger so real-time
  removal events can be handled distinctly from archive/unarchive
- Regenerate frb_generated.rs, frb_generated.dart, and
  api/chat_list.dart from the updated bridge definition
2026-03-25 18:03:59 +01:00
JeffGandGitHub 4a1674d7ae chore: prepare 2026.3.23+22 release (#529) 2026-03-23 12:36:57 +01:00
Danny MandGitHub ad7062609b feat: prompt users when a newer Zapstore release is available (#506) 2026-03-20 22:45:48 +01:00
PepiandGitHub b030b1c235 chore: update rust crate (#526) 2026-03-20 18:39:28 -03:00
PepiandGitHub 49d04b5489 chore: upgrade rust crate (#525) 2026-03-20 16:15:16 -03:00
JeffGandGitHub 8714625f13 Stream user metadata updates (#522)
* feat: stream user metadata updates

* fix: address review feedback
2026-03-20 17:36:38 +01:00
PepiandGitHub 4c4971a023 chore: update rust crate (#511) 2026-03-17 13:00:58 -03:00
PepiandGitHub a48f45b66b chore: update rust crate (#509) 2026-03-17 11:43:28 -03:00
PepiandGitHub 9d34297b4c chore: update rust crate (#507) 2026-03-14 19:13:18 -03:00
Danny MandGitHub 2bfec517fb feat: add bug report screen with NIP-44 encrypted anonymous reports (#478) 2026-03-14 21:23:21 +01:00
PepiandGitHub 03696d57e9 Debug and relay screens improvements (#502)
* feat: remove app flavor condition for debug view

* chore: remove APP_FLAVOR unused variable

* fix: add and fix some translations

* fix: loading issues on key packages actions

* refactor: move logs provider into a hook

* refactor: use base mock, remove unused relay status logic

* feat: add copy all logs to app logs screen

* docs: update changelog
2026-03-12 10:19:59 -03:00
JeffGandGitHub 2dd6a1ca19 The great relay restoration (#495)
* Update relay tooling and developer settings

* Update whtienoise-rs version

* Fix reviewed relay diagnostics and locale issues
2026-03-11 00:13:08 -03:00
Danny MandGitHub bd71385051 [Fixes #445] feat: implement NIP-C7 reply threading in chat messages (#468) 2026-03-10 15:39:01 +01:00
Danny MandGitHub d2400d78a1 Fix #327: eliminate N+1 query in useGroups via visible_groups_with_info (#481) 2026-03-09 19:32:22 +01:00
JeffGandGitHub ffe3e87d16 chore: bump whitenoise-rs to 0.2.1 and prep 2026.3.5 release (#450)
* chore: bump whitenoise-rs to 0.2.1 for 2026.3.5 release

* chore: sync widgetbook lockfile with app version

* fix: export iOS deployment target for Rust iOS build

* chore: align changelog release key with app version

* chore: drop build suffix from changelog release key
2026-03-05 19:38:34 +01:00
JeffGandGitHub 0793026b52 chore: bump whitenoise-rs to 0.2.0 and align mdk rev (#444) 2026-03-05 16:04:28 +01:00