Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New %contacts agent #283

Merged
merged 44 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d6f2937
contacts: draft new structures
mikolajpp Aug 22, 2024
fb20b2d
%contacts: structures v1
mikolajpp Aug 27, 2024
97ea7f0
contacts: minor improvement
mikolajpp Aug 30, 2024
5c5a936
contacts: improve surs
mikolajpp Aug 30, 2024
2309614
contacts: move to state-1
mikolajpp Aug 31, 2024
41855fe
contacts: implement new +pub core
mikolajpp Sep 3, 2024
24f5deb
contacts: implement v1 scries
mikolajpp Sep 5, 2024
207b31c
contacts: unlink old page upon peer spot
mikolajpp Sep 5, 2024
0e8d423
contacts: subscription client v1
mikolajpp Sep 6, 2024
8e37e6a
contacts: key book also by ship
mikolajpp Sep 8, 2024
f8f328d
contacts: move helper core to /lib
mikolajpp Sep 9, 2024
6c21ce9
contacts: test agent
mikolajpp Sep 9, 2024
fccb783
contacts: more tests
mikolajpp Sep 9, 2024
172bd9b
contacts: %drop now does not alter the contact book
mikolajpp Sep 9, 2024
03dc397
contacts: meet unknown peers upon %spot
mikolajpp Sep 10, 2024
7229969
contacts: implement /x/v1/all scry
mikolajpp Sep 10, 2024
c4efedc
contacts: implement v1 json conversions
mikolajpp Sep 11, 2024
838634f
contacts: add lib-negotiate to /lib
mikolajpp Sep 13, 2024
2b6d838
contacts: state migration
mikolajpp Sep 13, 2024
9403a49
contacts: remove v0 /contact endpoints; fix +load in lib-negotiate
mikolajpp Sep 14, 2024
8b6ca48
contacts: fix agent unit tests
mikolajpp Sep 16, 2024
666b444
contacts: test v1 marks
mikolajpp Sep 16, 2024
840c14c
contacts: contact page updates no longer broadcast v0 news
mikolajpp Sep 16, 2024
33bcbd9
contacts: improved contact editing; refactoring
mikolajpp Sep 17, 2024
5e7ea0e
contacts: fix contact sanity check placement
mikolajpp Sep 17, 2024
1294dda
contacts: refactor
mikolajpp Sep 19, 2024
b843ceb
contacts: implement number field type %quot
mikolajpp Sep 19, 2024
b2accdd
contacts: refactoring
mikolajpp Sep 20, 2024
a64ccad
import lib-subscriber
mikolajpp Sep 20, 2024
8e31959
contacts: remove lib-subscriber
mikolajpp Sep 21, 2024
730eb97
contacts: implement subscription retry
mikolajpp Sep 21, 2024
75ba2b7
contacts: fix marks
mikolajpp Sep 23, 2024
6f820be
contacts: rename conversion cores
mikolajpp Sep 23, 2024
06f71eb
contacts: perform runtime type check for $contact
mikolajpp Sep 23, 2024
48b2548
contacts: improve naming in ^pub
mikolajpp Sep 23, 2024
c99da6b
contacts: fix +sane-contact; refactoring
mikolajpp Sep 24, 2024
5b7ed34
contacts: refactoring
mikolajpp Sep 24, 2024
9a21040
contacts: validate %nickname, %bio fields
mikolajpp Sep 25, 2024
5dd27e7
contacts: fix lib-negotiate
mikolajpp Sep 25, 2024
853b707
contacts: unify %page and %spot pokes into %page
mikolajpp Sep 25, 2024
1edc4a9
contacts: adjust subscription retry timer to ~m30
mikolajpp Sep 25, 2024
412e084
contacts: fix docs
mikolajpp Sep 25, 2024
059284f
contacts: fix +sane-contact data URL check
mikolajpp Oct 2, 2024
384939f
contacts: test profile timestamp logic; fix saga type
mikolajpp Oct 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
678 changes: 448 additions & 230 deletions desk/app/contacts.hoon

Large diffs are not rendered by default.

43 changes: 22 additions & 21 deletions desk/lib/contacts-json.hoon
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/- c=contacts, g=groups
mikolajpp marked this conversation as resolved.
Show resolved Hide resolved
/+ gj=groups-json
=, legacy:c
|%
++ enjs
=, enjs:format
Expand All @@ -9,21 +10,21 @@
++ ship
|=(her=@p n+(rap 3 '"' (scot %p her) '"' ~))
::
++ action
|= a=action:c
++ action-0
|= a=action-0:c
^- json
%+ frond -.a
?- -.a
%anon ~
%edit a+(turn p.a field)
%edit a+(turn p.a field-0)
%meet a+(turn p.a ship)
%heed a+(turn p.a ship)
%drop a+(turn p.a ship)
%snub a+(turn p.a ship)
==
::
++ contact
|= c=contact:c
++ contact-0
|= c=contact-0:c
^- json
%- pairs
:~ nickname+s+nickname.c
Expand All @@ -38,8 +39,8 @@
|=([f=flag:g j=(list json)] [s+(flag:enjs:gj f) j])
==
::
++ field
|= f=field:c
++ field-0
|= f=field-0:c
^- json
%+ frond -.f
?- -.f
Expand All @@ -53,20 +54,20 @@
%del-group s+(flag:enjs:gj flag.f)
==
::
++ rolodex
|= r=rolodex:c
++ rolodex-0
|= r=rolodex-0:c
^- json
%- pairs
%- ~(rep by r)
|= [[who=@p foreign:c] j=(list [@t json])]
[[(scot %p who) ?.(?=([@ ^] for) ~ (contact con.for))] j] :: XX stale flag per sub state?
|= [[who=@p foreign-0:c] j=(list [@t json])]
[[(scot %p who) ?.(?=([@ ^] for) ~ (contact-0 con.for))] j] :: XX stale flag per sub state?
::
++ news
|= n=news:c
++ news-0
|= n=news-0:c
^- json
%- pairs
:~ who+(ship who.n)
con+?~(con.n ~ (contact con.n))
con+?~(con.n ~ (contact-0 con.n))
==
--
::
Expand All @@ -92,19 +93,19 @@
(slav aur (cut 3 [1 (sub wyd 2)] p.jon))
==
::
++ action
^- $-(json action:c)
++ action-0
^- $-(json action-0:c)
%- of
:~ anon+ul
edit+(ar field)
edit+(ar field-0)
meet+(ar ship)
heed+(ar ship)
drop+(ar ship)
snub+(ar ship)
==
::
++ contact
^- $-(json contact:c)
++ contact-0
^- $-(json contact-0:c)
%- ot
:~ nickname+so
bio+so
Expand All @@ -115,8 +116,8 @@
groups+(as flag:dejs:gj)
==
::
++ field
^- $-(json field:c)
++ field-0
^- $-(json field-0:c)
%- of
:~ nickname+so
bio+so
Expand Down
Loading
Loading