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
+11
-13
@@ -1,4 +1,4 @@
|
||||
import { loadWebConfig } from "@toolctrl/config";
|
||||
import { loadWebConfig } from "@hivegrid/config";
|
||||
import { Outlet, useLoaderData, useLocation, useNavigate, useParams } from "react-router";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { LoaderFunctionArgs, MetaFunction } from "react-router";
|
||||
@@ -23,9 +23,6 @@ import ActivityHistoryIconFilled from "~/components/ui/icons/entities/ActivityHi
|
||||
import ModulesIcon from "~/components/ui/icons/entities/ModulesIcon";
|
||||
import ModulesIconFilled from "~/components/ui/icons/entities/ModulesIconFilled";
|
||||
import { useRootData } from "~/utils/data/useRootData";
|
||||
import CreditsIcon from "~/components/ui/icons/CreditsIcon";
|
||||
import CreditsIconFilled from "~/components/ui/icons/CreditsIconFilled";
|
||||
import { CreditTypes } from "~/modules/usage/dtos/CreditType";
|
||||
import { BellIcon, FileTextIcon, PaintbrushIcon, PlugIcon, ShieldCheckIcon } from "~/components/ui/icons/vendor";
|
||||
|
||||
type LoaderData = {
|
||||
@@ -93,14 +90,12 @@ export default function SettingsRoute() {
|
||||
icon: <MembershipCardIcon className="size-4" aria-hidden="true" />,
|
||||
iconSelected: <MembershipCardIconFilled className="size-4" aria-hidden="true" />,
|
||||
});
|
||||
if (CreditTypes.length > 0) {
|
||||
tabs.push({
|
||||
name: t("models.credit.plural"),
|
||||
href: UrlUtils.currentTenantUrl(params, "settings/credits"),
|
||||
icon: <CreditsIcon className="h-5 w-5" />,
|
||||
iconSelected: <CreditsIconFilled className="h-5 w-5" />,
|
||||
});
|
||||
}
|
||||
tabs.push({
|
||||
name: t("billing:usage.title"),
|
||||
href: UrlUtils.currentTenantUrl(params, "settings/usage"),
|
||||
icon: <ActivityHistoryIcon className="size-4" aria-hidden="true" />,
|
||||
iconSelected: <ActivityHistoryIconFilled className="size-4" aria-hidden="true" />,
|
||||
});
|
||||
}
|
||||
if (getUserHasPermission(appOrAdminData, "app.settings.account.view")) {
|
||||
tabs.push({
|
||||
@@ -125,7 +120,10 @@ export default function SettingsRoute() {
|
||||
// iconSelected: <LinkIconFilled className="size-4" aria-hidden="true" />,
|
||||
// });
|
||||
// }
|
||||
if (getUserHasPermission(appOrAdminData, "app.settings.roles.view")) {
|
||||
// R-P2b (D-P2 S01/S02): Rollen sind ein Tab INNERHALB von Mitarbeiter — der separate
|
||||
// Icon-Tab bleibt nur als Fallback, wenn jemand Rollen sehen darf, aber nicht Mitglieder
|
||||
// (sonst wäre der Rollen-Screen unerreichbar, DoD B6).
|
||||
if (getUserHasPermission(appOrAdminData, "app.settings.roles.view") && !getUserHasPermission(appOrAdminData, "app.settings.members.view")) {
|
||||
tabs.push({
|
||||
name: t("models.role.plural"),
|
||||
href: UrlUtils.currentTenantUrl(params, "settings/roles-and-permissions"),
|
||||
|
||||
Reference in new issue
Block a user