Commit Graph

523 Commits

Author SHA1 Message Date
William Casarin
81a9ddbebc Merge remote-tracking branches 'github/pr/87{0,1,2}'
Merge a few bug fixes and lint issues

Fernando López Guevara (1):
      fix: skip blurring for user's own images

William Casarin (3):
      clippy: fix large enum.

kernelkind (1):
      bugfix: txn failed
2025-06-02 10:34:45 -07:00
Fernando López Guevara
f3f5026719 fix: skip blurring for user's own images 2025-06-02 12:36:42 -03:00
kernelkind
91c9cfc34f bugfix: txn failed
`ERROR notedeck_columns::timeline: setup_new_timeline:
database error: Transaction failed`

Reproduce by creating column, deleting it, then trying to create
it again. Before this fix, it was blank. Now it displays correctly

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-06-01 17:56:22 -04:00
William Casarin
0a675dfff0 clippy: fix large enum.
Signed-off-by: William Casarin <jb55@jb55.com>
2025-06-01 17:56:18 -04:00
William Casarin
1c3b172e21 clippy: fix large enum.
Signed-off-by: William Casarin <jb55@jb55.com>
2025-05-31 16:33:18 -07:00
William Casarin
d9b1de9d2c Merge remote-tracking branches 'github/pr/869' and 'github/pr/868'
Merge some misc changes from Fernando

Fernando López Guevara (2):
      feat(column): add tooltip on remove column button
      feat(hashtag-column): handle new hashtag on Enter key press
2025-05-31 16:01:02 -07:00
William Casarin
fc51ddb438 Merge remote-tracking branches 'github/pr/864' and 'github/pr/866' 2025-05-31 15:53:36 -07:00
Fernando López Guevara
3972f5f2ab feat(hashtag-column): handle new hashtag on Enter key press 2025-05-27 16:53:56 -03:00
Fernando López Guevara
269ffee857 feat(column): add tooltip on remove column button 2025-05-27 14:44:11 -03:00
kernelkind
2d55c8fb06 add search improvements
- '@' symbol brings up mention picker
- search for npub1, note1, and hashtags work

closes: https://github.com/damus-io/notedeck/issues/83
closes: https://github.com/damus-io/notedeck/issues/85

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-26 16:52:19 -04:00
kernelkind
9387fe4973 stop error log spam
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-26 16:32:21 -04:00
kernelkind
58b15d99d7 add SearchType
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-26 16:32:18 -04:00
kernelkind
64d3a0842e add NoteId::from_bech method
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-25 18:26:44 -04:00
kernelkind
a1ac0cd2c8 appease clippy
not sure why this warning is only now showing up

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-25 18:25:34 -04:00
kernelkind
db5e10656d set variable for scroll offset
necessary to maintain scroll positions across popup & Nav

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-22 20:33:20 -04:00
kernelkind
3cb2dd88b6 use popup sheet for CustomZapView
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-22 20:33:18 -04:00
kernelkind
c36a22828d use router action
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-22 20:33:15 -04:00
kernelkind
a44667ef1a nav: move process nav response to own method
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-22 20:33:12 -04:00
kernelkind
f452a9010b nav: move action processing to own method
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-22 20:33:10 -04:00
kernelkind
08a720b860 add SingletonRouter
used for popup

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-22 20:33:06 -04:00
William Casarin
ee85b754dd Fix text wrapping issues
Mentions were getting wrapped in a horizontal, which breaks the outer
horizontal_wrapped in note contents. When this breaks, it seems to be
breaking subsequent wrapping in notes.

Remove the horizontal to the remaining text wrapping issues!

Changelog-Fixed: Fix text wrapping glitches
Fixes: https://github.com/damus-io/notedeck/issues/33
Signed-off-by: William Casarin <jb55@jb55.com>
2025-05-20 18:09:15 -07:00
William Casarin
e75eb5ffd5 clippy: quick lint fix 2025-05-19 15:28:58 -07:00
William Casarin
163abe891a Merge remote-tracking branch 'pr/862' 2025-05-19 15:25:56 -07:00
kernelkind
5598cc8ba0 use CustomZapView
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-17 14:41:48 -04:00
kernelkind
a9a819f742 add CustomZapView
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-17 14:41:26 -04:00
kernelkind
68b5c32e7f method to get current default zap amount
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-17 14:30:21 -04:00
kernelkind
16e2c9d5b0 make styled button toggleable
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-17 14:30:19 -04:00
kernelkind
d2158a6482 display name should wrap
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-17 14:30:15 -04:00
kernelkind
54c0fdb563 don't show zap button if no wallet
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-17 14:29:43 -04:00
kernelkind
98cb082fb4 hotfix: can login again
adds fallback pubkey as account and selects it when there are
no accounts

closes: https://github.com/damus-io/notedeck/issues/855

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-16 15:50:31 -04:00
William Casarin
86d2a9e2e7 clippy: fix lint related to iterator
warning: called `Iterator::last` on a `DoubleEndedIterator`; this will
needlessly iterate the entire iterator
   --> crates/notedeck/src/urls.rs:262:43
    |
262 |             if let Some(file_name) = path.last() {
    |                                           ^^^^^^ help: try: `next_back()`
    |

Signed-off-by: William Casarin <jb55@jb55.com>
2025-05-14 09:56:06 -07:00
William Casarin
c469a0ff22 timeline: show media on universe timeline
Now that we have blurred images from people you don't
follow, we can enable this again

Signed-off-by: William Casarin <jb55@jb55.com>
2025-05-14 09:53:55 -07:00
kernelkind
b2abe495ca implement blurring
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:57:57 -04:00
kernelkind
7d2112b472 make Widget impl ProfilePic mutably
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:57:54 -04:00
kernelkind
640bf742c0 add one shot error message
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:57:51 -04:00
kernelkind
929099c15f propagate Images to actionbar
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:57:48 -04:00
kernelkind
e7c3755a08 pass NoteAction by value instead of reference
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:57:45 -04:00
kernelkind
953496fc74 note media: unnest full screen media
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:57:43 -04:00
kernelkind
01636786be note media: only show full screen when loaded
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:56:48 -04:00
kernelkind
379d6c0307 notedeck_ui: move carousel to note/media.rs
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:56:45 -04:00
kernelkind
258ac3de29 post: unnest
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:56:42 -04:00
kernelkind
def9de0dc0 images: make promise payload optional to take easily
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:56:38 -04:00
kernelkind
d204db4b29 images: make MediaCache hold MediaCacheType
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:56:34 -04:00
kernelkind
7f01f3623d add TexturesCache
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:56:29 -04:00
kernelkind
faec75e1b6 images: move fetch to fn
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:56:26 -04:00
kernelkind
a4ec0982d2 ImagePulseTint -> PulseAlpha
make it more generic to pulse alpha values, not necessarily image
tints

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:56:22 -04:00
kernelkind
a29277d263 propagate JobsCache
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:55:53 -04:00
kernelkind
e6212e5d17 note: remove unnecessary derive macros from NoteAction
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:54:38 -04:00
kernelkind
b9e2daf47a introduce blur
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:54:34 -04:00
kernelkind
d227eb6551 add blurhash dependency
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-05-04 12:54:30 -04:00