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
+1
-1
@@ -16,7 +16,7 @@ import { db } from "~/utils/db.server";
|
||||
import { verifyUserHasPermission } from "~/utils/helpers/.server/PermissionsService";
|
||||
import { validateCSRFToken, getUserInfo } from "~/utils/session.server";
|
||||
import { appendCSRFToken } from "~/utils/csrf";
|
||||
import { evaluateRule, type TargetingRule } from "@toolctrl/feature-flags";
|
||||
import { evaluateRule, type TargetingRule } from "@hivegrid/feature-flags";
|
||||
import { invalidateFlagCache } from "~/utils/services/.server/featureFlagEvaluator.server";
|
||||
import { getTranslations } from "~/locale/i18next.server";
|
||||
import { useLocaleFormatters } from "~/locale/format";
|
||||
|
||||
+5
@@ -11,6 +11,11 @@ import { db } from "~/utils/db.server";
|
||||
import { verifyUserHasPermission } from "~/utils/helpers/.server/PermissionsService";
|
||||
|
||||
describe("admin feature flag route permissions", () => {
|
||||
// The dynamic route-module imports below pull a large dependency graph through
|
||||
// vitest's transform; under parallel CI load that can exceed the 5s default
|
||||
// test timeout and flake. Give them headroom to keep this deterministic.
|
||||
vi.setConfig({ testTimeout: 30_000 });
|
||||
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
});
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
import { ActionFunctionArgs, LoaderFunction, MetaFunction, useLoaderData } from "react-router";
|
||||
import { FeatureFlag } from "@toolctrl/db/prisma-browser";
|
||||
import { FeatureFlag } from "@hivegrid/db/prisma-browser";
|
||||
import { FeatureFlagWithEvents, getFeatureFlag, getFeatureFlagsWithEvents, updateFeatureFlag } from "~/modules/featureFlags/db/featureFlags.db.server";
|
||||
import SimpleBadge from "~/components/ui/badges/SimpleBadge";
|
||||
import { Colors } from "~/application/enums/shared/Colors";
|
||||
@@ -154,9 +154,9 @@ export default function CampaignsListRoute() {
|
||||
<SimpleBadge title={i.name} color={Colors.GRAY} />
|
||||
</div>
|
||||
<div className="text-muted-foreground flex items-center space-x-2 text-sm">
|
||||
<Link to={adminPath("analytics/events?featureFlagId=" + i.id, { mode: "host-aware" })} className="lowercase">
|
||||
<span className="lowercase">
|
||||
{i.events.length} {t("featureFlags.triggers")}
|
||||
</Link>
|
||||
</span>
|
||||
<div>•</div>
|
||||
<div>
|
||||
{i.filters.length === 0 ? (
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { FeatureFlag, FeatureFlagFilter, Role, Tenant } from "@toolctrl/db/prisma-browser";
|
||||
import { FeatureFlag, FeatureFlagFilter, Role, Tenant } from "@hivegrid/db/prisma-browser";
|
||||
import { ActionFunctionArgs, LoaderFunctionArgs, redirect, useActionData, useLoaderData } from "react-router";
|
||||
import { useSubmit } from "react-router";
|
||||
import { useEffect } from "react";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { Role, Tenant } from "@toolctrl/db/prisma-browser";
|
||||
import { Role, Tenant } from "@hivegrid/db/prisma-browser";
|
||||
import { ActionFunctionArgs, LoaderFunctionArgs, redirect, useActionData, useLoaderData } from "react-router";
|
||||
import { useEffect } from "react";
|
||||
import toast from "react-hot-toast";
|
||||
|
||||
Reference in new issue
Block a user