Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Fang-
Copy link
Collaborator

@Fang- Fang- commented Nov 23, 2020

Makes chat-cli listen to graph-store rather than chat-store.

Along the way, cuts some features. No longer supports channel creation,
deletion, permission management or inviting. No longer lets you send
messages to multiple targets at once.

No longer displays messages from all joined chats, and no longer lets
you join or leave chats. Instead, chat-cli solely concerns itself with
viewing chat content you're already subscribed to (through use of
Landscape or other rich clients). ;view ~host/chat to start printing
messages for that chat when they come in, ;flee to toggle off. ;view to
see what chats are enabled, ;chats to see all available chats.

The removal of features acknowledges chat-cli's lack of real support for
the modern, group-centric state of userspace.
The intent of ;view ux is to prepare chat-cli for a multi-session
terminal world.

Opening this PR in case it needs to go in asap, but will try and find some time in the next 24 hours to add actual multi-session support to this. Multi-session support is in.

The approach here is one of "minimum viable migration". The code style is (or rather, remains) a bit rough around the edges, but fixing that is not in scope here.

Tested this a bit by playing around with graph generators, think it's probably good, but want to test again once @liam-fitzgerald's frontend changes are in just to make sure this plays nice in "wilder" contexts. Message rendering should work fine, but might look a tad janky.
(I assume an updated /mar/graph-validator/chat.hoon, with notification-kind:grow arm, will find its way into next-userspace.)

cc @syzygyzer for updating the messaging docs, though maybe we just want to remove chat-cli from the docs altogether for now.

Makes chat-cli listen to graph-store rather than chat-store.

Along the way, cuts some features. No longer supports channel creation,
deletion, permission management or inviting. No longer lets you send
messages to multiple targets at once.

No longer displays messages from all joined chats, and no longer lets
you join or leave chats. Instead, chat-cli solely concerns itself with
viewing chat content you're already subscribed to (through use of
Landscape or other rich clients). ;view ~host/chat to start printing
messages for that chat when they come in, ;flee to toggle off. ;view to
see what chats are enabled, ;chats to see all available chats.

The removal of features acknowledges chat-cli's lack of real support for
the modern, group-centric state of userspace.
The intent of ;view ux is to prepare chat-cli for a multi-session
terminal world.
@Fang- Fang- removed the request for review from tacryt-socryp November 23, 2020 15:10
Comment on lines 733 to +738
++ eval
|= [txt=cord exe=hoon]
(say %code txt (eval:store bowl exe))
~& %eval-tmp-disabled
[~ state]
::TODO why -find.eval??
:: (say %code txt (eval:store bowl exe))
Copy link
Collaborator Author

@Fang- Fang- Nov 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idk what's up with this, by the way. Nothing's shadowing store, nothing about this even changed, but it just won't resolve. What dumb mistake could I be overlooking?

@matildepark
Copy link
Contributor

Thank you for your work @Fang-

@matildepark matildepark changed the base branch from release/next-userspace to lf/chat-graph December 3, 2020 23:51
@matildepark
Copy link
Contributor

Pointed at the current Chat -> graph-store migration location. @liam-fitzgerald can you review this?

Copy link
Contributor

@liam-fitzgerald liam-fitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! Pushed a couple of changes for things I found while testing, other than that LGTM!

@ohAitch
Copy link
Contributor

ohAitch commented Dec 4, 2020 via email

@matildepark
Copy link
Contributor

You haven't been able to have complete parity with Landscape's web front-end for quite a while now — since around OS1, I think.

:chat-cli is from a point in time where we wrote IRC and left it at that; Landscape is a suite of Gall agents centred around the group pattern with an accompanying front-end, whose scope we've contained to the one web client as a team. Anything else is essentially a bonus until Landscape gets assigned a CLI maintainer. (Not to mention CLI parity is blocked on quite a few things to actually provide that experience. That said, @Fang- spends quite a bit of time these days working on the CLI experience, so I expect more improvements to come here.)

@matildepark matildepark merged commit 9532a2e into lf/chat-graph Dec 4, 2020
@matildepark matildepark deleted the m/chat-cli-graph branch December 4, 2020 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants