Commit Graph

980 Commits

Author SHA1 Message Date
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 aa2f969be6 Faster event serializer -> sha256 -> id comparison without creating intermediary buffers. 2025-12-23 09:39:30 -05:00
Vitor Pamplona 01ea413afd Faster SQLLite DB with probabilistic hashvalues 2025-12-22 15:18:59 -05:00
Vitor Pamplona 79d6745ee6 Adds faster parsers for Messages and Commands
Unwraps inline runCatching because it seems faster for some reason.
2025-12-22 14:52:02 -05:00
Vitor Pamplona 10bba83ee3 Faster Event parsers 2025-12-22 14:18:59 -05:00
Vitor Pamplona 59413f3051 Moves type to the when clause 2025-12-22 12:25:07 -05:00
Vitor Pamplona 23a7e3b535 Fixes kind being a number 2025-12-22 12:23:34 -05:00
Vitor Pamplona 4c1fedddef Makes runCatching inline 2025-12-22 12:17:55 -05:00
Vitor Pamplona 14a6ba586a Fixes command parser 2025-12-22 11:19:25 -05:00
Vitor Pamplona 349625f748 simple refactoring 2025-12-22 11:18:28 -05:00
Vitor Pamplona e278982e6d Filters correct events 2025-12-22 11:17:43 -05:00
Vitor Pamplona c7038d695f Adds new tests for rumor and template serializer 2025-12-22 11:07:01 -05:00
Vitor Pamplona 37158a83dc Adds a nextLong random method
Adds unbounded methods because they are faster.
2025-12-20 12:26:16 -05:00
Vitor Pamplona e4f3a56851 Removes the Statement cache since statements are not thread safe 2025-12-20 12:25:16 -05:00
Vitor Pamplona 8cbc5f1e93 Faster Array Deserializer 2025-12-19 18:57:12 -05:00
Vitor Pamplona 7e65f1afa7 Fixes the Imodule dependency 2025-12-19 17:45:31 -05:00
Vitor Pamplona 8d15f0478f Faster MurMur hash for 64bit results. 2025-12-18 17:30:53 -05:00
Vitor Pamplona fde5d57b16 Faster parseResult array builder 2025-12-18 12:08:05 -05:00
Vitor Pamplona 12beeea8ee Adds a module interface for the SQL Lite db with drop functions too 2025-12-18 12:01:17 -05:00
Vitor Pamplona 34355121b1 Merge 2025-12-18 09:28:49 -05:00
Vitor Pamplona 9069b11036 small refactoring 2025-12-16 18:03:26 -05:00
Vitor Pamplona 2b865ab56d Fixes assertions after using generics on event stores query 2025-12-16 15:24:59 -05:00
Vitor Pamplona eef3f42d3f Creating interfaces for multiple EventStores 2025-12-16 08:31:17 -05:00
Vitor Pamplona aa9ac205c1 deletes Db after tests 2025-12-15 22:04:20 -05:00
Vitor Pamplona 7cffdd88bb Adds additional hashtag filter test for the db 2025-12-15 17:16:52 -05:00
Vitor Pamplona 8f9340038b Removes advertisement by default. 2025-12-15 08:32:31 -05:00
davotoula 49517e2264 quartz 2025-12-14 10:12:15 +01:00
Dumitru 3c06e0ffb1 Fix typo iosX64MainTest to iosX64Test 2025-12-13 23:40:55 +01:00
Dumitru 6d7205625a Add iosX64 target 2025-12-13 23:18:47 +01:00
Vitor Pamplona 83d14bd0e3 Minor adjustments and new benchmarks 2025-12-12 19:51:41 -05:00
Vitor Pamplona 1a63b77a2f Reduce some variables 2025-12-12 19:41:12 -05:00
Vitor Pamplona 286d9c8347 Improve formatting 2025-12-12 18:24:19 -05:00
Vitor Pamplona c89ae5782e small refactoring 2025-12-12 17:45:18 -05:00
Vitor Pamplona 84eb0a9abb Adds a large array test case 2025-12-12 17:40:38 -05:00
Vitor Pamplona 7a61217eb6 Fixes rounding loop of MurMur128 2025-12-12 17:29:49 -05:00
Vitor Pamplona 95723479d6 Adds MurMur3128bits for x64 2025-12-12 16:54:34 -05:00
Vitor Pamplona 25e9313d17 Reverts interning of all tag sizes due to significant gains in memory usage from large duplicated tags, like r tags with urls 2025-12-11 18:26:27 -05:00
Vitor Pamplona 9bd07468c2 deletes db before tests 2025-12-11 17:13:51 -05:00
Vitor Pamplona 39eed5d85a reformatting 2025-12-11 17:09:03 -05:00
Vitor Pamplona ee972cff35 reverts db deletions to avoid conflicts with the open file 2025-12-09 18:02:26 -05:00
Vitor Pamplona d0efe26ce7 Offers support for external transactions
Offers support for indexing strategies for tags
2025-12-09 17:28:33 -05:00
Vitor Pamplona d3fb507faa Reducing the need to intern large tags 2025-12-09 09:37:49 -05:00
Vitor Pamplona f4a0cd5af3 The number of params varies but a good limit seems to be 1000. This breaks the tag insert into many 1000 param inserts 2025-12-09 09:20:17 -05:00
Vitor Pamplona e44322adaa Speeds up db deletions 2025-12-09 09:05:37 -05:00
Vitor Pamplona 03f13eeb4b Improved support for random report types coming from AI 2025-12-08 19:59:59 -05:00
Vitor Pamplona 0abc631773 - Removes compose bom from Quartz to avoid unnecessary dependencies.
- Removes old datetime dependencies from Quartz
- Moves compose.runtime dependencies to compose.runtime.annotation
- Adds dependency on coroutines directly (instead of through compose runtime)
- Removes old secp256 target dependencies
- Adds Default scope for NostrClient and Relay Authenticator
- Updates readme
2025-12-04 14:41:33 -05:00
Vitor Pamplona e7c1925c76 Shows WoT Followers 2025-12-02 19:15:51 -05:00
Vitor Pamplona 71dc25099e Merge branch 'main' of https://github.com/vitorpamplona/amethyst
* 'main' of https://github.com/vitorpamplona/amethyst:
  fix lint warnings
  add custom serializer that accepts both single integers and arrays add tests
  New Crowdin translations by GitHub Action
  updated cz, de, pt, sv
2025-12-02 15:16:39 -05:00
Vitor Pamplona 62bf7db348 Adds the about user proerty of Contact Card 2025-12-02 15:07:07 -05:00
davotoula 70b36d64b5 fix lint warnings 2025-12-02 12:57:56 +01:00