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
+5
-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 { useNavigation, useNavigate, Form } from "react-router";
|
||||
import { useEffect, useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
@@ -10,6 +10,7 @@ import SessionFilterModal from "~/modules/shared/components/SessionFilterModal";
|
||||
import { FeatureFlagsFilterType, FeatureFlagsFilterTypes } from "../dtos/FeatureFlagsFilterTypes";
|
||||
import { SubscriptionProductDto } from "~/application/dtos/subscriptions/SubscriptionProductDto";
|
||||
import { UserSimple } from "~/utils/db/users.db.server";
|
||||
import { useRootData } from "~/utils/data/useRootData";
|
||||
import { adminPath } from "~/utils/app/CanonicalUrlUtils";
|
||||
import { useLocaleFormatters } from "~/locale/format";
|
||||
|
||||
@@ -40,6 +41,7 @@ export default function FeatureFlagForm({
|
||||
const formatters = useLocaleFormatters();
|
||||
const navigation = useNavigation();
|
||||
const navigate = useNavigate();
|
||||
const { csrf } = useRootData();
|
||||
|
||||
const [showFilterModal, setShowFilterModal] = useState<{
|
||||
item?: { type: FeatureFlagsFilterType; value: string | null; action: string | null };
|
||||
@@ -96,6 +98,8 @@ export default function FeatureFlagForm({
|
||||
overflowYScroll={true}
|
||||
>
|
||||
<Form method="post" className="inline-block w-full overflow-hidden p-1 text-left align-bottom sm:align-middle">
|
||||
{/* The new/$id actions call validateCSRFToken - without this token they throw a 500. */}
|
||||
{csrf ? <input type="hidden" name="csrf" value={csrf} readOnly /> : null}
|
||||
<input type="hidden" name="action" value={getActionName()} />
|
||||
{filters.map((filter, index) => {
|
||||
return <input type="hidden" name="filters[]" value={JSON.stringify(filter)} key={index} />;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { db } from "~/utils/db.server";
|
||||
import { FeatureFlagsFilterType } from "../dtos/FeatureFlagsFilterTypes";
|
||||
import { AnalyticsEvent, FeatureFlag, FeatureFlagFilter, Prisma } from "@toolctrl/db/prisma-browser";
|
||||
import { AnalyticsEvent, FeatureFlag, FeatureFlagFilter, Prisma } from "@hivegrid/db/prisma-browser";
|
||||
import { clearCacheKeyPrefix } from "~/utils/cache.server";
|
||||
|
||||
export type FeatureFlagWithDetails = FeatureFlag & {
|
||||
|
||||
Reference in new issue
Block a user