refactor: Centralise deeplink encode and decode into server (#3489)

This commit is contained in:
Jarrod Sibbison
2025-07-20 18:13:55 +10:00
committed by GitHub
parent ef496329b9
commit e2e656c012
20 changed files with 667 additions and 263 deletions
+3 -3
View File
@@ -432,7 +432,7 @@ const RecipeEditorRoute = () => {
if (!config) {
const electronConfig = window.electron.getConfig();
config = electronConfig.recipeConfig;
config = electronConfig.recipe;
}
return <RecipeEditor config={config} />;
@@ -758,7 +758,7 @@ export default function App() {
const urlParams = new URLSearchParams(window.location.search);
const viewType = urlParams.get('view');
const resumeSessionId = urlParams.get('resumeSessionId');
const recipeConfig = window.appConfig.get('recipeConfig');
const recipeConfig = window.appConfig.get('recipe');
// Check for session resume first - this takes priority over other navigation
if (resumeSessionId) {
@@ -979,7 +979,7 @@ export default function App() {
// Handle navigation to pair view for recipe deeplinks after router is ready
useEffect(() => {
const recipeConfig = window.appConfig.get('recipeConfig');
const recipeConfig = window.appConfig.get('recipe');
if (
recipeConfig &&
typeof recipeConfig === 'object' &&