Commit Graph

783 Commits

Author SHA1 Message Date
Bu5hm4nn
d995784b90 Feed Loading: Show spinner and hide buttons (fixes #749) 2024-05-02 11:47:48 -06:00
Daniele Tonon
a3387d0af4 MoreMenu: Update dot color and add light theme 2024-05-02 10:20:28 +02:00
Bu5hm4nn
634b21fcdf MoreMenu: Tune "simple" style to match new proposal by Daniele 2024-05-01 21:38:45 -06:00
Bu5hm4nn
09f9594959 DM Chatlist: Fix rows not clickable 2024-05-01 21:03:31 -06:00
Daniele Tonon
23f8970b81 MoreMenu: increase Y padding 2024-05-02 00:55:32 +02:00
Daniele Tonon
93b21a4d74 MoreMeu: apply a softer shadow 2024-05-02 00:55:32 +02:00
Mike Dilger
2f2993d5aa Merge remote-tracking branch 'bushmann/feature/refine-more-menu' into unstable 2024-05-02 07:22:53 +12:00
Mike Dilger
e4cdf1d8e5 Update nostr-types 2024-04-30 11:27:06 +12:00
Bu5hm4nn
bf40cd4987 Merge remote-tracking branch 'dilger/unstable' into feature/refine-more-menu
# Conflicts:
#	gossip-bin/Cargo.toml
2024-04-28 21:42:23 -06:00
Bu5hm4nn
36ddd3e5f3 Fix unused warnings 2024-04-27 19:08:59 -06:00
Bu5hm4nn
6763e693b8 MoreMenus: Convert most more menu instances to new style 2024-04-27 18:44:26 -06:00
Bu5hm4nn
147665fa2e ListEntry: Remove hack that made list entries clickable with egui 0.26. It messes up the ui.auto_id_with() counter which in turn messes up MoreMenu's. Now the Name and Avatar are clickable and will lead to profile page. 2024-04-27 18:35:29 -06:00
Bu5hm4nn
358aa7c46b Settings: Add setting to optionally enable the wgpu renderer, also add commandline to turn it on and off 2024-04-27 11:15:34 -06:00
Bu5hm4nn
854bd33654 winit: Enable "wgpu" renderer (supports Vulkan, Metal, etc) 2024-04-26 17:21:32 -06:00
Mike Dilger
0cb2a26435 Added the ability to add "annotation" tag to a reply to your own posts (via "A" button) 2024-04-27 11:12:44 +12:00
Mike Dilger
af5cec0d7e Render annotations inside of a note in the UI 2024-04-27 11:12:36 +12:00
Bu5hm4nn
7d7b0d4c03 Colors: Update window fill and default content colors to use new palette 2024-04-26 16:42:43 -06:00
Bu5hm4nn
4e058551c9 MoreMenu: Complete Bubble style according to design 2024-04-26 16:42:10 -06:00
Mike Dilger
8ca7dfeb06 Update nostr-types (rust-lightning patch to avoid overflow) 2024-04-26 18:42:36 +12:00
Bu5hm4nn
39ec60f429 MoreMenu: Get Closures working by specifying dyn trait lifetime 2024-04-25 22:04:33 -06:00
Bu5hm4nn
1b7eecc075 MoreMenu: Attempt to refine to passing list of item text and action closure 2024-04-25 20:52:08 -06:00
Mike Dilger
fe2e87d345 Update nostr-types and match dep versions 2024-04-26 14:26:54 +12:00
Mike Dilger
83d14ca722 Update nostr-types (event.is_annotation(), event.quotes(), EventAddr kind checked for replaceability) 2024-04-26 14:26:54 +12:00
Bu5hm4nn
f97bdf4733 MoreMenu: Move button creation outside of MoreMenu to give more control over button style 2024-04-25 19:12:11 -06:00
Bu5hm4nn
788bb4af05 New Widgets: Fix Button text sizes for note actions 2024-04-25 11:43:17 -06:00
Bu5hm4nn
6d730122a5 Posting Area: Match style of DM posting area to main Posting area. 2024-04-25 11:42:54 -06:00
Bu5hm4nn
31eb195b61 New Widgets: Use new Buttons in more places 2024-04-25 11:42:23 -06:00
Bu5hm4nn
b6e535424f New Widgets: Make sure "danger hover" is also shown when button is focused (i.e. by keyboard).
ThemeTest Page:  Add new button states and button to quickly switch between dark and light modes
2024-04-25 10:15:04 -06:00
Bu5hm4nn
5a089d5f9d New Widgets: Use new Button widget for MoreMenu and create small button variant 2024-04-25 09:44:44 -06:00
Bu5hm4nn
616da20c88 New Widgets: Make use of Button::primary widget in many places 2024-04-24 22:27:51 -06:00
Bu5hm4nn
0a918dd2bc Merge remote-tracking branch 'dilger/unstable' into feature/new-widgets
# Conflicts:
#	gossip-bin/src/ui/people/list.rs
#	gossip-bin/src/ui/people/person.rs
2024-04-23 13:16:47 -06:00
Mike Dilger
f532d63213 Use Private type for person_lists value (INVERTS THE DATABASE SENSE) 2024-04-23 09:05:52 +12:00
Mike Dilger
9eee972564 Use Private type in people follow/mute and nip05 follow functions (inverts sense) 2024-04-23 09:04:37 +12:00
Mike Dilger
1d819a2dd4 Use Private type in ToOverlordMessage follow messages (inverts sense) 2024-04-23 08:59:26 +12:00
Mike Dilger
2ec7702194 Use Private type for person_list_metadata.private field 2024-04-23 08:52:25 +12:00
Mike Dilger
0c8b049918 fix: Safer way to detect list mismatch 2024-04-22 13:05:23 +12:00
Mike Dilger
084b21b3c0 fix grammar 2024-04-22 13:02:52 +12:00
Mike Dilger
58f216b3a2 cargo clippy 2024-04-22 13:02:52 +12:00
Mike Dilger
9253b2699a Move About to gossip-bin, so help page doesn't say "gossip-lib" 2024-04-21 08:38:35 +12:00
Michael Dilger
6328f254e9
Merge pull request #726 from bu5hm4nn/fix/show-error-message-on-unparsable-embedded-event
Show error on unparseable embedded note content
2024-04-20 13:19:00 +12:00
Bu5hm4nn
3206a36047 Show error on unparseable embedded note content 2024-04-19 19:09:48 -06:00
Mike Dilger
06a72eb3e0 Update nostr-types (bugfix Event ordering) 2024-04-20 12:32:40 +12:00
Bu5hm4nn
d43f03b9db Relay Pages: Only show Reasons when "Debug Statistics" are turned on 2024-04-20 08:23:18 +12:00
Mike Dilger
8095582206 Do not show private count of Followed list (and force to 0 just in case) 2024-04-18 09:45:51 +12:00
Mike Dilger
0c541e7c50 Merge branch 'master' into unstable 2024-04-18 09:40:40 +12:00
Mike Dilger
c43ec9ed2b Remove leftover flagword in comments 2024-04-18 09:19:25 +12:00
Mike Dilger
16688bb2d4 Fix transaction-related bugs in loading/saving relays 2024-04-18 09:19:25 +12:00
Mike Dilger
49b78a3f97 Fix transaction-related bugs in loading/saving relays 2024-04-18 08:52:12 +12:00
Mike Dilger
cf4f04fc0d command: print seen on 2024-04-17 14:20:09 +12:00
Mike Dilger
7318b72349 Update for nostr-types 2024-04-17 14:20:09 +12:00
Mike Dilger
6b73fb5e3c update nostr-types (generic decryption, better decryption error) 2024-04-17 14:20:09 +12:00
Bu5hm4nn
12075d4243 New Widgets: Manually port important changes from 'feature/color-palette' branch 2024-04-16 12:41:14 -06:00
Bu5hm4nn
45180003de Button Styles and Widgets: Rename to "Primary", "Secondary" and "Bordered" 2024-04-16 11:22:34 -06:00
Michael Dilger
b8938d1c5f
Merge pull request #715 from bu5hm4nn/feature/settings-custom-mouse-acceleration
Settings: Allow custom Mouse acceleration values in textbox
2024-04-16 13:28:02 +12:00
Mike Dilger
b7080f5988 cargo fmt 2024-04-16 13:27:13 +12:00
Bu5hm4nn
cfd44fefce Settings: Allow custom Mouse acceleration values in textbox (and dynamically adjust the slider) fixes #691 2024-04-16 13:24:36 +12:00
Bu5hm4nn
1a5451a5c0 Tagging: Interact again over painted text to workaround current egui bug. Fixes #707 2024-04-16 13:24:29 +12:00
Bu5hm4nn
7d7057c724 Tagging: Only create a popup for the first match (same rule as do_replacements()) 2024-04-16 13:24:29 +12:00
Bu5hm4nn
967683959e Tagging: Do tag replacements only once per tag 2024-04-16 13:24:29 +12:00
Bu5hm4nn
2cc95f425b Tagging: Interact again over painted text to workaround current egui bug. Fixes #707 2024-04-15 15:46:41 -06:00
Bu5hm4nn
93ee0ad81f Tagging: Only create a popup for the first match (same rule as do_replacements()) 2024-04-15 14:21:34 -06:00
Bu5hm4nn
72e334731e Tagging: Do tag replacements only once per tag 2024-04-15 14:14:37 -06:00
Bu5hm4nn
5c13be4294 Settings: Allow custom Mouse acceleration values in textbox (and dynamically adjust the slider) fixes #691 2024-04-15 13:23:50 -06:00
Mike Dilger
315bc115fc command: import_encrypted_private_key 2024-04-15 14:41:43 +12:00
Mike Dilger
0958234632 Fix logic of command login 2024-04-15 14:40:52 +12:00
Mike Dilger
d5b3ad1164 command: import_encrypted_private_key 2024-04-15 13:30:01 +12:00
Mike Dilger
4b07dc4cb6 Fix logic of command login 2024-04-15 13:21:36 +12:00
Mike Dilger
059a3c46eb Command: export_encrypted_key 2024-04-15 13:07:55 +12:00
Mike Dilger
fa81c27351 cargo fmt 2024-04-15 10:03:55 +12:00
Mike Dilger
d3aec9556f cargo fmt 2024-04-15 10:03:11 +12:00
Mike Dilger
8b143847f2 Fix followed-list comparison; Fix out-of-sync personlist lengths 2024-04-15 10:02:24 +12:00
Daniele Tonon
09b3e2cc5b Show relay alert icon only for ws:// protocol 2024-04-15 10:02:20 +12:00
Daniele Tonon
b317038cbe Notifications: optimize space around Reasons label 2024-04-15 10:01:53 +12:00
Daniele Tonon
c7acdc21db Notifications: Use new palette colors instead of complementary 2024-04-15 10:01:49 +12:00
Daniele Tonon
f67e550986 Notifications: add a gap before the actions block 2024-04-15 10:01:45 +12:00
Daniele Tonon
7c3cba0263 Notifications: Reduce space in notification counters 2024-04-15 10:01:41 +12:00
Daniele Tonon
06db88b99d Notifications: Put reasons on a new line on small UI 2024-04-15 10:01:36 +12:00
Bu5hm4nn
3d744f0493 Notifications: Make header separate again, wrap description.
Widgets: Add Relay Url widget
2024-04-15 10:01:11 +12:00
Bu5hm4nn
56a62f118c Notifications: Update Layout to be more responsive and consistent over different notification types 2024-04-15 10:01:07 +12:00
Bu5hm4nn
e8a77efcdb Notifications: Update colors for dark mode, also tone down colors when no notifications present 2024-04-15 10:01:01 +12:00
Mike Dilger
6b5305603c Merge commit '7792737da7602afd0ddd77ae869758d988b558a3' into unstable 2024-04-15 10:00:22 +12:00
Daniele Tonon
7792737da7 Show relay alert icon only for ws:// protocol 2024-04-14 23:30:46 +02:00
Mike Dilger
4f6e3824fd Fix followed-list comparison; Fix out-of-sync personlist lengths 2024-04-15 06:57:15 +12:00
Daniele Tonon
d1cda19c6d Notifications: optimize space around Reasons label 2024-04-11 20:01:01 +02:00
Daniele Tonon
eb7818b40e Notifications: Use new palette colors instead of complementary 2024-04-11 20:01:01 +02:00
Daniele Tonon
15d373b5ae Notifications: add a gap before the actions block 2024-04-11 20:01:01 +02:00
Daniele Tonon
81dafc0f01 Notifications: Reduce space in notification counters 2024-04-11 20:01:01 +02:00
Daniele Tonon
f6224a5ab9 Notifications: Put reasons on a new line on small UI 2024-04-11 19:58:48 +02:00
Bu5hm4nn
ec3c245e61 Notifications: Make header separate again, wrap description.
Widgets: Add Relay Url widget
2024-04-11 12:57:21 +12:00
Bu5hm4nn
9fc716bf4b Notifications: Update Layout to be more responsive and consistent over different notification types 2024-04-11 12:57:17 +12:00
Bu5hm4nn
682554599d Notifications: Update colors for dark mode, also tone down colors when no notifications present 2024-04-11 12:53:30 +12:00
Bu5hm4nn
383686e491 Notifications: Make header separate again, wrap description.
Widgets: Add Relay Url widget
2024-04-10 17:18:38 -06:00
Bu5hm4nn
8124e7eceb Notifications: Update Layout to be more responsive and consistent over different notification types 2024-04-10 13:48:24 -06:00
Mike Dilger
cdf88ae0a0 Command: export_encrypted_key 2024-04-10 11:12:08 +12:00
Bu5hm4nn
1d98e93be9 Notifications: Update colors for dark mode, also tone down colors when no notifications present 2024-04-08 19:15:16 -06:00
Mike Dilger
ed26c4a81f Remove old indexes and their usage (except in old migrations) 2024-04-06 10:13:07 +13:00
Mike Dilger
1eef6c40d6 Use new find_events_by_filter, retire old find functions 2024-04-06 10:13:07 +13:00
Mike Dilger
b5a2f12f3b Add stats of new indexes on help page 2024-04-06 10:13:07 +13:00
Mike Dilger
59e6c44fbb update nostr-types 2024-04-05 09:28:05 +13:00
Mike Dilger
ff53e3bee9 Reapply "Give the post icon some opacity so we can see what is in the post behind it, and move to top if feed reversed"
This reverts commit 831887fb4e.
2024-04-04 11:07:55 +13:00
Mike Dilger
43724ed281 Reapply "Option to render feed with newest at bottom"
This reverts commit b51e65a7c6.
2024-04-04 11:07:55 +13:00
Mike Dilger
4391701973 Bump version to 0.11-unstable 2024-04-04 11:07:55 +13:00
Mike Dilger
19b952ab53 Cargo clippy and fmt 2024-04-04 11:07:22 +13:00
Mike Dilger
d02a3b642d Merge commit '4136ca58e1f0e3d90db4c7a2b56e98aa432d2812' into unstable 2024-04-04 10:41:29 +13:00
Daniele Tonon
4136ca58e1 Increase right padding and fix top bar 2024-04-03 11:53:34 +02:00
Mike Dilger
408337be12 spelling 2024-04-03 11:52:20 +13:00
Mike Dilger
baa79bd2b8 Merge branch 'unstable' into pending-notifications 2024-04-03 11:52:12 +13:00
Bu5hm4nn
b82e139013 Add right margin to the feed to make space for the scroll bar 2024-03-29 21:39:48 -06:00
Bu5hm4nn
b43033b0ba Fix #701: bug handling kind:6 reposts without embedded note, when the e-tag is not the first tag. 2024-03-29 20:56:58 -06:00
Bu5hm4nn
7795f194e6 Notifications: Add Filter combo box 2024-03-29 18:36:12 -06:00
Bu5hm4nn
d6fe9ce796 Notifications: Make sure 'Remember' switch values are persisted when new pending data comes in 2024-03-29 18:10:47 -06:00
Bu5hm4nn
85f9220531 Make notifications fit in min app size 2024-03-29 13:10:24 -06:00
Bu5hm4nn
00371cdd8b cleanup warning 2024-03-28 22:50:19 -06:00
Bu5hm4nn
5b0d07daaa Merge commit 'cfd0a06a9a0dba726fe46a09adc125a63d2efac2' into feature/pending-notifications
# Conflicts:
#	gossip-bin/src/ui/notifications/mod.rs
2024-03-28 22:48:11 -06:00
Bu5hm4nn
0f65c328c2 Pending Notifications: Implement "icon summary" and replace menu item with it 2024-03-28 22:36:33 -06:00
Bu5hm4nn
b60358357e Add standardized colors to Theme 2024-03-28 21:07:14 -06:00
Bu5hm4nn
233d970596 Merge remote-tracking branch 'dilger/unstable' into feature/pending-notifications
# Conflicts:
#	gossip-bin/src/ui/widgets/mod.rs
2024-03-28 20:24:34 -06:00
Mike Dilger
cfd0a06a9a Allow point-release updates of chrono 2024-03-29 13:59:13 +13:00
Mike Dilger
f9acdcefaa Name fields in PendingItem variants 2024-03-29 13:58:49 +13:00
Mike Dilger
780d3ddf60 clippy fixes 2024-03-29 13:34:13 +13:00
Mike Dilger
dc333b3d90 cargo fmt 2024-03-29 12:51:33 +13:00
Mike Dilger
9051d6f113 logging fixes 2024-03-29 11:55:03 +13:00
Bu5hm4nn
5c707bd5a3 Cleanup old commented code 2024-03-28 16:16:38 -06:00
Mike Dilger
871f29fe54 Update nostr-types 2024-03-29 09:58:58 +13:00
Bu5hm4nn
5480458634 Cleanup old commented code 2024-03-28 14:46:33 -06:00
Bu5hm4nn
47ba7863ad Use borderd button for manage actions 2024-03-28 14:19:51 -06:00
Mike Dilger
e662f4d9d9 Update for EventReference changes 2024-03-29 08:59:26 +13:00
Mike Dilger
b17a005f10 Update nostr-types 2024-03-29 08:59:26 +13:00
Bu5hm4nn
f7054b83eb Pending Notifications: Show timestamps in user's local timezone (uses OS timezone thanks to chrono crate) 2024-03-28 12:25:02 -06:00
Bu5hm4nn
ad2ec883de Merge remote-tracking branch 'dilger/unstable' into feature/pending-notifications 2024-03-27 20:57:56 -06:00
Bu5hm4nn
7629c6a355 Pending: Rework permission system into Pending system and create UI page for Notifications 2024-03-27 20:57:38 -06:00
Mike Dilger
04aa5db932 Merge remote-tracking branch 'bushmann/feature/clickable-relay-links-in-profile' into unstable 2024-03-28 10:09:33 +13:00
Mike Dilger
855e7c2f1f Merge remote-tracking branch 'bushmann/feature/warn-no-audio-device' into unstable 2024-03-28 10:02:01 +13:00
Bu5hm4nn
f421a25304 Make sure Person::best_name() is the only way of choosing the best name 2024-03-26 14:52:51 -06:00
Bu5hm4nn
45eb3648fe Tagging: Prioritize not only followed people but people on all lists 2024-03-26 14:52:01 -06:00
Bu5hm4nn
579757dab9 Show relay list as clickable links that will go to relay configuration 2024-03-26 00:01:33 -06:00
Bu5hm4nn
dc852baaeb Touch up people list layout (fixes #695) 2024-03-25 23:37:05 -06:00
Bu5hm4nn
01d7a17926 Fix Person page layout (fixes #695) 2024-03-25 23:30:58 -06:00
Bu5hm4nn
9549c5a605 Fix posting area when warning area is shown and remove some unused code (old margin case from the time the status was shown in the bottom-panel) 2024-03-25 21:51:32 -06:00
Mike Dilger
23130a8ba4 cargo clippy 2024-03-26 14:10:44 +13:00
Mike Dilger
724785a39d Show relay list state on person lists and person page; add fetch now button 2024-03-26 14:09:39 +13:00
Mike Dilger
1be40a9903 Update emojis 2024-03-26 13:46:36 +13:00
Mike Dilger
9076183b06 Change setting for when relay list and metadata become stale to MINUTES 2024-03-26 11:25:50 +13:00
Mike Dilger
05a4a5884c Do not switch from RunState::Online from RunState::ShuttingDown 2024-03-26 10:14:05 +13:00
Daniele Tonon
2fa631344a Update style for libsdl2-dev alert 2024-03-25 20:57:01 +01:00
Mike Dilger
56b6d8a63f shorten default stale times (especially for relay lists) 2024-03-23 10:12:49 +13:00
Bu5hm4nn
3b04bb0c17 No audio warning: Use updated colors for warning message 2024-03-22 13:16:21 -06:00
Bu5hm4nn
795c805a64 Merge remote-tracking branch 'dilger/unstable' into feature/warn-no-audio-device 2024-03-22 13:02:38 -06:00
Bu5hm4nn
8aa0d39a14 Allow zaps even when no seen_on relays are known for a note, because we only need the author profile 2024-03-21 19:48:27 -06:00
Mike Dilger
3f2fad47a7 Change rendering of relays on person page (mention they are outbox, show the score) 2024-03-22 11:03:41 +13:00