-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Adds side panel widgets to the tracker #146
base: main
Are you sure you want to change the base?
Conversation
@@ -56,7 +57,7 @@ export interface IChatFactory { | |||
/** | |||
* The chat panel tracker. | |||
*/ | |||
tracker: IWidgetTracker<LabChatPanel>; | |||
tracker: WidgetTracker<LabChatPanel | ChatWidget>; |
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.
Do we need to expose a full WidgetTracker
? Or could we stick to the more limited IWidgetTracker
as before?
@@ -152,16 +152,13 @@ export class ChatPanel extends SidePanel { | |||
* @param model - the model of the chat widget | |||
* @param name - the name of the chat. | |||
*/ | |||
addChat(model: IChatModel, path: string): void { | |||
addChat(model: IChatModel): ChatWidget { |
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.
Note: this will likely require a 0.8.0
release.
Add the side panel chats to the widget tracker.
Fixes #130
Fixes #139
The chats tracker tracks both
LabChatPanel
(the main area widget) andChatWidget
(widget in the side panel).IMPROVEMENT
Accel Shift 1
) works for all the chat widgets. The last used input is focused.TO DO
The widget become the current widget of the tracker only if an input has been clicked. We should focus on the input component when the chat is clicked (anywhere except on an other input). This would also be a nice UX improvement.