Commit Graph

788 Commits

Author SHA1 Message Date
Mike Dilger
9d0b441263 Rework get_best_relays():
* Always yield their relay-list declared relays first
* Take in a 'min' and if not achieved, yield additional relays in score order,
  including using our own if we still can't achieve the minimum
* Use a bool to indicate 'write' instead of RelayUsage
* Adjust call sites: causes changes regarding min
2024-06-17 09:04:37 +12:00
Mike Dilger
deb75b7198 cargo fmt & clippy 2024-06-14 13:15:59 +12:00
Mike Dilger
8f17ba076e Command 'giftwrap_ids' changed to 'giftwraps' where they are decrypted 2024-06-14 11:19:31 +12:00
Mike Dilger
2ab39032d1 Rework how we advertise:
* 4 per second, don't care if they fail or not
* Do in rank order
* Change advertise button to show how many remain
2024-06-14 09:56:45 +12:00
Mike Dilger
af11318fb5 Change advertise help text and disable advertise button while advertising 2024-06-14 08:05:40 +12:00
bu5hm4nn
312fe4be08
Merge pull request #769 from AmirH-A/refactor/gossip-bin-ui
[REFACTOR] gossip-bin UI
2024-06-13 06:43:20 -06:00
Bu5hm4nn
efa7dd7e8d Restore some comments 2024-06-13 15:30:30 +03:00
Bu5hm4nn
280e6e211b Eliminate unused variable warning 2024-06-13 15:30:10 +03:00
Bu5hm4nn
8d7d341d50 Relay Entry: Add "DM" switch 2024-06-13 11:04:57 +03:00
Bu5hm4nn
5dc397aec1 Avatar: Show ⑰ on avatar images if the person has DM relays 2024-06-12 20:24:19 +03:00
Bu5hm4nn
d018064e38 Profile Page: Show DM relays below outbox relays 2024-06-12 13:55:57 +03:00
Bu5hm4nn
3e733e864d DM Chat Feed: Make Channel name clickable and link to Profile page 2024-06-12 13:32:57 +03:00
Bu5hm4nn
9e58dbb097 List: Always allow list actions. Fixes #734 2024-06-12 13:32:08 +03:00
Bu5hm4nn
50b0eb89c1 List: Always allow list actions. Fixes #734 2024-06-12 12:56:58 +03:00
Mike Dilger
1722fb78d8 Updates for nostr-types, including stripping delegation (NIP-26) 2024-06-11 08:43:01 +12:00
Mike Dilger
86610e5643 Update nostr-types 2024-06-11 08:33:53 +12:00
Mike Dilger
6f560c413f Remove overlap setting and other dead code 2024-06-10 09:47:14 +12:00
Mike Dilger
1a9b30ab14 When loading a thread and the main note isn't cached yet, show "LOADING..." instead of blankness 2024-06-09 00:09:52 +12:00
Mike Dilger
345f1c1848 Track and show how many relays are currently loading a chunk 2024-06-08 12:31:14 +12:00
Mike Dilger
6beb2ba673 Retire feed chunk settings 2024-06-08 12:01:09 +12:00
Mike Dilger
a4e26aa09f Share a single feed start, a single load_more(), and a single switch_feed()
NOTE: We degrade functionality by temporarily hardcoding 43200 as the feed chunk
2024-06-08 12:01:09 +12:00
Mike Dilger
9306317708 Add setting 'load_more_count' (to be used in subsequent commits) 2024-06-07 12:33:44 +12:00
Mike Dilger
19d6852c53 Simplify Feed internal with a single store of events (not one for each kind) 2024-06-07 12:15:14 +12:00
Mike Dilger
79ce510f9b cargo clippy 2024-06-07 12:14:48 +12:00
Mike Dilger
c70a8e18f4 ignore clippy assigning clones warning for now 2024-06-07 12:09:52 +12:00
Mike Dilger
bc0414cbb8 Merge branch 'annotation' into unstable [not straightforward] 2024-06-06 08:56:08 +12:00
Mike Dilger
51083717fc Revert "Feed Loading: Show spinner and hide buttons (fixes #749)"
This reverts commit d995784b90.
2024-06-06 08:31:01 +12:00
Mike Dilger
85b5c79784 Remove relay.nostr.jabber.ch as a relay option from the wizard (as requested by marco balmer) 2024-06-04 17:29:03 +12:00
Mike Dilger
99dfe1f98a ui: When loading a thread, indicate that we are climbing it 2024-06-04 06:06:54 +12:00
Mike Dilger
eacf6c9564 Note header link to parent, if parent is muted, indicates such 2024-06-03 15:27:34 +12:00
Mike Dilger
12d834ebfc Move notes and notedata outside of the ui/ 2024-06-03 15:20:41 +12:00
Mike Dilger
e54cc74ae9 DM post area - different messages if can use NIP-17 or not 2024-05-25 08:54:43 +12:00
Mike Dilger
b87f763860 Merge branch 'unstable' into annotation 2024-05-23 09:23:00 +12:00
Mike Dilger
045d74826c Merge branch 'master' into annotation 2024-05-23 09:21:43 +12:00
Mike Dilger
387d95cec1 Update nostr-types 2024-05-23 09:20:13 +12:00
Mike Dilger
b59f8f48b8 Move to new Person3 with PersonTable 2024-05-22 08:12:52 +12:00
Mike Dilger
893a27d2e7 storage.read_person (and has_person) to take optional transaction 2024-05-20 09:12:37 +12:00
Amirhossein Azarpour
8a142e818b refactor(ui): modular and cleanup side_panel and more cleaner zap area 2024-05-19 11:09:57 +03:30
Mike Dilger
113f32e704 Update nostr-types (filter.event_matches() fix) 2024-05-18 14:20:21 +12:00
Mike Dilger
d89b9fbcdc cargo fmt & clippy 2024-05-18 13:03:05 +12:00
Mike Dilger
8de1836128 Strip out manually adding relays to people:
- we had no mechanism to remove them, and outdated ones were causing troubles
- nostr now has more widespread relay association mechanisms
- we also updated person-relay scoring 'smoothness'
2024-05-18 09:56:47 +12:00
Mike Dilger
ed930f7d39 Merge branch 'unstable' into annotation 2024-05-17 15:40:46 +12:00
Mike Dilger
a4c732bd07 Update nostr-types 2024-05-17 07:34:56 +12:00
Mike Dilger
294d1b0286 Support rendering more event kinds 2024-05-17 07:34:37 +12:00
Mike Dilger
c4cff5a597 Update nostr-types 2024-05-17 07:24:35 +12:00
Mike Dilger
b9b5f57479 Print gossip version on start 2024-05-15 08:40:16 +12:00
Mike Dilger
9af00c6dcf Update nostr-types 2024-05-15 08:19:53 +12:00
Mike Dilger
1da8befef2 Merge branch 'unstable' into annotation 2024-05-14 09:21:17 +12:00
Mike Dilger
9e3950db77 Merge remote-tracking branch 'kodylow/typos' into unstable 2024-05-12 14:59:13 +12:00
Bu5hm4nn
0881222fde Settings UI: Allow custom values for DPI override and FPS 2024-05-10 17:12:53 -06:00
kody.low
8df4b2b084 fix: fixes errors caught by typos check 2024-05-10 15:58:06 -07:00
Mike Dilger
33c543e205 Allow DPI setting up to 400 2024-05-11 10:43:42 +12:00
Michael Dilger
b1546802dc
Merge pull request #755 from jadijadi/migration-page-centered
Nicer data migration page
2024-05-11 10:02:48 +12:00
Jadi
4060f0c737 Nicer data migration page
fixes #747; The message on the data migartion page is horizontaly and
vertically centered.
2024-05-09 14:48:52 +03:30
Mike Dilger
90162f4b9b Update nostr-types (EventReference fns, EQ/Hash) 2024-05-09 09:56:29 +12:00
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