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
+13
-8
@@ -118,8 +118,6 @@ export default function SubframeAppShell({ children, layout, menuItems }: { chil
|
||||
t,
|
||||
i18n,
|
||||
tenantId: params.tenant ?? "",
|
||||
entities: appData?.entities ?? [],
|
||||
entityGroups: appData?.entityGroups ?? [],
|
||||
appConfiguration: rootData.appConfiguration,
|
||||
routing: rootData.routing,
|
||||
productAccess: appData?.productAccess,
|
||||
@@ -138,7 +136,7 @@ export default function SubframeAppShell({ children, layout, menuItems }: { chil
|
||||
});
|
||||
return groups.filter((g) => g.items.length > 0);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [layout, menuItems, location.pathname, params.tenant, appData?.productAccess, appData?.entities, appData?.entityGroups]);
|
||||
}, [layout, menuItems, location.pathname, params.tenant, appData?.productAccess]);
|
||||
|
||||
const navMain = menu.filter((g) => g.type === "main");
|
||||
const navSecondary = menu.filter((g) => g.type === "secondary");
|
||||
@@ -241,15 +239,22 @@ export default function SubframeAppShell({ children, layout, menuItems }: { chil
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-2 self-stretch pl-1" data-ui-id={UI_SURFACE_IDS.shellNavActions}>
|
||||
<button
|
||||
type="button"
|
||||
className="hidden md:flex md:min-w-[192px] md:max-w-[320px] md:grow"
|
||||
<div
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
className="hidden cursor-pointer md:flex md:min-w-[192px] md:max-w-[320px] md:grow"
|
||||
onClick={() => commandPalette.toggle()}
|
||||
onKeyDown={(event) => {
|
||||
if (event.key === "Enter" || event.key === " ") {
|
||||
event.preventDefault();
|
||||
commandPalette.toggle();
|
||||
}
|
||||
}}
|
||||
aria-label={t("shared.search")}
|
||||
data-ui-id={UI_ACTION_IDS.search}
|
||||
>
|
||||
<SearchInput className="pointer-events-none h-auto w-full" size="small" placeholder={t("shared.searchPlaceholder")} />
|
||||
</button>
|
||||
<SearchInput className="pointer-events-none h-auto w-full min-w-0 max-w-none" size="small" fillContainer placeholder={t("shared.searchPlaceholder")} />
|
||||
</div>
|
||||
<a href={params.tenant ? UrlUtils.currentTenantUrl(params, "notifications") : "#"} aria-label={t("app.sidebar.notifications", { defaultValue: "Notifications" })} data-ui-id={UI_ACTION_IDS.notifications}>
|
||||
<IconButton variant="ghost" size="small" icon={<FeatherBell />} />
|
||||
</a>
|
||||
|
||||
+1
-2
@@ -1,6 +1,6 @@
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useMemo } from "react";
|
||||
import type { Log } from "@toolctrl/db/prisma-browser";
|
||||
import type { Log } from "@hivegrid/db/prisma-browser";
|
||||
import { LogWithDetails } from "~/utils/db/logs.db.server";
|
||||
import { PaginationDto } from "~/application/dtos/data/PaginationDto";
|
||||
import TableSimple from "~/components/ui/tables/TableSimple";
|
||||
@@ -16,7 +16,6 @@ export type LogsTableItem = Log & {
|
||||
user?: LogWithDetails["user"] | { id: string; email: string; firstName?: string | null; lastName?: string | null } | null;
|
||||
apiKey?: LogWithDetails["apiKey"] | { id: string; alias: string } | null;
|
||||
tenant?: LogWithDetails["tenant"] | { id: string; name: string; slug?: string | null } | null;
|
||||
comment?: LogWithDetails["comment"] | { id: string; value: string } | null;
|
||||
};
|
||||
|
||||
interface Props {
|
||||
|
||||
+4
-2
@@ -46,13 +46,15 @@ describe("log action i18n", () => {
|
||||
["settings.groups.deleted", "models.log.actions.deleted"],
|
||||
["settings.memberRoles.created", "models.log.actions.created"],
|
||||
["settings.memberRoles.deleted", "models.log.actions.deleted"],
|
||||
["settings.members.deactivated", "models.log.actions.memberDeactivated"],
|
||||
["settings.members.reactivated", "models.log.actions.memberReactivated"],
|
||||
["settings.groups.membersAdded", "models.log.actions.groupMembersAdded"],
|
||||
["settings.groups.membersRemoved", "models.log.actions.groupMembersRemoved"],
|
||||
["settings.rolesAndPermissions.userRoles.created", "models.log.actions.created"],
|
||||
["settings.rolesAndPermissions.userRoles.deleted", "models.log.actions.deleted"],
|
||||
["settings.tenant.updateDetails", "models.log.actions.updateTenantDetails"],
|
||||
["Update tenant details", "models.log.actions.updateTenantDetails"],
|
||||
["Updated", "models.log.actions.updated"],
|
||||
["Updated AI overage configuration", "models.log.actions.updatedAiOverageConfiguration"],
|
||||
["admin.pricing.aiOverage.updated", "models.log.actions.updatedAiOverageConfiguration"],
|
||||
["Updated pricing plan", "models.log.actions.updatedPricingPlan"],
|
||||
["portal.pricing.plan.updated", "models.log.actions.updatedPricingPlan"],
|
||||
["Workspace Role Created", "models.log.actions.workspaceRoleCreated"],
|
||||
|
||||
+4
-2
@@ -38,13 +38,15 @@ export const LOG_ACTION_I18N_KEYS = {
|
||||
"settings.groups.deleted": "models.log.actions.deleted",
|
||||
"settings.memberRoles.created": "models.log.actions.created",
|
||||
"settings.memberRoles.deleted": "models.log.actions.deleted",
|
||||
"settings.members.deactivated": "models.log.actions.memberDeactivated",
|
||||
"settings.members.reactivated": "models.log.actions.memberReactivated",
|
||||
"settings.groups.membersAdded": "models.log.actions.groupMembersAdded",
|
||||
"settings.groups.membersRemoved": "models.log.actions.groupMembersRemoved",
|
||||
"settings.rolesAndPermissions.userRoles.created": "models.log.actions.created",
|
||||
"settings.rolesAndPermissions.userRoles.deleted": "models.log.actions.deleted",
|
||||
"settings.tenant.updateDetails": "models.log.actions.updateTenantDetails",
|
||||
"Update tenant details": "models.log.actions.updateTenantDetails",
|
||||
"Updated": "models.log.actions.updated",
|
||||
"Updated AI overage configuration": "models.log.actions.updatedAiOverageConfiguration",
|
||||
"admin.pricing.aiOverage.updated": "models.log.actions.updatedAiOverageConfiguration",
|
||||
"Updated pricing plan": "models.log.actions.updatedPricingPlan",
|
||||
"portal.pricing.plan.updated": "models.log.actions.updatedPricingPlan",
|
||||
"Workspace Role Created": "models.log.actions.workspaceRoleCreated",
|
||||
|
||||
Reference in new issue
Block a user