kernelkind
173972f920
mentions: don't lose focus after select mention
...
Closes: https://github.com/damus-io/notedeck/issues/728
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-30 17:45:09 -04:00
kernelkind
31ec21ea02
mention-picker: re-add spacing from inner_margin
...
shouldn't do this in Frame, for some reason that captures the drag
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-30 17:45:05 -04:00
kernelkind
d3d8d7be4b
fix scroll regression
...
Closes: https://github.com/damus-io/notedeck/issues/986
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-30 17:45:02 -04:00
kernelkind
09dc101c1b
rename SearchResultsView => MentionPickerView
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-30 17:44:51 -04:00
Fernando López Guevara
b8207106d7
feat(settings): persist settings to storage
2025-07-29 11:41:06 -07:00
William Casarin
b80a0ab0f1
ui/settings: fix small double clone nit
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-29 10:32:39 -07:00
William Casarin
e437a0db1c
Merge Portuguese translations by terry #1036
...
Terry Yiu (5):
Export strings for translation
Add human-readable names to locales in settings
Internationalize ShowNoteClientOptions labels
Import translations
Add Portuguese (Brazil) language and translations
2025-07-29 10:26:21 -07:00
bf58fdce1f
Internationalize ShowNoteClientOptions labels
...
Changelog-Fixed: Internationalize ShowNoteClientOptions labels
Signed-off-by: Terry Yiu <git@tyiu.xyz >
2025-07-28 16:38:01 -04:00
419102959f
Add human-readable names to locales in settings
...
Changelog-Added: Added human-readable names to locales in settings
Signed-off-by: Terry Yiu <git@tyiu.xyz >
2025-07-28 16:38:01 -04:00
William Casarin
3d18db8fd2
Fullscreen MediaViewer refactor
...
- Moved media related logic into notedeck instead of the ui crate,
since they pertain to Images/ImageCache based systems
- Made RenderableMedia owned to make it less of a nightmware
to work with and the perf should be negligible
- Added a ImageMetadata cache to Images. This is referenced
whenever we encounter an image so we don't have to
redo the work all of the time
- Relpaced our ad-hoc, hand(vibe?)-coded panning and zoom logic
with the Scene widget, which is explicitly designed for
this use case
- Extracted and detangle fullscreen media rendering from inside of note
rendering. We instead let the application decide what action they
want to perform when note media is clicked on.
- We add an on_view_media action to MediaAction for the application to
handle. The Columns app uses this toggle a FullscreenMedia app
option bits whenever we get a MediaAction::ViewMedis(urls).
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-28 08:57:57 -07:00
William Casarin
2524ff1061
wallet: fix nwc copy/paste
...
Fixes: https://github.com/damus-io/notedeck/issues/1012
Changelog-Fixed: Fix NWC copy/paste
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-25 12:09:15 -07:00
William Casarin
eb0ab75e87
ui/wallet: small refactor to use return instead of break
...
we don't need this weird break syntax when we're in a closure
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-25 12:04:38 -07:00
William Casarin
009b4cf6b0
images: always resize large images
...
Fixes: https://github.com/damus-io/notedeck/issues/451
Fixes: https://linear.app/damus/issue/DECK-556/resize-images-to-device-screen-size
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-25 10:52:27 -07:00
kernelkind
8960b3f052
add scroll_id for all views with vertical scroll
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-24 17:53:35 -04:00
kernelkind
6db6cf7b7a
enforce scroll_id for ThreadView
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-24 17:53:28 -04:00
kernelkind
0bc32272d2
refactor scrolling for post, reply & quote views
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-24 17:53:25 -04:00
William Casarin
db6103d448
router: fix router selection
...
Many times we get the router selection wrong. This fixes that
Changelog-Fixed: Fix some routing issues when routing from the Chrome
Fixes: https://github.com/damus-io/notedeck/issues/1024
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-24 12:11:19 -07:00
William Casarin
f9f8b3fe1b
Merge remote-tracking branch 'github/pr/1023'
2025-07-23 12:31:51 -07:00
William Casarin
5ddd8660a3
settings: fix route to relay
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-23 12:29:09 -07:00
William Casarin
fe30704496
Merge remote-tracking branch 'fernando/feat/settings-view'
2025-07-23 12:00:29 -07:00
William Casarin
ff0428550b
fix missing zap button
...
Changelog-Fixed: Fix missing zap button
Fixes: 397bfce817 ("add `Accounts` to `NoteContext`")
Fixes: https://github.com/damus-io/notedeck/issues/1021
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-23 11:49:03 -07:00
Fernando López Guevara
da6ede5f69
feat(settings): add settings view
2025-07-23 15:33:17 -03:00
William Casarin
ebf31abafa
wallet: remove unused flag in note context
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-23 09:36:38 -07:00
William Casarin
3d4db820b4
i18n: make localization context non-global
...
- Simplify Localization{Context,Manager} to just Localization
- Fixed a bunch of lifetime issueo
- Removed all Arcs and Locks
- Removed globals
* widgets now need access to &mut Localization for i18n
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-22 09:49:32 -07:00
3f5036bd32
Internationalize user-facing strings and export them for translations
...
Changelog-Added: Internationalized user-facing strings and exported them for translations
Signed-off-by: Terry Yiu <git@tyiu.xyz >
2025-07-21 12:45:29 -07:00
William Casarin
8a1398face
clippy fixes
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-17 13:54:43 -07:00
William Casarin
1a7154fab6
reply: add some space after reply box
...
we need more room on mobile
Fixes: https://github.com/damus-io/notedeck/issues/991
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-17 11:02:59 -07:00
William Casarin
51d2b4414b
ui/note: refactor reply line into a function
...
this is a bit neater
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-17 09:37:20 -07:00
kernelkind
cc92fc2082
make TimelineCache::timelines private
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-16 18:13:07 -04:00
Fernando López Guevara
4bf75c95de
feat(note-view): show note client
2025-07-16 17:09:59 -03:00
William Casarin
461665f599
ui: remove show_pointer
...
This can just be achieved by on_hover_cursor
Didn't realize this.
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-16 09:17:27 -07:00
William Casarin
f27b1fe957
Merge chrome sidebar features from fernando
...
Fernando López Guevara (2):
fix(compose-button): apply icon_color to compose button edge circles & add hover text
fix(chrome): add hover text and pointer cursor to sidebar elements
2025-07-16 09:01:55 -07:00
William Casarin
a517bc69bc
Merge is_following fixes from kernel
...
kernelkind (4):
add `Accounts` to `NoteContext`
remove `MuteFun` prop
make `Contacts::is_following` use bytes instead of `Pubkey`
migrate to check following through `Contacts::is_following`
2025-07-16 08:50:58 -07:00
Fernando López Guevara
44da10dc88
fix(profile): split always
2025-07-16 11:01:13 -03:00
Fernando López Guevara
befce76a90
feat(profile): add tooltip on copy npub
2025-07-15 14:42:43 -07:00
Fernando López Guevara
e344b09475
feat(profile-view): split profile info entries when is_narrow
2025-07-15 14:42:43 -07:00
William Casarin
ac22fc7072
columns: enable toolbar scroll to top
...
Fixes: https://github.com/damus-io/notedeck/issues/969
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-15 13:30:40 -07:00
William Casarin
074472eec9
columns/timeline: include column index in timeline view_id
...
might fix weird scroll issues on profiles
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-15 13:02:05 -07:00
William Casarin
119456e2b3
columns: switch to bitflag app options
...
we're adding a ScrollToTop bool for an updating change
to the toolbar, but we have too many flags now. Let's switch
to bitflags
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-15 12:42:20 -07:00
William Casarin
baff14bbf0
ui/column: include pfp in back response
...
We were missing the pfp in the back response
Fixes: https://github.com/damus-io/notedeck/issues/923
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-15 10:51:02 -07:00
William Casarin
443d356cc7
ui/column: remove move/remove column buttons on narrow
...
It doesn't make sense to move columns in narrow mode
Fixes: https://github.com/damus-io/notedeck/issues/960
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-15 08:35:07 -07:00
William Casarin
a714bef690
ui/profile: fix dubious profile editing
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-15 08:28:37 -07:00
kernelkind
142aa879c3
make Contacts::is_following use bytes instead of Pubkey
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-14 21:34:08 -04:00
kernelkind
a7f5319fde
remove MuteFun prop
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-14 21:34:05 -04:00
kernelkind
397bfce817
add Accounts to NoteContext
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-14 21:34:02 -04:00
kernelkind
8c71e154f4
allow body on unknown profile
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-14 15:26:07 -04:00
Fernando López Guevara
d95de84f63
fix(chrome): add hover text and pointer cursor to sidebar elements
2025-07-14 09:58:06 -03:00
Fernando López Guevara
6739ed6d58
fix(compose-button): apply icon_color to compose button edge circles & add hover text
2025-07-14 09:56:01 -03:00
kernelkind
46633d0513
use AccountSubs for timeline contact sub
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-12 16:48:20 -04:00
William Casarin
44edffc596
android/input: add copy/paste context to post input
...
Fixes: https://github.com/damus-io/notedeck/issues/942
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-11 15:36:56 -07:00