@seliseblocks/genesis-os 4.4.1 → 4.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkXJ6DPUCV_cjs = require('./chunk-XJ6DPUCV.cjs');
4
- var chunkHBVSAOTQ_cjs = require('./chunk-HBVSAOTQ.cjs');
4
+ var chunk3EGBCU4W_cjs = require('./chunk-3EGBCU4W.cjs');
5
5
  var chunkQTSTAWK3_cjs = require('./chunk-QTSTAWK3.cjs');
6
6
  var chunkVAWEXEJZ_cjs = require('./chunk-VAWEXEJZ.cjs');
7
7
  var chunkX4YCRWXO_cjs = require('./chunk-X4YCRWXO.cjs');
@@ -1523,7 +1523,7 @@ function RightSidePanelProvider({
1523
1523
  const close = React8__namespace.useCallback(() => {
1524
1524
  setOpen(false);
1525
1525
  }, [setOpen]);
1526
- chunkHBVSAOTQ_cjs.useKeyboardShortcut(shortcut, toggle);
1526
+ chunk3EGBCU4W_cjs.useKeyboardShortcut(shortcut, toggle);
1527
1527
  React8__namespace.useEffect(() => {
1528
1528
  if (!syncHash || isControlled || typeof window === "undefined") return;
1529
1529
  const handleHashChange = () => {
@@ -3499,7 +3499,7 @@ function MultiSelect({
3499
3499
  onChange,
3500
3500
  value: selectedValues
3501
3501
  }) {
3502
- const [buttonRef, popoverWidth] = chunkHBVSAOTQ_cjs.usePopoverWidth();
3502
+ const [buttonRef, popoverWidth] = chunk3EGBCU4W_cjs.usePopoverWidth();
3503
3503
  const onSelectHandler = (value) => {
3504
3504
  const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
3505
3505
  onChange(nextValues);
@@ -6701,7 +6701,7 @@ function useAppRedirectUrls({
6701
6701
  queries: requests.map(
6702
6702
  ({ clientId, redirectUri, forwardedTo, queryKey }) => ({
6703
6703
  queryKey,
6704
- queryFn: ({ signal }) => chunkHBVSAOTQ_cjs.initiateService.fetchRedirectUrl(
6704
+ queryFn: ({ signal }) => chunk3EGBCU4W_cjs.initiateService.fetchRedirectUrl(
6705
6705
  { clientId, redirectUri, forwardedTo },
6706
6706
  signal
6707
6707
  ),
@@ -6740,7 +6740,7 @@ function useAppRedirectUrls({
6740
6740
  }
6741
6741
  var AppSwitcher = ({ forwardedTo }) => {
6742
6742
  const [open, setOpen] = React8.useState(false);
6743
- const config = chunkHBVSAOTQ_cjs.useBlocksAppConfigStore((state) => state.getConfig());
6743
+ const config = chunk3EGBCU4W_cjs.useBlocksAppConfigStore((state) => state.getConfig());
6744
6744
  const filteredApps = React8.useMemo(
6745
6745
  () => filteredAppSwitcherData.filter((app) => app.id !== config.name),
6746
6746
  [config.name]
@@ -6779,7 +6779,7 @@ function ThemeSwitcher({
6779
6779
  className,
6780
6780
  showChevron = true
6781
6781
  } = {}) {
6782
- const { theme, setTheme } = chunkHBVSAOTQ_cjs.useTheme();
6782
+ const { theme, setTheme } = chunk3EGBCU4W_cjs.useTheme();
6783
6783
  const { Icon: ThemeIcon } = OPTIONS[theme];
6784
6784
  return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
6785
6785
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -6889,14 +6889,14 @@ function UserAvatar({ size = "sm" }) {
6889
6889
  );
6890
6890
  }
6891
6891
  function UserDropdownMenu() {
6892
- const { name } = chunkHBVSAOTQ_cjs.useBlocksAppConfigStore((state) => state.config);
6892
+ const { name } = chunk3EGBCU4W_cjs.useBlocksAppConfigStore((state) => state.config);
6893
6893
  const { data } = useGetUserInfo();
6894
6894
  const userData = data?.data;
6895
- const { isPending, mutateAsync } = chunkHBVSAOTQ_cjs.useLogout();
6895
+ const { isPending, mutateAsync } = chunk3EGBCU4W_cjs.useLogout();
6896
6896
  const { resetProjectStore } = chunk6GCU5LM7_cjs.useProjectStore();
6897
6897
  const { setUnAuthenticated, clearTokens } = chunk6GCU5LM7_cjs.useAuthStore();
6898
6898
  const { resetSelectedLanguages } = chunk4QN4CYSC_cjs.useLanguageViewStore();
6899
- const { data: myOrgsData, isLoading: isOrgsLoading } = chunkHBVSAOTQ_cjs.useGetMyOrganizations();
6899
+ const { data: myOrgsData, isLoading: isOrgsLoading } = chunk3EGBCU4W_cjs.useGetMyOrganizations();
6900
6900
  const fullName = [userData?.firstName, userData?.lastName].filter(Boolean).join(" ") || "\u2014";
6901
6901
  const email = userData?.email || "";
6902
6902
  const roles = Object.values(userData?.roles || {}).flat();
@@ -7026,7 +7026,7 @@ var languages = [
7026
7026
  { key: "fr", title: "French" }
7027
7027
  ];
7028
7028
  function LanguageSelector() {
7029
- const { changeLanguage, language } = chunkHBVSAOTQ_cjs.useLanguageSwitcher();
7029
+ const { changeLanguage, language } = chunk3EGBCU4W_cjs.useLanguageSwitcher();
7030
7030
  return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
7031
7031
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
7032
7032
  "button",
@@ -7113,7 +7113,9 @@ var NotificationListenerService = class {
7113
7113
  this.connection = new signalr.HubConnectionBuilder().withUrl(
7114
7114
  `${logicOrigin()}/api/NotificationHub?x-blocks-key=${chunkX4YCRWXO_cjs.getRuntimeEnv("BLOCKS_X_BLOCKS_KEY")}`,
7115
7115
  {
7116
- transport: signalr.HttpTransportType.WebSockets
7116
+ transport: signalr.HttpTransportType.WebSockets,
7117
+ // One request opens the socket, so it cannot split across Api pods without sticky sessions.
7118
+ skipNegotiation: true
7117
7119
  }
7118
7120
  ).withAutomaticReconnect().build();
7119
7121
  this.connection.onclose(() => {
@@ -7162,7 +7164,7 @@ var NotificationListenerService = class {
7162
7164
  if (refreshLogin && navigator.onLine === false) return;
7163
7165
  try {
7164
7166
  if (refreshLogin)
7165
- await refreshLoginCall(chunkHBVSAOTQ_cjs.notificationService.getNotifications(1, 1));
7167
+ await refreshLoginCall(chunk3EGBCU4W_cjs.notificationService.getNotifications(1, 1));
7166
7168
  if (!this.wanted) return;
7167
7169
  await this.connection.start();
7168
7170
  this.attempt = 0;
@@ -7187,7 +7189,7 @@ var notificationListenerService = new NotificationListenerService();
7187
7189
 
7188
7190
  // src/components/common/notification/use-notification-socket.ts
7189
7191
  function useNotificationSocket() {
7190
- const { data: configData } = chunkHBVSAOTQ_cjs.useGetBlocksNotificationConfig(0, 100);
7192
+ const { data: configData } = chunk3EGBCU4W_cjs.useGetBlocksNotificationConfig(0, 100);
7191
7193
  const queryClient = reactQuery.useQueryClient();
7192
7194
  notificationListenerService.connect();
7193
7195
  React8.useEffect(() => {
@@ -7202,7 +7204,7 @@ function useNotificationSocket() {
7202
7204
  notificationListenerService.connection.on(
7203
7205
  config.notifyMethod,
7204
7206
  (message) => {
7205
- chunkHBVSAOTQ_cjs.notificationService.getNotificationConfig(config, message);
7207
+ chunk3EGBCU4W_cjs.notificationService.getNotificationConfig(config, message);
7206
7208
  try {
7207
7209
  const notice = typeof message === "string" ? JSON.parse(message) : message;
7208
7210
  const denom = JSON.parse(
@@ -7226,12 +7228,12 @@ function useNotificationFeed(open) {
7226
7228
  const [notifications, setNotifications] = React8.useState([]);
7227
7229
  const [hasMore, setHasMore] = React8.useState(true);
7228
7230
  const listRef = React8.useRef(null);
7229
- const { data, isLoading, isFetching } = chunkHBVSAOTQ_cjs.useGetNotifications(
7231
+ const { data, isLoading, isFetching } = chunk3EGBCU4W_cjs.useGetNotifications(
7230
7232
  pageNumber,
7231
7233
  PAGE_SIZE
7232
7234
  );
7233
- const markAsRead = chunkHBVSAOTQ_cjs.useMarkAsRead();
7234
- const markAllAsRead = chunkHBVSAOTQ_cjs.useMarkAllAsRead();
7235
+ const markAsRead = chunk3EGBCU4W_cjs.useMarkAsRead();
7236
+ const markAllAsRead = chunk3EGBCU4W_cjs.useMarkAllAsRead();
7235
7237
  React8.useEffect(() => {
7236
7238
  if (!data?.notifications) return;
7237
7239
  setNotifications((prev) => {
@@ -7465,7 +7467,7 @@ function ConsoleHeader() {
7465
7467
  window.addEventListener("scroll", handleScroll);
7466
7468
  return () => window.removeEventListener("scroll", handleScroll);
7467
7469
  }, []);
7468
- const { appLightLogo, appDarkLogo } = chunkHBVSAOTQ_cjs.useLogo();
7470
+ const { appLightLogo, appDarkLogo } = chunk3EGBCU4W_cjs.useLogo();
7469
7471
  return /* @__PURE__ */ jsxRuntime.jsx(
7470
7472
  "div",
7471
7473
  {
@@ -7644,7 +7646,7 @@ var EnvironmentCard = ({
7644
7646
  className
7645
7647
  }) => {
7646
7648
  const { setSelectedProject, setTenantGroup } = chunk6GCU5LM7_cjs.useProjectStore();
7647
- const { mutateAsync } = chunkHBVSAOTQ_cjs.useStartImpersonation();
7649
+ const { mutateAsync } = chunk3EGBCU4W_cjs.useStartImpersonation();
7648
7650
  const navigate = reactRouter.useNavigate();
7649
7651
  const handleCardClick = async () => {
7650
7652
  try {
@@ -7698,11 +7700,11 @@ function EnvironmentList({
7698
7700
  }) {
7699
7701
  const navigate = reactRouter.useNavigate();
7700
7702
  const { pathname } = reactRouter.useLocation();
7701
- const { data: projectGroups = [], isLoading } = chunkHBVSAOTQ_cjs.useGetProjects({
7703
+ const { data: projectGroups = [], isLoading } = chunk3EGBCU4W_cjs.useGetProjects({
7702
7704
  enabled: true
7703
7705
  });
7704
7706
  const { selectedProject, setSelectedProject } = chunk6GCU5LM7_cjs.useProjectStore();
7705
- const { data: projectData } = chunkHBVSAOTQ_cjs.useGetProject();
7707
+ const { data: projectData } = chunk3EGBCU4W_cjs.useGetProject();
7706
7708
  const pendingProjectRef = React8.useRef(null);
7707
7709
  const redirectRegexMap = React8.useMemo(
7708
7710
  () => Object.entries(redirectPaths).reduce(
@@ -7985,7 +7987,7 @@ var useLiveOwnerProbe = ({
7985
7987
  var ImpersonationChecker = ({
7986
7988
  children
7987
7989
  }) => {
7988
- const { data, isLoading, isSuccess } = chunkHBVSAOTQ_cjs.useImpersonationStatusChecker();
7990
+ const { data, isLoading, isSuccess } = chunk3EGBCU4W_cjs.useImpersonationStatusChecker();
7989
7991
  const { setImpersonation, isInitialized, setInitialized } = chunk4QN4CYSC_cjs.useImpersonateStore();
7990
7992
  React8.useEffect(() => {
7991
7993
  if (!data) return;
@@ -8042,8 +8044,8 @@ function ImpersonationTerminator({
8042
8044
  detachedTenantId,
8043
8045
  setDetached
8044
8046
  } = chunk4QN4CYSC_cjs.useImpersonateStore();
8045
- const { mutateAsync } = chunkHBVSAOTQ_cjs.useStopImpersonation();
8046
- const recordClaimedTenant = chunkHBVSAOTQ_cjs.useRecordClaimedTenant();
8047
+ const { mutateAsync } = chunk3EGBCU4W_cjs.useStopImpersonation();
8048
+ const recordClaimedTenant = chunk3EGBCU4W_cjs.useRecordClaimedTenant();
8047
8049
  const { projects } = chunk6GCU5LM7_cjs.useProjectStore();
8048
8050
  const isTriggering = React8.useRef(false);
8049
8051
  const [isTerminating, setIsTerminating] = React8.useState(false);
@@ -8131,9 +8133,9 @@ function ImpersonationSynchronizer({
8131
8133
  setImpersonationError,
8132
8134
  setDetached
8133
8135
  } = chunk4QN4CYSC_cjs.useImpersonateStore();
8134
- const { mutateAsync } = chunkHBVSAOTQ_cjs.useStartImpersonation();
8135
- const recordClaimedTenant = chunkHBVSAOTQ_cjs.useRecordClaimedTenant();
8136
- const { data: _data } = chunkHBVSAOTQ_cjs.useGetProjects({ enabled: true });
8136
+ const { mutateAsync } = chunk3EGBCU4W_cjs.useStartImpersonation();
8137
+ const recordClaimedTenant = chunk3EGBCU4W_cjs.useRecordClaimedTenant();
8138
+ const { data: _data } = chunk3EGBCU4W_cjs.useGetProjects({ enabled: true });
8137
8139
  const { selectedProject, setSelectedProject, projects, setTenantGroup } = chunk6GCU5LM7_cjs.useProjectStore();
8138
8140
  const isTriggering = React8.useRef(false);
8139
8141
  const [isImpersonating, setIsImpersonating] = React8.useState(false);
@@ -8168,7 +8170,7 @@ function ImpersonationSynchronizer({
8168
8170
  ]);
8169
8171
  const getImpersonatedProject = async () => {
8170
8172
  try {
8171
- const res = chunkHBVSAOTQ_cjs.projectService.getProject();
8173
+ const res = chunk3EGBCU4W_cjs.projectService.getProject();
8172
8174
  return (await res).data;
8173
8175
  } catch (error) {
8174
8176
  console.error("Error fetching projects:", error);
@@ -8449,7 +8451,7 @@ var LoginHeader = ({
8449
8451
  }) => {
8450
8452
  const {
8451
8453
  config: { appLogoUrl }
8452
- } = chunkHBVSAOTQ_cjs.useBlocksAppConfigStore((state) => state);
8454
+ } = chunk3EGBCU4W_cjs.useBlocksAppConfigStore((state) => state);
8453
8455
  const resolveLogo = (variant) => {
8454
8456
  if (!appLogoUrl) return void 0;
8455
8457
  if (typeof appLogoUrl === "string") return appLogoUrl;
@@ -9714,10 +9716,10 @@ var BlocksLoginPage = ({
9714
9716
  ] });
9715
9717
  };
9716
9718
  var LoginPage = () => {
9717
- const config = chunkHBVSAOTQ_cjs.useBlocksAppConfigStore((state) => state.getConfig());
9718
- const { start, isLoading } = chunkHBVSAOTQ_cjs.useLogin();
9719
- const { canSignUp } = chunkHBVSAOTQ_cjs.useSignUpAffordance();
9720
- const { start: startSignUp, isLoading: isSignUpLoading } = chunkHBVSAOTQ_cjs.useSignUpRedirect();
9719
+ const config = chunk3EGBCU4W_cjs.useBlocksAppConfigStore((state) => state.getConfig());
9720
+ const { start, isLoading } = chunk3EGBCU4W_cjs.useLogin();
9721
+ const { canSignUp } = chunk3EGBCU4W_cjs.useSignUpAffordance();
9722
+ const { start: startSignUp, isLoading: isSignUpLoading } = chunk3EGBCU4W_cjs.useSignUpRedirect();
9721
9723
  return /* @__PURE__ */ jsxRuntime.jsx(
9722
9724
  BlocksLoginPage,
9723
9725
  {
@@ -9832,10 +9834,10 @@ var BentoCard = ({
9832
9834
  );
9833
9835
  var DefaultDoc = () => /* @__PURE__ */ jsxRuntime.jsx(BentoGrid, { children: resources.map((resource) => /* @__PURE__ */ jsxRuntime.jsx(BentoCard, { ...resource }, resource.url)) });
9834
9836
  function useCreateProjectRedirect() {
9835
- const { name } = chunkHBVSAOTQ_cjs.useBlocksAppConfigStore((state) => state.config);
9837
+ const { name } = chunk3EGBCU4W_cjs.useBlocksAppConfigStore((state) => state.config);
9836
9838
  const navigate = reactRouter.useNavigate();
9837
9839
  const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
9838
- const { isFetching, isReady, redirect } = chunkHBVSAOTQ_cjs.usePrefetchRedirect({
9840
+ const { isFetching, isReady, redirect } = chunk3EGBCU4W_cjs.usePrefetchRedirect({
9839
9841
  clientId: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.clientId) : "",
9840
9842
  redirectUri: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.redirectUri) : "",
9841
9843
  forwardedTo: "/app/create-project",
@@ -9927,10 +9929,10 @@ function useProjectOverviewRedirect({
9927
9929
  tenantGroupId
9928
9930
  }) {
9929
9931
  const navigate = reactRouter.useNavigate();
9930
- const { name } = chunkHBVSAOTQ_cjs.useBlocksAppConfigStore((state) => state.config);
9932
+ const { name } = chunk3EGBCU4W_cjs.useBlocksAppConfigStore((state) => state.config);
9931
9933
  const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
9932
9934
  const redirectedRoute = `/app/project/${tenantGroupId}/environments`;
9933
- const { isFetching, isReady, redirect } = chunkHBVSAOTQ_cjs.usePrefetchRedirect({
9935
+ const { isFetching, isReady, redirect } = chunk3EGBCU4W_cjs.usePrefetchRedirect({
9934
9936
  clientId: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.clientId) : "",
9935
9937
  redirectUri: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.redirectUri) : "",
9936
9938
  forwardedTo: redirectedRoute,
@@ -10290,7 +10292,7 @@ function MultiSelect2({
10290
10292
  onChange,
10291
10293
  value: selectedValues
10292
10294
  }) {
10293
- const [buttonRef, popoverWidth] = chunkHBVSAOTQ_cjs.usePopoverWidth();
10295
+ const [buttonRef, popoverWidth] = chunk3EGBCU4W_cjs.usePopoverWidth();
10294
10296
  const onSelectHandler = (value) => {
10295
10297
  const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
10296
10298
  onChange(nextValues);
@@ -10571,7 +10573,7 @@ var useProjectListState = (projectGroups) => {
10571
10573
  })),
10572
10574
  [projectGroups]
10573
10575
  );
10574
- const searchedGroups = chunkHBVSAOTQ_cjs.useDebouncedFuseFilter(
10576
+ const searchedGroups = chunk3EGBCU4W_cjs.useDebouncedFuseFilter(
10575
10577
  searchableGroups,
10576
10578
  searchText,
10577
10579
  SEARCH_OPTIONS
@@ -10641,8 +10643,8 @@ var SelfProjectLoading = ({ viewMode }) => {
10641
10643
  ) });
10642
10644
  };
10643
10645
  var SelfProject = ({ canCreateProject = false }) => {
10644
- const { data, isLoading, isFetching } = chunkHBVSAOTQ_cjs.useGetProjects({ enabled: true });
10645
- const isPending = isLoading || isFetching;
10646
+ const { data, isLoading } = chunk3EGBCU4W_cjs.useGetProjects({ enabled: true });
10647
+ const isPending = isLoading;
10646
10648
  const projectGroups = data || [];
10647
10649
  const {
10648
10650
  availableEnvironmentOptions,
@@ -10810,7 +10812,7 @@ var CallbackPage = ({ defaultRedirectUrl }) => {
10810
10812
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader, { className: "h-12 w-12 animate-spin text-gray-500" }) });
10811
10813
  };
10812
10814
  function ProfilePage() {
10813
- const { isLoading, error } = chunkHBVSAOTQ_cjs.useInitiateRedirect({
10815
+ const { isLoading, error } = chunk3EGBCU4W_cjs.useInitiateRedirect({
10814
10816
  clientId: chunkX4YCRWXO_cjs.getRuntimeEnv("BLOCKS_IAM_CLIENT_ID"),
10815
10817
  redirectUri: chunkX4YCRWXO_cjs.getRuntimeEnv("BLOCKS_IAM_CALLBACK_URL"),
10816
10818
  forwardedTo: "/app/profile"
@@ -11088,8 +11090,8 @@ var ConfirmationModal = ({
11088
11090
  ] })
11089
11091
  ] });
11090
11092
  var DashboardOverview = () => {
11091
- const { name } = chunkHBVSAOTQ_cjs.useBlocksAppConfigStore((state) => state.config);
11092
- const { data, isFetching } = chunkHBVSAOTQ_cjs.useGetProject();
11093
+ const { name } = chunk3EGBCU4W_cjs.useBlocksAppConfigStore((state) => state.config);
11094
+ const { data, isFetching } = chunk3EGBCU4W_cjs.useGetProject();
11093
11095
  const {
11094
11096
  endpoints,
11095
11097
  isLoading: isLoadingEndpoints,
@@ -11183,11 +11185,11 @@ function ProjectList2({
11183
11185
  }) {
11184
11186
  const navigate = reactRouter.useNavigate();
11185
11187
  const { pathname } = reactRouter.useLocation();
11186
- const { data: projectGroups = [], isLoading } = chunkHBVSAOTQ_cjs.useGetProjects({
11188
+ const { data: projectGroups = [], isLoading } = chunk3EGBCU4W_cjs.useGetProjects({
11187
11189
  enabled: true
11188
11190
  });
11189
11191
  const { selectedProject, setSelectedProject } = chunk6GCU5LM7_cjs.useProjectStore();
11190
- const { data: projectData } = chunkHBVSAOTQ_cjs.useGetProject();
11192
+ const { data: projectData } = chunk3EGBCU4W_cjs.useGetProject();
11191
11193
  const pendingProjectRef = React8.useRef(null);
11192
11194
  const redirectRegexMap = React8.useMemo(
11193
11195
  () => Object.entries(redirectPaths).reduce(
@@ -11336,7 +11338,7 @@ var SetCustomDomainDialog = ({
11336
11338
  projectKey,
11337
11339
  projectEnv
11338
11340
  }) => {
11339
- const { mutateAsync, isPending } = chunkHBVSAOTQ_cjs.useUpdateRepositories();
11341
+ const { mutateAsync, isPending } = chunk3EGBCU4W_cjs.useUpdateRepositories();
11340
11342
  const verifiedDomains = React8.useMemo(
11341
11343
  () => Array.from(
11342
11344
  new Set(domains.filter((d) => d.isDomainVerified).map((d) => d.domain))
@@ -11520,7 +11522,7 @@ var ProjectRepoList = ({
11520
11522
  data: envRepositoriesResponse,
11521
11523
  isLoading: isLoadingEnvRepos,
11522
11524
  isFetching: isFetchingEnvRepos
11523
- } = chunkHBVSAOTQ_cjs.useGetEnvRepositories(project?.tenantId || "");
11525
+ } = chunk3EGBCU4W_cjs.useGetEnvRepositories(project?.tenantId || "");
11524
11526
  if (isLoading || isLoadingEnvRepos || isFetchingEnvRepos) {
11525
11527
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-6 rounded-lg border bg-card px-2 py-2 shadow-sm md:mt-0", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid-col-1 grid gap-3 px-2 py-4 md:grid-cols-2 md:gap-4 lg:gap-6", children: ["sk-1", "sk-2", "sk-3", "sk-4", "sk-5", "sk-6"].map((itemKey) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
11526
11528
  /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-5 w-1/2" }),
@@ -11620,7 +11622,7 @@ var EditProjectForm = ({
11620
11622
  onAfterSubmit
11621
11623
  }) => {
11622
11624
  const queryClient = reactQuery.useQueryClient();
11623
- const { mutateAsync, isPending } = chunkHBVSAOTQ_cjs.useUpdateTenantGroup();
11625
+ const { mutateAsync, isPending } = chunk3EGBCU4W_cjs.useUpdateTenantGroup();
11624
11626
  const form = reactHookForm.useForm({
11625
11627
  resolver: zod$1.zodResolver(editProjectFormSchema),
11626
11628
  defaultValues: {
@@ -11641,6 +11643,7 @@ var EditProjectForm = ({
11641
11643
  description: "Project name updated successfully"
11642
11644
  });
11643
11645
  queryClient.invalidateQueries({ queryKey: ["identifier", "project"] });
11646
+ queryClient.invalidateQueries({ queryKey: ["identifier", "projects"] });
11644
11647
  form.reset();
11645
11648
  onAfterSubmit();
11646
11649
  } else {
@@ -11756,7 +11759,7 @@ function SidebarMobileView({
11756
11759
  navigationMenus
11757
11760
  }) {
11758
11761
  const [open, setOpen] = React8.useState(false);
11759
- const { appLightLogo, appDarkLogo } = chunkHBVSAOTQ_cjs.useLogo();
11762
+ const { appLightLogo, appDarkLogo } = chunk3EGBCU4W_cjs.useLogo();
11760
11763
  const allowedMenu = chunkBPJM3L7O_cjs.useFilteredMenus(navigationMenus);
11761
11764
  return /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { open, onOpenChange: setOpen, children: [
11762
11765
  /* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "icon", className: "shrink-0", children: [
@@ -11806,8 +11809,8 @@ function SidebarMenuDesktop({
11806
11809
  navigationMenus
11807
11810
  }) {
11808
11811
  const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkIJMKS4XG_cjs.SidebarContext);
11809
- const { appLightLogo, appDarkLogo } = chunkHBVSAOTQ_cjs.useLogo();
11810
- const icon = chunkHBVSAOTQ_cjs.useIcon();
11812
+ const { appLightLogo, appDarkLogo } = chunk3EGBCU4W_cjs.useLogo();
11813
+ const icon = chunk3EGBCU4W_cjs.useIcon();
11811
11814
  const allowedMenu = chunkBPJM3L7O_cjs.useFilteredMenus(navigationMenus);
11812
11815
  const { isActivePath: isProjectOverviewRoute } = chunkBPJM3L7O_cjs.useIsActiveMenu("/app/project");
11813
11816
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -11936,7 +11939,7 @@ var ErrorBoundary = class extends React8.Component {
11936
11939
  var ArchiveProject = () => {
11937
11940
  const navigate = reactRouter.useNavigate();
11938
11941
  const projectKey = chunk6GCU5LM7_cjs.useProjectStore().selectedProject?.tenantId || "";
11939
- const { mutateAsync, isPending } = chunkHBVSAOTQ_cjs.useDisableProject({ projectKey });
11942
+ const { mutateAsync, isPending } = chunk3EGBCU4W_cjs.useDisableProject({ projectKey });
11940
11943
  const onClickHandler = async () => {
11941
11944
  try {
11942
11945
  const res = await mutateAsync();
@@ -12906,7 +12909,7 @@ var ClearButton = ({ onClear }) => {
12906
12909
  };
12907
12910
  function Radio({ label, options, onChange, value }) {
12908
12911
  const [search, setSearch] = React8.useState("");
12909
- const [buttonRef, popoverWidth] = chunkHBVSAOTQ_cjs.usePopoverWidth();
12912
+ const [buttonRef, popoverWidth] = chunk3EGBCU4W_cjs.usePopoverWidth();
12910
12913
  const isMobile = chunkBPJM3L7O_cjs.useIsMobile();
12911
12914
  const selected = React8.useMemo(
12912
12915
  () => options.find((item) => item.value === value) || null,
@@ -13915,5 +13918,5 @@ exports.usePaginationQueryParams = usePaginationQueryParams;
13915
13918
  exports.useRightSidePanel = useRightSidePanel;
13916
13919
  exports.useSortQueryParams = useSortQueryParams;
13917
13920
  exports.useWizardStepper = useWizardStepper;
13918
- //# sourceMappingURL=chunk-GFGUKRBD.cjs.map
13919
- //# sourceMappingURL=chunk-GFGUKRBD.cjs.map
13921
+ //# sourceMappingURL=chunk-MLPOREJO.cjs.map
13922
+ //# sourceMappingURL=chunk-MLPOREJO.cjs.map