diff --git a/packages/backend/src/managers/catalogManager.ts b/packages/backend/src/managers/catalogManager.ts index 80cdf19ac..b5f591827 100644 --- a/packages/backend/src/managers/catalogManager.ts +++ b/packages/backend/src/managers/catalogManager.ts @@ -37,7 +37,6 @@ export class CatalogManager extends Publisher implements Disposable { super(webview, MSG_NEW_CATALOG_STATE, () => this.getCatalog()); // We start with an empty catalog, for the methods to work before the catalog is loaded this.catalog = { - categories: [], models: [], recipes: [], }; diff --git a/packages/frontend/src/lib/RecipeDetails.spec.ts b/packages/frontend/src/lib/RecipeDetails.spec.ts index 2f41eb7d2..96e6fdc39 100644 --- a/packages/frontend/src/lib/RecipeDetails.spec.ts +++ b/packages/frontend/src/lib/RecipeDetails.spec.ts @@ -77,7 +77,6 @@ vi.mock('../stores/localRepositories', () => ({ })); const initialCatalog: Catalog = { - categories: [], models: [ { id: 'model1', diff --git a/packages/frontend/src/lib/RecipesCard.svelte b/packages/frontend/src/lib/RecipesCard.svelte index 166e41ddc..0a9525534 100644 --- a/packages/frontend/src/lib/RecipesCard.svelte +++ b/packages/frontend/src/lib/RecipesCard.svelte @@ -1,13 +1,9 @@ - +
{#if recipes.length === 0} @@ -31,10 +27,7 @@ export let displayDescription: boolean = true;
{#if displayCategory} {#each recipe.categories as categoryId} - + {/each} {/if} {#if displayDescription} diff --git a/packages/frontend/src/lib/table/application/ColumnModel.spec.ts b/packages/frontend/src/lib/table/application/ColumnModel.spec.ts index 69f97f8d3..042cdc7dd 100644 --- a/packages/frontend/src/lib/table/application/ColumnModel.spec.ts +++ b/packages/frontend/src/lib/table/application/ColumnModel.spec.ts @@ -32,7 +32,6 @@ vi.mock('/@/stores/catalog', async () => { }); const initialCatalog: Catalog = { - categories: [], models: [ { id: 'model1', diff --git a/packages/frontend/src/lib/table/application/ColumnRecipe.spec.ts b/packages/frontend/src/lib/table/application/ColumnRecipe.spec.ts index 47aa961d9..1f5e2b7e2 100644 --- a/packages/frontend/src/lib/table/application/ColumnRecipe.spec.ts +++ b/packages/frontend/src/lib/table/application/ColumnRecipe.spec.ts @@ -47,7 +47,6 @@ vi.mock('/@/utils/client', async () => { }); const initialCatalog: Catalog = { - categories: [], models: [], recipes: [ { diff --git a/packages/frontend/src/pages/Recipe.spec.ts b/packages/frontend/src/pages/Recipe.spec.ts index 18d53e66a..99a7d53f2 100644 --- a/packages/frontend/src/pages/Recipe.spec.ts +++ b/packages/frontend/src/pages/Recipe.spec.ts @@ -80,7 +80,6 @@ vi.mock('/@/stores/catalog', async () => { }); const initialCatalog: Catalog = { - categories: [], models: [ { id: 'model1', @@ -123,7 +122,6 @@ const initialCatalog: Catalog = { }; const updatedCatalog: Catalog = { - categories: [], models: [ { id: 'model1', diff --git a/packages/frontend/src/pages/Recipe.svelte b/packages/frontend/src/pages/Recipe.svelte index 1fed02663..100b86f5b 100644 --- a/packages/frontend/src/pages/Recipe.svelte +++ b/packages/frontend/src/pages/Recipe.svelte @@ -63,9 +63,7 @@ function setSelectedModel(modelId: string) {
{#each recipe?.categories || [] as categoryId} - + {/each}
diff --git a/packages/frontend/src/pages/Recipes.svelte b/packages/frontend/src/pages/Recipes.svelte index 1910b97e8..1accc7938 100644 --- a/packages/frontend/src/pages/Recipes.svelte +++ b/packages/frontend/src/pages/Recipes.svelte @@ -3,28 +3,13 @@ import NavPage from '/@/lib/NavPage.svelte'; import RecipesCard from '/@/lib/RecipesCard.svelte'; import { RECENT_CATEGORY_ID } from '/@/utils/client'; import { catalog } from '/@/stores/catalog'; - -$: categories = $catalog.categories;
- - - - {#each categories as category} - - - {/each} +
diff --git a/packages/shared/src/models/ICatalog.ts b/packages/shared/src/models/ICatalog.ts index 1e4a8aa65..cdf5b285f 100644 --- a/packages/shared/src/models/ICatalog.ts +++ b/packages/shared/src/models/ICatalog.ts @@ -23,5 +23,4 @@ import type { Recipe } from './IRecipe'; export interface Catalog { recipes: Recipe[]; models: ModelInfo[]; - categories: Category[]; }