feat: deep linking for hosted URLs and openconcho:// scheme

Add /explore redirect route that maps Honcho's deep-link shape
(?workspace=...&view=...&session=...) onto our existing flat routes,
so any app.honcho.dev URL works against a self-hosted instance by
swapping the host.

Wire tauri-plugin-deep-link to register the openconcho:// scheme on
desktop and forward incoming URLs into the router on launch and at
runtime.
This commit is contained in:
Offending Commit
2026-05-04 10:12:25 -05:00
parent 2b0844d4d3
commit 578c8f4c46
11 changed files with 297 additions and 18 deletions

View File

@@ -3,6 +3,7 @@ import { createRouter, RouterProvider } from "@tanstack/react-router";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { DemoProvider } from "./context/DemoContext";
import { initDeepLinks } from "./lib/deep-link";
import { routeTree } from "./routeTree.gen";
import "./index.css";
@@ -27,6 +28,8 @@ declare module "@tanstack/react-router" {
}
}
void initDeepLinks(router as never);
const root = document.getElementById("root");
if (!root) throw new Error("Missing #root element");