feat: cut over rust web main shell

This commit is contained in:
lix-2026
2026-04-29 12:24:44 +08:00
parent 7965c6c107
commit 048fe28a4d
97 changed files with 9396 additions and 1263 deletions
@@ -8,6 +8,13 @@ type SearchPaletteProps = {
workspaceId: string | null;
};
export const SEARCH_PALETTE_ISLAND_CONTRACT = {
shellOwner: "mnote-web",
runtimeRole: "react_interaction_island",
island: "search_palette",
transport: "/api/search/documents",
} as const;
const SearchPaletteRuntime = dynamic<SearchPaletteProps>(
() => import("./search-palette.runtime").then((mod) => mod.SearchPalette),
{
@@ -46,5 +53,13 @@ export function SearchPaletteHost({ workspaceId }: SearchPaletteProps) {
return null;
}
return <SearchPaletteRuntime workspaceId={workspaceId} />;
return (
<div
data-react-island={SEARCH_PALETTE_ISLAND_CONTRACT.island}
data-runtime-role={SEARCH_PALETTE_ISLAND_CONTRACT.runtimeRole}
data-shell-owner={SEARCH_PALETTE_ISLAND_CONTRACT.shellOwner}
>
<SearchPaletteRuntime workspaceId={workspaceId} />
</div>
);
}