Skip to content

Commit

Permalink
Authenticate the chat search frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinbyrne committed Jan 16, 2024
1 parent d17c980 commit 038ab89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/webviews/chatSearchWebview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { ProcessId } from '../services/processWatcher';
import appmapMessageHandler from './appmapMessageHandler';
import FilterStore, { SavedFilter } from './filterStore';
import WebviewList from './WebviewList';
import { getApiKey } from '../authentication';
import ExtensionSettings from '../configuration/extensionSettings';

export default class ChatSearchWebview {
private webviewList = new WebviewList();
Expand Down Expand Up @@ -104,6 +106,8 @@ export default class ChatSearchWebview {
appmapRpcPort,
question,
savedFilters: this.filterStore.getSavedFilters(),
apiUrl: ExtensionSettings.apiUrl,
apiKey: await getApiKey(false),
});
break;
}
Expand Down
2 changes: 2 additions & 0 deletions web/src/chatSearchView.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export default function mountChatSearchView() {
appmapRpcPort: initialData.appmapRpcPort,
question: initialData.question,
savedFilters: initialData.savedFilters,
apiUrl: initialData.apiUrl,
apiKey: initialData.apiKey,
},
});
},
Expand Down

0 comments on commit 038ab89

Please sign in to comment.