William Casarin
1668b3701c
dave: add screenshot to readme
2025-04-30 08:44:42 -07:00
kernelkind
a38c682d78
use default zap amount for zap
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-23 13:53:32 -04:00
kernelkind
c456432015
ui: show default zap amount in wallet view
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-23 13:53:32 -04:00
kernelkind
fcec3b4c8e
accounts: check if selected account has wallet
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-23 13:53:32 -04:00
kernelkind
e6d9de2b99
wallet: helper method to get current wallet
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-23 13:53:32 -04:00
kernelkind
9013a2e067
propagate DefaultZapState to wallet ui
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-23 13:53:32 -04:00
kernelkind
f16e63cf3b
use ZapWallet
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-23 13:53:32 -04:00
kernelkind
61943aa6c7
introduce ZapWallet
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-23 13:53:32 -04:00
kernelkind
4b608cef5f
add default zap
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-23 13:53:32 -04:00
kernelkind
015e7790d0
move WalletState to UI
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-23 13:53:32 -04:00
kernelkind
9e21518e4b
Wallet token parser shouldn't parse all
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-04-23 13:53:32 -04:00
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