Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -5,6 +5,7 @@ import type { KbCategoryDto } from "~/modules/knowledgeBase/dtos/KbCategoryDto";
import ColorTextUtils from "~/utils/shared/colors/ColorTextUtils";
import { KnowledgeBaseDto } from "../../dtos/KnowledgeBaseDto";
import ColorGroupHoverUtils from "~/utils/shared/colors/ColorGroupHoverUtils";
import { sanitizeIconSvg } from "~/utils/html-sanitizer";
import { useTranslation } from "react-i18next";
import { useLocaleFormatters } from "~/locale/format";
@@ -24,11 +25,10 @@ export default function KbCategoriesList({ kb, items }: { kb: KnowledgeBaseDto;
{item.icon.startsWith("<svg") ? (
<div
dangerouslySetInnerHTML={{
__html:
item.icon.replace(
"<svg",
`<svg class='${clsx("h-12 w-12", ColorTextUtils.getText500(kb.color), ColorGroupHoverUtils.getText700(kb.color))}'`
) ?? "",
__html: sanitizeIconSvg(
item.icon,
clsx("h-12 w-12", ColorTextUtils.getText500(kb.color), ColorGroupHoverUtils.getText700(kb.color))
),
}}
/>
) : item.icon.includes("http") ? (
@@ -5,6 +5,7 @@ import type { KbCategoryDto } from "../../dtos/KbCategoryDto";
import { KnowledgeBaseDto } from "../../dtos/KnowledgeBaseDto";
import ColorTextUtils from "~/utils/shared/colors/ColorTextUtils";
import ColorGroupHoverUtils from "~/utils/shared/colors/ColorGroupHoverUtils";
import { sanitizeIconSvg } from "~/utils/html-sanitizer";
export default function KbCategoriesTopArticles({ kb, items }: { kb: KnowledgeBaseDto; items: KbCategoryDto[] }) {
const { t } = useTranslation();
@@ -21,11 +22,10 @@ export default function KbCategoriesTopArticles({ kb, items }: { kb: KnowledgeBa
{item.icon.startsWith("<svg") ? (
<div
dangerouslySetInnerHTML={{
__html:
item.icon.replace(
"<svg",
`<svg class='${clsx("h-6 w-6", ColorTextUtils.getText500(kb.color), ColorGroupHoverUtils.getText700(kb.color))}'`
) ?? "",
__html: sanitizeIconSvg(
item.icon,
clsx("h-6 w-6", ColorTextUtils.getText500(kb.color), ColorGroupHoverUtils.getText700(kb.color))
),
}}
/>
) : item.icon.includes("http") ? (
@@ -1,4 +1,4 @@
import { KnowledgeBaseArticle, KnowledgeBaseRelatedArticle, Prisma } from "@toolctrl/db/prisma-browser";
import { KnowledgeBaseArticle, KnowledgeBaseRelatedArticle, Prisma } from "@hivegrid/db/prisma-browser";
import { PaginationDto } from "~/application/dtos/data/PaginationDto";
import { cachified, clearCacheKey } from "~/utils/cache.server";
import { db, dbRead } from "~/utils/db.server";
@@ -1,6 +1,6 @@
import { db, dbRead } from "~/utils/db.server";
import { KnowledgeBaseCategoryWithDetails } from "../helpers/KbCategoryModelHelper";
import { Prisma } from "@toolctrl/db/prisma-browser";
import { Prisma } from "@hivegrid/db/prisma-browser";
export type KnowledgeBaseCategorySimple = {
id: string;
@@ -1,4 +1,4 @@
import { KnowledgeBaseCategorySection } from "@toolctrl/db/prisma-browser";
import { KnowledgeBaseCategorySection } from "@hivegrid/db/prisma-browser";
import { db, dbRead } from "~/utils/db.server";
export type KnowledgeBaseCategorySectionWithDetails = KnowledgeBaseCategorySection & {
@@ -1,4 +1,4 @@
import { KnowledgeBase } from "@toolctrl/db/prisma-browser";
import { KnowledgeBase } from "@hivegrid/db/prisma-browser";
import { clearCacheKey } from "~/utils/cache.server";
import { db, dbRead } from "~/utils/db.server";
@@ -1,4 +1,4 @@
import { KnowledgeBaseCategory } from "@toolctrl/db/prisma-browser";
import { KnowledgeBaseCategory } from "@hivegrid/db/prisma-browser";
export type KnowledgeBaseCategoryWithDetails = KnowledgeBaseCategory & {
articles: {
@@ -17,8 +17,8 @@ import { searchKnowledgeBaseArticles } from "../services/kbArticleSearch.server"
import { createKnowledgeBaseCategory, getAllKnowledgeBaseCategories, getKbCategoryById, getKbCategoryBySlug } from "../db/kbCategories.db.server";
import KnowledgeBaseUtils from "../utils/KnowledgeBaseUtils";
import { KnowledgeBaseCategoryWithDetails } from "../helpers/KbCategoryModelHelper";
import { KnowledgeBaseRelatedArticle } from "@toolctrl/db/prisma-browser";
import { defaultLocale, isSupportedLocale } from "@toolctrl/i18n";
import { KnowledgeBaseRelatedArticle } from "@hivegrid/db/prisma-browser";
import { defaultLocale, isSupportedLocale } from "@hivegrid/i18n";
import { marked } from "marked";
import { htmlToText } from "html-to-text";
import { remixI18Next } from "~/locale/i18next.server";
@@ -537,7 +537,7 @@ async function search({
return undefined;
}
// Hot-path: routes the read through @toolctrl/search's tenant-scoped
// Hot-path: routes the read through @hivegrid/search's tenant-scoped
// wrapper when MEILI_URL is set; transparently falls back to the SQL
// LIKE-based implementation on connectivity errors or when no
// Meilisearch backend is configured. See docs/features/search.md.
@@ -1,4 +1,4 @@
import type { KnowledgeBase, KnowledgeBaseArticle } from "@toolctrl/db/prisma-browser";
import type { KnowledgeBase, KnowledgeBaseArticle } from "@hivegrid/db/prisma-browser";
import {
createKnowledgeBaseArticle,
getKbArticleBySlug,
@@ -7,7 +7,7 @@ const mocks = vi.hoisted(() => ({
findKnowledgeBaseArticlesByIds: vi.fn(),
}));
vi.mock("@toolctrl/search", () => ({
vi.mock("@hivegrid/search", () => ({
createSearchClient: mocks.createSearchClient,
kbArticlesIndex: { name: "kb_articles", primaryKey: "id" },
searchWithFallback: mocks.searchWithFallback,
@@ -17,7 +17,7 @@ import {
searchWithFallback,
type SearchClient,
type SearchFallback,
} from "@toolctrl/search";
} from "@hivegrid/search";
import {
findKnowledgeBaseArticlesByIds,
findKnowledgeBaseArticles,
@@ -43,7 +43,7 @@ describe("DefaultKbsTemplate content", () => {
expect(source).not.toContain("Introduction category description sample");
expect(source).not.toContain("Example Site - Knowledge Base");
expect(source).not.toContain("loom.com");
expect(source).not.toContain("demo@toolctrl.local");
expect(source).not.toContain("demo@hivegrid.local");
expect(source).not.toContain("Dynamic vs Static Knowledge Bases");
expect(source).not.toContain("apps/web/app/routes/docs/($lang).tsx");
expect(source).not.toContain("related articles to guide readers");
@@ -144,7 +144,7 @@ describe("DefaultKbsTemplate content", () => {
for (const template of [DefaultKbsTemplate.SAMPLE_EN, DefaultKbsTemplate.SAMPLE_DE]) {
const serialized = JSON.stringify(template);
expect(serialized).not.toContain("loom.com");
expect(serialized).not.toContain("demo@toolctrl.local");
expect(serialized).not.toContain("demo@hivegrid.local");
expect(template.articles.every((article) => article.createdByUserEmail === null)).toBe(true);
}
});