-
Notifications
You must be signed in to change notification settings - Fork 45
ai-assistant: Type fixing, upgrading dependencies #452
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
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Was using the wrong props for some labels. Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
It was missing the required generic typing of the config. Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
This code needs more fixing, but this is an improvement and we can continue it later... and have the type checker work for the rest of the code. Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
… prop Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Also fix a ts issue. Signed-off-by: René Dudfield <renedudfield@microsoft.com>
9f289ad to
5251ef1
Compare
Also need to change tsconfig so that langchain can work, because it is no longer compatible with the other way of doing things. Signed-off-by: René Dudfield <renedudfield@microsoft.com> Signed-off-by: Evangelos Skopelitis <eskopelitis@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Also fix some issues related to the upgrade found with ts. Signed-off-by: René Dudfield <renedudfield@microsoft.com>
skoeva
left a comment
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.
thanks for all this work! left some comments
| if (method.toUpperCase() === 'PUT' && showUpdateConfirm) { | ||
| return ( | ||
| <ConfirmDialog | ||
| // @todo: open does exist on ConfirmDialog, but TS is not recognizing it. |
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.
we could handle this type issue within src/headlamp-plugin.d.ts
/// <reference types="@kinvolk/headlamp-plugin" />
import type { DialogProps as MuiDialogProps } from '@mui/material/Dialog';
declare module '@kinvolk/headlamp-plugin/lib/CommonComponents' {
interface ConfirmDialogProps {
/** Forwarded to the underlying MUI dialog */
open: MuiDialogProps['open'];
}
}
ai-assistant/src/utils.tsx
Outdated
| export const getSettingsURL = () => `/settings/plugins/${encodeURIComponent(PLUGIN_NAME)}`; | ||
|
|
||
| export const pluginStore = new ConfigStore(PLUGIN_NAME); | ||
| export const pluginStore = new ConfigStore<{ isUIPanelOpen?: boolean }>(PLUGIN_NAME); |
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.
this change gets overwritten by dadc8f7, maybe this commit can be dropped?
ai-assistant/src/textstream.tsx
Outdated
| import ContentRenderer from './ContentRenderer'; | ||
| import EditorDialog from './editordialog'; | ||
|
|
||
| // declare module '@mui/material/styles' { |
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.
is there a reason to include this commit with the commented-out block?
| // }; | ||
| // } | ||
| // } | ||
| declare module '@mui/material/styles' { |
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 main goal with this is to upgrade headlamp-plugin so we have better type checking and docs for things in the code.
But also to upgrade langchain and others so that building the next thing on top we can have the latest.