Commit Graph

535 Commits

Author SHA1 Message Date
Sathwik Matsa
36badfc5a5 Fix timezone issue in formatter tests 2022-06-04 13:32:07 +05:30
Robert C. Martin
96f799ee01 Got that test to pass. I now believe that threading is completely working. (Until I find out otherwise;) 2022-06-03 12:14:56 -05:00
Robert C. Martin
afd4dc7a16 I found a test that repeats my threading bug. It is currently failing. 2022-06-03 11:23:47 -05:00
Robert C. Martin
3e7b3d4afe Some simple refactorings and clean ups. 2022-06-02 12:13:13 -05:00
Robert C. Martin
71420ca4e4 Refactored the orphan resolution code. It's better. It works better too. But there are still issues. 2022-06-02 11:19:44 -05:00
Robert C. Martin
ea669ea267 Take out the lock and use an agent (again) to serialize the event processing. The agent has zero data, it's just a serialization queue. Also did a few cosmetic changes and print out kind 7 for future processing of the (as yet undocumented) "like" feature. 2022-06-01 07:55:32 -05:00
Robert C. Martin
46d0352cc1 Add a lock in handle-text to make sure no duplicates from other relays sneak through. That's what comes of using mutable data structure (like swing)... 2022-05-31 14:18:02 -05:00
Robert C. Martin
39374c5008 Add relay recommendations to the relays, and write the relays on exit. 2022-05-31 13:56:48 -05:00
Robert C. Martin
1d90e09735 Change event-agent to event-context. Make it an atom, not an agent. Move the call to the UI handler out of the events module and into the protocol module. The threading issues here were hairy, but I think I've got them all resolved. 2022-05-31 11:06:11 -05:00
Robert C. Martin
11e3dfac69 Refactoring. Chante translate-text-event to translate-event and call it earlier. 2022-05-31 10:01:41 -05:00
Robert C. Martin
f3e40bdc36 Add to event-agent s/defs for the back and forward buttons. 2022-05-30 12:59:21 -05:00
Robert C. Martin
40d31f8923 Back and Forward work, but the event-agent stuff is awful. 2022-05-30 12:35:09 -05:00
Robert C. Martin
e6c7496852 Fix fiatjaf's bug. When a relay does not connect, it should not be written to. 2022-05-29 20:08:29 -05:00
Robert C. Martin
3b063f4401 Keeps track of event history in event-agent :event-history and :back-count. This is in preparation for the forward and back buttons. Also set up the s/defs for the event-agent. And I'm seriously considering replacing the agent with an atom because I keep having to add 'await event-agent' stuff. Ugh. 2022-05-29 09:07:17 -05:00
Robert C. Martin
3a060484e0 Right click on an event and select Get info to see details of the event. Learned a lot about popup menus. Not all good. 2022-05-28 11:59:40 -05:00
Robert C. Martin
510833f8be Move to-do list to the wiki, and change edit-window and article-window to be editor-panes. This should set up hyperlinks and adornments nicely. 2022-05-28 08:12:12 -05:00
Robert C. Martin
7245d8ab1e fix headers in readme 2022-05-27 15:03:53 -05:00
Robert C. Martin
14bf4613e8 Update README to solicit pull requests. 2022-05-27 13:46:55 -05:00
Robert C. Martin
2957c4cbba Cosmetics. 2022-05-27 11:18:08 -05:00
Robert C. Martin
5923de0daa Marked e tags as per new NIP-10 working. 2022-05-26 14:47:44 -05:00
Robert C. Martin
e9667938ff Reorder the fields in the article info panel. Just aesthetics. 2022-05-26 14:01:49 -05:00
Robert C. Martin
df6a537672 Use uneditable text fields for 'id' 'citing' and 'root' in the article window. Load those fields with untruncated values. This allows the 'id' to be selected and copied to the clipboard. 2022-05-26 13:50:13 -05:00
Robert C. Martin
041345517d Don't add a child to a tree node if the child already exists in that tree node. This situations resulted from the addition of tabs... I'm not sure I like the fix. It repairs the problem after the fact. It might be better to figure out how to prevent the problem in the first place by, (probably) partitioning the node-maps by tabs. 2022-05-26 11:25:18 -05:00
Robert C. Martin
ac1962b386 Added the filtering code for the tabs. Event ids and user's pubkeys can either be selected or blocked. Events that contain the a selected id as the root of a thread are also selected, meaning that the entire rooted thread is selected. 2022-05-26 10:44:10 -05:00
Robert C. Martin
d9246f815d Can flip back and forth between tabs, and the selected article gets loaded properly. Nice. seesaw is very convenient. 2022-05-25 10:52:02 -05:00
Robert C. Martin
b912549ebd Stop logging unkown events for now. 2022-05-25 09:09:52 -05:00
Robert C. Martin
b87ab38e22 Clicking on the citing or root in the article window, hunts for the event in the currently selected tab. Removed the passing of ui-context and event-agent around because ui-context is a global that contains event-agent. More to do on this. Also, I need to switch tabs if the clicked on citing is not in the selected tab but is in the #all tab.
Is the #all tab permanent?
2022-05-25 09:07:24 -05:00
Robert C. Martin
9c6ce8cca9 Readme update. 2022-05-24 14:50:13 -05:00
Robert C. Martin
a94ae06f36 The beginnings of multiple tabs and filters in each tab. Clicking on the citing/root when a filtered tab is selected does not work properly because the id-click method defaults to using the #all tab. Icky at best. 2022-05-24 14:46:05 -05:00
Robert C. Martin
1ddd1d7133 put private in gitignore 2022-05-24 12:17:29 -05:00
Robert C. Martin
133fb16db7 Get last 10 days of events 2022-05-24 12:13:37 -05:00
Robert C. Martin
4cbcab18ef Change subscription time to two days ago. Just to keep the load time down. 2022-05-23 15:38:46 -05:00
Robert C. Martin
7878c578ce Added tabbed panel for different article trees based upon search criteria. 2022-05-23 10:40:57 -05:00
Robert C. Martin
3d47f54b10 Mark articles in the article tree with ^ if they are a reply. Remember the articles that have been read, and keep them in private/read-event-ids. Adding all these files is probably not sustainable. I'll likely have to consolidate them at some point. 2022-05-23 09:58:35 -05:00
Robert C. Martin
e32dbf5442 update gitignore 2022-05-23 09:41:42 -05:00
Robert C. Martin
8ac8c808ae Invert chronological order so that latest message is at the top of the tree. 2022-05-23 08:20:30 -05:00
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