@seliseblocks/genesis-os 4.3.2 → 4.3.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.
- package/dist/{chunk-VNSES4D3.js → chunk-ASLTNGXQ.js} +871 -430
- package/dist/chunk-ASLTNGXQ.js.map +1 -0
- package/dist/{chunk-BCALMPEF.cjs → chunk-SG3SZ45K.cjs} +868 -426
- package/dist/chunk-SG3SZ45K.cjs.map +1 -0
- package/dist/components/index.cjs +342 -338
- package/dist/components/index.d.cts +13 -2
- package/dist/components/index.d.ts +13 -2
- package/dist/components/index.js +1 -1
- package/dist/index.cjs +354 -350
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/layouts/index.cjs +8 -8
- package/dist/layouts/index.js +1 -1
- package/dist/pages/index.cjs +6 -6
- package/dist/pages/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-BCALMPEF.cjs.map +0 -1
- package/dist/chunk-VNSES4D3.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { refractor } from './chunk-FGY7QM3Y.js';
|
|
2
|
-
import { useKeyboardShortcut, usePopoverWidth, useBlocksAppConfigStore, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useLogin, useSignUpAffordance, useInitiateRedirect, useIcon, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, usePrefetchRedirect } from './chunk-QMVZVNIZ.js';
|
|
3
|
-
import { showErrorToast, getForwardedToPath, formatFullDate, formatDate,
|
|
2
|
+
import { useKeyboardShortcut, usePopoverWidth, useBlocksAppConfigStore, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useLogin, useSignUpAffordance, useInitiateRedirect, useIcon, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, useDebouncedFuseFilter, usePrefetchRedirect } from './chunk-QMVZVNIZ.js';
|
|
3
|
+
import { showErrorToast, createStorage, getForwardedToPath, debounce, formatFullDate, formatDate, deepEqual, showSuccessToast, isErrorWithErrors, getServiceBaseUrl, getServiceSwaggerUrl } from './chunk-TE3SKUL4.js';
|
|
4
4
|
import { defaultRightSidePanelContextValue, RightSidePanelContext, SidebarContext, DashboardLayoutProvider } from './chunk-WIY77276.js';
|
|
5
5
|
import { useIsMobile, useIsActiveMenu, useFilteredMenus } from './chunk-NF54AHIF.js';
|
|
6
6
|
import { PublicGuard, ImpersonationChecker, ImpersonationTerminator, ImpersonationSynchronizer } from './chunk-25L7I5C7.js';
|
|
@@ -19,7 +19,7 @@ import { motion, AnimatePresence } from 'framer-motion';
|
|
|
19
19
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
20
20
|
import { Slot } from '@radix-ui/react-slot';
|
|
21
21
|
import { cva } from 'class-variance-authority';
|
|
22
|
-
import { X, PanelLeft, MessageSquare, Dot, Calendar as Calendar$1, ChevronDown, ChevronRight, Check, Circle, Search, Loader2, ArrowLeft, ArrowRight, EyeOff, Eye, Trash2, ChevronUp, ChevronsLeft, ChevronLeft, ChevronsRight, MoreHorizontal, Copy, GripVertical, TriangleAlert, Paperclip, ArrowDownToLine,
|
|
22
|
+
import { X, PanelLeft, MessageSquare, Dot, Calendar as Calendar$1, ChevronDown, ChevronRight, Check, Circle, Search, Loader2, ArrowLeft, ArrowRight, EyeOff, Eye, Trash2, ChevronUp, ChevronsLeft, ChevronLeft, ChevronsRight, MoreHorizontal, Copy, GripVertical, TriangleAlert, Paperclip, ArrowDownToLine, Moon, Sun, Monitor, UserRound, Building2, LogOut, MenuIcon, HourglassIcon, ChevronRightIcon, Globe, Loader, FolderOpen, Edit, Menu, AlertCircle, Archive, LoaderCircle, CircleHelp, CalendarIcon, ArrowDown, ArrowUp, Filter, EllipsisVertical, RotateCcw, CloudUpload, Grip, Bell, Layers, BookOpenText, Plus, UsersRound, LayoutGrid, List, ArrowUpRight, Pencil, Settings2, Terminal } from 'lucide-react';
|
|
23
23
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
24
24
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
25
25
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
@@ -28,7 +28,7 @@ import * as LabelPrimitive from '@radix-ui/react-label';
|
|
|
28
28
|
import { useFormContext, FormProvider, Controller, useForm } from 'react-hook-form';
|
|
29
29
|
import { OTPInput, OTPInputContext } from 'input-otp';
|
|
30
30
|
import { DayPicker } from 'react-day-picker';
|
|
31
|
-
import { format } from 'date-fns';
|
|
31
|
+
import { format, formatDistanceToNow } from 'date-fns';
|
|
32
32
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
33
33
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
34
34
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
@@ -6692,32 +6692,82 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6692
6692
|
)
|
|
6693
6693
|
] });
|
|
6694
6694
|
};
|
|
6695
|
-
var OPTIONS =
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6695
|
+
var OPTIONS = {
|
|
6696
|
+
system: { Icon: Monitor, label: "Auto" },
|
|
6697
|
+
light: { Icon: Sun, label: "Light" },
|
|
6698
|
+
dark: { Icon: Moon, label: "Dark" }
|
|
6699
|
+
};
|
|
6700
|
+
var OPTION_ORDER = ["system", "light", "dark"];
|
|
6701
|
+
var TRIGGER_BASE_CLASSES = "relative z-50 inline-flex h-9 items-center justify-center gap-2 px-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";
|
|
6702
|
+
var TRIGGER_DEFAULT_TYPOGRAPHY_CLASSES = "text-sm font-medium text-muted-foreground hover:text-foreground";
|
|
6703
|
+
function ThemeSwitcher({
|
|
6704
|
+
className,
|
|
6705
|
+
showChevron = true
|
|
6706
|
+
} = {}) {
|
|
6701
6707
|
const { theme, setTheme } = useTheme();
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
{
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6708
|
+
const { Icon: ThemeIcon, label: themeLabel } = OPTIONS[theme];
|
|
6709
|
+
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
6710
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
6711
|
+
"button",
|
|
6712
|
+
{
|
|
6713
|
+
type: "button",
|
|
6714
|
+
"aria-label": "Change theme",
|
|
6715
|
+
className: cn(
|
|
6716
|
+
TRIGGER_BASE_CLASSES,
|
|
6717
|
+
className ?? TRIGGER_DEFAULT_TYPOGRAPHY_CLASSES
|
|
6718
|
+
),
|
|
6719
|
+
children: [
|
|
6720
|
+
/* @__PURE__ */ jsx(ThemeIcon, { className: "h-4 w-4", "aria-hidden": true }),
|
|
6721
|
+
/* @__PURE__ */ jsx("span", { children: themeLabel }),
|
|
6722
|
+
showChevron && /* @__PURE__ */ jsx(
|
|
6723
|
+
ChevronDown,
|
|
6724
|
+
{
|
|
6725
|
+
className: "h-3.5 w-3.5 text-muted-foreground",
|
|
6726
|
+
"aria-hidden": true
|
|
6727
|
+
}
|
|
6728
|
+
)
|
|
6729
|
+
]
|
|
6730
|
+
}
|
|
6731
|
+
) }),
|
|
6732
|
+
/* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: "min-w-40", children: [
|
|
6733
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { className: "px-2 py-1.5 text-xs font-medium text-muted-foreground", children: "Appearance" }),
|
|
6734
|
+
/* @__PURE__ */ jsx(
|
|
6735
|
+
DropdownMenuRadioGroup,
|
|
6709
6736
|
{
|
|
6710
|
-
value,
|
|
6711
|
-
|
|
6712
|
-
children:
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6737
|
+
value: theme,
|
|
6738
|
+
onValueChange: (value) => setTheme(value),
|
|
6739
|
+
children: OPTION_ORDER.map((value) => {
|
|
6740
|
+
const { Icon: Icon2, label } = OPTIONS[value];
|
|
6741
|
+
const isActive = value === theme;
|
|
6742
|
+
return /* @__PURE__ */ jsxs(
|
|
6743
|
+
DropdownMenuRadioItem,
|
|
6744
|
+
{
|
|
6745
|
+
value,
|
|
6746
|
+
className: cn(
|
|
6747
|
+
"gap-2 border border-transparent py-2 hover:border-input",
|
|
6748
|
+
isActive && "text-primary"
|
|
6749
|
+
),
|
|
6750
|
+
children: [
|
|
6751
|
+
/* @__PURE__ */ jsx(
|
|
6752
|
+
Icon2,
|
|
6753
|
+
{
|
|
6754
|
+
className: cn(
|
|
6755
|
+
"h-4 w-4",
|
|
6756
|
+
isActive ? "text-foreground" : "text-muted-foreground"
|
|
6757
|
+
),
|
|
6758
|
+
"aria-hidden": true
|
|
6759
|
+
}
|
|
6760
|
+
),
|
|
6761
|
+
/* @__PURE__ */ jsx("span", { className: cn(isActive && "text-foreground font-medium"), children: label })
|
|
6762
|
+
]
|
|
6763
|
+
},
|
|
6764
|
+
value
|
|
6765
|
+
);
|
|
6766
|
+
})
|
|
6767
|
+
}
|
|
6768
|
+
)
|
|
6769
|
+
] })
|
|
6770
|
+
] });
|
|
6721
6771
|
}
|
|
6722
6772
|
|
|
6723
6773
|
// src/services/user.service.ts
|
|
@@ -7733,8 +7783,7 @@ function OidcLayout({
|
|
|
7733
7783
|
var LoginHeader = ({
|
|
7734
7784
|
docsUrl = "https://docs.seliseblocks.com/",
|
|
7735
7785
|
blocksUrl = "https://seliseblocks.com",
|
|
7736
|
-
githubUrl = "https://github.com/SELISEdigitalplatforms"
|
|
7737
|
-
signUpUrl
|
|
7786
|
+
githubUrl = "https://github.com/SELISEdigitalplatforms"
|
|
7738
7787
|
}) => {
|
|
7739
7788
|
const {
|
|
7740
7789
|
config: { appLogoUrl }
|
|
@@ -7779,8 +7828,13 @@ var LoginHeader = ({
|
|
|
7779
7828
|
children: "GitHub"
|
|
7780
7829
|
}
|
|
7781
7830
|
),
|
|
7782
|
-
|
|
7783
|
-
|
|
7831
|
+
/* @__PURE__ */ jsx(
|
|
7832
|
+
ThemeSwitcher,
|
|
7833
|
+
{
|
|
7834
|
+
className: "nav-link inline-flex items-center gap-1.5",
|
|
7835
|
+
showChevron: false
|
|
7836
|
+
}
|
|
7837
|
+
)
|
|
7784
7838
|
] })
|
|
7785
7839
|
] });
|
|
7786
7840
|
};
|
|
@@ -7964,18 +8018,6 @@ var blocksLoginStyles = `
|
|
|
7964
8018
|
.blocksLogin-page .nav-link:hover { color: var(--fg); text-shadow: 0 0 12px var(--accent-glow); }
|
|
7965
8019
|
.blocksLogin-page .nav-link:hover::after { width: 100%; }
|
|
7966
8020
|
|
|
7967
|
-
.blocksLogin-page .nav-cta {
|
|
7968
|
-
font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
|
|
7969
|
-
font-weight: 600; color: var(--accent2); text-decoration: none;
|
|
7970
|
-
padding: 7px 16px; border-radius: 6px;
|
|
7971
|
-
border: 1px solid rgba(0,102,178,0.35); background: rgba(0,102,178,0.06);
|
|
7972
|
-
transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
|
|
7973
|
-
}
|
|
7974
|
-
.blocksLogin-page .nav-cta:hover {
|
|
7975
|
-
background: rgba(0,102,178,0.12); border-color: var(--accent);
|
|
7976
|
-
box-shadow: 0 0 12px rgba(0,102,178,0.12);
|
|
7977
|
-
}
|
|
7978
|
-
|
|
7979
8021
|
.blocksLogin-page .main {
|
|
7980
8022
|
flex: 1; min-height: 0; display: grid;
|
|
7981
8023
|
grid-template-columns: 1fr 400px; gap: 56px;
|
|
@@ -8292,7 +8334,6 @@ var blocksLoginStyles = `
|
|
|
8292
8334
|
.blocksLogin-page .feature-pill { padding: 5px 10px; font-size: 0.58rem; }
|
|
8293
8335
|
.blocksLogin-page .cta-row { gap: 18px; }
|
|
8294
8336
|
.blocksLogin-page .cta-signup { font-size: 0.78rem; }
|
|
8295
|
-
.blocksLogin-page .nav-cta { padding: 6px 12px; font-size: 0.62rem; }
|
|
8296
8337
|
}
|
|
8297
8338
|
|
|
8298
8339
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -8808,7 +8849,7 @@ var BlocksLoginPage = ({
|
|
|
8808
8849
|
}
|
|
8809
8850
|
}
|
|
8810
8851
|
),
|
|
8811
|
-
/* @__PURE__ */ jsx(LoginHeader, {
|
|
8852
|
+
/* @__PURE__ */ jsx(LoginHeader, {}),
|
|
8812
8853
|
/* @__PURE__ */ jsxs("main", { className: "main", children: [
|
|
8813
8854
|
/* @__PURE__ */ jsxs("div", { className: "col-left", children: [
|
|
8814
8855
|
/* @__PURE__ */ jsx("p", { className: "eyebrow", children: eyebrow }),
|
|
@@ -9198,52 +9239,141 @@ function useProjectOverviewRedirect({
|
|
|
9198
9239
|
isFetching
|
|
9199
9240
|
};
|
|
9200
9241
|
}
|
|
9201
|
-
var
|
|
9202
|
-
|
|
9242
|
+
var getActionLabels = (canOpen, isShared) => {
|
|
9243
|
+
if (canOpen) {
|
|
9244
|
+
return isShared ? { accessibleLabel: "Open shared project", tooltipLabel: "Open Project" } : {
|
|
9245
|
+
accessibleLabel: "Configure project",
|
|
9246
|
+
tooltipLabel: "Configure Project"
|
|
9247
|
+
};
|
|
9248
|
+
}
|
|
9249
|
+
return {
|
|
9250
|
+
accessibleLabel: "Project access unavailable",
|
|
9251
|
+
tooltipLabel: "Project access unavailable"
|
|
9252
|
+
};
|
|
9253
|
+
};
|
|
9254
|
+
var ProjectActionButton = ({
|
|
9203
9255
|
project,
|
|
9204
|
-
projects,
|
|
9205
9256
|
isShared,
|
|
9206
9257
|
canOpen = true
|
|
9207
9258
|
}) => {
|
|
9208
|
-
const
|
|
9209
|
-
const { setTenantGroup, setSelectedProject } = useProjectStore();
|
|
9259
|
+
const { setTenantGroup } = useProjectStore();
|
|
9210
9260
|
const { handleClick, isDisabled, isFetching } = useProjectOverviewRedirect({
|
|
9211
9261
|
tenantGroupId: project.tenantGroupId
|
|
9212
9262
|
});
|
|
9213
|
-
const
|
|
9263
|
+
const isActionDisabled = !canOpen || isDisabled || isFetching;
|
|
9264
|
+
const { accessibleLabel, tooltipLabel } = getActionLabels(canOpen, isShared);
|
|
9265
|
+
const onClick = () => {
|
|
9214
9266
|
setTenantGroup(project.tenantGroupId);
|
|
9215
9267
|
handleClick();
|
|
9216
9268
|
};
|
|
9217
|
-
|
|
9218
|
-
|
|
9269
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
9270
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
9271
|
+
Button,
|
|
9272
|
+
{
|
|
9273
|
+
size: "icon",
|
|
9274
|
+
"data-testid": isShared ? "project-card-open-shared" : "project-card-configure",
|
|
9275
|
+
variant: "ghost",
|
|
9276
|
+
className: "text-primary hover:bg-primary/10 h-8 w-8 shrink-0 transition-colors",
|
|
9277
|
+
disabled: isActionDisabled,
|
|
9278
|
+
onClick,
|
|
9279
|
+
"aria-label": accessibleLabel,
|
|
9280
|
+
children: /* @__PURE__ */ jsx(Settings2, { size: 16 })
|
|
9281
|
+
}
|
|
9282
|
+
) }),
|
|
9283
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: tooltipLabel })
|
|
9284
|
+
] });
|
|
9285
|
+
};
|
|
9286
|
+
|
|
9287
|
+
// src/pages/console/project-list-utils.ts
|
|
9288
|
+
var canOpenProject = (group) => !group.isShared || !group.accessPolicies || group.accessPolicies.length > 0;
|
|
9289
|
+
var getProjectGroupName = (group) => group.projects[0]?.name ?? "";
|
|
9290
|
+
var getLatestProjectUpdate = (group) => group.projects.reduce((latest, project) => {
|
|
9291
|
+
const timestamp = Date.parse(project.lastUpdatedDate);
|
|
9292
|
+
return Number.isFinite(timestamp) ? Math.max(latest, timestamp) : latest;
|
|
9293
|
+
}, 0);
|
|
9294
|
+
var getEnvironmentLabel = (environment) => environmentOptions.find((option) => option.value === environment)?.label ?? environment;
|
|
9295
|
+
var INLINE_LIMIT = 3;
|
|
9296
|
+
var ProjectEnvironments = ({ projects }) => {
|
|
9297
|
+
const navigate = useNavigate();
|
|
9298
|
+
const { setTenantGroup, setSelectedProject } = useProjectStore();
|
|
9299
|
+
const onEnvironmentClick = async (event, project) => {
|
|
9300
|
+
event.stopPropagation();
|
|
9219
9301
|
try {
|
|
9220
|
-
setTenantGroup(
|
|
9221
|
-
setSelectedProject(
|
|
9222
|
-
navigate(`/app/${
|
|
9223
|
-
} catch (
|
|
9224
|
-
console.error("Failed to switch environment",
|
|
9302
|
+
setTenantGroup(project.tenantGroupId);
|
|
9303
|
+
setSelectedProject(project);
|
|
9304
|
+
navigate(`/app/${project.itemId}/dashboard`);
|
|
9305
|
+
} catch (error) {
|
|
9306
|
+
console.error("Failed to switch environment", error);
|
|
9225
9307
|
}
|
|
9226
9308
|
};
|
|
9227
|
-
const
|
|
9228
|
-
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
"
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
};
|
|
9309
|
+
const renderEnvironmentChip = (project) => /* @__PURE__ */ jsxs(
|
|
9310
|
+
"button",
|
|
9311
|
+
{
|
|
9312
|
+
type: "button",
|
|
9313
|
+
onClick: (event) => onEnvironmentClick(event, project),
|
|
9314
|
+
className: "group/chip border-primary bg-primary text-primary-foreground hover:text-primary inline-flex cursor-pointer items-center gap-1 rounded-full border px-2.5 py-0.5 text-xs font-medium transition-all duration-150 hover:border-blocks-primary-50 hover:bg-blocks-primary-25 active:scale-95",
|
|
9315
|
+
children: [
|
|
9316
|
+
getEnvironmentLabel(project.environment),
|
|
9317
|
+
/* @__PURE__ */ jsx(ChevronRight, { className: "h-3 w-3 transition-all duration-150 group-hover/chip:translate-x-0.5" })
|
|
9318
|
+
]
|
|
9319
|
+
},
|
|
9320
|
+
project.environment
|
|
9321
|
+
);
|
|
9322
|
+
if (projects.length === 0) {
|
|
9323
|
+
return /* @__PURE__ */ jsx("span", { className: "border-border/60 bg-muted/40 text-muted-foreground inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs", children: "No environments" });
|
|
9324
|
+
}
|
|
9244
9325
|
const hasOverflow = projects.length > INLINE_LIMIT;
|
|
9245
9326
|
const visibleProjects = hasOverflow ? projects.slice(0, INLINE_LIMIT) : projects;
|
|
9246
9327
|
const overflowCount = projects.length - INLINE_LIMIT;
|
|
9328
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
9329
|
+
visibleProjects.map(renderEnvironmentChip),
|
|
9330
|
+
hasOverflow && /* @__PURE__ */ jsxs(Popover, { children: [
|
|
9331
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
9332
|
+
"button",
|
|
9333
|
+
{
|
|
9334
|
+
type: "button",
|
|
9335
|
+
onClick: (event) => event.stopPropagation(),
|
|
9336
|
+
className: "border-border/60 bg-muted/40 text-muted-foreground hover:bg-muted hover:text-foreground inline-flex cursor-pointer items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors",
|
|
9337
|
+
children: [
|
|
9338
|
+
"+",
|
|
9339
|
+
overflowCount,
|
|
9340
|
+
" more"
|
|
9341
|
+
]
|
|
9342
|
+
}
|
|
9343
|
+
) }),
|
|
9344
|
+
/* @__PURE__ */ jsxs(
|
|
9345
|
+
PopoverContent,
|
|
9346
|
+
{
|
|
9347
|
+
className: "w-52 p-1.5",
|
|
9348
|
+
align: "start",
|
|
9349
|
+
onClick: (event) => event.stopPropagation(),
|
|
9350
|
+
children: [
|
|
9351
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground px-2 pb-1.5 pt-1 text-[10px] font-semibold uppercase tracking-wider", children: "All environments" }),
|
|
9352
|
+
projects.map((project) => /* @__PURE__ */ jsxs(
|
|
9353
|
+
"button",
|
|
9354
|
+
{
|
|
9355
|
+
type: "button",
|
|
9356
|
+
onClick: (event) => onEnvironmentClick(event, project),
|
|
9357
|
+
className: "group/item hover:bg-accent flex w-full items-center justify-between rounded-md px-2 py-1.5 text-sm transition-colors",
|
|
9358
|
+
children: [
|
|
9359
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium", children: getEnvironmentLabel(project.environment) }),
|
|
9360
|
+
/* @__PURE__ */ jsx(ChevronRight, { className: "text-muted-foreground group-hover/item:text-foreground h-3.5 w-3.5 transition-transform duration-150 group-hover/item:translate-x-0.5" })
|
|
9361
|
+
]
|
|
9362
|
+
},
|
|
9363
|
+
project.environment
|
|
9364
|
+
))
|
|
9365
|
+
]
|
|
9366
|
+
}
|
|
9367
|
+
)
|
|
9368
|
+
] })
|
|
9369
|
+
] });
|
|
9370
|
+
};
|
|
9371
|
+
var ProjectCard = ({
|
|
9372
|
+
project,
|
|
9373
|
+
projects,
|
|
9374
|
+
isShared,
|
|
9375
|
+
canOpen = true
|
|
9376
|
+
}) => {
|
|
9247
9377
|
return /* @__PURE__ */ jsxs(Card, { className: "border-border/60 bg-card hover:border-primary/30 group flex h-40 flex-col overflow-hidden rounded-xl border p-4 shadow-sm transition-all duration-200 hover:shadow-md", children: [
|
|
9248
9378
|
/* @__PURE__ */ jsxs("div", { className: "relative flex items-start justify-between gap-2", children: [
|
|
9249
9379
|
/* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: /* @__PURE__ */ jsx(CardTitle, { className: "line-clamp-3 break-all text-base font-semibold leading-snug", children: project.name }) }),
|
|
@@ -9263,176 +9393,665 @@ var ProjectCard = ({
|
|
|
9263
9393
|
]
|
|
9264
9394
|
}
|
|
9265
9395
|
),
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
Button,
|
|
9269
|
-
{
|
|
9270
|
-
size: "icon",
|
|
9271
|
-
"data-testid": "project-card-open-shared",
|
|
9272
|
-
variant: "ghost",
|
|
9273
|
-
className: "text-primary hover:bg-primary/10 h-8 w-8 shrink-0 transition-colors",
|
|
9274
|
-
disabled: isDisabled || isFetching,
|
|
9275
|
-
onClick: onConfigureClick,
|
|
9276
|
-
"aria-label": "Open shared project",
|
|
9277
|
-
children: /* @__PURE__ */ jsx(Settings2, { size: 16 })
|
|
9278
|
-
}
|
|
9279
|
-
) }),
|
|
9280
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: "Open Project" })
|
|
9281
|
-
] })
|
|
9282
|
-
] }),
|
|
9283
|
-
whenFalse: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
9284
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
9285
|
-
Button,
|
|
9396
|
+
/* @__PURE__ */ jsx(
|
|
9397
|
+
ProjectActionButton,
|
|
9286
9398
|
{
|
|
9287
|
-
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
className: "text-primary hover:bg-primary/10 h-8 w-8 shrink-0 transition-colors",
|
|
9291
|
-
disabled: isDisabled || isFetching,
|
|
9292
|
-
onClick: onConfigureClick,
|
|
9293
|
-
children: /* @__PURE__ */ jsx(Settings2, { size: 16 })
|
|
9399
|
+
project,
|
|
9400
|
+
isShared: true,
|
|
9401
|
+
canOpen
|
|
9294
9402
|
}
|
|
9295
|
-
)
|
|
9296
|
-
|
|
9297
|
-
|
|
9403
|
+
)
|
|
9404
|
+
] }),
|
|
9405
|
+
whenFalse: /* @__PURE__ */ jsx(ProjectActionButton, { project, isShared: false })
|
|
9298
9406
|
}
|
|
9299
9407
|
) })
|
|
9300
9408
|
] }),
|
|
9301
|
-
/* @__PURE__ */ jsx("div", { className: "mt-auto", children:
|
|
9302
|
-
visibleProjects.map((p) => renderEnvChip(p)),
|
|
9303
|
-
hasOverflow && /* @__PURE__ */ jsxs(Popover, { children: [
|
|
9304
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
9305
|
-
"button",
|
|
9306
|
-
{
|
|
9307
|
-
onClick: (e) => e.stopPropagation(),
|
|
9308
|
-
className: "border-border/60 bg-muted/40 text-muted-foreground hover:bg-muted hover:text-foreground inline-flex cursor-pointer items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors",
|
|
9309
|
-
children: [
|
|
9310
|
-
"+",
|
|
9311
|
-
overflowCount,
|
|
9312
|
-
" more"
|
|
9313
|
-
]
|
|
9314
|
-
}
|
|
9315
|
-
) }),
|
|
9316
|
-
/* @__PURE__ */ jsxs(
|
|
9317
|
-
PopoverContent,
|
|
9318
|
-
{
|
|
9319
|
-
className: "w-52 p-1.5",
|
|
9320
|
-
align: "start",
|
|
9321
|
-
onClick: (e) => e.stopPropagation(),
|
|
9322
|
-
children: [
|
|
9323
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground px-2 pb-1.5 pt-1 text-[10px] font-semibold uppercase tracking-wider", children: "All environments" }),
|
|
9324
|
-
projects.map((p) => {
|
|
9325
|
-
const opt = environmentOptions.find(
|
|
9326
|
-
(o) => o.value === p.environment
|
|
9327
|
-
);
|
|
9328
|
-
return /* @__PURE__ */ jsxs(
|
|
9329
|
-
"button",
|
|
9330
|
-
{
|
|
9331
|
-
onClick: (e) => onEnvBadgeClick(e, p),
|
|
9332
|
-
className: "group/item hover:bg-accent flex w-full items-center justify-between rounded-md px-2 py-1.5 text-sm transition-colors",
|
|
9333
|
-
children: [
|
|
9334
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium", children: opt?.label ?? p.environment }),
|
|
9335
|
-
/* @__PURE__ */ jsx(ChevronRight, { className: "text-muted-foreground group-hover/item:text-foreground h-3.5 w-3.5 transition-transform duration-150 group-hover/item:translate-x-0.5" })
|
|
9336
|
-
]
|
|
9337
|
-
},
|
|
9338
|
-
p.environment
|
|
9339
|
-
);
|
|
9340
|
-
})
|
|
9341
|
-
]
|
|
9342
|
-
}
|
|
9343
|
-
)
|
|
9344
|
-
] })
|
|
9345
|
-
] }) })
|
|
9409
|
+
/* @__PURE__ */ jsx("div", { className: "mt-auto", children: /* @__PURE__ */ jsx(ProjectEnvironments, { projects }) })
|
|
9346
9410
|
] });
|
|
9347
9411
|
};
|
|
9348
|
-
var
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
opacity: 1,
|
|
9352
|
-
y: 0,
|
|
9353
|
-
scale: 1,
|
|
9354
|
-
transition: {
|
|
9355
|
-
delay: i * 0.06,
|
|
9356
|
-
duration: 0.4,
|
|
9357
|
-
ease: [0.22, 1, 0.36, 1]
|
|
9358
|
-
}
|
|
9359
|
-
})
|
|
9412
|
+
var getLastUpdatedLabel = (group) => {
|
|
9413
|
+
const timestamp = getLatestProjectUpdate(group);
|
|
9414
|
+
return timestamp === 0 ? "Unknown" : formatDistanceToNow(timestamp, { addSuffix: true });
|
|
9360
9415
|
};
|
|
9361
|
-
var
|
|
9362
|
-
|
|
9363
|
-
return
|
|
9364
|
-
(itemKey) => /* @__PURE__ */ jsx(ProjectCardLoadingSkeleton, {}, itemKey)
|
|
9365
|
-
) });
|
|
9416
|
+
var getLastUpdatedCellLabel = (group) => {
|
|
9417
|
+
const timestamp = getLatestProjectUpdate(group);
|
|
9418
|
+
return timestamp === 0 ? "Not updated yet" : `Updated ${formatDistanceToNow(timestamp, { addSuffix: true })}`;
|
|
9366
9419
|
};
|
|
9367
|
-
var
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
] }),
|
|
9379
|
-
canCreateProject && projectGroups.length > 9 && /* @__PURE__ */ jsx("span", { className: "shrink-0 text-sm text-[hsl(var(--medium-emphasis))]", children: "Please delete an existing project to create a new one." })
|
|
9380
|
-
] }),
|
|
9381
|
-
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-4", children: [
|
|
9382
|
-
projectGroups.length < 10 && /* @__PURE__ */ jsx(
|
|
9383
|
-
motion.div,
|
|
9384
|
-
{
|
|
9385
|
-
variants: cardVariants,
|
|
9386
|
-
custom: 0,
|
|
9387
|
-
initial: "hidden",
|
|
9388
|
-
animate: "visible",
|
|
9389
|
-
children: /* @__PURE__ */ jsx(AddProjectCard, {})
|
|
9390
|
-
}
|
|
9391
|
-
),
|
|
9392
|
-
projectGroups.map((project, i) => /* @__PURE__ */ jsx(
|
|
9393
|
-
motion.div,
|
|
9394
|
-
{
|
|
9395
|
-
variants: cardVariants,
|
|
9396
|
-
custom: projectGroups.length < 10 ? i + 1 : i,
|
|
9397
|
-
initial: "hidden",
|
|
9398
|
-
animate: "visible",
|
|
9399
|
-
children: project.projects[0] && /* @__PURE__ */ jsx(
|
|
9400
|
-
ProjectCard,
|
|
9401
|
-
{
|
|
9402
|
-
project: project.projects[0],
|
|
9403
|
-
projects: project.projects,
|
|
9404
|
-
isShared: project.isShared,
|
|
9405
|
-
canOpen: canOpenProject(project)
|
|
9406
|
-
}
|
|
9407
|
-
)
|
|
9408
|
-
},
|
|
9409
|
-
project.tenantGroupId
|
|
9410
|
-
))
|
|
9411
|
-
] })
|
|
9412
|
-
] });
|
|
9420
|
+
var CARD_RADIUS = "0.75rem";
|
|
9421
|
+
var ROW_SPACING = "0 0.5rem";
|
|
9422
|
+
var cardCorners = {
|
|
9423
|
+
left: {
|
|
9424
|
+
borderTopLeftRadius: CARD_RADIUS,
|
|
9425
|
+
borderBottomLeftRadius: CARD_RADIUS
|
|
9426
|
+
},
|
|
9427
|
+
right: {
|
|
9428
|
+
borderTopRightRadius: CARD_RADIUS,
|
|
9429
|
+
borderBottomRightRadius: CARD_RADIUS
|
|
9430
|
+
}
|
|
9413
9431
|
};
|
|
9414
|
-
var
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
]
|
|
9432
|
-
|
|
9433
|
-
|
|
9432
|
+
var SharedStatus = ({ isShared }) => isShared ? /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "flex w-fit items-center gap-1", children: [
|
|
9433
|
+
/* @__PURE__ */ jsx(UsersRound, { size: 16 }),
|
|
9434
|
+
"Shared"
|
|
9435
|
+
] }) : /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "\u2014" });
|
|
9436
|
+
var AddProjectListAction = ({ mobile = false }) => {
|
|
9437
|
+
const { handleClick, isDisabled, isFetching } = useCreateProjectRedirect();
|
|
9438
|
+
const action = /* @__PURE__ */ jsxs(
|
|
9439
|
+
Button,
|
|
9440
|
+
{
|
|
9441
|
+
type: "button",
|
|
9442
|
+
variant: "ghost",
|
|
9443
|
+
className: "text-primary w-full justify-start gap-2",
|
|
9444
|
+
disabled: isDisabled || isFetching,
|
|
9445
|
+
onClick: handleClick,
|
|
9446
|
+
children: [
|
|
9447
|
+
/* @__PURE__ */ jsx(Plus, { className: "h-4 w-4" }),
|
|
9448
|
+
"Add Project"
|
|
9449
|
+
]
|
|
9450
|
+
}
|
|
9451
|
+
);
|
|
9452
|
+
if (mobile) {
|
|
9453
|
+
return /* @__PURE__ */ jsx(
|
|
9454
|
+
Card,
|
|
9455
|
+
{
|
|
9456
|
+
"data-testid": "add-project-list-row",
|
|
9457
|
+
className: "border-primary/30 rounded-xl border border-dashed p-2",
|
|
9458
|
+
children: action
|
|
9459
|
+
}
|
|
9460
|
+
);
|
|
9461
|
+
}
|
|
9462
|
+
return /* @__PURE__ */ jsx(TableRow, { "data-testid": "add-project-list-row", className: "border-0", children: /* @__PURE__ */ jsx(
|
|
9463
|
+
TableCell,
|
|
9464
|
+
{
|
|
9465
|
+
colSpan: 5,
|
|
9466
|
+
className: "border-primary/30 border border-dashed bg-transparent p-2",
|
|
9467
|
+
style: { borderRadius: CARD_RADIUS },
|
|
9468
|
+
children: action
|
|
9469
|
+
}
|
|
9470
|
+
) });
|
|
9434
9471
|
};
|
|
9435
|
-
var
|
|
9472
|
+
var ProjectMobileList = ({
|
|
9473
|
+
projectGroups,
|
|
9474
|
+
showAddProject
|
|
9475
|
+
}) => /* @__PURE__ */ jsxs("div", { className: "grid gap-3", "data-testid": "project-list-mobile", children: [
|
|
9476
|
+
showAddProject && /* @__PURE__ */ jsx(AddProjectListAction, { mobile: true }),
|
|
9477
|
+
projectGroups.map((group) => {
|
|
9478
|
+
const project = group.projects[0];
|
|
9479
|
+
return /* @__PURE__ */ jsxs(
|
|
9480
|
+
Card,
|
|
9481
|
+
{
|
|
9482
|
+
"data-testid": "project-list-row",
|
|
9483
|
+
className: "border-border/60 space-y-3 rounded-xl border p-4 shadow-sm",
|
|
9484
|
+
children: [
|
|
9485
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
9486
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 space-y-2", children: [
|
|
9487
|
+
/* @__PURE__ */ jsx(CardTitle, { className: "break-all text-base", children: getProjectGroupName(group) || "Unnamed project" }),
|
|
9488
|
+
/* @__PURE__ */ jsx(SharedStatus, { isShared: group.isShared })
|
|
9489
|
+
] }),
|
|
9490
|
+
project && /* @__PURE__ */ jsx(
|
|
9491
|
+
ProjectActionButton,
|
|
9492
|
+
{
|
|
9493
|
+
project,
|
|
9494
|
+
isShared: group.isShared,
|
|
9495
|
+
canOpen: canOpenProject(group)
|
|
9496
|
+
}
|
|
9497
|
+
)
|
|
9498
|
+
] }),
|
|
9499
|
+
/* @__PURE__ */ jsx(ProjectEnvironments, { projects: group.projects }),
|
|
9500
|
+
/* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-xs", children: [
|
|
9501
|
+
"Last updated ",
|
|
9502
|
+
getLastUpdatedLabel(group)
|
|
9503
|
+
] })
|
|
9504
|
+
]
|
|
9505
|
+
},
|
|
9506
|
+
group.tenantGroupId
|
|
9507
|
+
);
|
|
9508
|
+
})
|
|
9509
|
+
] });
|
|
9510
|
+
var ProjectList = ({
|
|
9511
|
+
projectGroups,
|
|
9512
|
+
showAddProject
|
|
9513
|
+
}) => {
|
|
9514
|
+
const isMobile = useIsMobile();
|
|
9515
|
+
if (isMobile) {
|
|
9516
|
+
return /* @__PURE__ */ jsx(
|
|
9517
|
+
ProjectMobileList,
|
|
9518
|
+
{
|
|
9519
|
+
projectGroups,
|
|
9520
|
+
showAddProject
|
|
9521
|
+
}
|
|
9522
|
+
);
|
|
9523
|
+
}
|
|
9524
|
+
return /* @__PURE__ */ jsx(
|
|
9525
|
+
Table,
|
|
9526
|
+
{
|
|
9527
|
+
"data-testid": "project-list-table",
|
|
9528
|
+
style: { borderCollapse: "separate", borderSpacing: ROW_SPACING },
|
|
9529
|
+
children: /* @__PURE__ */ jsxs(TableBody, { children: [
|
|
9530
|
+
showAddProject && /* @__PURE__ */ jsx(AddProjectListAction, {}),
|
|
9531
|
+
projectGroups.map((group) => {
|
|
9532
|
+
const project = group.projects[0];
|
|
9533
|
+
return /* @__PURE__ */ jsxs(
|
|
9534
|
+
TableRow,
|
|
9535
|
+
{
|
|
9536
|
+
"data-testid": "project-list-row",
|
|
9537
|
+
className: "border-0",
|
|
9538
|
+
children: [
|
|
9539
|
+
/* @__PURE__ */ jsx(
|
|
9540
|
+
TableCell,
|
|
9541
|
+
{
|
|
9542
|
+
className: "bg-card max-w-64 break-all py-2 font-medium",
|
|
9543
|
+
style: cardCorners.left,
|
|
9544
|
+
children: getProjectGroupName(group) || "Unnamed project"
|
|
9545
|
+
}
|
|
9546
|
+
),
|
|
9547
|
+
/* @__PURE__ */ jsx(TableCell, { className: "bg-card py-2", children: /* @__PURE__ */ jsx(ProjectEnvironments, { projects: group.projects }) }),
|
|
9548
|
+
/* @__PURE__ */ jsx(TableCell, { className: "bg-card py-2", children: /* @__PURE__ */ jsx(SharedStatus, { isShared: group.isShared }) }),
|
|
9549
|
+
/* @__PURE__ */ jsx(TableCell, { className: "bg-card whitespace-nowrap py-2 text-muted-foreground", children: getLastUpdatedCellLabel(group) }),
|
|
9550
|
+
/* @__PURE__ */ jsx(
|
|
9551
|
+
TableCell,
|
|
9552
|
+
{
|
|
9553
|
+
className: "bg-card py-2 text-right",
|
|
9554
|
+
style: cardCorners.right,
|
|
9555
|
+
children: project && /* @__PURE__ */ jsx(
|
|
9556
|
+
ProjectActionButton,
|
|
9557
|
+
{
|
|
9558
|
+
project,
|
|
9559
|
+
isShared: group.isShared,
|
|
9560
|
+
canOpen: canOpenProject(group)
|
|
9561
|
+
}
|
|
9562
|
+
)
|
|
9563
|
+
}
|
|
9564
|
+
)
|
|
9565
|
+
]
|
|
9566
|
+
},
|
|
9567
|
+
group.tenantGroupId
|
|
9568
|
+
);
|
|
9569
|
+
})
|
|
9570
|
+
] })
|
|
9571
|
+
}
|
|
9572
|
+
);
|
|
9573
|
+
};
|
|
9574
|
+
function MultiSelect2({
|
|
9575
|
+
label,
|
|
9576
|
+
options,
|
|
9577
|
+
onChange,
|
|
9578
|
+
value: selectedValues
|
|
9579
|
+
}) {
|
|
9580
|
+
const [buttonRef, popoverWidth] = usePopoverWidth();
|
|
9581
|
+
const onSelectHandler = (value) => {
|
|
9582
|
+
const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
|
|
9583
|
+
onChange(nextValues);
|
|
9584
|
+
};
|
|
9585
|
+
const onResetHandler = () => {
|
|
9586
|
+
onChange([]);
|
|
9587
|
+
};
|
|
9588
|
+
const isMobile = useIsMobile();
|
|
9589
|
+
return /* @__PURE__ */ jsxs(Popover, { children: [
|
|
9590
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
9591
|
+
Button,
|
|
9592
|
+
{
|
|
9593
|
+
ref: buttonRef,
|
|
9594
|
+
variant: "outline",
|
|
9595
|
+
size: "sm",
|
|
9596
|
+
className: "h-8 rounded-md border-dashed",
|
|
9597
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center justify-between", children: [
|
|
9598
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
9599
|
+
/* @__PURE__ */ jsx(PlusCircledIcon, { className: "mr-2 h-4 w-4" }),
|
|
9600
|
+
/* @__PURE__ */ jsx("span", { className: "hidden sm:inline", children: label }),
|
|
9601
|
+
/* @__PURE__ */ jsx("span", { className: "sm:hidden", children: label?.split(" ")[0] })
|
|
9602
|
+
] }),
|
|
9603
|
+
selectedValues?.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9604
|
+
/* @__PURE__ */ jsx(
|
|
9605
|
+
Separator,
|
|
9606
|
+
{
|
|
9607
|
+
orientation: "vertical",
|
|
9608
|
+
className: "hidden h-4 sm:mx-2 sm:block"
|
|
9609
|
+
}
|
|
9610
|
+
),
|
|
9611
|
+
/* @__PURE__ */ jsx("div", { className: "flex space-x-1", children: selectedValues.length > 2 ? /* @__PURE__ */ jsxs(
|
|
9612
|
+
Badge,
|
|
9613
|
+
{
|
|
9614
|
+
variant: "outline",
|
|
9615
|
+
className: "rounded-sm px-1 font-normal",
|
|
9616
|
+
children: [
|
|
9617
|
+
selectedValues.length,
|
|
9618
|
+
" selected"
|
|
9619
|
+
]
|
|
9620
|
+
}
|
|
9621
|
+
) : options.filter((option) => selectedValues.includes(option.value)).map((option) => /* @__PURE__ */ jsx(
|
|
9622
|
+
Badge,
|
|
9623
|
+
{
|
|
9624
|
+
variant: "outline",
|
|
9625
|
+
className: "rounded-sm px-1 font-normal",
|
|
9626
|
+
children: option.label
|
|
9627
|
+
},
|
|
9628
|
+
option.value
|
|
9629
|
+
)) })
|
|
9630
|
+
] })
|
|
9631
|
+
] })
|
|
9632
|
+
}
|
|
9633
|
+
) }),
|
|
9634
|
+
/* @__PURE__ */ jsx(
|
|
9635
|
+
PopoverContent,
|
|
9636
|
+
{
|
|
9637
|
+
className: "w-auto p-0 sm:w-full",
|
|
9638
|
+
align: "start",
|
|
9639
|
+
style: isMobile ? { width: popoverWidth ? `${popoverWidth}px` : "auto" } : void 0,
|
|
9640
|
+
children: /* @__PURE__ */ jsxs(Command, { children: [
|
|
9641
|
+
/* @__PURE__ */ jsx(CommandInput, { placeholder: label }),
|
|
9642
|
+
/* @__PURE__ */ jsxs(CommandList, { children: [
|
|
9643
|
+
/* @__PURE__ */ jsx(CommandEmpty, { children: "No results found." }),
|
|
9644
|
+
/* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => {
|
|
9645
|
+
const isSelected = selectedValues.includes(option.value);
|
|
9646
|
+
return /* @__PURE__ */ jsxs(
|
|
9647
|
+
CommandItem,
|
|
9648
|
+
{
|
|
9649
|
+
onSelect: () => onSelectHandler(option.value),
|
|
9650
|
+
children: [
|
|
9651
|
+
/* @__PURE__ */ jsx(
|
|
9652
|
+
"div",
|
|
9653
|
+
{
|
|
9654
|
+
className: cn(
|
|
9655
|
+
"mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",
|
|
9656
|
+
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
9657
|
+
),
|
|
9658
|
+
children: /* @__PURE__ */ jsx(CheckIcon, { className: cn("h-4 w-4") })
|
|
9659
|
+
}
|
|
9660
|
+
),
|
|
9661
|
+
/* @__PURE__ */ jsx("span", { children: option.label })
|
|
9662
|
+
]
|
|
9663
|
+
},
|
|
9664
|
+
option.value
|
|
9665
|
+
);
|
|
9666
|
+
}) }),
|
|
9667
|
+
selectedValues.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9668
|
+
/* @__PURE__ */ jsx(CommandSeparator, {}),
|
|
9669
|
+
/* @__PURE__ */ jsx(CommandGroup, { children: /* @__PURE__ */ jsx(
|
|
9670
|
+
CommandItem,
|
|
9671
|
+
{
|
|
9672
|
+
onSelect: () => onResetHandler(),
|
|
9673
|
+
className: "justify-center text-center",
|
|
9674
|
+
children: "Clear"
|
|
9675
|
+
}
|
|
9676
|
+
) })
|
|
9677
|
+
] })
|
|
9678
|
+
] })
|
|
9679
|
+
] })
|
|
9680
|
+
}
|
|
9681
|
+
)
|
|
9682
|
+
] });
|
|
9683
|
+
}
|
|
9684
|
+
var ResetButton = ({ onClick }) => {
|
|
9685
|
+
return /* @__PURE__ */ jsxs(
|
|
9686
|
+
Button,
|
|
9687
|
+
{
|
|
9688
|
+
type: "button",
|
|
9689
|
+
variant: "outline",
|
|
9690
|
+
onClick,
|
|
9691
|
+
className: "h-8 rounded-md px-2 lg:px-3",
|
|
9692
|
+
children: [
|
|
9693
|
+
"Reset",
|
|
9694
|
+
/* @__PURE__ */ jsx(X, { className: "ml-2 h-4 w-4" })
|
|
9695
|
+
]
|
|
9696
|
+
}
|
|
9697
|
+
);
|
|
9698
|
+
};
|
|
9699
|
+
var SearchInput = ({
|
|
9700
|
+
onChange,
|
|
9701
|
+
placeholder = "Search...",
|
|
9702
|
+
value,
|
|
9703
|
+
className = ""
|
|
9704
|
+
}) => {
|
|
9705
|
+
const [state, setState] = useState(value);
|
|
9706
|
+
const inputRef = useRef(null);
|
|
9707
|
+
useEffect(() => {
|
|
9708
|
+
setState(value);
|
|
9709
|
+
}, [value]);
|
|
9710
|
+
const debounced = useRef(
|
|
9711
|
+
debounce((val) => {
|
|
9712
|
+
onChange(val);
|
|
9713
|
+
}, 300)
|
|
9714
|
+
).current;
|
|
9715
|
+
useEffect(() => {
|
|
9716
|
+
return () => {
|
|
9717
|
+
debounced.cancel();
|
|
9718
|
+
};
|
|
9719
|
+
}, [debounced]);
|
|
9720
|
+
const handleChange = (event) => {
|
|
9721
|
+
event.stopPropagation();
|
|
9722
|
+
setState(event.target.value);
|
|
9723
|
+
debounced(event.target.value);
|
|
9724
|
+
};
|
|
9725
|
+
const handleClear = (e) => {
|
|
9726
|
+
e.stopPropagation();
|
|
9727
|
+
setState("");
|
|
9728
|
+
onChange("");
|
|
9729
|
+
};
|
|
9730
|
+
return /* @__PURE__ */ jsxs("div", { className: "rounded-md border bg-background flex items-center px-2", children: [
|
|
9731
|
+
/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 text-muted-foreground" }),
|
|
9732
|
+
/* @__PURE__ */ jsx(
|
|
9733
|
+
Input,
|
|
9734
|
+
{
|
|
9735
|
+
ref: inputRef,
|
|
9736
|
+
placeholder,
|
|
9737
|
+
value: state,
|
|
9738
|
+
onChange: handleChange,
|
|
9739
|
+
className: cn(
|
|
9740
|
+
"h-8 w-52 border-none p-0 focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
9741
|
+
className
|
|
9742
|
+
)
|
|
9743
|
+
}
|
|
9744
|
+
),
|
|
9745
|
+
/* @__PURE__ */ jsx(
|
|
9746
|
+
Button,
|
|
9747
|
+
{
|
|
9748
|
+
variant: "ghost",
|
|
9749
|
+
size: "xs",
|
|
9750
|
+
className: cn(
|
|
9751
|
+
"h-full p-1 pr-0 hover:bg-transparent",
|
|
9752
|
+
!value && "invisible"
|
|
9753
|
+
),
|
|
9754
|
+
onClick: handleClear,
|
|
9755
|
+
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-muted-foreground" })
|
|
9756
|
+
}
|
|
9757
|
+
)
|
|
9758
|
+
] });
|
|
9759
|
+
};
|
|
9760
|
+
var ProjectToolbar = ({
|
|
9761
|
+
availableEnvironmentOptions,
|
|
9762
|
+
environmentFilter,
|
|
9763
|
+
onEnvironmentFilterChange,
|
|
9764
|
+
onReset,
|
|
9765
|
+
onSearchTextChange,
|
|
9766
|
+
onViewModeChange,
|
|
9767
|
+
searchText,
|
|
9768
|
+
viewMode
|
|
9769
|
+
}) => {
|
|
9770
|
+
const hasActiveFilters = searchText.trim().length > 0 || environmentFilter.length > 0;
|
|
9771
|
+
return /* @__PURE__ */ jsxs(
|
|
9772
|
+
"div",
|
|
9773
|
+
{
|
|
9774
|
+
className: "flex flex-wrap items-center justify-between gap-3",
|
|
9775
|
+
"aria-label": "Project filters and view",
|
|
9776
|
+
children: [
|
|
9777
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
9778
|
+
/* @__PURE__ */ jsx(
|
|
9779
|
+
SearchInput,
|
|
9780
|
+
{
|
|
9781
|
+
value: searchText,
|
|
9782
|
+
onChange: onSearchTextChange,
|
|
9783
|
+
placeholder: "Search projects..."
|
|
9784
|
+
}
|
|
9785
|
+
),
|
|
9786
|
+
/* @__PURE__ */ jsx(
|
|
9787
|
+
MultiSelect2,
|
|
9788
|
+
{
|
|
9789
|
+
label: "Environment",
|
|
9790
|
+
options: availableEnvironmentOptions,
|
|
9791
|
+
value: environmentFilter,
|
|
9792
|
+
onChange: onEnvironmentFilterChange
|
|
9793
|
+
}
|
|
9794
|
+
),
|
|
9795
|
+
hasActiveFilters && /* @__PURE__ */ jsx(ResetButton, { onClick: onReset })
|
|
9796
|
+
] }),
|
|
9797
|
+
/* @__PURE__ */ jsxs(
|
|
9798
|
+
ToggleGroup,
|
|
9799
|
+
{
|
|
9800
|
+
type: "single",
|
|
9801
|
+
variant: "outline",
|
|
9802
|
+
size: "sm",
|
|
9803
|
+
value: viewMode,
|
|
9804
|
+
onValueChange: (value) => {
|
|
9805
|
+
if (value === "grid" || value === "list") onViewModeChange(value);
|
|
9806
|
+
},
|
|
9807
|
+
"aria-label": "Project view",
|
|
9808
|
+
className: "h-8 rounded-md border bg-background p-0.5",
|
|
9809
|
+
children: [
|
|
9810
|
+
/* @__PURE__ */ jsx(
|
|
9811
|
+
ToggleGroupItem,
|
|
9812
|
+
{
|
|
9813
|
+
value: "grid",
|
|
9814
|
+
"aria-label": "Grid view",
|
|
9815
|
+
className: "h-7 w-7 min-w-0 border-0 px-0",
|
|
9816
|
+
children: /* @__PURE__ */ jsx(LayoutGrid, { className: "h-4 w-4" })
|
|
9817
|
+
}
|
|
9818
|
+
),
|
|
9819
|
+
/* @__PURE__ */ jsx(
|
|
9820
|
+
ToggleGroupItem,
|
|
9821
|
+
{
|
|
9822
|
+
value: "list",
|
|
9823
|
+
"aria-label": "List view",
|
|
9824
|
+
className: "h-7 w-7 min-w-0 border-0 px-0",
|
|
9825
|
+
children: /* @__PURE__ */ jsx(List, { className: "h-4 w-4" })
|
|
9826
|
+
}
|
|
9827
|
+
)
|
|
9828
|
+
]
|
|
9829
|
+
}
|
|
9830
|
+
)
|
|
9831
|
+
]
|
|
9832
|
+
}
|
|
9833
|
+
);
|
|
9834
|
+
};
|
|
9835
|
+
var DEFAULT_SORT = {
|
|
9836
|
+
property: "lastUpdatedDate",
|
|
9837
|
+
isDescending: true
|
|
9838
|
+
};
|
|
9839
|
+
var projectViewStorage = createStorage("local", { prefix: "console" });
|
|
9840
|
+
var VIEW_MODE_KEY = "projectsViewMode";
|
|
9841
|
+
var readViewMode = () => {
|
|
9842
|
+
const storedValue = projectViewStorage.get(VIEW_MODE_KEY);
|
|
9843
|
+
return storedValue === "list" || storedValue === "grid" ? storedValue : "grid";
|
|
9844
|
+
};
|
|
9845
|
+
var SEARCH_OPTIONS = {
|
|
9846
|
+
keys: ["representativeName"],
|
|
9847
|
+
threshold: 0.3
|
|
9848
|
+
};
|
|
9849
|
+
var useProjectListState = (projectGroups) => {
|
|
9850
|
+
const [viewMode, setViewMode] = useState(readViewMode);
|
|
9851
|
+
const [searchText, setSearchText] = useState("");
|
|
9852
|
+
const [environmentFilter, setEnvironmentFilter] = useState([]);
|
|
9853
|
+
const [sort, setSort] = useState(DEFAULT_SORT);
|
|
9854
|
+
const searchableGroups = useMemo(
|
|
9855
|
+
() => projectGroups.map((group) => ({
|
|
9856
|
+
group,
|
|
9857
|
+
representativeName: getProjectGroupName(group)
|
|
9858
|
+
})),
|
|
9859
|
+
[projectGroups]
|
|
9860
|
+
);
|
|
9861
|
+
const searchedGroups = useDebouncedFuseFilter(
|
|
9862
|
+
searchableGroups,
|
|
9863
|
+
searchText,
|
|
9864
|
+
SEARCH_OPTIONS
|
|
9865
|
+
);
|
|
9866
|
+
const visibleProjectGroups = useMemo(() => {
|
|
9867
|
+
const filteredGroups = searchedGroups.map(({ group }) => group).filter(
|
|
9868
|
+
(group) => environmentFilter.length === 0 || group.projects.some(
|
|
9869
|
+
(project) => environmentFilter.includes(project.environment)
|
|
9870
|
+
)
|
|
9871
|
+
);
|
|
9872
|
+
return filteredGroups.toSorted((left, right) => {
|
|
9873
|
+
const comparison = sort.property === "name" ? getProjectGroupName(left).localeCompare(getProjectGroupName(right)) : getLatestProjectUpdate(left) - getLatestProjectUpdate(right);
|
|
9874
|
+
return sort.isDescending ? -comparison : comparison;
|
|
9875
|
+
});
|
|
9876
|
+
}, [environmentFilter, searchedGroups, sort]);
|
|
9877
|
+
const availableEnvironmentOptions = useMemo(() => {
|
|
9878
|
+
const presentValues = new Set(
|
|
9879
|
+
projectGroups.flatMap(
|
|
9880
|
+
(group) => group.projects.map((project) => project.environment).filter((environment) => environment.length > 0)
|
|
9881
|
+
)
|
|
9882
|
+
);
|
|
9883
|
+
const knownOptions = environmentOptions.filter((option) => presentValues.delete(option.value)).map(({ label, value }) => ({ label, value }));
|
|
9884
|
+
const unknownOptions = [...presentValues].sort((left, right) => left.localeCompare(right)).map((value) => ({ label: value, value }));
|
|
9885
|
+
return [...knownOptions, ...unknownOptions];
|
|
9886
|
+
}, [projectGroups]);
|
|
9887
|
+
const persistViewMode = useCallback((nextViewMode) => {
|
|
9888
|
+
setViewMode(nextViewMode);
|
|
9889
|
+
projectViewStorage.set(VIEW_MODE_KEY, nextViewMode);
|
|
9890
|
+
}, []);
|
|
9891
|
+
const resetFilters = useCallback(() => {
|
|
9892
|
+
setSearchText("");
|
|
9893
|
+
setEnvironmentFilter([]);
|
|
9894
|
+
}, []);
|
|
9895
|
+
return {
|
|
9896
|
+
availableEnvironmentOptions,
|
|
9897
|
+
environmentFilter,
|
|
9898
|
+
resetFilters,
|
|
9899
|
+
searchText,
|
|
9900
|
+
setEnvironmentFilter,
|
|
9901
|
+
setSearchText,
|
|
9902
|
+
setSort,
|
|
9903
|
+
setViewMode: persistViewMode,
|
|
9904
|
+
sort,
|
|
9905
|
+
viewMode,
|
|
9906
|
+
visibleProjectGroups
|
|
9907
|
+
};
|
|
9908
|
+
};
|
|
9909
|
+
var cardVariants = {
|
|
9910
|
+
hidden: { opacity: 0, y: 20, scale: 0.97 },
|
|
9911
|
+
visible: (i) => ({
|
|
9912
|
+
opacity: 1,
|
|
9913
|
+
y: 0,
|
|
9914
|
+
scale: 1,
|
|
9915
|
+
transition: {
|
|
9916
|
+
delay: i * 0.06,
|
|
9917
|
+
duration: 0.4,
|
|
9918
|
+
ease: [0.22, 1, 0.36, 1]
|
|
9919
|
+
}
|
|
9920
|
+
})
|
|
9921
|
+
};
|
|
9922
|
+
var SelfProjectLoading = ({ viewMode }) => {
|
|
9923
|
+
if (viewMode === "list") {
|
|
9924
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: ["sk-1", "sk-2", "sk-3", "sk-4", "sk-5"].map((itemKey) => /* @__PURE__ */ jsx(ProjectListRowLoadingSkeleton, {}, itemKey)) });
|
|
9925
|
+
}
|
|
9926
|
+
return /* @__PURE__ */ jsx("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-4", children: ["sk-1", "sk-2", "sk-3", "sk-4", "sk-5", "sk-6", "sk-7", "sk-8"].map(
|
|
9927
|
+
(itemKey) => /* @__PURE__ */ jsx(ProjectCardLoadingSkeleton, {}, itemKey)
|
|
9928
|
+
) });
|
|
9929
|
+
};
|
|
9930
|
+
var SelfProject = ({ canCreateProject = false }) => {
|
|
9931
|
+
const { data: data2, isLoading, isFetching } = useGetProjects({ enabled: true });
|
|
9932
|
+
const isPending = isLoading || isFetching;
|
|
9933
|
+
const projectGroups = data2 || [];
|
|
9934
|
+
const {
|
|
9935
|
+
availableEnvironmentOptions,
|
|
9936
|
+
environmentFilter,
|
|
9937
|
+
resetFilters,
|
|
9938
|
+
searchText,
|
|
9939
|
+
setEnvironmentFilter,
|
|
9940
|
+
setSearchText,
|
|
9941
|
+
setViewMode,
|
|
9942
|
+
viewMode,
|
|
9943
|
+
visibleProjectGroups
|
|
9944
|
+
} = useProjectListState(projectGroups);
|
|
9945
|
+
if (!isPending && !projectGroups.length && canCreateProject)
|
|
9946
|
+
return /* @__PURE__ */ jsx(ConsoleCreateProject, {});
|
|
9947
|
+
const showAddProject = projectGroups.length < 10 && searchText.trim().length === 0;
|
|
9948
|
+
const hasNoMatches = projectGroups.length > 0 && visibleProjectGroups.length === 0;
|
|
9949
|
+
let projectsContent;
|
|
9950
|
+
if (isPending) {
|
|
9951
|
+
projectsContent = /* @__PURE__ */ jsx(SelfProjectLoading, { viewMode });
|
|
9952
|
+
} else if (viewMode === "grid") {
|
|
9953
|
+
projectsContent = /* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-4", children: [
|
|
9954
|
+
showAddProject && /* @__PURE__ */ jsx(
|
|
9955
|
+
motion.div,
|
|
9956
|
+
{
|
|
9957
|
+
variants: cardVariants,
|
|
9958
|
+
custom: 0,
|
|
9959
|
+
initial: "hidden",
|
|
9960
|
+
animate: "visible",
|
|
9961
|
+
children: /* @__PURE__ */ jsx(AddProjectCard, {})
|
|
9962
|
+
}
|
|
9963
|
+
),
|
|
9964
|
+
visibleProjectGroups.map((project, index) => /* @__PURE__ */ jsx(
|
|
9965
|
+
motion.div,
|
|
9966
|
+
{
|
|
9967
|
+
variants: cardVariants,
|
|
9968
|
+
custom: showAddProject ? index + 1 : index,
|
|
9969
|
+
initial: "hidden",
|
|
9970
|
+
animate: "visible",
|
|
9971
|
+
children: project.projects[0] && /* @__PURE__ */ jsx(
|
|
9972
|
+
ProjectCard,
|
|
9973
|
+
{
|
|
9974
|
+
project: project.projects[0],
|
|
9975
|
+
projects: project.projects,
|
|
9976
|
+
isShared: project.isShared,
|
|
9977
|
+
canOpen: canOpenProject(project)
|
|
9978
|
+
}
|
|
9979
|
+
)
|
|
9980
|
+
},
|
|
9981
|
+
project.tenantGroupId
|
|
9982
|
+
))
|
|
9983
|
+
] });
|
|
9984
|
+
} else {
|
|
9985
|
+
projectsContent = /* @__PURE__ */ jsx(
|
|
9986
|
+
ProjectList,
|
|
9987
|
+
{
|
|
9988
|
+
projectGroups: visibleProjectGroups,
|
|
9989
|
+
showAddProject
|
|
9990
|
+
}
|
|
9991
|
+
);
|
|
9992
|
+
}
|
|
9993
|
+
return /* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-4", children: [
|
|
9994
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-3", children: [
|
|
9995
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
9996
|
+
/* @__PURE__ */ jsx("h2", { className: "shrink-0 text-base font-semibold text-[hsl(var(--high-emphasis))]", children: "Your Blocks Projects" }),
|
|
9997
|
+
isPending ? /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-8 rounded-full" }) : /* @__PURE__ */ jsx("span", { className: "bg-primary/10 text-primary shrink-0 rounded-full px-2 py-0.5 text-xs font-semibold", children: projectGroups.length })
|
|
9998
|
+
] }),
|
|
9999
|
+
!isPending && canCreateProject && projectGroups.length > 9 && /* @__PURE__ */ jsx("span", { className: "text-sm text-[hsl(var(--medium-emphasis))]", children: "Please delete an existing project to create a new one." })
|
|
10000
|
+
] }),
|
|
10001
|
+
(isPending || projectGroups.length > 0) && /* @__PURE__ */ jsx(
|
|
10002
|
+
ProjectToolbar,
|
|
10003
|
+
{
|
|
10004
|
+
availableEnvironmentOptions,
|
|
10005
|
+
environmentFilter,
|
|
10006
|
+
onEnvironmentFilterChange: setEnvironmentFilter,
|
|
10007
|
+
onReset: resetFilters,
|
|
10008
|
+
onSearchTextChange: setSearchText,
|
|
10009
|
+
onViewModeChange: setViewMode,
|
|
10010
|
+
searchText,
|
|
10011
|
+
viewMode
|
|
10012
|
+
}
|
|
10013
|
+
),
|
|
10014
|
+
projectsContent,
|
|
10015
|
+
hasNoMatches && /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center gap-3 rounded-xl border border-dashed px-6 py-10 text-center", children: [
|
|
10016
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-muted-foreground", children: searchText.trim() ? "No projects match your search" : "No projects match the selected filters" }),
|
|
10017
|
+
/* @__PURE__ */ jsx(
|
|
10018
|
+
Button,
|
|
10019
|
+
{
|
|
10020
|
+
type: "button",
|
|
10021
|
+
variant: "outline",
|
|
10022
|
+
size: "sm",
|
|
10023
|
+
onClick: () => {
|
|
10024
|
+
if (searchText.trim()) setSearchText("");
|
|
10025
|
+
else setEnvironmentFilter([]);
|
|
10026
|
+
},
|
|
10027
|
+
children: searchText.trim() ? "Clear search" : "Clear filters"
|
|
10028
|
+
}
|
|
10029
|
+
)
|
|
10030
|
+
] })
|
|
10031
|
+
] });
|
|
10032
|
+
};
|
|
10033
|
+
var ConsolePage = ({ canCreateProject = false }) => {
|
|
10034
|
+
const { resetSelectedProject, resetTenantGroup } = useProjectStore();
|
|
10035
|
+
useEffect(() => {
|
|
10036
|
+
resetSelectedProject();
|
|
10037
|
+
resetTenantGroup();
|
|
10038
|
+
}, [resetSelectedProject, resetTenantGroup]);
|
|
10039
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative flex flex-1 flex-col overflow-hidden", children: [
|
|
10040
|
+
/* @__PURE__ */ jsx("div", { className: "bg-primary/[0.07] pointer-events-none absolute -top-20 right-0 h-[600px] w-[600px] rounded-full blur-[100px]" }),
|
|
10041
|
+
/* @__PURE__ */ jsx("div", { className: "bg-primary/[0.04] pointer-events-none absolute left-1/3 top-10 h-[350px] w-[350px] rounded-full blur-[80px]" }),
|
|
10042
|
+
/* @__PURE__ */ jsxs("div", { className: "relative flex flex-1 flex-col gap-12 px-6 py-10 sm:px-10 xl:px-[154px]", children: [
|
|
10043
|
+
/* @__PURE__ */ jsx(SelfProject, { canCreateProject }),
|
|
10044
|
+
/* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-5", children: [
|
|
10045
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
10046
|
+
/* @__PURE__ */ jsx("span", { className: "bg-primary/10 text-primary inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold tracking-wide", children: "Resources" }),
|
|
10047
|
+
/* @__PURE__ */ jsx("div", { className: "h-px flex-1 bg-[hsl(var(--border-default))]" })
|
|
10048
|
+
] }),
|
|
10049
|
+
/* @__PURE__ */ jsx(DefaultDoc, {})
|
|
10050
|
+
] })
|
|
10051
|
+
] })
|
|
10052
|
+
] });
|
|
10053
|
+
};
|
|
10054
|
+
var CallbackPage = ({ defaultRedirectUrl }) => {
|
|
9436
10055
|
const [searchParams] = useSearchParams();
|
|
9437
10056
|
const hasProcessed = useRef(false);
|
|
9438
10057
|
const { setAuthenticated } = useAuthStore();
|
|
@@ -9837,7 +10456,7 @@ var wildcardToRegex2 = (pattern) => {
|
|
|
9837
10456
|
const escaped = pattern.replace(/[-/\\^$+?.()|[\]{}]/g, "\\$&");
|
|
9838
10457
|
return `^${escaped.replace(/\*/g, "[^/]+")}$`;
|
|
9839
10458
|
};
|
|
9840
|
-
function
|
|
10459
|
+
function ProjectList2({
|
|
9841
10460
|
redirectPaths,
|
|
9842
10461
|
collapsed = false
|
|
9843
10462
|
}) {
|
|
@@ -10389,8 +11008,8 @@ function EditProject() {
|
|
|
10389
11008
|
] });
|
|
10390
11009
|
}
|
|
10391
11010
|
var ProjectCardLoadingSkeleton = () => {
|
|
10392
|
-
return /* @__PURE__ */ jsxs(Card, { className: "border-border/60 flex h-
|
|
10393
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-
|
|
11011
|
+
return /* @__PURE__ */ jsxs(Card, { className: "border-border/60 bg-card flex h-40 flex-col overflow-hidden rounded-xl border p-4 shadow-sm", children: [
|
|
11012
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
10394
11013
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
10395
11014
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4/5" }),
|
|
10396
11015
|
/* @__PURE__ */ jsx(Skeleton, { className: "mt-1.5 h-4 w-3/5" })
|
|
@@ -10403,6 +11022,14 @@ var ProjectCardLoadingSkeleton = () => {
|
|
|
10403
11022
|
] })
|
|
10404
11023
|
] });
|
|
10405
11024
|
};
|
|
11025
|
+
var ProjectListRowLoadingSkeleton = () => {
|
|
11026
|
+
return /* @__PURE__ */ jsxs(Card, { className: "border-border/60 bg-card flex h-14 items-center gap-4 rounded-xl border px-4 py-2 shadow-sm", children: [
|
|
11027
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32" }),
|
|
11028
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16 shrink-0 rounded-full" }),
|
|
11029
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "ml-auto h-4 w-20 shrink-0" }),
|
|
11030
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-8 shrink-0 rounded-md" })
|
|
11031
|
+
] });
|
|
11032
|
+
};
|
|
10406
11033
|
function SidebarMobileView({
|
|
10407
11034
|
redirectPaths,
|
|
10408
11035
|
navigationMenus
|
|
@@ -10440,7 +11067,7 @@ function SidebarMobileView({
|
|
|
10440
11067
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
10441
11068
|
/* @__PURE__ */ jsxs("div", { className: "mt-3 flex w-full flex-col items-start px-6", children: [
|
|
10442
11069
|
/* @__PURE__ */ jsx("div", { className: "ml-1 text-sm text-low-emphasis", children: "Project" }),
|
|
10443
|
-
/* @__PURE__ */ jsx(
|
|
11070
|
+
/* @__PURE__ */ jsx(ProjectList2, { redirectPaths })
|
|
10444
11071
|
] }),
|
|
10445
11072
|
/* @__PURE__ */ jsxs("div", { className: "my-3 flex w-full flex-col items-start px-6", children: [
|
|
10446
11073
|
/* @__PURE__ */ jsx("div", { className: "ml-1 text-sm text-low-emphasis", children: "Environment" }),
|
|
@@ -10508,11 +11135,11 @@ function SidebarMenuDesktop({
|
|
|
10508
11135
|
isSidebarOpen ? /* @__PURE__ */ jsxs("div", { className: "border-b px-2 pb-2 pt-2", children: [
|
|
10509
11136
|
/* @__PURE__ */ jsx("p", { className: "mb-1 px-2 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground", children: "Workspace" }),
|
|
10510
11137
|
/* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
|
|
10511
|
-
/* @__PURE__ */ jsx(
|
|
11138
|
+
/* @__PURE__ */ jsx(ProjectList2, { redirectPaths }),
|
|
10512
11139
|
/* @__PURE__ */ jsx(RenderConditionally, { condition: !isProjectOverviewRoute, children: /* @__PURE__ */ jsx(EnvironmentList, { redirectPaths }) })
|
|
10513
11140
|
] })
|
|
10514
11141
|
] }) : /* @__PURE__ */ jsxs("div", { className: "border-b py-1", children: [
|
|
10515
|
-
/* @__PURE__ */ jsx(
|
|
11142
|
+
/* @__PURE__ */ jsx(ProjectList2, { redirectPaths, collapsed: true }),
|
|
10516
11143
|
/* @__PURE__ */ jsx(RenderConditionally, { condition: !isProjectOverviewRoute, children: /* @__PURE__ */ jsx(EnvironmentList, { redirectPaths, collapsed: true }) })
|
|
10517
11144
|
] }),
|
|
10518
11145
|
/* @__PURE__ */ jsx("div", { className: "min-h-0 flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ jsx("nav", { className: cn("grid w-full items-start gap-1 text-sm"), children: allowedMenu.map((menu) => /* @__PURE__ */ jsx(Fragment$1, { children: menu.type === "menu" ? /* @__PURE__ */ jsx(DesktopMenuItem, { menu, isSidebarOpen }) : /* @__PURE__ */ jsx(Separator, {}) }, menu.id)) }) })
|
|
@@ -11545,116 +12172,6 @@ var DropdownSearchInput = ({
|
|
|
11545
12172
|
)
|
|
11546
12173
|
] });
|
|
11547
12174
|
};
|
|
11548
|
-
function MultiSelect2({
|
|
11549
|
-
label,
|
|
11550
|
-
options,
|
|
11551
|
-
onChange,
|
|
11552
|
-
value: selectedValues
|
|
11553
|
-
}) {
|
|
11554
|
-
const [buttonRef, popoverWidth] = usePopoverWidth();
|
|
11555
|
-
const onSelectHandler = (value) => {
|
|
11556
|
-
const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
|
|
11557
|
-
onChange(nextValues);
|
|
11558
|
-
};
|
|
11559
|
-
const onResetHandler = () => {
|
|
11560
|
-
onChange([]);
|
|
11561
|
-
};
|
|
11562
|
-
const isMobile = useIsMobile();
|
|
11563
|
-
return /* @__PURE__ */ jsxs(Popover, { children: [
|
|
11564
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
11565
|
-
Button,
|
|
11566
|
-
{
|
|
11567
|
-
ref: buttonRef,
|
|
11568
|
-
variant: "outline",
|
|
11569
|
-
size: "sm",
|
|
11570
|
-
className: "h-8 border-dashed",
|
|
11571
|
-
children: /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center justify-between", children: [
|
|
11572
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
11573
|
-
/* @__PURE__ */ jsx(PlusCircledIcon, { className: "mr-2 h-4 w-4" }),
|
|
11574
|
-
/* @__PURE__ */ jsx("span", { className: "hidden sm:inline", children: label }),
|
|
11575
|
-
/* @__PURE__ */ jsx("span", { className: "sm:hidden", children: label?.split(" ")[0] })
|
|
11576
|
-
] }),
|
|
11577
|
-
selectedValues?.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11578
|
-
/* @__PURE__ */ jsx(
|
|
11579
|
-
Separator,
|
|
11580
|
-
{
|
|
11581
|
-
orientation: "vertical",
|
|
11582
|
-
className: "hidden h-4 sm:mx-2 sm:block"
|
|
11583
|
-
}
|
|
11584
|
-
),
|
|
11585
|
-
/* @__PURE__ */ jsx("div", { className: "flex space-x-1", children: selectedValues.length > 2 ? /* @__PURE__ */ jsxs(
|
|
11586
|
-
Badge,
|
|
11587
|
-
{
|
|
11588
|
-
variant: "secondary",
|
|
11589
|
-
className: "rounded-sm px-1 font-normal",
|
|
11590
|
-
children: [
|
|
11591
|
-
selectedValues.length,
|
|
11592
|
-
" selected"
|
|
11593
|
-
]
|
|
11594
|
-
}
|
|
11595
|
-
) : options.filter((option) => selectedValues.includes(option.value)).map((option) => /* @__PURE__ */ jsx(
|
|
11596
|
-
Badge,
|
|
11597
|
-
{
|
|
11598
|
-
variant: "secondary",
|
|
11599
|
-
className: "rounded-sm px-1 font-normal",
|
|
11600
|
-
children: option.label
|
|
11601
|
-
},
|
|
11602
|
-
option.value
|
|
11603
|
-
)) })
|
|
11604
|
-
] })
|
|
11605
|
-
] })
|
|
11606
|
-
}
|
|
11607
|
-
) }),
|
|
11608
|
-
/* @__PURE__ */ jsx(
|
|
11609
|
-
PopoverContent,
|
|
11610
|
-
{
|
|
11611
|
-
className: "w-auto p-0 sm:w-full",
|
|
11612
|
-
align: "start",
|
|
11613
|
-
style: isMobile ? { width: popoverWidth ? `${popoverWidth}px` : "auto" } : void 0,
|
|
11614
|
-
children: /* @__PURE__ */ jsxs(Command, { children: [
|
|
11615
|
-
/* @__PURE__ */ jsx(CommandInput, { placeholder: label }),
|
|
11616
|
-
/* @__PURE__ */ jsxs(CommandList, { children: [
|
|
11617
|
-
/* @__PURE__ */ jsx(CommandEmpty, { children: "No results found." }),
|
|
11618
|
-
/* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => {
|
|
11619
|
-
const isSelected = selectedValues.includes(option.value);
|
|
11620
|
-
return /* @__PURE__ */ jsxs(
|
|
11621
|
-
CommandItem,
|
|
11622
|
-
{
|
|
11623
|
-
onSelect: () => onSelectHandler(option.value),
|
|
11624
|
-
children: [
|
|
11625
|
-
/* @__PURE__ */ jsx(
|
|
11626
|
-
"div",
|
|
11627
|
-
{
|
|
11628
|
-
className: cn(
|
|
11629
|
-
"mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",
|
|
11630
|
-
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
11631
|
-
),
|
|
11632
|
-
children: /* @__PURE__ */ jsx(CheckIcon, { className: cn("h-4 w-4") })
|
|
11633
|
-
}
|
|
11634
|
-
),
|
|
11635
|
-
/* @__PURE__ */ jsx("span", { children: option.label })
|
|
11636
|
-
]
|
|
11637
|
-
},
|
|
11638
|
-
option.value
|
|
11639
|
-
);
|
|
11640
|
-
}) }),
|
|
11641
|
-
selectedValues.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11642
|
-
/* @__PURE__ */ jsx(CommandSeparator, {}),
|
|
11643
|
-
/* @__PURE__ */ jsx(CommandGroup, { children: /* @__PURE__ */ jsx(
|
|
11644
|
-
CommandItem,
|
|
11645
|
-
{
|
|
11646
|
-
onSelect: () => onResetHandler(),
|
|
11647
|
-
className: "justify-center text-center",
|
|
11648
|
-
children: "Clear"
|
|
11649
|
-
}
|
|
11650
|
-
) })
|
|
11651
|
-
] })
|
|
11652
|
-
] })
|
|
11653
|
-
] })
|
|
11654
|
-
}
|
|
11655
|
-
)
|
|
11656
|
-
] });
|
|
11657
|
-
}
|
|
11658
12175
|
var ClearButton = ({ onClear }) => {
|
|
11659
12176
|
return /* @__PURE__ */ jsx("div", { className: "p-1", children: /* @__PURE__ */ jsx(
|
|
11660
12177
|
Button,
|
|
@@ -11763,82 +12280,6 @@ function Radio({ label, options, onChange, value }) {
|
|
|
11763
12280
|
)
|
|
11764
12281
|
] });
|
|
11765
12282
|
}
|
|
11766
|
-
var ResetButton = ({ onClick }) => {
|
|
11767
|
-
return /* @__PURE__ */ jsxs(
|
|
11768
|
-
Button,
|
|
11769
|
-
{
|
|
11770
|
-
type: "button",
|
|
11771
|
-
variant: "outline",
|
|
11772
|
-
onClick,
|
|
11773
|
-
className: "h-8 px-2 lg:px-3",
|
|
11774
|
-
children: [
|
|
11775
|
-
"Reset",
|
|
11776
|
-
/* @__PURE__ */ jsx(X, { className: "ml-2 h-4 w-4" })
|
|
11777
|
-
]
|
|
11778
|
-
}
|
|
11779
|
-
);
|
|
11780
|
-
};
|
|
11781
|
-
var SearchInput = ({
|
|
11782
|
-
onChange,
|
|
11783
|
-
placeholder = "Search...",
|
|
11784
|
-
value,
|
|
11785
|
-
className = ""
|
|
11786
|
-
}) => {
|
|
11787
|
-
const [state, setState] = useState(value);
|
|
11788
|
-
const inputRef = useRef(null);
|
|
11789
|
-
useEffect(() => {
|
|
11790
|
-
setState(value);
|
|
11791
|
-
}, [value]);
|
|
11792
|
-
const debounced = useRef(
|
|
11793
|
-
debounce((val) => {
|
|
11794
|
-
onChange(val);
|
|
11795
|
-
}, 300)
|
|
11796
|
-
).current;
|
|
11797
|
-
useEffect(() => {
|
|
11798
|
-
return () => {
|
|
11799
|
-
debounced.cancel();
|
|
11800
|
-
};
|
|
11801
|
-
}, [debounced]);
|
|
11802
|
-
const handleChange = (event) => {
|
|
11803
|
-
event.stopPropagation();
|
|
11804
|
-
setState(event.target.value);
|
|
11805
|
-
debounced(event.target.value);
|
|
11806
|
-
};
|
|
11807
|
-
const handleClear = (e) => {
|
|
11808
|
-
e.stopPropagation();
|
|
11809
|
-
setState("");
|
|
11810
|
-
onChange("");
|
|
11811
|
-
};
|
|
11812
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center rounded-sm border px-2", children: [
|
|
11813
|
-
/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 text-muted-foreground" }),
|
|
11814
|
-
/* @__PURE__ */ jsx(
|
|
11815
|
-
Input,
|
|
11816
|
-
{
|
|
11817
|
-
ref: inputRef,
|
|
11818
|
-
placeholder,
|
|
11819
|
-
value: state,
|
|
11820
|
-
onChange: handleChange,
|
|
11821
|
-
className: cn(
|
|
11822
|
-
"h-8 w-52 border-none p-0 focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
11823
|
-
className
|
|
11824
|
-
)
|
|
11825
|
-
}
|
|
11826
|
-
),
|
|
11827
|
-
/* @__PURE__ */ jsx(
|
|
11828
|
-
Button,
|
|
11829
|
-
{
|
|
11830
|
-
variant: "ghost",
|
|
11831
|
-
size: "xs",
|
|
11832
|
-
className: cn(
|
|
11833
|
-
"h-full p-1 pr-0 hover:bg-transparent",
|
|
11834
|
-
!value && "invisible"
|
|
11835
|
-
),
|
|
11836
|
-
onClick: handleClear,
|
|
11837
|
-
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-muted-foreground" })
|
|
11838
|
-
}
|
|
11839
|
-
)
|
|
11840
|
-
] });
|
|
11841
|
-
};
|
|
11842
12283
|
var sortQueryParsers = (initialValues) => ({
|
|
11843
12284
|
sortProperty: parseAsString.withDefault(initialValues.property),
|
|
11844
12285
|
isDescending: parseAsBoolean.withDefault(initialValues.isDescending)
|
|
@@ -12396,6 +12837,6 @@ var TablePagination2 = React8.forwardRef(
|
|
|
12396
12837
|
);
|
|
12397
12838
|
TablePagination2.displayName = "TablePagination";
|
|
12398
12839
|
|
|
12399
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppSwitcher, ArchiveProject, AspectRatio, AuthLayout, Avatar, AvatarFallback, AvatarImage, BackToConsoleNavigator, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CallbackPage, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationModal, ConsoleHeader, ConsoleLayout, ConsolePage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyToClipboardButton, CopyableSnippet, DEFAULT_KANBAN_COLUMNS, DashboardHeader, DashboardLayout, DashboardOverview, DashboardRoute, DashboardSectionCard, DataTable, DataTableHeaderCell, DateRangePicker, DesktopMenuItem, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditProject, EditProjectDialog, EditProjectForm, EnvironmentCard, EnvironmentList, ErrorBoundary, ErrorDisplay, ErrorDisplayWithCard, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, FilterControls, FilterToolBarMobileView, FilterToolbar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, ImportFileModalContent, InfiniteScroll, InfiniteScroller, InfoTooltip, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, KanbanBoard, KanbanBoardColumn, KanbanBoardContainer, KanbanTaskCard, Label, LanguageSelector, LoadingButton, LoginPage, Logo, MaskedText, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileMenuItem, MultiSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Notification, OidcLayout, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverContent, PopoverTrigger, ProfilePage, Progress, ProjectActions, ProjectCardLoadingSkeleton, ProjectDetail, ProjectList, ProjectOverview, ProjectRepoList, PublicLayout, RadioGroup4 as RadioGroup, RadioGroupItem, RenderAlternatively, RenderConditionally, ResizableHandle, ResizablePanel, ResizablePanelGroup, RightSidePanel, RightSidePanelBody, RightSidePanelClose, RightSidePanelDescription, RightSidePanelFooter, RightSidePanelHeader, RightSidePanelProvider, RightSidePanelTitle, RightSidePanelTrigger, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectedEnvironment, SelectedProject, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarCollapsedTooltip, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuDesktop, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarMobileView, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableLoadingSkeleton, TablePagination2 as TablePagination, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitcher, Timeline, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserDropdownMenu, WizardHorizontalTrackBar, WizardStepContent, WizardStepIndicator, WizardStepViewport, WizardStepperProvider, WizardVerticalTrackBar, badgeVariants, buttonVariants, editProjectFormDefaultValues, editProjectFormSchema, filteredAppSwitcherData, hasDraggableData, kanbanKeyboardCoordinateGetter, navigationMenuTriggerStyle, paginationQueryParsers, sidebarCollapsedTooltipClass, sortQueryParsers, spinnerVariants, toggleVariants, useFileUpload, useFormField, useNotificationSocket, useOidcContext, usePaginationQueryParams, useRightSidePanel, useSortQueryParams, useWizardStepper };
|
|
12400
|
-
//# sourceMappingURL=chunk-
|
|
12401
|
-
//# sourceMappingURL=chunk-
|
|
12840
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppSwitcher, ArchiveProject, AspectRatio, AuthLayout, Avatar, AvatarFallback, AvatarImage, BackToConsoleNavigator, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CallbackPage, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationModal, ConsoleHeader, ConsoleLayout, ConsolePage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyToClipboardButton, CopyableSnippet, DEFAULT_KANBAN_COLUMNS, DashboardHeader, DashboardLayout, DashboardOverview, DashboardRoute, DashboardSectionCard, DataTable, DataTableHeaderCell, DateRangePicker, DesktopMenuItem, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditProject, EditProjectDialog, EditProjectForm, EnvironmentCard, EnvironmentList, ErrorBoundary, ErrorDisplay, ErrorDisplayWithCard, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, FilterControls, FilterToolBarMobileView, FilterToolbar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, ImportFileModalContent, InfiniteScroll, InfiniteScroller, InfoTooltip, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, KanbanBoard, KanbanBoardColumn, KanbanBoardContainer, KanbanTaskCard, Label, LanguageSelector, LoadingButton, LoginPage, Logo, MaskedText, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileMenuItem, MultiSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Notification, OidcLayout, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverContent, PopoverTrigger, ProfilePage, Progress, ProjectActions, ProjectCardLoadingSkeleton, ProjectDetail, ProjectList2 as ProjectList, ProjectListRowLoadingSkeleton, ProjectOverview, ProjectRepoList, PublicLayout, RadioGroup4 as RadioGroup, RadioGroupItem, RenderAlternatively, RenderConditionally, ResizableHandle, ResizablePanel, ResizablePanelGroup, RightSidePanel, RightSidePanelBody, RightSidePanelClose, RightSidePanelDescription, RightSidePanelFooter, RightSidePanelHeader, RightSidePanelProvider, RightSidePanelTitle, RightSidePanelTrigger, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectedEnvironment, SelectedProject, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarCollapsedTooltip, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuDesktop, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarMobileView, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableLoadingSkeleton, TablePagination2 as TablePagination, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitcher, Timeline, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserDropdownMenu, WizardHorizontalTrackBar, WizardStepContent, WizardStepIndicator, WizardStepViewport, WizardStepperProvider, WizardVerticalTrackBar, badgeVariants, buttonVariants, editProjectFormDefaultValues, editProjectFormSchema, filteredAppSwitcherData, hasDraggableData, kanbanKeyboardCoordinateGetter, navigationMenuTriggerStyle, paginationQueryParsers, sidebarCollapsedTooltipClass, sortQueryParsers, spinnerVariants, toggleVariants, useFileUpload, useFormField, useNotificationSocket, useOidcContext, usePaginationQueryParams, useRightSidePanel, useSortQueryParams, useWizardStepper };
|
|
12841
|
+
//# sourceMappingURL=chunk-ASLTNGXQ.js.map
|
|
12842
|
+
//# sourceMappingURL=chunk-ASLTNGXQ.js.map
|