Commit Graph

1086 Commits

Author SHA1 Message Date
Vitor Pamplona 7b919ba44a added description 2026-01-01 15:07:27 -05:00
Vitor Pamplona 291db1f30b duplicates kinds and pubkey on the tags table to take complex queries under 100 microseconds 2026-01-01 14:57:48 -05:00
Vitor Pamplona 238d4e0004 No need for the fts module anymore 2026-01-01 14:52:11 -05:00
Vitor Pamplona f6d920366d Fixes some of the tests 2026-01-01 12:53:02 -05:00
Vitor Pamplona aac880c575 Range queries are not effective as the first argument, switching to kind, key, created_at index, which also almost invalidates the need for the Replaceable idx and is only kept for the unique key consistency 2026-01-01 12:51:43 -05:00
Vitor Pamplona 8affb2564b explains the fk index on tags 2026-01-01 12:49:12 -05:00
Vitor Pamplona b7c7eabf2a Explains limit index 2026-01-01 12:48:48 -05:00
Vitor Pamplona f48eba6a8e No need for this index since it will be covered by addressable_idx 2026-01-01 12:48:22 -05:00
Vitor Pamplona 307703cbb7 Explains ID index 2026-01-01 12:47:35 -05:00
Vitor Pamplona 9d67d5d6dc Implements a raw add on to the query builder 2026-01-01 12:37:44 -05:00
Vitor Pamplona 1978c8e17e Faster way of coding equals to null in the sql builder 2026-01-01 12:37:13 -05:00
Vitor Pamplona 507256e0dd Fixes Or builder 2026-01-01 12:36:26 -05:00
Vitor Pamplona 90f38c3a58 adds a isRegular filter for the Kind alias 2026-01-01 12:22:20 -05:00
Vitor Pamplona 6553012372 Uses aliases for the Filter class 2026-01-01 12:22:07 -05:00
nrobi144 4bc7e86448 fixes imports 2026-01-01 07:55:31 +02:00
Vitor Pamplona 393366d9cc Adds size of the DB as a function to the lib 2025-12-31 18:41:20 -05:00
Vitor Pamplona 5d7c84d357 Setting higher cache size 2025-12-31 16:53:41 -05:00
Vitor Pamplona 6713c3bd50 Adds performance and flexibility by exposing Raw methods 2025-12-31 13:39:17 -05:00
Vitor Pamplona 4f7972df90 Removes logs 2025-12-31 13:37:02 -05:00
Vitor Pamplona 780ea487aa Adds a test case to simulate reports 2025-12-31 09:42:54 -05:00
Vitor Pamplona 4f1ad11d79 Moves SQLBuilder to its own class 2025-12-31 09:27:33 -05:00
Vitor Pamplona 7b696f5f54 Adds created_at to tags to speed up tag-ordered queries 2025-12-30 16:23:11 -05:00
Vitor Pamplona 5eb9d230e2 Moves current test to a better name of Notifications
Adds a Followers test
2025-12-30 13:00:03 -05:00
Vitor Pamplona c3d741ebd1 Implements AND queries for tags: https://github.com/nostr-protocol/nips/pull/1365 2025-12-30 12:29:04 -05:00
Vitor Pamplona df97b7c444 Improves efficiency of the filter class for matching and checking errors 2025-12-30 12:09:05 -05:00
Vitor Pamplona 333285747b Migrates to using indexes instead tagNames to avoid non-ASCII chars reaching the DB 2025-12-30 12:06:22 -05:00
Vitor Pamplona 2a8e7cbe94 Fixes duplicated results 2025-12-30 12:03:09 -05:00
Vitor Pamplona 31d7e135cb Updates kotlin, compose, multiplatform, activity, serialization, media3, mockk, secp256, tor, androidxCamera, stdlib 2025-12-29 14:23:48 -05:00
Vitor Pamplona 6054c5700d Merge pull request #1625 from nrobi144/feat/desktop-multiplatform
Create desktopApp module
2025-12-29 10:41:58 -05:00
Vitor Pamplona d2c8991916 Merge pull request #1627 from greenart7c3/payto_part1
Payment targets - part 1
2025-12-29 09:31:45 -05:00
greenart7c3 ff0466872a Create PaymentTargetEvent 2025-12-29 06:26:25 -03:00
Vitor Pamplona 163632249e Merge branch 'main' of https://github.com/vitorpamplona/amethyst
* 'main' of https://github.com/vitorpamplona/amethyst:
  New Crowdin translations by GitHub Action
  Quartz Feature Parity Table on Multiplatform
  enhanced recording button
  translations
  bug fix: - Allow reply to reply by using BaseVoiceEvent
  TODO: Reply to a reply fails to upload Verify deletion of temp voice files
  Code review: - Removed DisposableEffect cleanup - Added cancelUpload() to selectRecording()
  TOOD: Move re-record higher up tp avoid google assistant on longpress Reply to a reply fails to upload Verify deletion of temp voice files
  Register Route in AppNavigation Modify ReplyViaVoiceReaction to Navigate
  Add VoiceReply Route Create VoiceReplyViewModel and VoiceReplyScreen Add String Resource(s)
2025-12-28 12:23:14 -05:00
Vitor Pamplona 425d07fa8f Merge pull request #1622 from davotoula/voice-notes-replies
Christmas delivery: Voice notes replies
2025-12-28 10:57:52 -05:00
Róbert Nagy edd0ac9b77 Merge branch 'main' into feat/desktop-multiplatform 2025-12-28 15:43:59 +02:00
nrobi144 b23ff488ed refactor: Polish shared commons components and fix formatting
- Improve RelayConnectionManager with better connection handling
- Refine UI components (LoginCard, ProfileInfoCard, RelayStatusCard)
- Update KeyInputField with improved layout
- Fix formatting in FeedHeader and AppScreen
- Add proper number formatting utilities
- Remove .claude config from version control

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-28 07:03:57 +02:00
Vitor Pamplona 57a22384b2 Refactoring 2025-12-27 17:57:32 -05:00
Vitor Pamplona 390da16129 Creating a IndexingStrategy interface 2025-12-27 17:55:30 -05:00
Vitor Pamplona 55774b0292 sorting tags before inserting speeds up imports by ~20% 2025-12-27 13:13:46 -05:00
Vitor Pamplona 068ba3b717 Vacuum and Analyze are blocking, so moving to a coroutine. 2025-12-27 12:40:23 -05:00
Vitor Pamplona d435231f55 Setting cache doesn't seem to do anything :( 2025-12-27 12:38:22 -05:00
Vitor Pamplona f07070d65e Fixes test name 2025-12-27 12:12:12 -05:00
Vitor Pamplona f0b6fa622c adds vacuum and analyse utility functions 2025-12-27 12:11:58 -05:00
Vitor Pamplona f9582bb007 Increases cache size to up to 40MB 2025-12-27 12:11:31 -05:00
nrobi144 201acc8140 feat: Extract shared UI components to commons for Android/Desktop reuse
Extract reusable components from desktopApp to commons module:

Utilities (commonMain):
- NumberFormatters: countToHumanReadable, countToHumanReadableBytes
- PubKeyFormatter: toShortDisplay, toDisplayHexKey for key formatting

Utilities (jvmAndroid):
- TimeAgoFormatter: Human-readable time formatting for Nostr timestamps
- ZapFormatter: BigDecimal amount formatting with G/M/k suffixes

UI Components (commonMain):
- AppScreen enum for shared navigation
- LoadingState, EmptyState, ErrorState with refresh/retry support
- FeedHeader with relay status indicator
- NoteCard for displaying Nostr notes
- ActionButtons (AddButton, RemoveButton)
- RobohashImage for avatar display
- PlaceholderScreens (Search, Messages, Notifications)
- RelayStatusColors and shared color definitions

UI Components (jvmAndroid):
- LoginCard with key input field
- NewKeyWarningCard for new key backup warnings
- KeyInputField and SelectableKeyText
- ProfileInfoCard for account display
- RelayStatusCard for relay management

Core (jvmAndroid):
- AccountManager with login/logout/key generation
- RelayConnectionManager base class
- RelayStatus and DefaultRelays

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-27 15:12:04 +02:00
Vitor Pamplona 273d5feb94 - Adds support to delete GiftWraps by p-tag for Deletion and Vanish modules
- Adds Query plans to the test cases
- Reduces the amount of indexes that weren't used.
2025-12-26 15:43:51 -05:00
Vitor Pamplona 4455509e32 Converts pubkey to pubkey hash on vanish events. 2025-12-26 14:33:41 -05:00
Vitor Pamplona 5dcac034ac Uses event_header_row_id as primary key (with index) on event_vanish 2025-12-26 14:32:22 -05:00
Vitor Pamplona ef5ed755be Uses primary key to reuse rowId instead of building a separate index. 2025-12-26 14:31:18 -05:00
Vitor Pamplona 720e4d2c87 Forces the use of the index on Addressables and Replaceables 2025-12-26 14:29:10 -05:00
Vitor Pamplona eeb0c11c65 No need for this create method of GiftWraps to be suspending 2025-12-24 17:10:34 -05:00