Commit Graph

8989 Commits

Author SHA1 Message Date
darkfi
64ce789bf2 wallet: inserting messages directly in the buffer and refreshing the view 2024-08-02 17:42:41 +02:00
darkfi
1796ba2f2c wallet: call method insert_line through scene graph 2024-08-02 16:25:25 +02:00
darkfi
9ffe5ffa36 wallet: button::click() signal 2024-08-02 10:54:15 +02:00
darkfi
8f3b239bb7 wallet: add button 2024-08-02 10:40:47 +02:00
darkfi
2f86574d32 wallet: bugfix faulty scrolling behaviour 2024-08-02 09:56:49 +02:00
darkfi
2400fc8ef7 wallet: chatview improve scroll calcs:
- correct baseline value
- bugfix wrong line counter in Page::regen_mesh()
- put scroll limit logic in draw_cached() so it's shared between all input methods for scrolling
- correct calc for when there's not enough lines in the buffer for scrolling.
2024-08-02 08:46:02 +02:00
darkfi
03ed184991 wallet: chatview correct loading of pages on demand 2024-08-01 15:30:44 +02:00
darkfi
38ea8bbca9 wallet: sample chat.txt remove duplicate timestamps 2024-08-01 15:09:10 +02:00
darkfi
6659eb0f7e wallet: load pages on demand when scrolling up and limit scroll when you reach the end of the current buffer 2024-07-31 10:10:17 +02:00
dasman
19f70bd58f event_graph: gracefully stop pruning task 2024-07-30 19:00:26 +03:00
darkfi
e701c72888 wallet: correct page loading logic 2024-07-30 12:45:53 +02:00
darkfi
df406f0787 wallet: use pages abstraction to cache drawcalls in a smarter way 2024-07-30 12:35:18 +02:00
draoi
687a1a54ad acceptor: don't shutdown the accept process on broken pipe (EPIPE) 2024-07-30 11:18:54 +02:00
rsx
b76088fb79 wallet: chatview avoid scrolling past the bottom lol 2024-07-30 09:14:48 +02:00
darkie
37647a65c9 wallet: prioritize processing gfx events before drawing. Which makes sense if you think about it... 2024-07-29 22:04:34 +02:00
darkie
72fc690b47 doc: update darkirc path for autobuf script 2024-07-29 21:47:50 +02:00
darkfi
34e6bb80b3 wallet: more accurate finger scroll 2024-07-29 11:19:49 +02:00
darkfi
956c769155 wallet: improve LIGHTMODE coloring 2024-07-28 11:55:26 +02:00
darkfi
0bcd7d9386 wallet: add chatview coloring 2024-07-28 11:42:53 +02:00
rsx
a79d3ab15f darkwallet: add a lightmode for eink monitors 2024-07-27 22:04:04 +02:00
darkfi
46279cb748 darkwallet: android touch scrolling chatview 2024-07-27 13:39:49 +02:00
darkfi
4d67c780d8 darkwallet: increase debugging info in app schema 2024-07-27 13:39:27 +02:00
darkfi
b31bff1728 darkwallet: image widget able to load images from APK assets 2024-07-27 13:38:42 +02:00
darkfi
1ad9752581 darkwallet: move from docker to podman (eat ze bugs) 2024-07-27 13:36:17 +02:00
darkfi
a0ca9f7503 wallet: make sure we reset the viewport between each draw call since children draw calls can modify the view too. 2024-07-26 11:07:20 +02:00
darkfi
7ac19cd843 wallet: render da fucking king gnu (display images) 2024-07-26 10:04:39 +02:00
darkfi
bdc3f99f22 wallet: chatview which is scrollable via scroll property 2024-07-25 18:37:25 +02:00
darkfi
bb555c9e1c wallet: bugfix serialization typo 2024-07-25 10:04:15 +02:00
dasman
e2a19d6c7b tau: set default workspace 2024-07-25 04:22:19 +03:00
dasman
a6e05ad395 tau: allow modifying task description using EDITOR 2024-07-25 04:21:32 +03:00
dasman
3bb373c01c darkirc: truncate PRIVMSGs longer than 512 2024-07-25 04:19:51 +03:00
draoi
65e669f1a1 hosts: delete darklist entries older than one day
We introduce a new method called refresh() which deletes hosts older
than a specified period. This is applied to the darklist when we load it
on start(), and when we store hosts onto our darklist that are received by
other peers.

We do this to avoid the risk of passing faulty nodes around the network,
and assume that one day is sufficient for valid hosts to propagate to
hosts that support that transport.
2024-07-24 12:17:08 +02:00
draoi
7e1b792dc2 chore: make clippy 2024-07-24 12:17:08 +02:00
draoi
b56193acb8 Revert "refine_session: clear the darklist once a day"
This reverts commit 38aa8be3b3.
2024-07-24 12:17:08 +02:00
dasman
307820f6df remove tau-cli from workspace in Cargo.toml 2024-07-24 03:15:31 +03:00
dasman
9e410ede15 remove unused tau-cli 2024-07-24 03:12:31 +03:00
dasman
77533a5312 tau: prevent empty comments on tasks 2024-07-24 03:08:20 +03:00
draoi
36204d3685 channel: deserialize vector, not individual bytes on read_command() 2024-07-23 18:05:21 +02:00
draoi
c699d326a9 doc: update hosts.rs HostColor documentation 2024-07-23 14:56:35 +02:00
draoi
38aa8be3b3 refine_session: clear the darklist once a day
This helps reduce the tradeoff space between a) ensuring all transports
are propagated, even those we do not support b) ensuring hosts shared
around the network are valid.

We assume that a one day period is sufficient for valid hosts to
propagate and enter into non-dark hostlists of a peer that does support
this transport.
2024-07-23 14:54:17 +02:00
draoi
3b0e012126 src: Use peers() instead of channels() method where applicable
The following messages are now only broadcast to peers (inbound/ manual/
outbound session) and not seed or refinery connections:

* EventGraph DAG sync
* OutboundSession `GetAddrs`

The following changes have been made to the p2p API:

* p2p.broadcast() now only sends to peers, not seeds or refine connections.
* p2p.is_connected() only reports peer connections, not all (seed, refinery) connections.
2024-07-23 11:54:05 +02:00
draoi
5e5bca6340 rpc: add SESSION_REFINE to channel matching in p2p_method() 2024-07-23 11:54:05 +02:00
darkfi
df0c938ee4 wallet: fix panic caused by freeing textures/buffers before we updated the draw call. 2024-07-23 11:26:08 +02:00
skoupidi
fa6a4be257 net/hosts: use reference in block_all_ports() 2024-07-22 19:34:51 +03:00
skoupidi
151aa186c4 net/channel: introduced Message pre-serialization for minor optimization of p2p.broadcast() 2024-07-22 19:29:09 +03:00
draoi
d63f675fba net: match on host() instead of host_str() in block_all_ports
This fixes a bug where IPv6 addresses could be truncated in different
ways during the comparison due to the `host_str()` conversion and potentially be treated as different addresses.
2024-07-22 18:21:02 +02:00
draoi
5be7a372e8 hosts: use host() not host_str() method in filter_addresses()
Also add an additional check and print a warning if an external address
enters the hostlist.
2024-07-22 18:21:02 +02:00
draoi
a316bcc84e hosts: make peers() reject both seed and refine session channels 2024-07-22 18:21:02 +02:00
darkfi
17d837ee6c wallet: chatview rendering text 2024-07-22 12:48:36 +02:00
draoi
3b8a685d9c hosts: add peers() method to return channels minus seed connections 2024-07-22 12:04:39 +02:00