William Casarin
713d9d7bb5
column: use simplified column string titles for now
...
even though we will replace this soon, it is still technically
more correct than Timeline(1), etc
2024-12-05 10:59:23 -08:00
William Casarin
be3edc02a4
nav: refactor title rendering for flexibility
...
Updated navigation to use a custom title renderer for more flexible
rendering of navigation titles. This change decouples the rendering
logic from predefined formats, enabling dynamic title compositions
based on application context and data.
This includes:
- Refactoring `NavResponse` to introduce `NotedeckNavResponse` for
handling unified navigation response data.
- Adding `NavTitle` in `ui/column/header.rs` to handle rendering
of navigation titles and profile images dynamically.
- Updating route and timeline logic to support new rendering pipeline.
- Replacing hardcoded title rendering with data-driven approaches.
Benefits:
- Simplifies navigation handling by consolidating title and action
management.
- Improves scalability for new navigation features without modifying
core logic.
- Enhances visual customization capabilities.
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-05 10:58:59 -08:00
William Casarin
cf773a90fd
anim: smoothly animate delete button from 0 size
...
This is a much cleaner animation
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-05 10:57:21 -08:00
William Casarin
900d13ad4d
ui: fix duplicate hitbox widget ids
...
Fixes: 78210e8208 ("ui: fix quote repost hitbox")
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-03 20:46:41 -08:00
William Casarin
78210e8208
ui: fix quote repost hitbox
...
The response from the wide rendered note was incorrect, leading to and
incorrectly sized hitbox. This fixes that.
Additionally, we include note options and note parent into the hitbox
key, as this may influence the size of the note.
Before: https://cdn.jb55.com/s/b2464c22a65adb12.png
After: https://cdn.jb55.com/s/52545564d98d278e.png
Fixes: https://github.com/damus-io/notedeck/issues/519
Closes: https://github.com/damus-io/notedeck/pull/537
Changelog-Fixed: Fix broken quote repost hitbox
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-03 17:53:29 -08:00
William Casarin
229694466a
ui: use proper response in wide-rendered note
...
This was causing hitbox issues
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-03 17:52:52 -08:00
Ken Sedgwick
84838478b3
Skip muted content
2024-12-02 13:14:54 -08:00
William Casarin
2969db7e30
img: include jpeg when detecting images
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-29 12:19:47 -08:00
kernelkind
b581501620
add missing light mode icons
...
Closes : #502
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-11-29 12:10:46 -08:00
William Casarin
6ab8eb078e
ui: add top spacing for sidepanel on macos
...
also slightly increase width
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-29 12:08:33 -08:00
William Casarin
65537b28fd
ui: remove top panel
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-29 11:59:36 -08:00
William Casarin
800fb920a2
ui: make notedeck alpha text gray instead of purple
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-29 11:38:20 -08:00
kernelkind
0855186a8a
misc fixes
...
- add notedeck version number to support view & email body
- add milestone name below Damus logo in side panel
- remove search button in side panel
- remove fps counter & text mode in top bar
- remove 'add relay' button in settings view
Closes : #505
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-11-29 11:37:56 -08:00
kernelkind
42f9ec97a6
ui: style hashtag button
...
Closes : #504
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-11-29 10:45:43 -08:00
William Casarin
37ab6f33fb
accounts: remove pink selected frame
...
Opinionated design call I am making
Fixes: 36b8afd1750d ("Update account management UI to design")
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-29 10:21:49 -08:00
kernelkind
0ac131ef06
ui: update account management to design
...
Closes: https://github.com/damus-io/notedeck/issues/486
Fixes: https://github.com/damus-io/notedeck/issues/444
Signed-off-by: kernelkind <kernelkind@gmail.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-29 10:21:17 -08:00
kernelkind
19bc37b0bc
panel: off-white
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-29 10:04:57 -08:00
William Casarin
0171e6c970
clippy: fix clippy warnings
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-28 12:01:47 -08:00
William Casarin
de802cd363
Revert "ui: simply hide post button if buffer is empty"
...
This reverts commit 4133570c2e .
2024-11-27 09:30:07 -08:00
William Casarin
4a9267fed1
Merge disable compose button if selected not nsec #470
...
kernelkind (2):
don't try to use other accounts to post
disable compose button if selected not nsec
2024-11-26 10:12:32 -08:00
William Casarin
a147aa0961
fix fmt
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-22 13:31:43 -08:00
William Casarin
9cfae313aa
Merge include commit hash in SupportView #471
...
kernelkind (1):
include commit hash in SupportView
2024-11-22 13:03:34 -08:00
William Casarin
c9d1b48706
Merge disable post button if draft buffer empty #469
...
William Casarin (2):
ui: simply hide post button if buffer is empty
kernelkind (1):
disable post button if draft buffer empty
2024-11-22 13:01:03 -08:00
William Casarin
4133570c2e
ui: simply hide post button if buffer is empty
...
Fixes: 8464a1d22c ("disable post button if draft buffer empty")
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-22 12:59:38 -08:00
kernelkind
792abf11d7
add new column type: hashtag
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-11-21 20:18:39 -05:00
kernelkind
308717cabf
include commit hash in SupportView
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-11-21 16:13:36 -05:00
kernelkind
d090766db9
disable compose button if selected not nsec
...
closes: https://github.com/damus-io/notedeck/issues/353
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-11-21 15:45:13 -05:00
kernelkind
8464a1d22c
disable post button if draft buffer empty
...
closes: https://github.com/damus-io/notedeck/issues/417
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-11-21 15:27:19 -05:00
William Casarin
7f234935cc
refactor: unify note, post and nav actions
...
There was a bunch of redundant responses. Let's unify them under
the RenderNavAction enum. We unify all action processing under this
type.
This also centralizes all of our side effects into a single function
instead of scattering them everywhere
2024-11-19 18:43:09 -08:00
William Casarin
d97c957e67
Merge remote-tracking branch 'pr/455' into login-first-open
2024-11-18 18:27:46 -08:00
William Casarin
22e67c95cc
refactor: rename AccountsManager to Accounts
...
plz stop with the managers
2024-11-18 18:03:57 -08:00
William Casarin
6545e1ddee
thread: ensure thread unknowns are handled
2024-11-18 17:28:55 -08:00
alltheseas
252aa11359
Update account_login_view.rs
...
added example nip05/nostr address in "enter your public key..." field
2024-11-18 08:58:34 -06:00
William Casarin
a678e647a4
hide media on universe view
...
Also fixes textmode
Fixes: https://github.com/damus-io/notedeck/issues/443
2024-11-17 16:45:28 -08:00
William Casarin
01bedac710
Fix filter states when adding columns
...
This fixes various issues with filter states when adding columns. We now
maintain multiple states per relay so that we don't lose track of
anything.
Fixes: https://github.com/damus-io/notedeck/issues/431
Fixes: https://github.com/damus-io/notedeck/issues/359
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-14 15:25:08 -08:00
William Casarin
91016facc7
Merge Persist Columns #390
...
Fixed a few merge conflicts
kernelkind (2):
initial column storage
tmp remove DeckAuthor columns
2024-11-13 13:13:55 -08:00
William Casarin
94b97d247d
Merge Add External Notifications Column setting #395
...
kernelkind (2):
init external notifs column
use AcquireKeyState for AddColumn
2024-11-13 13:06:18 -08:00
William Casarin
fab1257f6e
paths: remove hardcoded basepath
...
Before we were hardcoding the basepath with dirs, which isn't that
useful for testing, previews, or for android. Let's fix that.
This also moves the db and cache directories into our root DataPaths.
This is a breaking change, we don't have a migration step. sorry.
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-13 09:55:56 -08:00
kernelkind
412ba9b565
use AcquireKeyState for AddColumn
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-11-02 22:18:27 -04:00
kernelkind
529b76094c
init external notifs column
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-11-02 22:18:23 -04:00
kernelkind
ee5dd5426f
tmp remove DeckAuthor columns
...
we don't yet have logic for handling switching 'deck authors' and this
is causing two problems:
1. the column title isn't renamed when the selected account is changed
2. when saving a deck author column to disk and the account is switched
beforehand, it switches to the current deck author's column
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-30 13:46:00 -04:00
kernelkind
503b7edeb5
use open instead of egui OpenUrl for mailto link
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-28 17:02:40 -04:00
kernelkind
309477dca4
support view
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-25 15:23:35 -04:00
William Casarin
d729823f33
Merge 'Update account_login_view.rs' #366
...
alltheseas (1):
Update account_login_view.rs
2024-10-22 10:35:57 -07:00
alltheseas
f83eb38342
Update account_login_view.rs
...
Changed "enter your key here" to include specific reference to npub, nsec, and nip05 as to show login options to the notedeck customer.
New text: "Enter your public key (npub, nip05), or private key (nsec) here..."
2024-10-18 12:11:32 -05:00
kernelkind
eedb4e1297
NoteActionResponse for note preview pfp clicking
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-15 13:21:39 -04:00
kernelkind
2d7da83872
rename TimelineResponse -> ColumnNoteResponse
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-15 12:35:06 -04:00
kernelkind
0a077ae797
fix unnecessary copy every frame
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-15 11:45:13 -04:00
kernelkind
e5ba897ce6
revert timeline no_scroll stuff
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-15 11:22:48 -04:00
kernelkind
dcb6620ddd
proper timelineTabs
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-14 17:39:10 -04:00