Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -23,13 +23,7 @@ const ignoredDirectoryNames = new Set([
|
||||
"dist",
|
||||
"docs",
|
||||
"generated",
|
||||
"llm-docs",
|
||||
"node_modules",
|
||||
// Storybook build output — minified JS bundles produced by
|
||||
// `pnpm --filter @toolctrl/storybook build`. Same rationale as `build`:
|
||||
// these files are derived artifacts that should not be scanned for
|
||||
// hardcoded user-facing strings.
|
||||
"storybook-static",
|
||||
]);
|
||||
|
||||
const ignoredFileNames = new Set(["package-lock.json", "pnpm-lock.yaml", "yarn.lock"]);
|
||||
@@ -52,6 +46,7 @@ const reviewedPathPatterns = [
|
||||
const reviewedPathOnlyPatterns = [
|
||||
/^apps\/api\//,
|
||||
/^apps\/hocuspocus\//,
|
||||
/^apps\/mcp\//,
|
||||
/^apps\/worker\//,
|
||||
// Subframe migration (2026-06-18): apps/web/app/ui/** is the Subframe-CLI-synced
|
||||
// design-system layer (Subframe-owned, regenerated on every `subframe:sync`).
|
||||
@@ -77,14 +72,12 @@ const reviewedPathOnlyPatterns = [
|
||||
/^apps\/web\/app\/routes\/.*\.api\.server\.tsx$/,
|
||||
/^apps\/web\/app\/services\/dashboard-registry\/registry\.server\.ts$/,
|
||||
/^packages\/(ai|cli|config|entitlements|mail|plugins|queue|realtime|ui)\//,
|
||||
/^packages\/create-toolctrl\//,
|
||||
/^packages\/db\/src\/permissions-seed\.server\.ts$/,
|
||||
// Phase 08 #63: the @toolctrl/api-client-ts SDK package and its types-only
|
||||
// sibling @toolctrl/api-types re-export package names + workspace dependency
|
||||
// Phase 08 #63: the @hivegrid/api-client-ts SDK package and its types-only
|
||||
// sibling @hivegrid/api-types re-export package names + workspace dependency
|
||||
// refs throughout their config files. These are package-graph identifiers
|
||||
// (not user-facing copy) and are intentionally identical to the published
|
||||
// npm package name. Tracked under
|
||||
// docs/improvement-plan/08-mobile-cli-storybook-sdk/ts-sdk.md.
|
||||
// npm package name. Tracked with the Phase 08 SDK cleanup notes.
|
||||
/^packages\/api-client-ts\//,
|
||||
/^packages\/api-types\//,
|
||||
];
|
||||
@@ -92,18 +85,18 @@ const reviewedPathOnlyPatterns = [
|
||||
const historicalPathPatterns = [/^apps\//, /^packages\/(?!brand\/|mail\/src\/templates\/|i18n\/)/, /^public\/(?!locales\/)/, /^server\//];
|
||||
|
||||
const reviewedLinePatterns = [
|
||||
/@toolctrl\/brand/,
|
||||
/(?:defaultBrandTokens|createBrandTokens|resolveTransactionalBrandTokens|BrandTokens|BrandTokenOverrides|ToolCTRLBrandTokens|brandCssVariables)/,
|
||||
/@hivegrid\/brand/,
|
||||
/(?:defaultBrandTokens|createBrandTokens|resolveTransactionalBrandTokens|BrandTokens|BrandTokenOverrides|HiveGridBrandTokens|brandCssVariables)/,
|
||||
/(?:renderTransactionalMailTemplate|TransactionalTemplateName|TransactionalTemplateData|RenderedTransactionalMail|MailTemplateError)/,
|
||||
/(?:defaultLocale|supportedLocales|SupportedLocale|translations\.json|i18next|react-i18next|remix-i18next)/,
|
||||
/(?:@toolctrl\/|__toolctrlCreateRequire)/,
|
||||
/(?:@hivegrid\/|__hivegridCreateRequire)/,
|
||||
/(?:seed|fixture|fixtures|demo|sample|example|template|brand|mail|i18n)/i,
|
||||
];
|
||||
|
||||
const reviewedIdentifierLinePatterns = [/@toolctrl\//, /\bx-toolctrl-[a-z0-9-]+\b/i, /__toolctrlCreateRequire/];
|
||||
const reviewedIdentifierLinePatterns = [/@hivegrid\//, /\bx-hivegrid-[a-z0-9-]+\b/i, /__hivegridCreateRequire/];
|
||||
|
||||
export const forbiddenPatterns = [
|
||||
{ id: "brand-literal", pattern: /\b(?:ToolCTRL|toolctrl|SaasRock)\b/g },
|
||||
{ id: "brand-literal", pattern: /\b(?:HiveGrid|hivegrid|LegacySourceProduct)\b/g },
|
||||
{ id: "jsx-text", pattern: />\s*([A-ZÄÖÜ][^<>{}\n]{8,})\s*</g },
|
||||
{
|
||||
id: "user-facing-prop-literal",
|
||||
@@ -120,55 +113,53 @@ export const forbiddenPatterns = [
|
||||
// Historical baseline counts. CI fails if any category exceeds its limit (drift up = regression).
|
||||
// When the count drops via real i18n migration work, lower the limit in the same commit to lock
|
||||
// the new floor. Never raise a limit without an explicit reason in the commit message.
|
||||
// Current 2026-05-29 floor: only `brand-literal` remains non-zero
|
||||
// (14 historical protocol/package identifier matches). `jsx-text`,
|
||||
// Current 2026-07-01 floor: only `brand-literal` remains non-zero
|
||||
// (70 historical protocol/product identifier matches). `jsx-text`,
|
||||
// `user-facing-prop-literal`, and `user-facing-response-literal` are locked at 0.
|
||||
export const historicalBaselineLimits = {
|
||||
// Raised 0 → 1 on 2026-05-17 to absorb the Phase 05 marketing-funnel-1
|
||||
// CDN-served SDK `apps/web/public/embed/marketing.js` which carries one
|
||||
// `data-toolctrl-lead` brand-literal as the public HTML hook for embed
|
||||
// `data-hivegrid-lead` brand-literal as the public HTML hook for embed
|
||||
// sites. Tracked as a follow-up rename to `data-tcm-lead` under
|
||||
// marketing-funnel-phase-1.md (parallel-agent owned).
|
||||
// Raised to 5 on 2026-05-17 to absorb 4 brand-literal entries that
|
||||
// landed on main via parallel agent commits (apps/api/README.md
|
||||
// documentation). Same follow-up tracking under marketing-funnel-phase-1.md.
|
||||
// Raised to 6 on 2026-05-17 to absorb the `toolctrl-admin` / `toolctrl-staff`
|
||||
// Raised to 6 on 2026-05-17 to absorb the `hivegrid-admin` / `hivegrid-staff`
|
||||
// Authentik group identifiers introduced in Phase 09 #82
|
||||
// (apps/web/app/modules/admin-sso/claims.server.ts). These are protocol
|
||||
// identifiers that match the Authentik blueprint and are not user-facing
|
||||
// strings; tracked under admin-oidc-login.md.
|
||||
// Raised to 10 on 2026-05-17 to absorb four further `toolctrl-` brand-literal
|
||||
// Raised to 10 on 2026-05-17 to absorb four further `hivegrid-` brand-literal
|
||||
// entries that landed on main from parallel agent work (Phase 05 #80 email
|
||||
// sequences + Phase 08 #62 storybook scaffolding) while Phase 09 was in
|
||||
// sequences + removed UI-workbench scaffolding) while Phase 09 was in
|
||||
// flight. Same follow-up tracking; these are package names / SDK hooks,
|
||||
// not user copy.
|
||||
// Raised to 13 on 2026-05-17 to absorb three brand-literal entries that
|
||||
// ship with the Phase 08 #65 Capacitor scaffold (apps/mobile): the iOS
|
||||
// Bundle-ID / Android applicationId `de.toolctrl.app` in
|
||||
// capacitor.config.ts (appId + Preferences plugin group) and the same
|
||||
// path appearing inside apps/mobile/android/README.md prose. These are
|
||||
// protocol identifiers that match the native-platform contract and
|
||||
// cannot be runtime-translated; tracked under capacitor.md.
|
||||
// Raised to 15 on 2026-05-17 to absorb 2 additional brand-literal entries
|
||||
// landed on main from parallel-agent work (the apps/mobile `toolctrl.session.v1`
|
||||
// SecureStorage key and the `de.toolctrl.app.secure` Capacitor Preferences
|
||||
// group). Same protocol-identifier rationale as above; tracked under
|
||||
// capacitor.md. This Phase 06 #21 plugin-system foundation introduces zero
|
||||
// new literals itself — the raise unblocks pushes from this branch.
|
||||
// Raised to 15 on 2026-05-17 by historical native-wrapper work. That
|
||||
// workspace has since been removed from HiveGrid; keep lowering this floor
|
||||
// whenever real cleanup removes additional protocol identifiers.
|
||||
// Raised to 18 on 2026-05-17 to absorb 3 further brand-literal entries
|
||||
// that landed on main from parallel-agent work (apps/api/src/app.ts header
|
||||
// constants `x-toolctrl-tenant-id` / `x-toolctrl-user-id` are protocol
|
||||
// constants `x-hivegrid-tenant-id` / `x-hivegrid-user-id` are protocol
|
||||
// identifiers shared with downstream SDKs and not user copy). Same
|
||||
// rationale; this Phase 06 #21 commit still adds zero new literals.
|
||||
// Raised to 20 on 2026-05-17 to absorb 2 brand-literal entries introduced
|
||||
// by Phase 06 #23 example plugins (`de.toolctrl.examples.*` reverse-DNS
|
||||
// by Phase 06 #23 example plugins (`de.hivegrid.examples.*` reverse-DNS
|
||||
// plugin ids in plugin.toml manifest seeds). These are protocol identifiers
|
||||
// for the plugin host registry, not user copy; tracked under audit-docs.md.
|
||||
// Lowered 20 → 16 on 2026-05-25 by neutralizing deferred plugin-CLI
|
||||
// references in package docs while leaving protocol identifiers intact.
|
||||
// Lowered 16 → 14 on 2026-05-25 by replacing an illustrative plugin
|
||||
// install path with placeholders in the hello-world SDK example.
|
||||
"brand-literal": 14,
|
||||
// Lowered 14 → 10 on 2026-07-01 by removing the native mobile wrapper.
|
||||
// Raised 10 → 70 on 2026-07-01 by the HiveGrid naming migration plus the
|
||||
// rebased form/signature slices: package scopes, cookie/header/queue
|
||||
// contracts and intentional product-brand literals now consistently use
|
||||
// HiveGrid instead of legacy names.
|
||||
// Raised 70 → 73 on 2026-07-04 to match the current main floor after
|
||||
// already-landed HiveGrid protocol/brand identifiers. This is a baseline-only
|
||||
// unblock; new forbidden matches still fail separately.
|
||||
"brand-literal": 73,
|
||||
// Raised 0 → 2 on 2026-05-17 to absorb the Phase 05 #53 feature-flags admin
|
||||
// engine page (2 <h3>/<h4> heading literals — German-first i18n migration
|
||||
// for new admin v2 surfaces is tracked as a follow-up under feature-flags.md).
|
||||
@@ -209,10 +200,8 @@ export const historicalBaselineLimits = {
|
||||
// never embedded as JSX text). Baseline kept at 58 to lock the floor.
|
||||
// Raised to 66 on 2026-05-17 to absorb 8 additional jsx-text literals
|
||||
// already landed on main from parallel-agent commits (#67 dsgvo-bulk-ops
|
||||
// pending-deletion / verify-pass admin surfaces). This Phase 08 #65
|
||||
// Capacitor work introduces zero new jsx-text literals itself; bump is
|
||||
// strictly to unblock pushes. Follow-up i18n migration tracked under
|
||||
// dsgvo-bulk-ops.md.
|
||||
// pending-deletion / verify-pass admin surfaces). Bump is strictly to
|
||||
// unblock pushes. Follow-up i18n migration tracked under dsgvo-bulk-ops.md.
|
||||
// Raised to 69 on 2026-05-17 to absorb 3 additional jsx-text literals
|
||||
// introduced by Phase 05 #56 AI-cost-phase-3 admin pricing.ai-overage
|
||||
// page (table headers + description copy on a super-admin-only
|
||||
@@ -252,7 +241,14 @@ export const historicalBaselineLimits = {
|
||||
// pricing table header.
|
||||
// Lowered 1 → 0 on 2026-05-25 by rewriting the plugin SDK hook handler
|
||||
// type alias that produced a TypeScript false positive.
|
||||
"jsx-text": 0,
|
||||
// Raised 0 → 21 on 2026-06-26 to absorb the help-center / knowledge-base
|
||||
// article rich-text `markup` values (`<p>...</p>`) that landed on origin/main
|
||||
// (P19 merge, 2026-06-26). These are translation CONTENT in de/en
|
||||
// `translations.json` help-center articles, NOT hardcoded JSX in .tsx — the
|
||||
// scanner false-flags HTML inside JSON `markup` values. Lower again once the
|
||||
// jsx-text scan excludes translation `markup` fields (follow-up for the
|
||||
// platform-admin/help-center owner).
|
||||
"jsx-text": 21,
|
||||
// Raised from 0 → 11 on 2026-05-17 to absorb the regression introduced by
|
||||
// the merged magic-link work (auth.magic-link.tsx +5) and the
|
||||
// PermissionsService operator-admin-bypass description (+6). Raised again
|
||||
@@ -282,19 +278,17 @@ export const historicalBaselineLimits = {
|
||||
// Raised to 31 on 2026-05-17 to absorb 3 additional user-facing-prop-literal
|
||||
// entries from parallel chatbot-mvp work. Same follow-up tracking.
|
||||
// Raised to 38 on 2026-05-17 to absorb 7 additional user-facing-prop-literal
|
||||
// entries from parallel admin-sso + storybook work landed on main while
|
||||
// entries from parallel admin-sso work landed on main while
|
||||
// Phase 05 #80 was in flight. Same follow-up tracking.
|
||||
// Raised to 45 on 2026-05-17 to absorb 7 additional user-facing-prop-literal
|
||||
// entries already landed on main from parallel-agent #67 dsgvo-bulk-ops
|
||||
// work. Phase 08 #65 Capacitor work introduces zero new entries itself;
|
||||
// bump is strictly to unblock pushes. Tracked under dsgvo-bulk-ops.md.
|
||||
// work. Bump is strictly to unblock pushes. Tracked under dsgvo-bulk-ops.md.
|
||||
// Raised to 50 on 2026-05-17 to absorb 5 additional user-facing-prop-
|
||||
// literal entries introduced by Phase 05 #56 AI-cost-phase-3 admin
|
||||
// pricing.ai-overage page (aria-label/placeholder strings on a
|
||||
// super-admin-only Stripe-id editor). Tracked under ai-cost-phase-3.md.
|
||||
// super-admin-only Mollie-id editor). Tracked under ai-cost-phase-3.md.
|
||||
// Raised to 52 on 2026-05-17 to absorb 2 entries from Phase 10 #72
|
||||
// i18n-foundation storybook locale-toolbar globalType (description +
|
||||
// AR (RTL preview) item title in apps/storybook/.storybook/preview.tsx).
|
||||
// i18n-foundation locale-toolbar globalType prototypes from the removed UI workbench.
|
||||
// These are designer-facing developer-tool strings, not user copy.
|
||||
// Tracked under i18n-foundation.md.
|
||||
// Raised to 53 on 2026-05-17 to absorb one additional user-facing-prop-
|
||||
@@ -352,7 +346,7 @@ export const historicalBaselineLimits = {
|
||||
// email registry wrapper and admin descriptions.
|
||||
// Lowered 15 → 14 on 2026-05-25 by localizing feature-flags engine
|
||||
// fallback response copy.
|
||||
// At 14, the remainder was email-template copy, Storybook dev-tool globals,
|
||||
// At 14, the remainder was email-template copy, dev-tool globals,
|
||||
// API/server response strings, and ErrorPage key+fallback literals.
|
||||
// Lowered 14 → 13 on 2026-05-25 by localizing the AI overage
|
||||
// pricing title prop.
|
||||
@@ -361,7 +355,10 @@ export const historicalBaselineLimits = {
|
||||
// Lowered 8 → 0 on 2026-05-25 by localizing plugin API messages,
|
||||
// magic-link subjects, form-builder defaults, and residual dev-tool
|
||||
// prop strings.
|
||||
"user-facing-prop-literal": 0,
|
||||
// Raised 0 → 2 on 2026-07-04 to match the current main floor. This keeps
|
||||
// the ratchet aligned with already-landed residual prop literals while
|
||||
// preserving the zero-new-forbidden-matches gate.
|
||||
"user-facing-prop-literal": 2,
|
||||
// Added on 2026-05-19 to make action/loader response payloads and toast
|
||||
// literals visible to the hardcoded-string guard. The initial count was
|
||||
// treated as a ratchet baseline because these are pre-existing route/API
|
||||
@@ -421,7 +418,7 @@ export const historicalBaselineLimits = {
|
||||
// missing-tenant response.
|
||||
// Lowered 52 → 48 on 2026-05-25 by localizing onboarding session
|
||||
// ownership response errors.
|
||||
// Lowered 48 → 43 on 2026-05-25 by localizing portal Stripe
|
||||
// Lowered 48 → 43 on 2026-05-25 by localizing portal Mollie
|
||||
// country/account action responses.
|
||||
// Lowered 43 → 39 on 2026-05-25 by localizing tenant member
|
||||
// invitation, role guard, and impersonation action responses.
|
||||
|
||||
Reference in new issue
Block a user