Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -81,7 +81,10 @@ export function createRoutesFromFolders(defineRoutes: DefineRoutesFunction, opti
}
if (isRouteModuleFile(file)) {
let relativePath = path.join(routesDirectory, file);
// Route ids and manifest file paths are URL-like repo paths. Keep them
// POSIX-stable on Windows instead of leaking `path.join` backslashes into
// React Router's manifest.
let relativePath = normalizeSlashes(path.join(routesDirectory, file));
let routeId = createRouteId(relativePath);
files[routeId] = relativePath;
return;
@@ -373,6 +376,13 @@ function shouldCreateAdminHostRoute(routeId: string): boolean {
if (!routeId.startsWith("routes/admin/")) {
return false;
}
// /select-tenant exists on both app and admin hosts. Registering the admin
// file as a second pathless-host alias creates two identical manifest paths,
// and React Router always matches the admin branch first on the app host.
// The single public route dispatches to the correct loader by request host.
if (routeId === "routes/admin/select-tenant") {
return false;
}
const canonicalPath = createRoutePath(routeId.slice("routes/admin/".length));
if (!canonicalPath) {
@@ -394,23 +404,6 @@ function createAdminHostRoutePath(routeId: string, parentId: string): string | u
return createRoutePath(routeId.slice(parentId.length + 1));
}
function addPromotedTenantDescendantRouteIds(routeIds: string[]): string[] {
const routeIdSet = new Set(routeIds);
for (const routeId of routeIds) {
if (!routeId.startsWith("routes/app.$tenant/")) {
continue;
}
const segments = routeId.split("/");
for (let index = segments.length - 1; index > 1; index--) {
routeIdSet.add(segments.slice(0, index).join("/"));
}
}
return [...routeIdSet].sort(byLongestFirst);
}
function getParentRouteIds(routeIds: string[]): Record<string, string | undefined> {
return routeIds.reduce<Record<string, string | undefined>>(
(parentRouteIds, childRouteId) => ({