Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -6,6 +6,8 @@ import TableSimple from "~/components/ui/tables/TableSimple";
import { redactDiagnosticJsonString } from "~/utils/redaction";
import { useLocaleFormatters } from "~/locale/format";
import type { IGetMessagesData } from "../services/.server/NotificationService";
import Constants from "~/application/Constants";
import { getTotalPages } from "~/utils/helpers/RowPaginationHelper";
export function sanitizeNotificationPayloadForDisplay(payload: unknown) {
const value = typeof payload === "string" ? payload : JSON.stringify(payload ?? null);
@@ -28,9 +30,9 @@ export default function NotificationMessagesTable({ items, withPagination = true
? undefined
: {
page: (items?.page ?? 0) + 1,
pageSize: items?.pageSize ?? 0,
pageSize: items?.pageSize ?? Constants.DEFAULT_PAGE_SIZE,
totalItems: items?.totalCount ?? 0,
totalPages: Math.ceil((items?.totalCount ?? 0) / (items?.pageSize ?? 0)),
totalPages: getTotalPages(items?.totalCount, items?.pageSize),
}
}
headers={[
@@ -1,12 +1,14 @@
import { Link } from "react-router";
import { t as i18nT } from "i18next";
import { requestScopedT as i18nT } from "~/locale/request-scoped-t";
import UserBadge from "~/components/core/users/UserBadge";
import CheckIcon from "~/components/ui/icons/CheckIcon";
import XIcon from "~/components/ui/icons/XIcon";
import TableSimple from "~/components/ui/tables/TableSimple";
import { useLocaleFormatters } from "~/locale/format";
import type { IGetSubscribersData } from "../services/.server/NotificationService";
import Constants from "~/application/Constants";
import { adminPath } from "~/utils/app/CanonicalUrlUtils";
import { getTotalPages } from "~/utils/helpers/RowPaginationHelper";
export default function NotificationSubscribersTable({ items }: { items: IGetSubscribersData | null }) {
const formatters = useLocaleFormatters();
@@ -16,9 +18,9 @@ export default function NotificationSubscribersTable({ items }: { items: IGetSub
items={items?.data ?? []}
pagination={{
page: (items?.page ?? 0) + 1,
pageSize: items?.pageSize ?? 0,
pageSize: items?.pageSize ?? Constants.DEFAULT_PAGE_SIZE,
totalItems: items?.totalCount ?? 0,
totalPages: Math.ceil((items?.totalCount ?? 0) / (items?.pageSize ?? 0)),
totalPages: getTotalPages(items?.totalCount, items?.pageSize),
}}
headers={[
{
@@ -6,10 +6,12 @@ import XIcon from "~/components/ui/icons/XIcon";
import TableSimple from "~/components/ui/tables/TableSimple";
import { NotificationChannelDto, NotificationChannels } from "../services/NotificationChannels";
import type { IGetTemplatesData } from "../services/.server/NotificationService";
import Constants from "~/application/Constants";
import { getTotalPages } from "~/utils/helpers/RowPaginationHelper";
export default function NotificationTemplatesTable({
items,
onDelete,
onDelete: _onDelete,
onSendPreview,
}: {
items: IGetTemplatesData | null;
@@ -42,9 +44,9 @@ export default function NotificationTemplatesTable({
items={NotificationChannels}
pagination={{
page: (items?.page ?? 0) + 1,
pageSize: items?.pageSize ?? 0,
pageSize: items?.pageSize ?? Constants.DEFAULT_PAGE_SIZE,
totalItems: items?.totalCount ?? 0,
totalPages: Math.ceil((items?.totalCount ?? 0) / (items?.pageSize ?? 0)),
totalPages: getTotalPages(items?.totalCount, items?.pageSize),
}}
headers={[
{