William Casarin
a4e59be6dc
ui/note: use rolling numbers for note stats
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-11-06 19:07:48 -08:00
William Casarin
ff77e7f543
ui: add rolling number function
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-11-06 19:07:35 -08:00
William Casarin
635d2164bb
ui: move debug slider to ui crate
...
might use this outside of notebook
Signed-off-by: William Casarin <jb55@jb55.com >
2025-11-06 19:07:08 -08:00
William Casarin
ca9e6c5aaf
ui: rename actionbar function
...
this was surprisingly hard to find for some reason
Signed-off-by: William Casarin <jb55@jb55.com >
2025-11-06 17:07:01 -08:00
William Casarin
cb7dadee44
ui: note metadata stats
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-11-04 14:54:47 -08:00
William Casarin
74f63f49ca
add is_root_note helper
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-11-04 14:53:51 -08:00
kernelkind
892d77d4e3
chore(profiling): markup composite render path
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-10-24 11:42:03 -04:00
William Casarin
8bfe8916ea
Merge send reactions by kernel #1170
2025-10-20 11:22:54 -07:00
kernelkind
11611a11d8
feat(reaction): user can send reactions
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-10-17 15:35:39 -04:00
kernelkind
83753ccc7d
feat(ui): add like button
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-10-17 15:35:32 -04:00
kernelkind
e86db45111
feat(assets): add like icon
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-10-17 15:35:18 -04:00
kernelkind
d3326d2e33
refactor(assets): rename like icon -> filled version
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-10-17 15:35:15 -04:00
kernelkind
5490c513db
assets: add accounts image
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-10-17 01:04:51 -04:00
kernelkind
ba83976166
refactor: rename assets
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-10-17 01:04:48 -04:00
kernelkind
9b1f7680aa
refactor: move galley_centered_pos to notedeck_ui
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-10-17 01:04:45 -04:00
William Casarin
34c5153618
Merge quote reposts, share links by kernel
...
kernelkind (17):
add `ProfileContext`
add `RenderNavAction::RepostAction` & render `RepostDecisionView`
add `after_action` to `SingletonRouter`
add repost fns
feat: copy damus.io link to clipboard
fix: custom zap wrapping
fix: profile wrapping
process popup after action
refactor: move profile.rs -> url.rs to new module
refactor: move shared context stuff up in scope
refactor: rename `NoteAction::Quote` -> `Repost`
render profile context button
route: add CloseSheetThenRoute `RouterAction`
route: add `RepostDecision`
split popup correctly for repost & update egui-nav
ui: add `ProfileContextWidget`
ui: add `RepostDecisionView`
2025-10-06 08:56:02 -07:00
kernelkind
f54d3b1596
feat: copy damus.io link to clipboard
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-10-06 11:52:11 -04:00
kernelkind
813b92a414
ui: add ProfileContextWidget
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-10-05 15:35:55 -04:00
kernelkind
d8e027490c
refactor: move shared context stuff up in scope
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-10-05 15:32:51 -04:00
kernelkind
2cf6679418
fix: custom zap wrapping
...
text was flowing off screen for this npub:
npub1uqxkqdq3xngndgwlck03hje0u25uu7ql9nakh63yjk2m63thczkszeffca
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-10-05 13:28:20 -04:00
kernelkind
4bb60c6240
refactor: rename NoteAction::Quote -> Repost
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-10-04 18:09:18 -04:00
kernelkind
810b4c1990
profiling: add more profile markup
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-10-02 16:19:04 -04:00
William Casarin
a6d91c43e4
Merge a bunch of fixes from kernel
...
PRs
* 1141
* 1137
* 1136
kernelkind (10):
Revert "feat: transitively trust images from parent note"
feat: enable transitive trust for repost
fix `NoteUnits` front insertion logic
fix: don't reset scroll position when switching toolbar
fix: no longer make the scroll position jump oddly
fix: repost desc text size on newline
make `tabs_ui` return `InnerResponse`
refactor: impl transitive trust via `NoteOptions::TrustMedia`
refactor: move `profile_body` to fn
refactor: remove unnecessary code
2025-09-16 11:28:48 -07:00
kernelkind
50293a6f34
refactor: remove unnecessary code
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-09-13 14:49:46 -04:00
kernelkind
d6182ed7c3
Revert "feat: transitively trust images from parent note"
...
This reverts commit ea14713b58 .
2025-09-11 19:39:12 -04:00
kernelkind
4ac2e59983
refactor: impl transitive trust via NoteOptions::TrustMedia
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-09-11 19:37:56 -04:00
William Casarin
c0fcf53ff6
Merge a bunch of fixes by kernel
...
kernelkind (3):
fix: can upload photo from reply or quote
fix: image shimmer bug
feat: transitively trust images from parent note
2025-09-10 12:06:31 -07:00
William Casarin
f889b54ed9
refactor: replace notification bool prop drill with note option
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-09-10 12:04:59 -07:00
kernelkind
ea14713b58
feat: transitively trust images from parent note
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-09-09 19:56:12 -04:00
kernelkind
2eef34fa1c
note: remove repost from note ui
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-09-09 17:53:28 -04:00
William Casarin
c765b031e9
ui/note: fix actionbar note responses
...
they are not responsive on android?
Signed-off-by: William Casarin <jb55@jb55.com >
2025-09-04 15:34:13 -07:00
kernelkind
637b05c1e2
make get_reposted_note pub
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-09-04 15:53:46 -04:00
kernelkind
7caf77aa1c
image: repost_image wrapper
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-09-04 15:53:34 -04:00
William Casarin
43b98fc6ed
Merge add keys section to settings by kernel #1096
...
kernelkind (4):
add `AnimationHelper::scaled_rect`
add copy to clipboard img
make eye button public
add keys section to settings
2025-09-02 15:09:38 -07:00
kernelkind
72d696beb2
actionbar: reintroduce error messages
...
there was a regression that caused error messages to not be displayed
any more when zapping.
Now when you click the zap button and the zap fails for some reason, the
zap button will be replaced with an X and hovering over the X displays
the error message
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-08-31 19:34:51 -04:00
kernelkind
dea695fa8e
actionbar: don't early return
...
it's not good practice to early return while rendering,
super easy to introduce flickering
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-08-31 19:29:11 -04:00
kernelkind
af4b896739
add copy to clipboard img
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-08-28 16:27:08 -04:00
kernelkind
d448caa369
add AnimationHelper::scaled_rect
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-08-28 16:26:36 -04:00
William Casarin
5224a5d8ae
tweak follow pack design
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-08-26 10:26:14 -07:00
William Casarin
e7843bad2f
Merge remote-tracking branch 'github/pr/1087' into notifications
2025-08-26 09:58:50 -07:00
kernelkind
8b5464641d
render follow pack by index from virtual list
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-08-25 21:16:05 -04:00
kernelkind
529377a706
ui: reactions closer approximation of iOS design
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-08-25 20:15:40 -04:00
kernelkind
4f63629715
ui: add like icon
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-08-25 10:31:37 -04:00
William Casarin
77ac91e810
Implement soft keyboard visibility on Android
...
- Added `SoftKeyboardContext` enum and support for calculating keyboard
insets from both virtual and platform sources
- Updated `AppContext` to provide `soft_keyboard_rect` for determining
visible keyboard area
- Adjusted UI rendering to shift content when input boxes intersect with
the soft keyboard, preventing overlap
- Modified `MainActivity` and Android manifest to use
`windowSoftInputMode="adjustResize"` and updated window inset handling
- Introduced helper functions (`include_input`, `input_rect`,
`clear_input_rect`) in `notedeck_ui` for tracking focused input boxes
- Fixed Android JNI keyboard height reporting to clamp negative values
Together, these changes allow the app to correctly detect and respond
to soft keyboard visibility on Android, ensuring input fields remain
accessible when typing.
Fixes: https://github.com/damus-io/notedeck/issues/946
Fixes: https://github.com/damus-io/notedeck/issues/1043
2025-08-19 11:29:45 -07:00
William Casarin
3aa4d00053
clippy: fix lint errors
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-08-19 09:45:36 -07:00
kernelkind
2a439b1f30
nip 51 set widget
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-08-17 15:07:04 -04:00
kernelkind
ac1bbeac1b
add impl for ScaledTextureFlags::RESPECT_MAX_DIMS
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-08-17 15:06:57 -04:00
kernelkind
dc91b6ffae
extract a pub render_media from image_carousel
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-08-17 15:06:55 -04:00
kernelkind
28bd13d110
add flags to ScaledTexture
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-08-17 15:06:48 -04:00
kernelkind
b750c0a927
use toolbar in columns rather than chrome
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-08-13 19:20:38 -04:00