William Casarin
d82d7fd00d
Merge relay debug view fixes & more strict args #711
...
Ken Sedgwick (5):
drive-by compiler warning fixes
drive-by clippy fixes
add derive Debug to some things
panic on unknown CLI arguments
move RelayDebugView to notedeck crate and restore --relay-debug
William Casarin (4):
clippy: fix lint
args: skip creation of vec
nix: fix android build
Link: https://github.com/damus-io/notedeck/pull/711
2025-02-10 17:03:23 -08:00
William Casarin
7f0d0106d9
Merge remote-tracking branch 'github/pr/724'
2025-02-10 16:52:56 -08:00
William Casarin
c4b56a48af
Merge ctrl-enter to post
...
Ethan Tuttle (1):
feat: ctrl+enter when creating a new note, sends the note, the same way clicking the "Post Now" button.
2025-02-10 16:46:24 -08:00
William Casarin
d0be18c80e
clippy: fix enum too large issue
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-10 16:33:58 -08:00
William Casarin
194fa68641
profilesearch: add some padding
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-10 16:08:19 -08:00
Ethan Tuttle
8aaaa336e2
feat: ctrl+enter when creating a new note, sends the note, the same way clicking the "Post Now" button.
...
This button combination is common enough in "power user" apps for multiline input that I think this is a good default and could likely be configurable in the future.
2025-02-08 21:48:00 -05:00
jglad
4aefe1f1fe
refactor
2025-02-08 10:59:15 +01:00
jglad
8588600a2c
fix: handle missing file [ #715 ]
2025-02-08 10:52:37 +01:00
kernelkind
0e21611645
cache LayoutJob
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-02-07 15:58:57 -05:00
kernelkind
bc8ed2c642
color mentions in PostView
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-02-07 15:58:57 -05:00
kernelkind
a3e975d133
implement TextBuffer -> PostBuffer downcasting
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-02-07 15:58:57 -05:00
kernelkind
b9501ad572
add mention tags to post note
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-02-07 15:58:57 -05:00
kernelkind
c0662798a2
add PostView mentions UI
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-02-07 15:58:57 -05:00
kernelkind
e7ada80876
mentions logic
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-02-07 15:58:57 -05:00
kernelkind
c375146658
add SearchResultsView impl
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-02-07 15:58:57 -05:00
kernelkind
c1c4c1cc7a
supply inner_rect for PostView
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-02-07 15:58:57 -05:00
William Casarin
0d22debb05
Merge multiple image uploading
...
kernelkind (1):
allow multiple media uploads per selection
2025-02-06 16:51:01 -08:00
kernelkind
0aa70239fe
remove # char if user inserted it
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-02-06 16:50:25 -05:00
kernelkind
7efb31c145
allow multiple media uploads per selection
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-02-06 15:55:53 -05:00
Ken Sedgwick
091c638eb1
move RelayDebugView to notedeck crate and restore --relay-debug
2025-02-06 12:25:37 -08:00
Ken Sedgwick
480f98eda4
panic on unknown CLI arguments
...
Currently silently ignores which is not helpful ...
2025-02-06 12:25:31 -08:00
William Casarin
c32a42f9b9
clippy: fix naming lint
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-06 12:17:48 -08:00
Ken Sedgwick
201cfb2db1
add derive Debug to some things
2025-02-06 10:32:50 -08:00
Ken Sedgwick
345324a2f6
drive-by compiler warning fixes
2025-02-06 10:32:49 -08:00
Ken Sedgwick
482313f883
add relay hints to Mention::{Profile,Event} and UnknownIds
2025-02-06 10:08:01 -08:00
Ken Sedgwick
f0588a7f6b
drive-by compiler warning fixes
2025-02-06 10:08:00 -08:00
William Casarin
ac10c7e5b2
hashtags: click hashtags to open them
...
Fixes: https://github.com/damus-io/notedeck/issues/695
Fixes: https://github.com/damus-io/notedeck/issues/713
Changelog-Added: Add ability to click hashtags
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-05 18:43:09 -08:00
William Casarin
0cc1d8a600
Switch to unified timeline cache via TimelineKinds
...
This is a fairly large rewrite which unifies our threads, timelines and
profiles. Now all timelines have a MultiSubscriber, and can be added
and removed to columns just like Threads and Profiles.
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-05 18:30:45 -08:00
William Casarin
d46e526a45
tokens: switch over to using token serialization
...
This removes all of the old serialization code
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-04 08:08:08 -08:00
William Casarin
5ba06986db
tokens: add token serialization for TimelineKind
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-04 08:08:08 -08:00
William Casarin
d108df86b4
tokens: add token serialization for AlgoTimeline
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-04 08:08:08 -08:00
William Casarin
ed455f7ea4
add tokenator crate
...
also remove a lot of the "advanced" token parsing style
which was a bit too verbose for my tastes
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-04 08:08:08 -08:00
William Casarin
29491cca05
tokens: initial Route token serializer
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-04 08:08:08 -08:00
William Casarin
4e87ed7065
tokens: add TimelineRoute token serializer
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-04 08:08:08 -08:00
William Casarin
70a39ca69c
tokens: add PubkeySource and ListKinds token serializer
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-04 08:08:08 -08:00
William Casarin
6b57401e14
tokens: add AccountsRoute token serializer
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-04 08:08:08 -08:00
William Casarin
00ef3082f3
tokens: add a more advanced tokens parser
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-04 08:08:08 -08:00
William Casarin
efa5b7e32f
token_parser: simplify AddColumnRoute serialization
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-04 08:08:08 -08:00
William Casarin
4f89d95aef
token_serializer: introduce TokenWriter
...
This simplifies token serialization
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-04 08:08:08 -08:00
William Casarin
61b3a92792
token_parser: unify parsing and serialization
...
This reduces the number of things we have to update in our token parser
and serializer. For payloads, we we have to handle the payload cases
different, but we now have a structure that can deal with that
efficiently.
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-04 08:08:08 -08:00
William Casarin
005ecd740d
Initial token parser combinator
...
In an attempt to make our deck serializer more localized,
comprehensible, and less error-prone, we introduce a new parser
combinator based around string tokens.
This replaces the Selection-based intermediary types so that we have a
more direct serialization style.
2025-02-04 08:08:08 -08:00
William Casarin
662755550f
wip algo timelines
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-04 08:08:08 -08:00
William Casarin
9dd33d5c5b
pfp: 4.0 stroke, add border_stroke method
...
This reduces code duplication, and makes the border a bit cleaner
so that it blends into the panel color
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-03 20:24:51 -08:00
William Casarin
96481a47f3
pfp: remove border except for profile
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-03 19:45:32 -08:00
William Casarin
635c9770de
Merge 'add border behind pfp' #597
...
Hello new contributor!
jglad (4):
#597 add border behind pfp
replace with full circle border
make optional
fix formatting
2025-02-03 19:34:10 -08:00
kernelkind
623b4617d2
move login help text below TextEdit
...
closes: https://github.com/damus-io/notedeck/issues/687
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-02-03 15:30:32 -05:00
William Casarin
f8f3676450
clippy fixes
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-02-03 11:38:55 -08:00
kernelkind
2b7d66e7ae
add deck icon hover tooltip with deck name
...
closes: https://github.com/damus-io/notedeck/issues/691
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-02-03 14:32:39 -05:00
Derek Ross
baf1dc0d7e
fix: change word verification to identification
2025-01-31 19:52:17 -05:00
Derek Ross
582a43e9f4
fix: updated NIP-05 verification to Nostr address
2025-01-31 19:47:59 -05:00