Commit Graph

99 Commits

Author SHA1 Message Date
Robert C. Martin
5b2454cb26 finish removing :text-event-map from article-tree-spec 2023-01-26 09:24:09 -06:00
Robert C. Martin
09be34d0b4 db in article-tree-spec 2023-01-25 14:39:52 -06:00
Robert C. Martin
3d417324c9 Separate config/get-db and in-memory/get-db. Get all tests to use in-memory/get-db. Change tests in formatters-spec to use db. 2023-01-25 09:06:12 -06:00
Robert C. Martin
ffb3a74fa1 Log messages and cleanup. 2023-01-11 11:55:46 -06:00
Robert C. Martin
e2ef67fcaf Fix the with-redefs issue.
Render the article window with &nbsp characters replacing strings of spaces.  This prevents the html renderer from compressing spaces.
2022-10-23 08:59:27 -05:00
Kamil Gałuszka
ab1eb71b39 fix: ISO hours 2022-10-06 17:31:20 +02:00
Robert C. Martin
accd6eddbf When reading in saved events the functions load-events and events/add-event striped off all but the first relay. Fixed this. 2022-09-27 14:59:13 -05:00
Robert C. Martin
3843ed279f Reply to DM sets up the D @xxx in the response. 2022-09-19 11:19:02 -05:00
Robert C. Martin
8412639372 Remove all declares except those needed for 'with' statements in tests. 2022-09-05 14:11:18 -05:00
Robert C. Martin
e11c7c07f9 Allow raw pubkeys in @ references within an article. It creates a profile name for that user based on that pubkey. 2022-08-14 13:07:55 -05:00
Robert C. Martin
4676aba4ca add root of thread when adding an event to a tab. 2022-08-10 13:31:49 -05:00
Robert C. Martin
30ff04d816 Indirect trust rendered as name<-trusted 2022-08-04 09:31:22 -05:00
Robert C. Martin
4bc60a7ab6 Pull kind-3 contact lists at startup. Mark untrusted users with (). Set up for petnames. 2022-08-03 10:19:37 -05:00
Robert C. Martin
25daaf5d54 Delete tabs, add new tabs, select and block articles and authors. 2022-07-28 13:22:25 -05:00
Robert C. Martin
0651bdd307 Change name of tab. 2022-07-28 08:21:40 -05:00
Robert C. Martin
db3c103b9d Stop using tab names and use tab indices instead. Also fix bug that sometimes didn't load article when using back button. 2022-07-17 08:42:57 -05:00
Robert C. Martin
2421f3a0f5 Migration 6 complete. Tabs file removed. Tabs-list file created. All code uses new tabs scheme. This is much better. 2022-07-16 13:17:37 -05:00
Robert C. Martin
d9561adc56 Migration 6, reformat tabs to tabs-list, and get prepared. 2022-07-16 10:54:55 -05:00
Robert C. Martin
930575f7c9 merge sathwikmatsa pull request to linkify article. 2022-07-10 14:15:23 -05:00
Robert C. Martin
dee5222a2b All nickname dependencies removed except for the migrator, which is grandfathered to maintain backwards compatibility. 2022-07-05 14:09:24 -05:00
Robert C. Martin
48fbe30621 Removed useless nicknames from some tests. 2022-07-05 09:22:15 -05:00
Robert C. Martin
f7bead98f4 replace-references and lookup-references use profiles 2022-07-05 09:11:34 -05:00
Robert C. Martin
981aa6b412 format-reply, format-header, and format-user-id use profiles. 2022-07-05 08:59:45 -05:00
Robert C. Martin
2094c656b3 When a tap selects for an id, any event that has a 'p' tags with that id will be included. 2022-06-17 15:15:06 -05:00
Robert C. Martin
89868f3d0d Word wrap the edit window using :wrap-lines in a 'styled-pane' 2022-06-16 15:12:59 -05:00
Robert C. Martin
45ac056edd Add From/Date/Relay to replies. 2022-06-12 13:53:52 -05:00
Sathwik Matsa
fcdbccdf9c Linkify URLs in article window 2022-06-09 21:12:29 +05:30
Robert C. Martin
9b9048e477 Preserve the format of replies in the article display. (Lines that start with > are preserved). 2022-06-08 18:39:19 -05:00
Robert C. Martin
57787d7cc9 Got @username syntax working for sending and replying. 2022-06-05 14:10:45 -05:00
Robert C. Martin
572dc813f9 Got #[x] references working for 'p' tags. They sort-of work for 'e' tags too; but should probably behave a bit differently. 2022-06-04 12:02:04 -05:00
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
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
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
40d31f8923 Back and Forward work, but the event-agent stuff is awful. 2022-05-30 12:35:09 -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
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
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
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
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
ab7caa0d48 Tests all pass again. (oops). 2022-05-21 15:50:42 -05:00
Robert C. Martin
3f6288e02a Subject is used in article-tree header. 2022-05-21 15:14:47 -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
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
c94bafd84a Clean up the main-window file. Much better now. 2022-05-05 15:14:30 -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