Skip to content

Commit 74b8c3c

Browse files
ENG-1841 add admin search provider test tab (#1127)
* Add debug utility to retrieve Supabase host and log it during HyDE search * Introduced `getSupabaseHostForDebug` function to extract and validate the Supabase URL. * Updated logging in `performHydeSearch` to include the Supabase host for better debugging. * Adjusted query parameters in `getNodesByType` to optimize data retrieval. * . * ENG-1758 Improve settings dialog performance and snapshot handling * Refactored `SettingsDialog` to capture a full settings snapshot at mount and thread relevant slices to child components. * Updated `bulkReadSettings` to perform a single pull query for settings, enhancing performance. * Implemented snapshot refresh on tab navigation to prevent stale values. * Removed redundant dual-read comparisons and ensured legacy values are preserved during migrations. * Enhanced relation settings handling to ensure current state is always read during edits. * Update roamjs-components to version 0.88.3 and enhance SearchTestTab component * Upgraded `roamjs-components` from version 0.88.1 to 0.88.3 in both `pnpm-lock.yaml` and `package.json`. * Refactored `SearchTestTab` component to improve button styling and layout. * Adjusted semantic search result limit from 100 to 200 and updated related descriptions for clarity. * Enhanced rendering of search results and improved overall component structure for better maintainability. * Refactor semantic search to focus on page hits * Updated `RoamSemanticSearchHit` type to restrict `type` to "chunk", "block", or "page". * Modified `runRoamSemanticSearch` to filter and process only page hits, improving search relevance. * Adjusted logging to reflect the number of discarded non-page hits for better clarity in search results. * Update apps/roam/src/utils/discourseNodeSearchProviders.ts Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 78427b8 commit 74b8c3c

5 files changed

Lines changed: 1035 additions & 6 deletions

File tree

apps/roam/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"react-draggable": "4.4.5",
7575
"react-in-viewport": "1.0.0-alpha.20",
7676
"react-vertical-timeline-component": "3.5.2",
77-
"roamjs-components": "0.88.1",
77+
"roamjs-components": "0.88.3",
7878
"tldraw": "2.4.6",
7979
"use-sync-external-store": "1.5.0",
8080
"xregexp": "^5.0.0",

apps/roam/src/components/settings/AdminPanel.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import SuggestiveModeSettings from "./SuggestiveModeSettings";
3737
import { FeatureFlagPanel } from "./components/BlockPropSettingPanels";
3838
import type { FeatureFlags } from "./utils/zodSchema";
3939
import { nextRoot } from "@repo/utils/execContext";
40+
import SearchTestTab from "./SearchTestTab";
4041

4142
const NodeRow = ({ node }: { node: PConceptFull }) => {
4243
return (
@@ -498,6 +499,7 @@ const AdminPanel = ({
498499
</div>
499500
}
500501
/>
502+
<Tab id="search-test" title="Search test" panel={<SearchTestTab />} />
501503
{isSyncEnabled() && (
502504
<Tab
503505
id="sync-mode-settings"

0 commit comments

Comments
 (0)