Commit Graph

602 Commits

Author SHA1 Message Date
kernelkind
f54d3b1596 feat: copy damus.io link to clipboard
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-10-06 11:52:11 -04:00
William Casarin
e20861f8d6 Merges notification filters, perf & crash fixes by kernel
kernelkind (6):
      feat: "All" & "Mentions" notifications tabs like Damus iOS
      fix: WalletView don't request keyboard focus if narrow
      fix: crash on startup
      add `load_texture_checked`
      use `load_texture_checked` over `load_texture`
      add clippy rule to disallow the usage of `load_texture`
2025-10-03 13:32:24 -07:00
kernelkind
55b59c982a fix: WalletView don't request keyboard focus if narrow
on android it kept popping up the keyboard even when i close it

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-10-02 16:38:30 -04:00
kernelkind
af53dd4852 perf: improve filter generation performance
for some reason the filter here was taking ~6ms to create...

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-10-02 16:19:39 -04:00
kernelkind
810b4c1990 profiling: add more profile markup
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-10-02 16:19:04 -04:00
kernelkind
62ffe9b219 feat: "All" & "Mentions" notifications tabs like Damus iOS
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-10-02 16:13:46 -04:00
William Casarin
3a8d06cb82 Merge tracy profiling by kernel
kernelkind (1):
      add tracy support
2025-10-02 12:33:36 -07:00
kernelkind
3540290f0a make update return AppResponse instead of Option<AppAction>
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-10-01 21:47:31 -04:00
kernelkind
2533448180 remove unnecessary DragSwitch
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-10-01 21:47:27 -04:00
kernelkind
c4eccf0a8e TMP: new egui-nav
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-10-01 21:47:22 -04:00
kernelkind
0717353717 add tracy support
android: `make android-tracy`
desktop: `cargo run --release --features tracy`

connect via `127.0.0.1:8086`
if using android then want to use desktop, unset the adb port
forwarding:
`adb forward --remove tcp:8086`

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-30 19:54:19 -04:00
kernelkind
d81243f055 prop drag id through responses instead of manual wiring
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-28 23:08:28 -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
19fe3703d9 fix: add tag for hashtag in reply
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-13 17:15:58 -04:00
kernelkind
ca67977b82 fix: don't reset scroll position when switching toolbar
Closes: https://github.com/damus-io/notedeck/issues/1140

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-13 15:37:05 -04:00
kernelkind
559e9577fc fix: no longer make the scroll position jump oddly
only allow front insert in profile when body is fully obstructed

Closes: https://github.com/damus-io/notedeck/issues/1072

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-13 15:36:18 -04:00
kernelkind
563fbb9c4b fix NoteUnits front insertion logic
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-13 15:18:29 -04:00
kernelkind
391900d393 make tabs_ui return InnerResponse
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-13 14:51:09 -04:00
kernelkind
11700d6217 refactor: move profile_body to fn
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-13 14:51:03 -04: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
a0e9c8b434 feat: enable transitive trust for repost
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-11 19:38:32 -04:00
kernelkind
3f1a194983 fix: repost desc text size on newline
make the repost desc size small when it is on a newline instead of
inline with the pfps, which was introduced here: eb446376

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-11 17:14:25 -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
William Casarin
eb44637601 ui/timeline: make notification text smaller
Signed-off-by: William Casarin <jb55@jb55.com>
2025-09-10 12:03:23 -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
409ca68567 fix: can upload photo from reply or quote
moved the file retrieval check from `PostView::ui` ->
`PostView::ui_no_scroll`, which is used by the `PostReplyView` &
`QuoteRepostView`

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-09 18:39:02 -04:00
kernelkind
6cf193b7e3 ui: minor tweaks
closes: https://github.com/damus-io/notedeck/issues/1120

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-09 18:13:52 -04:00
kernelkind
5bb17cd810 log: info -> debug for ndb can't find repost
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-09 17:56:26 -04:00
kernelkind
ba359c95c2 allow reposts in "Notes" timeline tab
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-09 17:56:23 -04:00
kernelkind
e0ed122951 use NdbQueryPackage to call ndb::query multiple times
necessary to ensure we can retrieve reposts from ndb

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-09 17:56:19 -04:00
kernelkind
91028929b2 ui: add support for non-notification composite rendering
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-09 17:56:09 -04:00
William Casarin
28634301b8 Merge localization fixes by Terry
Terry Yiu (1):
      Add missing localized strings and export strings for translation
2025-09-08 15:04:26 -07:00
kernelkind
6db03364fd fix blank thread from notifications
forgot to check whether underlying note is muted in reaction & reposts

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-05 16:21:33 -04:00
Terry Yiu
97b6755504 Add missing localized strings and export strings for translation 2025-09-04 22:22:27 -04:00
kernelkind
10b62a073b test: NoteUnits repost test
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-04 15:53:53 -04:00
kernelkind
ac212b96a6 process repost notes
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-04 15:53:49 -04:00
kernelkind
f436b49fec add Repost to composite unit & fragment
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-04 15:53:43 -04:00
kernelkind
04ce29d1dd ui: render repost cluster impl
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-04 15:53:40 -04:00
kernelkind
ae1d5ab1c5 add CompositeType::Repost
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-04 15:53:37 -04:00
kernelkind
80ae489967 ui: repost description impl
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-04 15:53:31 -04:00
kernelkind
259c0b677a add RepostUnit & RepostFragment
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-04 15:53:27 -04:00
kernelkind
3b7f1f1b39 test: better naming for NoteUnits tests
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-04 15:53:24 -04:00
kernelkind
f2258ab16b add NotePayload::noteref helper
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-04 15:53:21 -04:00
kernelkind
571435cf85 ui: modularize composite entry rendering & fix tr
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-04 15:53:11 -04:00
kernelkind
8f8ff42156 NoteUnits: use UnitKey instead of just NoteKey
in preparation for multiple composite types

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-04 15:45:39 -04:00
kernelkind
3a95ba05a8 add ReactionFragment error msg
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-09-04 15:45:31 -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
fc1caf5eb4 custom-zap: dont force keyboard
it's not necessary

Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-08-28 16:46:26 -04:00