Commit Graph

1049 Commits

Author SHA1 Message Date
William Casarin 835851ee52 Merge remote-tracking branch 'pr/656' 2025-01-20 15:51:03 -08:00
kieran 86e68b1c29 move Notedeck to notedeck crate 2025-01-20 23:25:31 +00:00
kieran c401f4c484 note-ref: derive hash 2025-01-20 20:33:49 +00:00
William Casarin 43637f52bb Merge a few fixes from kernel #652,#649
kernelkind (2):
      log nip05 error
      fix persist deck author profile bug
2025-01-20 10:44:30 -08:00
greenart7c3 2901ba8227 Fix side panel color when using light theme 2025-01-20 15:11:03 -03:00
William Casarin 4b542c0a74 switch to TimelineCache
Signed-off-by: William Casarin <jb55@jb55.com>
2025-01-19 14:18:59 -08:00
William Casarin e52ba5937f debug: log when adding notes to start
Signed-off-by: William Casarin <jb55@jb55.com>
2025-01-19 12:58:21 -08:00
William Casarin a94ebc3603 mutes: hide logs
these are getting spammed on each frame. not ideal

Signed-off-by: William Casarin <jb55@jb55.com>
2025-01-19 12:43:03 -08:00
William Casarin 9a48b12e36 enostr: introduce PubkeyRef
This will be used for typesafe and copy-free pubkey references

Signed-off-by: William Casarin <jb55@jb55.com>
2025-01-19 12:43:03 -08:00
William Casarin f9a09ea2be note: introduce RootNoteId
RootNoteId is simply a newtype for specifying an ID that is a root note
id (in the sense of a nip10 note)

This makes it more clear at the type level when referring to note ids

Signed-off-by: William Casarin <jb55@jb55.com>
2025-01-19 12:43:03 -08:00
kernelkind a585704fb6 fix persist deck author profile bug
closes: https://github.com/damus-io/notedeck/issues/651

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-18 16:01:46 -05:00
kernelkind 35427170da log nip05 error
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-17 15:41:01 -05:00
William Casarin 9a4c5e394d envrc: update vrod's npub for testing
Signed-off-by: William Casarin <jb55@jb55.com>
2025-01-17 10:01:59 -08:00
William Casarin b45a63a529 persistent: dont nuke decks when using cli columns
Sometimes the commandline is nice for loading individual threads you
want to lookup (we don't have a UI for this yet). If you don't currently
choose a different data directory, then your decks cache gets nuked when
doing this.

Change the logic so that deck persistence is disabled when using CLI
columns. This stops notedeck from nuking your default decks.

Signed-off-by: William Casarin <jb55@jb55.com>
2025-01-17 09:32:48 -08:00
William Casarin e4732f5112 grip: fix double frame border 2025-01-15 14:00:08 -08:00
William Casarin 8fbe954cf3 adjust context menu/grip circle sizes
also adjust grip position so that it is more right
2025-01-15 13:48:53 -08:00
William Casarin 3b68e285fb grip: show pointer cursor on grip 2025-01-15 13:48:33 -08:00
kernelkind 5043f00eb3 update colors
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-15 16:09:29 -05:00
kernelkind ec7de41cc3 toggle move tooltip on button press
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-15 16:09:29 -05:00
kernelkind 23d65898aa use replace move icon with grab
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-15 16:09:29 -05:00
kernelkind 1914fafc68 integrate column moving
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-15 16:09:29 -05:00
kernelkind 10d45d6cc3 move column
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-15 16:09:29 -05:00
kernelkind 1d6da3ba0d move columns ui
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-15 16:09:29 -05:00
William Casarin 6647e7dc3f Merge Hashtag parsing
Daniel Saxton (5):
      Add t tags for hashtags
      Use HashSet, lowercase, and add emoji tests
      Add test and format
      Fix emoji hashtags
      Handle punctuation better

Link: https://github.com/damus-io/notedeck/pull/592
2025-01-14 10:16:12 -08:00
kernelkind ba8ac18de7 integrate ZoomHandler
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-13 18:48:29 -05:00
kernelkind 3fafda34b4 introduce ZoomHandler
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-13 18:48:16 -05:00
kernelkind 205d627f99 use TimedSerializer in AppSizeHandler
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-13 18:47:20 -05:00
kernelkind a24a089e87 extract timing from AppSizeHandler to TimedSerializer
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-13 18:46:16 -05:00
William Casarin 28af9c2272 Merge 'image-cache: use sha256 hash of url for key'
Link: https://github.com/damus-io/notedeck/pull/631
2025-01-10 07:13:50 -08:00
William Casarin f050de6b7a build: fix missing GIT_COMMIT_HASH in some cases
Some people try to build without git, this adds a fallback so that
compilation still works in those cases.

Changelog-Fixed: Fix GIT_COMMIT_HASH compilation issue
Fixes: https://github.com/damus-io/notedeck/issues/634
Fixes: https://github.com/damus-io/notedeck/issues/633
2025-01-10 06:33:39 -08:00
William Casarin d97dcb147d fixed reconnect duration
Changelog-Fixes: Fix long delays when reconnecting
2025-01-10 06:08:07 -08:00
kieran 1a744d8e3b image-cache: remove expect 2025-01-10 09:31:04 +00:00
kieran eaa9b3ae4c image-cache: migrate storage 2025-01-09 20:40:35 +00:00
kieran 06417ff69e image-cache: use sha256 hash of url for key 2025-01-07 12:00:46 +00:00
William Casarin e08e30f912 mutes: simplify mutefun and don't render tombstone yet 2025-01-04 16:19:41 -08:00
William Casarin c7d3aae856 nav: slow down nav animation a bit
you care barely see it
2025-01-04 16:01:24 -08:00
William Casarin 4fd8ac377e multicast: remove rejoin debug message
it's spammy
2025-01-04 15:20:01 -08:00
William Casarin 212c296da5 Merge tombstone muted notes #606
Changelog-Changed: Tombstone muted notes
2025-01-04 14:16:16 -08:00
William Casarin 16b20568da Merge relay debug view
Fix a few conflicts
2025-01-04 13:54:29 -08:00
William Casarin e1187c372f Merge profiling editing #625
Changelog-Added: Added profile editing
2025-01-04 13:18:31 -08:00
William Casarin 5f21d32d96 android: fix android logging 2025-01-04 13:14:05 -08:00
kernelkind 05ab1179e6 remove ProfileState from cache once sent
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-04 14:05:42 -05:00
kernelkind 6645d4880f integrate EditProfileView
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-04 13:42:52 -05:00
William Casarin fe6206c546 Note multicasting
This is an initial implementation of note multicast, which sends posted
notes to other notedecks on the same network.

This came about after I nerd sniped myself thinking about p2p nostr on
local networks[1]

You can test this exclusively without joining any other relays by
passing -r multicast on the command line.

[1] https://damus.io/note1j50pseqwma38g3aqrsnhvld0m0ysdgppw6fjnvvcj0haeulgswgq80lpca

Signed-off-by: William Casarin <jb55@jb55.com>
2025-01-04 10:37:11 -08:00
William Casarin f5afdd04a6 chrome: dont parse args twice
Signed-off-by: William Casarin <jb55@jb55.com>
2025-01-04 10:34:46 -08:00
kernelkind 3384d2af14 new profile responses
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-03 18:39:35 -05:00
kernelkind 4ea17f8920 holder for ProfileState
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-03 18:39:35 -05:00
kernelkind 5fd9f32ba7 prelim fns for edit profiles
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-03 18:39:35 -05:00
kernelkind b1a84788ff move show_profile to its own fn
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-03 18:39:35 -05:00
kernelkind 4baa7b2ef3 use preview
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-03 18:39:35 -05:00