Skip to content

Commit b1ef3cd

Browse files
skeptrunedevcdxker
authored andcommitted
refactor(user-goal): make the user goal for material muse be in first step and use the LLM for filter guessing again
1 parent 1777f7a commit b1ef3cd

File tree

4 files changed

+184
-160
lines changed

4 files changed

+184
-160
lines changed

clients/search-component/example/src/routeTree.gen.ts

Lines changed: 73 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,137 +1,135 @@
1+
/* prettier-ignore-start */
2+
13
/* eslint-disable */
24

35
// @ts-nocheck
46

57
// noinspection JSUnusedGlobalSymbols
68

7-
// This file was automatically generated by TanStack Router.
8-
// You should NOT make any changes in this file as it will be overwritten.
9-
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
9+
// This file is auto-generated by TanStack Router
1010

11-
import { createFileRoute } from "@tanstack/react-router";
11+
import { createFileRoute } from '@tanstack/react-router'
1212

1313
// Import Routes
1414

15-
import { Route as rootRoute } from "./routes/__root";
16-
import { Route as SearchpageImport } from "./routes/searchpage";
17-
import { Route as RecsImport } from "./routes/recs";
18-
import { Route as EcommerceImport } from "./routes/ecommerce";
15+
import { Route as rootRoute } from './routes/__root'
16+
import { Route as SearchpageImport } from './routes/searchpage'
17+
import { Route as RecsImport } from './routes/recs'
18+
import { Route as EcommerceImport } from './routes/ecommerce'
1919

2020
// Create Virtual Routes
2121

22-
const IndexLazyImport = createFileRoute("/")();
22+
const IndexLazyImport = createFileRoute('/')()
2323

2424
// Create/Update Routes
2525

2626
const SearchpageRoute = SearchpageImport.update({
27-
id: "/searchpage",
28-
path: "/searchpage",
27+
path: '/searchpage',
2928
getParentRoute: () => rootRoute,
30-
} as any);
29+
} as any)
3130

3231
const RecsRoute = RecsImport.update({
33-
id: "/recs",
34-
path: "/recs",
32+
path: '/recs',
3533
getParentRoute: () => rootRoute,
36-
} as any);
34+
} as any)
3735

3836
const EcommerceRoute = EcommerceImport.update({
39-
id: "/ecommerce",
40-
path: "/ecommerce",
37+
path: '/ecommerce',
4138
getParentRoute: () => rootRoute,
42-
} as any);
39+
} as any)
4340

4441
const IndexLazyRoute = IndexLazyImport.update({
45-
id: "/",
46-
path: "/",
42+
path: '/',
4743
getParentRoute: () => rootRoute,
48-
} as any).lazy(() => import("./routes/index.lazy").then((d) => d.Route));
44+
} as any).lazy(() => import('./routes/index.lazy').then((d) => d.Route))
4945

5046
// Populate the FileRoutesByPath interface
5147

52-
declare module "@tanstack/react-router" {
48+
declare module '@tanstack/react-router' {
5349
interface FileRoutesByPath {
54-
"/": {
55-
id: "/";
56-
path: "/";
57-
fullPath: "/";
58-
preLoaderRoute: typeof IndexLazyImport;
59-
parentRoute: typeof rootRoute;
60-
};
61-
"/ecommerce": {
62-
id: "/ecommerce";
63-
path: "/ecommerce";
64-
fullPath: "/ecommerce";
65-
preLoaderRoute: typeof EcommerceImport;
66-
parentRoute: typeof rootRoute;
67-
};
68-
"/recs": {
69-
id: "/recs";
70-
path: "/recs";
71-
fullPath: "/recs";
72-
preLoaderRoute: typeof RecsImport;
73-
parentRoute: typeof rootRoute;
74-
};
75-
"/searchpage": {
76-
id: "/searchpage";
77-
path: "/searchpage";
78-
fullPath: "/searchpage";
79-
preLoaderRoute: typeof SearchpageImport;
80-
parentRoute: typeof rootRoute;
81-
};
50+
'/': {
51+
id: '/'
52+
path: '/'
53+
fullPath: '/'
54+
preLoaderRoute: typeof IndexLazyImport
55+
parentRoute: typeof rootRoute
56+
}
57+
'/ecommerce': {
58+
id: '/ecommerce'
59+
path: '/ecommerce'
60+
fullPath: '/ecommerce'
61+
preLoaderRoute: typeof EcommerceImport
62+
parentRoute: typeof rootRoute
63+
}
64+
'/recs': {
65+
id: '/recs'
66+
path: '/recs'
67+
fullPath: '/recs'
68+
preLoaderRoute: typeof RecsImport
69+
parentRoute: typeof rootRoute
70+
}
71+
'/searchpage': {
72+
id: '/searchpage'
73+
path: '/searchpage'
74+
fullPath: '/searchpage'
75+
preLoaderRoute: typeof SearchpageImport
76+
parentRoute: typeof rootRoute
77+
}
8278
}
8379
}
8480

8581
// Create and export the route tree
8682

8783
export interface FileRoutesByFullPath {
88-
"/": typeof IndexLazyRoute;
89-
"/ecommerce": typeof EcommerceRoute;
90-
"/recs": typeof RecsRoute;
91-
"/searchpage": typeof SearchpageRoute;
84+
'/': typeof IndexLazyRoute
85+
'/ecommerce': typeof EcommerceRoute
86+
'/recs': typeof RecsRoute
87+
'/searchpage': typeof SearchpageRoute
9288
}
9389

9490
export interface FileRoutesByTo {
95-
"/": typeof IndexLazyRoute;
96-
"/ecommerce": typeof EcommerceRoute;
97-
"/recs": typeof RecsRoute;
98-
"/searchpage": typeof SearchpageRoute;
91+
'/': typeof IndexLazyRoute
92+
'/ecommerce': typeof EcommerceRoute
93+
'/recs': typeof RecsRoute
94+
'/searchpage': typeof SearchpageRoute
9995
}
10096

10197
export interface FileRoutesById {
102-
__root__: typeof rootRoute;
103-
"/": typeof IndexLazyRoute;
104-
"/ecommerce": typeof EcommerceRoute;
105-
"/recs": typeof RecsRoute;
106-
"/searchpage": typeof SearchpageRoute;
98+
__root__: typeof rootRoute
99+
'/': typeof IndexLazyRoute
100+
'/ecommerce': typeof EcommerceRoute
101+
'/recs': typeof RecsRoute
102+
'/searchpage': typeof SearchpageRoute
107103
}
108104

109105
export interface FileRouteTypes {
110-
fileRoutesByFullPath: FileRoutesByFullPath;
111-
fullPaths: "/" | "/ecommerce" | "/recs" | "/searchpage";
112-
fileRoutesByTo: FileRoutesByTo;
113-
to: "/" | "/ecommerce" | "/recs" | "/searchpage";
114-
id: "__root__" | "/" | "/ecommerce" | "/recs" | "/searchpage";
115-
fileRoutesById: FileRoutesById;
106+
fileRoutesByFullPath: FileRoutesByFullPath
107+
fullPaths: '/' | '/ecommerce' | '/recs' | '/searchpage'
108+
fileRoutesByTo: FileRoutesByTo
109+
to: '/' | '/ecommerce' | '/recs' | '/searchpage'
110+
id: '__root__' | '/' | '/ecommerce' | '/recs' | '/searchpage'
111+
fileRoutesById: FileRoutesById
116112
}
117113

118114
export interface RootRouteChildren {
119-
IndexLazyRoute: typeof IndexLazyRoute;
120-
EcommerceRoute: typeof EcommerceRoute;
121-
RecsRoute: typeof RecsRoute;
122-
SearchpageRoute: typeof SearchpageRoute;
115+
IndexLazyRoute: typeof IndexLazyRoute
116+
EcommerceRoute: typeof EcommerceRoute
117+
RecsRoute: typeof RecsRoute
118+
SearchpageRoute: typeof SearchpageRoute
123119
}
124120

125121
const rootRouteChildren: RootRouteChildren = {
126122
IndexLazyRoute: IndexLazyRoute,
127123
EcommerceRoute: EcommerceRoute,
128124
RecsRoute: RecsRoute,
129125
SearchpageRoute: SearchpageRoute,
130-
};
126+
}
131127

132128
export const routeTree = rootRoute
133129
._addFileChildren(rootRouteChildren)
134-
._addFileTypes<FileRouteTypes>();
130+
._addFileTypes<FileRouteTypes>()
131+
132+
/* prettier-ignore-end */
135133

136134
/* ROUTE_MANIFEST_START
137135
{

clients/search-component/example/src/routes/searchpage.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ export default function ECommerce() {
252252
viewBox="0 0 24 24"
253253
fill="none"
254254
stroke="currentColor"
255-
stroke-width="2"
256-
stroke-linecap="round"
257-
stroke-linejoin="round"
255+
strokeWidth="2"
256+
strokeLinecap="round"
257+
strokeLinejoin="round"
258258
>
259259
<path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"></path>
260260
<rect x="2" y="6" width="14" height="12" rx="2"></rect>
@@ -310,16 +310,16 @@ export default function ECommerce() {
310310
"Write a single short sentence (maximum 10 words) describing in high detail the way you see the space in the image in terms of color, luminance, and style. Make a specific callout to something unique so a reader knows you actually saw the image. \n\n",
311311
inferenceInputLabel:
312312
"How the AI understands your image (editable)",
313+
inputLabel: "Describe the goal of the change",
314+
placeholder:
315+
"I want to make the space more modern and bright.",
313316
},
314317
{
315318
title: "Filter Selection",
316319
description:
317320
"Select the material(s) you want to change and are interested in getting recommendations for.",
318321
type: "tags",
319322
filterSidebarSectionKey: "categories",
320-
inputLabel: "Describe the goal of the change",
321-
placeholder:
322-
"I want to make the space more modern and bright.",
323323
},
324324
{
325325
title: "View Recommended Materials",

0 commit comments

Comments
 (0)