kernelkind
87b4b5fc70
add preview flag to NoteAction
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-06-22 16:03:09 -04:00
kernelkind
51476772c4
add unread note indicator option to NoteView
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-06-22 16:00:42 -04:00
kernelkind
ea91f582ed
add pfp bounding box to NoteResponse
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-06-22 16:00:40 -04:00
kernelkind
b7bab1d29f
note: refactor to use action composition & reduce nesting
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-06-22 16:00:37 -04:00
kernelkind
c3b8823f72
ui: add hline_with_width
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-06-22 16:00:35 -04:00
William Casarin
9033383a29
add input context menu helper
...
We are going to want this in more places
Signed-off-by: William Casarin <jb55@jb55.com >
2025-06-16 16:11:15 -07:00
William Casarin
e87b6f1905
chrome: collapsible side panel
...
This implements the initial logic that makes the side panel collapsible.
Since we don't have a proper hamburger control, we do the same thing we
do on iOS for now.
2025-06-05 12:01:55 -07:00
William Casarin
f380c24649
fix note response regression
...
Fixes: 7d916805bc ("note: cleanup wide/standard implementation")
2025-06-03 11:26:18 -07:00
William Casarin
7d916805bc
note: cleanup wide/standard implementation
...
Since this function was getting too big
2025-06-03 10:29:38 -07:00
William Casarin
5ef77efebb
scroll: simple fix
...
Instead of a complicated min scroll distance implementation,
we simply disable drag to scroll on carousel to fix vertical
scrolling on android
2025-06-03 10:29:38 -07:00
Fernando López Guevara
f3f5026719
fix: skip blurring for user's own images
2025-06-02 12:36:42 -03:00
kernelkind
9387fe4973
stop error log spam
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-05-26 16:32:21 -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
kernelkind
5598cc8ba0
use CustomZapView
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-05-17 14:41:48 -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
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
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
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
kernelkind
badf3070c8
introduce JobsCache
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-05-04 12:54:26 -04:00
kernelkind
7bb871d377
add hashbrown
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-05-04 12:54:18 -04:00
kernelkind
e453c742de
add trust_media_from_pk2 method
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-05-04 12:53:49 -04:00
William Casarin
bdd0ef4c5c
ui: fix a bunch of missing hover pointers
...
let's try to keep on top of these
Signed-off-by: William Casarin <jb55@jb55.com >
2025-05-01 20:50:56 -07:00
William Casarin
a94cbb2dc0
dave: hide media in dave note previews
...
it bugs out sometimes
Signed-off-by: William Casarin <jb55@jb55.com >
2025-05-01 20:21:42 -07:00
William Casarin
5bae19fe00
mention: show username instead of display_name
...
Fixes : #833
Signed-off-by: William Casarin <jb55@jb55.com >
2025-05-01 17:23:08 -07:00
kernelkind
5bddf83655
extend ZapAction
...
going to need amounts for configurable zaps
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-23 13:53:20 -04:00
William Casarin
5c8fba220c
ui: add ProfilePic::from_profile_or_default
...
This is yet another helper, I really need to clean this
ui widget up in terms of its possible constructors...
2025-04-22 10:50:58 -07:00
William Casarin
c4084a1fb5
ui: add note truncation
...
Truncate notes by default. We still need a show more button though
2025-04-22 10:50:58 -07:00
William Casarin
310a835b27
docs: remove test hallucination
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-21 13:12:29 -07:00
William Casarin
d617b688f1
docs: add some ui-related guides
...
generated using code2prompt + claude 3.7 sonnet
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-21 13:10:20 -07:00
William Casarin
5811a5f4e6
dave: improve multi-note display
2025-04-20 09:05:02 -07:00
William Casarin
f496d4b8c4
dave: initial note rendering
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-18 17:03:59 -07:00
William Casarin
8af80d7d10
ui: move note and profile rendering to notedeck_ui
...
We want to render notes in other apps like dave, so lets move
our note rendering to notedeck_ui. We rework NoteAction so it doesn't
have anything specific to notedeck_columns
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-17 12:34:43 -07:00
William Casarin
8472a9b643
log: silence gif log
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-17 07:47:11 -07:00
kernelkind
45fe192f75
introduce ImagePulseTint
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-16 13:34:55 -04:00
William Casarin
66377351b3
ui: add some margin to chrome sidebar
...
Looks a bit better
2025-04-15 08:24:04 -07:00
William Casarin
418e08541d
notedeck: include frame history
...
for debugging.
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-14 11:30:22 -07:00
William Casarin
c6a7a50f81
dave: improve design
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-14 11:29:03 -07:00
William Casarin
9c9b4199f5
ui crate and chrome sidebar
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-14 11:29:01 -07:00