diff --git a/src-tauri/yaak_plugin_runtime/src/manager.rs b/src-tauri/yaak_plugin_runtime/src/manager.rs index e5cb0d6b..f30e5541 100644 --- a/src-tauri/yaak_plugin_runtime/src/manager.rs +++ b/src-tauri/yaak_plugin_runtime/src/manager.rs @@ -558,9 +558,9 @@ impl PluginManager { content_type: &str, ) -> Result { let plugin_name = if content_type.to_lowercase().contains("json") { - "filter-jsonpath" + "@yaakapp/filter-jsonpath" } else { - "filter-xpath" + "@yaakapp/filter-xpath" }; let plugin = self diff --git a/src-web/components/responseViewers/HTMLOrTextViewer.tsx b/src-web/components/responseViewers/HTMLOrTextViewer.tsx index 381c1d3f..fe32ba47 100644 --- a/src-web/components/responseViewers/HTMLOrTextViewer.tsx +++ b/src-web/components/responseViewers/HTMLOrTextViewer.tsx @@ -41,6 +41,7 @@ export function HTMLOrTextViewer({ response, pretty, textViewerClassName }: Prop className={textViewerClassName} onSaveResponse={saveResponse.mutate} responseId={response.id} + requestId={response.requestId} /> ); } diff --git a/src-web/components/responseViewers/TextViewer.tsx b/src-web/components/responseViewers/TextViewer.tsx index 79f54898..4e88eaeb 100644 --- a/src-web/components/responseViewers/TextViewer.tsx +++ b/src-web/components/responseViewers/TextViewer.tsx @@ -28,6 +28,7 @@ interface Props { text: string; language: EditorProps['language']; responseId: string; + requestId: string; onSaveResponse: () => void; } @@ -37,20 +38,21 @@ export function TextViewer({ language, text, responseId, + requestId, pretty, className, onSaveResponse, }: Props) { const [filterTextMap, setFilterTextMap] = useFilterText(); const [showLargeResponse, toggleShowLargeResponse] = useToggle(); - const filterText = filterTextMap[responseId] ?? null; + const filterText = filterTextMap[requestId] ?? null; const copy = useCopy(); const debouncedFilterText = useDebouncedValue(filterText, 200); const setFilterText = useCallback( (v: string | null) => { - setFilterTextMap((m) => ({ ...m, [responseId]: v })); + setFilterTextMap((m) => ({ ...m, [requestId]: v })); }, - [setFilterTextMap, responseId], + [setFilterTextMap, requestId], ); const isSearching = filterText != null; @@ -75,7 +77,7 @@ export function TextViewer({ nodes.push(