kernelkind
94598bedf5
introduce decks_cache
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-12-10 12:59:52 -05:00
kernelkind
deb08a5a9d
decks structs: remove unnecesssary unwraps
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-12-10 12:56:02 -05:00
kernelkind
a24bd4cc43
fix crash on AccountsView
...
It appears that Context::set_style doesn't keep the style changes from
the Damus constructor to the update method, but
`Context::all_styles_mut` does
Closes: https://github.com/damus-io/notedeck/issues/555
Closes: https://github.com/damus-io/notedeck/pull/560
Signed-off-by: kernelkind <kernelkind@gmail.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-09 15:31:20 -08:00
Ken Sedgwick
35138cd951
android: update to winit 0.30.5
2024-12-09 10:40:04 -08:00
Ken Sedgwick
66dbbf7c03
egui: update deprecated calls to use UiBuilder instead
2024-12-09 10:39:35 -08:00
Ken Sedgwick
e31ce5d879
android: Undo the workspace stuff because android builds don't like
2024-12-09 10:39:00 -08:00
William Casarin
32caaee642
Revert "introduce decks_cache"
...
This was causing a crash when switching accounts
This reverts commit 69e93b0ebf .
2024-12-09 09:05:05 -08:00
William Casarin
1b31557b03
prevent users from running as debug
...
We give a friendly message now. If you need to run as debug,
use `cargo run -- --debug` or `./target/debug/notedeck --debug`
We also remove the callstack feature because it doesn't seem
like you need it for widget callstacks.
Fixes: aafddf5acb ("debug: add crate features which enable egui DebugOptions")
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-07 20:56:14 -08:00
William Casarin
720230ca55
fix profiler
...
I updated puffin to egui v0.29.1 and now it works
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-07 19:53:32 -08:00
William Casarin
323d1bcd2c
Migrate to egui v0.29.1
...
Not too many breaking changes. I updated egui-nav and egui-tabs as well.
Fixes: https://github.com/damus-io/notedeck/issues/315
Changelog-Fixed: Fixed crash when navigating in debug mode
Changelog-Changed: Migrated to egui v0.29.1
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-07 16:40:43 -08:00
William Casarin
2543978ffe
github: unify fmt and clippy step
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-06 10:58:14 -08:00
William Casarin
c309894be8
deck: remove experimental feature
...
compiler was giving me errors
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-06 10:57:49 -08:00
William Casarin
a90645d475
simplify prev function
...
Thanks chatgpt, I thought this was more verbose than it could have been.
Changelog-None:
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-06 10:46:20 -08:00
kernelkind
69e93b0ebf
introduce decks_cache
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-12-06 10:46:20 -08:00
kernelkind
35613f2e74
ConfigureDeck & EditDeck user interfaces
...
`./preview ConfigureDeckView`
`./preview EditDeckView`
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-12-05 20:46:14 -05:00
kernelkind
83fe173ba3
appearance fixes
...
- query for emoji fonts
- add more font sizes
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-12-05 20:45:29 -05:00
kernelkind
40a96f1df2
decks structs
...
introduces `DecksCache`, `Decks`, and `Deck`
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-12-05 20:45:29 -05:00
William Casarin
cea433f69a
column: reduce bounciness when navigating
...
Also right align profile pics when navigating
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-05 14:02:18 -08:00
William Casarin
d06e790cd2
column: only show delete button when not navigating
...
This is pretty confusing otherwise
Changelog-Changed: Only show column delete button when not navigating
Fixes: https://github.com/damus-io/notedeck/issues/548
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-05 13:30:24 -08:00
William Casarin
edd71c1a2a
column: improve nav style
...
Show back label, switch back to chevron design
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-05 13:24:00 -08:00
William Casarin
8444047aa6
column: switch to profile pictures in header
...
We also switch away from manual layout to centered cross-alignment.
Changelog-Changed: Show profile pictures in column headers
Fixes: https://github.com/damus-io/notedeck/issues/12
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-05 12:51:02 -08:00
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
093cf8c720
column: switch to simplified strings for column headers
...
This uses less allocations, and once we switch to profile pictures in
the header the old way won't be needed
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-05 10:59:00 -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
aafddf5acb
debug: add crate features which enable egui DebugOptions
...
--features debug-widget-callstack
Show callstack for the current widget on hover if all modifier keys
are pressed down
--features debug-interactive-widgets
Show an overlay on all interactive widgets
Notes:
- debug-widget-callstack asserts `egui:callstack` feature when enabled
- Only works in debug builds, compile error w/ release builds
2024-12-03 09:09:02 -08:00
William Casarin
5dcab460e5
fix linux packages again
2024-12-02 15:43:04 -08:00
Ken Sedgwick
84838478b3
Skip muted content
2024-12-02 13:14:54 -08:00
Ken Sedgwick
d595631966
Add user mute list sync via polling
2024-12-02 13:14:53 -08:00
Ken Sedgwick
f00a67ab2c
Update user relay-list via polling
2024-12-02 13:14:50 -08:00
William Casarin
575d469aa0
Release v0.2.0 - Notedeck Alpha
...
Thanks to kernel and ken for helping with our first
release of Notedeck!
name added removed commits
-------------------------------------------------------------
William Casarin <jb55@jb55.com > +38170 -20819 552
kernelkind <kernelkind@gmail.com > +14206 -5593 140
Ken Sedgwick <ken@bonsai.com > +473 -206 24
hellodword +30 -23 1
alltheseas +12 -2 4
0xb10c <b10c@b10c.me > +6 -2 1
2024-11-30 11:10:47 -08:00
William Casarin
678c82b388
ci: fix linux packages
2024-11-30 11:05:55 -08:00
William Casarin
9055d07844
build: cross compile binary packages (rpm/deb/dmg)
...
Windows build still has issues on aarch64 so we postpone that for now
2024-11-30 09:42:50 -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
William Casarin
c07276e5d0
support: just use version instead of notedeck
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-29 11:38:20 -08:00
William Casarin
4a1985d728
text: make tiny text smaller
...
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
42c0f02072
onboarding: add introductions hashtag column
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-29 10:35:15 -08:00
William Casarin
f8d6fbf153
refactor: simplify demo timeline if statement
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-29 10:34:56 -08:00
William Casarin
c8d95aca2a
timeline: add simple hashtag timeline constructor
...
Useful for adding hashtag timelines manually without the
into_timeline thing
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-29 10:34:18 -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