Commit Graph
4597 Commits
Author SHA1 Message Date
Daniel D’AquinoandGitHub 9d287c7cc7 Merge pull request #3788
Do not filter user's own posts
2026-05-27 16:47:57 -07:00
Daniel D’Aquino fc69dba243 Do not filter user's own posts even if it contains too many hashtags or nsfw tag
Closes: https://github.com/damus-io/damus/issues/3784
Changelog-Fixed: Fixed issue where some of the user's own notes would not show up in their own profile
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-05-27 16:30:39 -07:00
Daniel D’AquinoandGitHub bc3125dd88 Merge pull request #3785 from danieldaquino/daniel-ios-2339-users-sometimes-cannot-see-their-own-posts
Fix issue where users sometimes cannot see their own posts
2026-05-25 18:05:44 -07:00
Daniel D’Aquino c035ceea6f Do not filter user's own posts in home timeline if they do not follow themselves
Closes: #3675
Changelog-Fixed: Fixed an issue where posts would not appear on the user's own timeline if they did not follow themselves
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-05-25 16:59:15 -07:00
Daniel D’AquinoandGitHub 06e4fa2388 Merge pull request #3779 from damus-io/gif_diagnostics
Add detailed diagnostics reporting to GIF keyboard failures
2026-05-25 15:34:45 -07:00
Daniel D’Aquino 0394863c7b Add detailed diagnostics reporting to GIF keyboard failures
Changelog-Added: Added detailed diagnostics reporting to GIF keyboard errors
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-05-25 13:04:53 -07:00
cbae70336d fix: align GIF picker tap hitboxes with visible thumbnails
Fix GIF picker grid tap hitbox selecting adjacent item by aligning GIF picker tap hitboxes with visible thumbnails.

Co-authored-by: danieldaquino <24692108+danieldaquino@users.noreply.github.com>
Changelog-Fixed: Fix GIF picker grid tap hitbox selecting adjacent item
Closes: https://github.com/damus-io/damus/issues/3744
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-05-21 15:35:52 -07:00
Daniel D’AquinoandGitHub 73eddeae46 Merge pull request #3773 from jb55/jb55-ios-2397-restore-signal-indicator
Restore signal indicator

Changelog-Changed: Restored signal indicator
Changelog-Fixed: Fixed issues that could cause the signal indicator to become outdated
2026-05-18 16:50:36 -07:00
Daniel D’AquinoandGitHub bdfa954eeb Merge pull request #3775 from jb55/jb55-ios-2398-relays-refuse-to-reconnect-after-initial-connect-fails
relay: fix relays refusing to reconnect after initial connect fails
2026-05-18 16:33:07 -07:00
William CasarinandClaude Opus 4.6 0e59969b62 tests: silence spammy debug prints in NdbTests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-18 12:13:43 -07:00
William CasarinandClaude Opus 4.6 945ebff880 signal: hide indicator when all relays are connected
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-18 12:12:11 -07:00
William CasarinandClaude Opus 4.6 d2ef0ac3b1 relay: fix relays refusing to reconnect after initial connect fails
When isConnecting gets stuck (e.g. from silenced error 57 or lost
WebSocket events), reconnect() would bail out permanently. Instead of
unconditionally blocking on isConnecting, allow reconnect if the
connection attempt has gone stale (>5s with no socket response).

Closes: https://github.com/damus-io/damus/issues/3774

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-18 11:53:57 -07:00
William CasarinandClaude Opus 4.6 aae43cff3b Fix connectivity indicator and port signal bars from Android
The SignalView was never appearing because update_signal_from_pool was
defined but never called, leaving signal data at 0/0. Fix by having
RelayPool maintain its own SignalModel, updating it on connection
events, relay add/remove. Wire views directly to the pool signal via
NostrNetworkManager instead of the disconnected HomeModel.signal.

Replace the text-based indicator with signal strength bars matching
the Android app: 4 progressive-height bars colored red->yellow->green
based on the connected/total relay ratio.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-18 11:00:00 -07:00
5bc13d60ea Add GitHub Actions CI workflow for build + test
Co-authored-by: danieldaquino <24692108+danieldaquino@users.noreply.github.com>
2026-05-13 17:05:40 -07:00
Daniel D’Aquino b6127e228e Require SENTRY_AUTH_TOKEN for Sentry dSYM upload
Warn and skip upload when SENTRY_AUTH_TOKEN is not set. Invoke
sentry-cli
with --auth-token, --org and --project flags and attempt an upload
including sources, falling back to a plain dSYM upload on failure.

Changelog-None
Closes: #3767

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-05-13 15:30:37 -07:00
a8c73bf67c Harden Xcode Cloud Sentry dSYM upload in post-build script
- Fix Sentry post-build dSYM upload fallback and script permissions
- Refine sentry-cli stderr capture in post-build script

Co-authored-by: danieldaquino <24692108+danieldaquino@users.noreply.github.com>
2026-05-13 14:39:21 -07:00
Daniel D’Aquino 572bb3b356 Add user bug report filing skill
Changelog-None
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-05-11 16:35:11 -07:00
Daniel D’AquinoandGitHub 822fb5426c Merge pull request #3743 from danieldaquino/gh-3742
ndb: Add debug detection of stale read NostrDB transactions
2026-05-11 15:15:23 -07:00
Daniel D’AquinoandGitHub 07a7dbddc0 Merge pull request #3754 from damus-io/copilot/update-pr-template-highlight-issue-requirement
Highlight issue/ticket requirement in PR template
2026-05-11 12:11:13 -07:00
ce4cfb0548 Update PR template issue warning
Agent-Logs-Url: https://github.com/damus-io/damus/sessions/5ee6a40a-51bd-49c4-af98-f1cf7accfcbb

Co-authored-by: danieldaquino <24692108+danieldaquino@users.noreply.github.com>
2026-05-11 18:42:50 +00:00
Daniel D’AquinoandGitHub c2cdd1292f Merge pull request #3740 from danieldaquino/gh-3731
Sentry integration
2026-05-11 11:34:11 -07:00
Daniel D’Aquino 3c98282f95 Sentry integration
Changelog-Added: Added Sentry error and diagnostics reporting to aid
future quality improvements
Closes: #3731
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-05-11 11:30:20 -07:00
Daniel D’Aquino 21ea74469b ndb: Add debug detection of stale read NostrDB transactions
Changelog-None
Closes: #3742
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-05-09 23:56:45 -07:00
Daniel D’AquinoandGitHub c1c151396c Merge pull request #3739 from danieldaquino/gh-3738
Fix SafeNdbTxn failure cleanup and reclaim stale LMDB readers on startup
2026-05-08 10:32:36 -07:00
Daniel D’Aquino fe482a9416 ndb: Check and clear stale LMDB readers on init
Changelog-Changed: Clear stale LMDB readers on NostrDB init to prevent
reader slot leakage and runaway storage usage

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-05-07 17:09:34 -07:00
Daniel D’Aquino 034f667869 Fix per-thread txn leaks when SafeNdbTxn init fails
This addresses one failure path where if the value getter for a new
transaction returns `nil`, it would leak a read transaction, causing it
to remain open indefinitely, and leading to runaway storage usage.

Changelog-Fixed: Fixed database transaction leak that could lead to
higher storage usage

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-05-07 17:09:34 -07:00
Daniel D’AquinoandGitHub 52b5afaaf3 Merge pull request #3737 from danieldaquino/gh-3695
Replace Tenor GIF integration with Purple proxy
2026-05-04 11:49:52 -07:00
Daniel D’Aquino 111fabf0b3 Replace Tenor GIF integration with Purple proxy
Remove Tenor API client and models; add PurpleGIFAPIClient and a
robust GIFModels decoder that supports Tenor and KLIPY payloads.
Remove Tenor API key setting and Secrets entry. Update GIF picker to
accept a Purple-backed view model, adjust Labs text, and update
Xcode project file references.

Closes: #3695
Changelog-Changed: Made GIF keyboard widely available to Purple users
without need for an API key (Damus Labs)

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-05-04 11:39:15 -07:00
Daniel D’AquinoandGitHub 9dc9738377 Merge pull request #3733 from danieldaquino/gh-3726-c
Improve large-DB compaction UX and add developer auto-compact testing mode
2026-04-29 14:41:26 -07:00
Daniel D’Aquino 2af65320ef Improve large-DB compaction UX and add developer auto-compact testing
mode

- Skip automatic compaction when `data.mdb` is 10GB or larger, and
  surface an in-app notification instead of surprising users with a long
  startup wait
- Keep manual compaction available for large databases by tracking
  whether a next-launch compaction request was scheduled automatically
  or explicitly by the user
- Add a large-database explanation to the compaction loading screen to
  clarify that long runtimes are expected for oversized databases and
  are usually a one-time catch-up cost
- Add a developer-only `Every minute` auto-compact schedule to make
  rollout and reminder behavior easier to test locally
- Add and update unit tests covering large-database auto-compaction
  skips, request-source persistence, reminder scheduling, and the
  developer testing interval

Motivation:
TestFlight users with long-lived databases were hitting the brand-new
compaction flow for the first time, which could turn startup into a
multi-minute wait. These changes make automatic compaction less
disruptive for very large databases, preserve an explicit manual path
for users who want to optimize immediately, and add a fast
developer-only schedule to make the new behavior easier to validate
during testing.

This is an enhancement for an unreleased feature, so therefore no
changelog is needed.

Closes: https://github.com/damus-io/damus/issues/3730
Changelog-None

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-04-29 14:40:18 -07:00
Daniel D’AquinoandGitHub 53dde55616 Merge pull request #3732 from danieldaquino/gh-3726-b
Report Compaction Progress and Improve UI
2026-04-27 10:20:40 -07:00
Daniel D’Aquino d6654dff29 Report Compaction Progress and Improve UI
Add NdbCompactionProgress and Step with user-facing titles/details,
and a progress callback to Ndb.compact_if_needed to emit stage updates.
Refactor CompactionView to a single CompactionState and render linear
progress, step title/detail and percentage. Ensure UI updates happen on
the MainActor and surface errors/completion cleanly.

Changelog-None
Closes: https://github.com/damus-io/damus/issues/3730

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-04-27 10:09:59 -07:00
Daniel D’AquinoandGitHub cae83e5399 Merge pull request #3728 from danieldaquino/gh-3726
Move DB compaction to CompactionView
2026-04-23 19:53:17 -07:00
Daniel D’Aquino 0d2f55f4e3 Move DB compaction to CompactionView
Introduce CompactionView and CompactionLoadingView to schedule and run
Ndb compaction on a background task before showing the main UI. Replace
the direct compaction calls in ContentView and make CompactionView the
app's launch entry so startup compaction presents a loading UI and
avoids blocking the main thread.

Changelog-Fixed: Fixed startup crash when app performs long-running
compaction procedure
Closes: #3726

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-04-23 19:02:01 -07:00
Daniel D’AquinoandGitHub 5cb8a495b5 Merge pull request #3708 from askeew/favorites-fix-xcode
Fix favorites timeline
2026-04-13 12:07:35 -07:00
Daniel D’AquinoandGitHub f7669d1093 Merge pull request #3719 from damus-io/copilot/add-auto-compact-lmdb-setting
Auto compact LMDB on a schedule
2026-04-06 17:13:04 -07:00
Daniel D’Aquino 9285504d9a Add auto-compact LMDB schedule setting with UI and tests
Closes: https://github.com/damus-io/damus/issues/3718
Changelog-Added: Automatic lossless storage optimization
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-04-06 15:01:06 -07:00
Daniel D’AquinoandGitHub 2e08fb9f8d Merge pull request #3663 from alltheseas/improve-blur-overlay-design
Improve BlurOverlayView to look protective, not broken
2026-04-06 14:56:36 -07:00
652e802ca6 Improve BlurOverlayView to look protective, not broken
The blur overlay previously used error-state iconography (eye.slash icon,
"Tap to load" button, raw URL display) which made users think media was
broken rather than intentionally hidden. Redesign to communicate
intentional protection:

- Replace eye.slash icon with shield icon
- Change title from "Media from someone you don't follow" to
  "Content hidden" (the old text was also wrong for undistractMode)
- Rename button from "Tap to load" to "Show"
- Remove raw URL display that added noise
- Remove unused properties (artifacts, size, damus_state, parentView)
  and dead ParentViewType enum that only existed for the URL display
- Simplify all 4 call sites to pass only the blur binding

Changelog-Changed: Redesigned media blur overlay to look like intentional protection instead of a broken state

Closes: https://github.com/damus-io/damus/issues/3662
Signed-off-by: alltheseas <alltheseas@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 14:48:30 -07:00
Askeew 75bbae86b3 Fix favorites timeline: filter in-place, manage queuing, persist tab selection and sync has_event.
Changelog-None:
Signed-off-by: Askeew <askeew@hotmail.com>
2026-03-27 09:10:36 +01:00
Daniel D’Aquino bfad604e5b Revert "Remove transaction inheritance"
This reverts commit c1fb8b592f.

It turns out we still need transaction inheritance.

Even though the current Ndb interface hides transaction objects from callers and prevents those transactions from being held open beyond the small sync window where the underlying query result is borrowed, there is nothing preventing that caller from making another nested ndb query call from within that closure.

Closes: https://github.com/damus-io/damus/issues/3688
Changelog-Fixed: Fixed issue where mentioned profile names would not render properly
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-03-18 18:55:30 -07:00
Daniel D’AquinoandGitHub 92cca89c06 Merge pull request #3642 from ericholguin/ios-26-fixes
ui: Fixes for iOS 26 toolbars
2026-03-18 17:21:59 -07:00
ericholguinandDaniel D’Aquino d99443be6d ui: Fixes for iOS 26 toolbars
Note: This will only become user-facing once we switch to liquid glass
mode, therefore no changelog entry is needed now.

Changelog-None
Closes: https://github.com/damus-io/damus/issues/3702
Co-Authored-by: Daniel D’Aquino <daniel@daquino.me>
Signed-off-by: ericholguin <ericholguin@apache.org>
2026-03-18 17:07:25 -07:00
Daniel D’AquinoandGitHub f175e79a78 Merge pull request #3699 from alltheseas/fix/relay-list-bottom-cutoff
fix: add bottom padding to UserRelaysView to prevent last relay cutoff
2026-03-18 14:40:05 -07:00
alltheseasandClaude Opus 4.6 4fe94b081c fix: add bottom padding to UserRelaysView to prevent last relay from being cut off
Closes #3697

Signed-off-by: alltheseas

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 15:40:47 -05:00
Daniel D’AquinoandGitHub 38f0e9f152 Merge pull request #3698 from danieldaquino/gh-3696
Reduce max age for stale temporary snapshots
2026-03-18 12:19:36 -07:00
Daniel D’Aquino 96eb780f11 Reduce max age for stale temporary snapshots
The previous fix that implemented cleanup of temporary snapshots
included a max age for stale temporary snapshots, which was originally
set to 24h.

This improved the situation, but it still meant that the app could
accumulate 24 old snapshots, which leads to a non-trivial storage
amount.

This commit changes that to 30 minutes for better storage efficiency.

The previous fix was not published on the App Store yet, so no changelog
entry is needed.

Closes: https://github.com/damus-io/damus/issues/3696
Changelog-None
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2026-03-18 12:07:55 -07:00
Daniel D’AquinoandGitHub 69ba4b2c38 Merge pull request #3690 from alltheseas/fix/post-compact-sigbus-crash
fix: delete stale lock.mdb during compaction to prevent SIGBUS crash
2026-03-16 23:14:03 -07:00
alltheseasandClaude Opus 4.6 9d687ce4f6 fix: delete stale lock.mdb during compaction to prevent SIGBUS crash
Also clean up temp directory on post-replace size mismatch to match
all other error paths in compact_if_needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 23:13:13 -05:00
Daniel D’AquinoandGitHub e07e8c2dc3 Merge pull request #3668 from tyiu/translations
Translations
2026-03-16 20:00:48 -07:00