-
-
Couldn't load subscription status.
- Fork 16
Display chat users #92
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
base: main
Are you sure you want to change the base?
Conversation
| getMetadata(key: string): IMetadata | undefined { | ||
| return this._metadata.get(key); | ||
| } | ||
|
|
||
| setMetadata(key: string, value: PartialJSONValue) { | ||
| this.transact(() => { | ||
| this._metadata.set(key, value); | ||
| }); | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason why this change has been added in this PR is for a possible usage in jupyter-ai:
- the personnas from
jupyter-aicould be displayed in this toolbar as regular collaborator, with a custom item that allows disabling it - disabling a personna should be saved in the metadata for persistence
Even if we do not add the feature described above, adding a way to get/set metadata from a frontend extension may still be useful. But it can be moved to another PR if it make more sense.
This PR adds a toolbar widget to display the connected user on the current chat.
As can be seen in the gif above, displaying all users can take up to 15 seconds (the delay between two user status updates).
It needs to wait for:
"@jupyter/collaboration": "^3"