kernelkind
200ef58912
UserAccount use builder pattern
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-23 13:53:32 -04: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
kernelkind
0adaafd523
remove unnecessary #[allow(dead_code)]
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-23 13:50:57 -04:00
William Casarin
3dccdf2bad
chrome: use actual columns noteaction executor
...
there is code duplication here and it is causing bugs
2025-04-22 19:07:25 -07:00
William Casarin
e8a1233174
dave: bubble note actions to chrome
...
This allows chrome to pass note actions to other apps
2025-04-22 18:42:12 -07:00
William Casarin
4cedea9fdb
dave: more flexible env config
...
With this I was able to get openrouter working:
DAVE_API_KEY=$OPENROUTER_API_KEY
DAVE_ENDPOINT=https://openrouter.ai/api/v1
DAVE_MODEL="google/gemini-2.0-flash-001"
RUST_LOG=async_openai=debug,notedeck_dave=debug
./target/release/notedeck
2025-04-22 16:46:38 -07:00
William Casarin
5c0874ab85
dave: give present notes a proper tool response
...
so the ai know we actually did something
2025-04-22 16:20:26 -07:00
William Casarin
56f5151739
dave: return tool errors back to the ai
...
So that it can correct itself
2025-04-22 16:05:54 -07:00
William Casarin
9692b6b9fe
dave: add query rendering, fix author queries
2025-04-22 10:50:58 -07: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
e4658df847
name: display_name before name in NostrName
...
This is technically more currect. name is more of a username for
tagging.
2025-04-22 10:47:14 -07:00
William Casarin
ba4198eeec
enostr: rename to_bech to npub
...
a bit more clear as to what this is
2025-04-22 10:46:51 -07:00
William Casarin
88aa78dc03
dave: ensure system prompt is included when reset
2025-04-21 17:27:38 -07:00
William Casarin
d4681801e8
dave: add new chat button
2025-04-21 17:10:03 -07:00
William Casarin
405b62c15a
docs: add notedeck_chrome docs
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-21 13:31:47 -07:00
William Casarin
f7e47dedee
docs: add notedeck_columns readme
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-21 13:26:02 -07:00
William Casarin
5f6a69b4b3
docs: add notedeck docs
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-21 13:21:45 -07:00
William Casarin
82c0bc0718
docs: add tokenator docs
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-21 13:16:18 -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
0d51e25ab0
dave: improve docs with ai
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-21 12:48:33 -07:00
William Casarin
6601747eb4
dave: add readme
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-21 12:26:50 -07:00
William Casarin
2fdb36475a
dave: add a few docs
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-21 12:11:21 -07:00
William Casarin
04a11fd45d
dave: cleanly separate ui from logic
...
This is a good demo of how easy it is to build a notedeck app,
so let's detangle the ui from logic to showcase this
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-21 12:05:27 -07:00
William Casarin
5811a5f4e6
dave: improve multi-note display
2025-04-20 09:05:02 -07:00
William Casarin
a33aad1f62
note: fix from_hex crash on bad note ids
2025-04-19 19:34:12 -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
d04fc892a7
dave: constrain power for now
...
we will focus on more specific tools instead
2025-04-17 12:53:31 -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
e4bae57619
refactor: ocd unnecessary pass by value
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-17 08:39:47 -07:00
William Casarin
81ef677bf2
refactor: nevernest get_display_name
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-17 08:37:14 -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
William Casarin
7836bde868
dave: fix input box
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-17 00:16:55 -07:00
William Casarin
fbdc2527ca
dave: give up on plaintext formatting
...
its so heavily trained to use markdown, lets just use that
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-17 00:16:30 -07:00
William Casarin
d30e4c53ee
post: fix bug where send shortcut send unfocused inputs
...
Fixes: https://github.com/damus-io/notedeck/issues/810
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-16 23:52:34 -07:00
William Casarin
b50bc2e988
dave: refactor a bit
...
pulling tokens isn't really a part of rendering,
so let's pull that out
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-16 22:41:41 -07:00
William Casarin
bf18eb4e69
refactor: extract input_ui into its own function
...
too many things happening in the ui function
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-16 22:29:20 -07:00
William Casarin
cc03f24920
refactor: move input buttons ui into its own fn
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-16 22:25:44 -07:00
William Casarin
aa0c1012db
misc: driveby fixes
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-16 22:20:00 -07:00
William Casarin
4a0e2fa347
dave: tweak prompt
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-16 20:35:39 -07:00
kernelkind
ae0a74d383
pulse pending zap button
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-16 14:14:48 -04:00
kernelkind
45fe192f75
introduce ImagePulseTint
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-16 13:34:55 -04:00
kernelkind
bd78be1659
move error out of AnyZapState
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-16 13:34:51 -04:00
kernelkind
2a2c177300
Fix flaky test_zap_event
...
Closes : #808
Co-authored-by: William Casarin <jb55@jb55.com >
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-15 08:42:05 -07:00
William Casarin
b228411b8d
columns: remove thread warning
...
yes threads suck, but this message is also annoying
2025-04-15 08:24:24 -07: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
4f0d96679d
previews: disable for now
...
we don't use these much and it slows compile time
2025-04-15 08:20:25 -07:00
William Casarin
87794fae33
chrome: fix wallet button
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-14 16:37:22 -07:00
William Casarin
e5c3bb4fe9
dave: fix bugs
...
fixed some bugs i introduced during the refactor
Signed-off-by: William Casarin <jb55@jb55.com >
2025-04-14 16:13:40 -07:00