Commit Graph

149 Commits

Author SHA1 Message Date
Robert C. Martin
09563d1480 Resolution of orphaned references. References will be orphaned when a reply child event comes in before the parent event being replied to comes in. This can happen because we are pulling events from multiple relays. 2022-05-22 16:10:52 -05:00
Robert C. Martin
e9735e176e Don't search back up the tree for the root, Bob; the root is in the message you are replying to. Duh. 2022-05-22 09:50:39 -05:00
Robert C. Martin
ab7caa0d48 Tests all pass again. (oops). 2022-05-21 15:50:42 -05:00
Robert C. Martin
935c993983 delete files and update gitignore again 2022-05-21 15:44:40 -05:00
Robert C. Martin
c0c0b9b689 .gitignore 2022-05-21 15:43:13 -05:00
Robert C. Martin
9598b3b955 Subject is copied into replies, with a Re: prefix. And a few other cleanups. 2022-05-21 15:41:10 -05:00
Robert C. Martin
3f6288e02a Subject is used in article-tree header. 2022-05-21 15:14:47 -05:00
Robert C. Martin
149a8e6740 Add Subject to edit window, and send message with [subject: <subject>] tag. 2022-05-21 11:39:01 -05:00
Robert C. Martin
02c00be014 popup all the relays when hovering over the relays label in the article panel. This was a good lesson in the
mismatch between mutable objects and functional programming.  You can't just create popups on the fly and add
listeners to them.  You have go create the _once_ and then manipulate them on the fly.  And...there is no simple
method for clearing the items from a popup menu.  You have to loop through deleting item 0 until there are none left.
Grumble.
2022-05-21 10:38:02 -05:00
Robert C. Martin
d64b659e63 Save nicknames to private/nicknames. 2022-05-20 11:12:53 -05:00
Robert C. Martin
c2549fb95f Clean up the message composition functions. 2022-05-20 10:45:38 -05:00
Robert C. Martin
00b8eee74e Send metadata at startup. 2022-05-20 10:31:25 -05:00
Robert C. Martin
4ab2d92217 Relays flagged with R are subscribed to. Relays flagged with W are written to. 2022-05-19 12:25:13 -05:00
Robert C. Martin
eb98571a2f Connected and Subscribed checkboxes in relay panel work. 2022-05-19 12:09:12 -05:00
Robert C. Martin
3dbe48c0d2 Delete unused constants from ui/config 2022-05-19 10:45:40 -05:00
Robert C. Martin
f7dd8876fd Move relays to private/relays, and load the relays from that file. 2022-05-19 10:42:32 -05:00
Robert C. Martin
d7557cb75f Clean up protocol/get-events. Much better now. 2022-05-18 11:56:40 -05:00
Robert C. Martin
5c696a9b53 Create relays/relays structure in an atom, and update it with connections and subscribe status. 2022-05-18 11:43:08 -05:00
Robert C. Martin
c42949ae2a Improve error message in protocol onText handler, and clean things up a bit. 2022-05-18 10:16:39 -05:00
Robert C. Martin
3ef3077c87 Set up relay control panel with R/W checkboxes. 2022-05-17 16:50:58 -05:00
Robert C. Martin
bdffc9e06e Clean up ui.swing by breaking it up into panel/window specific modules, and fixing cyclic dependencies. 2022-05-17 09:50:48 -05:00
Robert C. Martin
d27f6b4d0f A little cleanup and documentation. 2022-05-16 18:02:40 -05:00
Robert C. Martin
d02682dc16 Chronological sort using java.util.Collections/binarySearch. Much faster. 2022-05-16 17:55:51 -05:00
Robert C. Martin
26377873da Chronological sort of header tree. Slow. Should use binary search. 2022-05-16 13:33:04 -05:00
Robert C. Martin
16628a91a6 Read from more than one relay. Detect duplicates, and register which relays they arrive on. Article tree is no longer chronological, so we'll have to sort it somehow. 2022-05-15 11:19:19 -05:00
Robert C. Martin
0d7753f0b0 improve format-time and get the relay panel displayed. 2022-05-14 09:32:46 -05:00
Robert C. Martin
7a887ba0c6 Clicking on citing and root fields of the article info panel, takes you to those articles. What a pain that was. Remember to cast to the derived type (DefaultMutableTreeNode) before you call .getPath. Ugh. 2022-05-06 15:46:14 -05:00
Robert C. Martin
bdd2f32b37 Check signatures of incoming events. Move hex/num/bytes utilities from ecc to util. 2022-05-06 09:23:50 -05:00
Robert C. Martin
c94bafd84a Clean up the main-window file. Much better now. 2022-05-05 15:14:30 -05:00
Robert C. Martin
7d6945a8f7 Article info panel begins. The whole main-window file needs a dramatic cleanup. 2022-05-05 12:18:43 -05:00
Robert C. Martin
85fa99fce3 p-tag processing working properly. 2022-05-04 12:12:39 -05:00
Robert C. Martin
55a2eafa43 e-tag processing for replies is working correctly. 2022-05-03 15:46:44 -05:00
Robert C. Martin
139e3b1f0d Fixed ping/pong heartbeat for the websockets. Gotta remember to all .request after every receive. 2022-05-03 04:48:17 -05:00
Robert C. Martin
fcdc6016b5 Threading multiple references works. 2022-05-02 15:36:57 -05:00
Robert C. Martin
c0ed9cd9d4 Forgot to turn the threading on after a debug. ;-( It's on now... It's also a bit slow. I'll have to speed it up with a hashmap or something. 2022-05-02 09:34:04 -05:00
Robert C. Martin
b21203bd5d Added incremental article threading. Also added try/catch to name-event in case someone sends an ill-formatted message. 2022-05-02 09:22:09 -05:00
Robert C. Martin
c9c31633b3 Massing cleanup and deletion. Much better. 2022-04-30 13:24:45 -05:00
Robert C. Martin
4ff404553a Interim checkin with lots of cruft; but incremental load of tree is now working. Cleanup next. 2022-04-30 12:07:06 -05:00
Robert C. Martin
5f494dc71d All previous functionality has been recreated within seesaw (swing). The code is a horror scene.
I need to pull out all the quil stuff and sort out the seesaw stuff.  But it works, and I understand seesaw/swing
a lot better.
2022-04-29 11:37:22 -05:00
Robert C. Martin
36e2b00852 Use tree for header window. Render tree elements, and thread the articles. Pretty easy. 2022-04-28 12:46:01 -05:00
Robert C. Martin
855a2461ac SeeSaw replaces Swing 2022-04-27 16:04:06 -05:00
Robert C. Martin
df415f8181 Swing begins. 2022-04-27 12:07:24 -05:00
Robert C. Martin
6760ba48a8 Fixed unicode and slashes. json/write-str was escaping them. 2022-04-20 10:22:52 -05:00
Robert C. Martin
bc2b912cab Rudimentary reply is working. 2022-04-20 09:15:31 -05:00
Robert C. Martin
7afaa564c6 Copies article being replied to into edit window, prefixed with '>'. 2022-04-19 13:51:41 -05:00
Robert C. Martin
52639cb80e fixed improperly created graphics-dummy. 2022-04-18 16:13:07 -05:00
Robert C. Martin
6cbeceb035 Begin the process of replying. ^R is the reply command. So far just clears the edit window if no article is selected.
Also began creation of the object-mother.
2022-04-18 16:03:11 -05:00
Robert C. Martin
5fde839565 Clean out old elliptic_signature code that was replaced by the Schnorr java library. 2022-04-18 08:09:47 -05:00
Robert C. Martin
6ab3246d80 Kill edit window buffer after sending message. 2022-04-17 17:27:05 -05:00
Robert C. Martin
0b1da7f1ca Hitting ^S in edit window actually composes and sends the event to the relay! WOOT! 2022-04-15 10:52:11 -05:00