@seliseblocks/genesis-os 4.3.1 → 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-X35MVDEU.js → chunk-ASLTNGXQ.js} +879 -382
- package/dist/chunk-ASLTNGXQ.js.map +1 -0
- package/dist/chunk-FQ2QETFA.cjs +4 -0
- package/dist/{chunk-OSAQRM46.cjs.map → chunk-FQ2QETFA.cjs.map} +1 -1
- package/dist/{chunk-6TMMJJRJ.cjs → chunk-GZSVB47D.cjs} +38 -2
- package/dist/{chunk-6TMMJJRJ.cjs.map → chunk-GZSVB47D.cjs.map} +1 -1
- package/dist/{chunk-LONMDMML.js → chunk-QMVZVNIZ.js} +39 -4
- package/dist/chunk-QMVZVNIZ.js.map +1 -0
- package/dist/{chunk-V4GJPS3E.cjs → chunk-SG3SZ45K.cjs} +905 -407
- package/dist/chunk-SG3SZ45K.cjs.map +1 -0
- package/dist/chunk-T3FFMBIJ.js +3 -0
- package/dist/{chunk-OGSC2U3E.js.map → chunk-T3FFMBIJ.js.map} +1 -1
- package/dist/components/index.cjs +344 -340
- package/dist/components/index.d.cts +13 -2
- package/dist/components/index.d.ts +13 -2
- package/dist/components/index.js +3 -3
- package/dist/hooks/index.cjs +44 -40
- package/dist/hooks/index.d.cts +20 -1
- package/dist/hooks/index.d.ts +20 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +399 -391
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -3
- package/dist/layouts/index.cjs +10 -10
- package/dist/layouts/index.js +3 -3
- package/dist/models/index.cjs +1 -1
- package/dist/models/index.d.cts +10 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +1 -1
- package/dist/pages/index.cjs +8 -8
- package/dist/pages/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-LONMDMML.js.map +0 -1
- package/dist/chunk-OGSC2U3E.js +0 -3
- package/dist/chunk-OSAQRM46.cjs +0 -4
- package/dist/chunk-V4GJPS3E.cjs.map +0 -1
- package/dist/chunk-X35MVDEU.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, useInitiateRedirect, useIcon, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, usePrefetchRedirect } from './chunk-
|
|
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
|
|
@@ -7778,7 +7828,13 @@ var LoginHeader = ({
|
|
|
7778
7828
|
children: "GitHub"
|
|
7779
7829
|
}
|
|
7780
7830
|
),
|
|
7781
|
-
/* @__PURE__ */ jsx(
|
|
7831
|
+
/* @__PURE__ */ jsx(
|
|
7832
|
+
ThemeSwitcher,
|
|
7833
|
+
{
|
|
7834
|
+
className: "nav-link inline-flex items-center gap-1.5",
|
|
7835
|
+
showChevron: false
|
|
7836
|
+
}
|
|
7837
|
+
)
|
|
7782
7838
|
] })
|
|
7783
7839
|
] });
|
|
7784
7840
|
};
|
|
@@ -8101,6 +8157,24 @@ var blocksLoginStyles = `
|
|
|
8101
8157
|
.blocksLogin-page .cta-docs svg { transition: transform 0.25s var(--ease-out-expo); }
|
|
8102
8158
|
.blocksLogin-page .cta-docs:hover svg { transform: translateX(4px); }
|
|
8103
8159
|
|
|
8160
|
+
.blocksLogin-page .cta-signup {
|
|
8161
|
+
margin-top: 18px;
|
|
8162
|
+
font-size: 0.82rem;
|
|
8163
|
+
line-height: 1.5;
|
|
8164
|
+
color: var(--muted);
|
|
8165
|
+
opacity: 0;
|
|
8166
|
+
transform: translateY(12px);
|
|
8167
|
+
animation: blocksLogin-fadeUp 0.7s var(--ease-out-expo) 1.45s forwards;
|
|
8168
|
+
}
|
|
8169
|
+
.blocksLogin-page .cta-signup-link {
|
|
8170
|
+
display: inline-flex; align-items: center; gap: 6px;
|
|
8171
|
+
color: var(--accent2); text-decoration: none; font-weight: 600;
|
|
8172
|
+
transition: gap 0.25s var(--ease-out-expo), text-shadow 0.25s ease;
|
|
8173
|
+
}
|
|
8174
|
+
.blocksLogin-page .cta-signup-link:hover { gap: 10px; text-shadow: 0 0 10px var(--accent2-glow); }
|
|
8175
|
+
.blocksLogin-page .cta-signup-link svg { transition: transform 0.25s var(--ease-out-expo); }
|
|
8176
|
+
.blocksLogin-page .cta-signup-link:hover svg { transform: translateX(3px); }
|
|
8177
|
+
|
|
8104
8178
|
.blocksLogin-page .col-right {
|
|
8105
8179
|
display: flex; flex-direction: column; min-height: 0; overflow: hidden;
|
|
8106
8180
|
opacity: 0; transform: translateX(20px);
|
|
@@ -8259,6 +8333,7 @@ var blocksLoginStyles = `
|
|
|
8259
8333
|
.blocksLogin-page .features { gap: 8px; }
|
|
8260
8334
|
.blocksLogin-page .feature-pill { padding: 5px 10px; font-size: 0.58rem; }
|
|
8261
8335
|
.blocksLogin-page .cta-row { gap: 18px; }
|
|
8336
|
+
.blocksLogin-page .cta-signup { font-size: 0.78rem; }
|
|
8262
8337
|
}
|
|
8263
8338
|
|
|
8264
8339
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -8653,6 +8728,7 @@ var BlocksLoginPage = ({
|
|
|
8653
8728
|
loginLabel = "Log in to your account",
|
|
8654
8729
|
docsUrl = "https://docs.seliseblocks.com/",
|
|
8655
8730
|
footerLink = { label: "Visit Blocks", url: "https://seliseblocks.com" },
|
|
8731
|
+
signUpUrl,
|
|
8656
8732
|
carouselItems
|
|
8657
8733
|
}) => {
|
|
8658
8734
|
const canvasRef = useRef(null);
|
|
@@ -8825,6 +8901,25 @@ var BlocksLoginPage = ({
|
|
|
8825
8901
|
]
|
|
8826
8902
|
}
|
|
8827
8903
|
)
|
|
8904
|
+
] }),
|
|
8905
|
+
signUpUrl && /* @__PURE__ */ jsxs("p", { className: "cta-signup", children: [
|
|
8906
|
+
"Not a member?",
|
|
8907
|
+
" ",
|
|
8908
|
+
/* @__PURE__ */ jsxs("a", { href: signUpUrl, className: "cta-signup-link", children: [
|
|
8909
|
+
"Sign up",
|
|
8910
|
+
/* @__PURE__ */ jsx(
|
|
8911
|
+
"svg",
|
|
8912
|
+
{
|
|
8913
|
+
width: "11",
|
|
8914
|
+
height: "11",
|
|
8915
|
+
viewBox: "0 0 24 24",
|
|
8916
|
+
fill: "none",
|
|
8917
|
+
stroke: "currentColor",
|
|
8918
|
+
strokeWidth: "2.5",
|
|
8919
|
+
children: /* @__PURE__ */ jsx("path", { d: "M5 12h14M12 5l7 7-7 7" })
|
|
8920
|
+
}
|
|
8921
|
+
)
|
|
8922
|
+
] })
|
|
8828
8923
|
] })
|
|
8829
8924
|
] }),
|
|
8830
8925
|
/* @__PURE__ */ jsxs("div", { className: "col-right", children: [
|
|
@@ -8943,12 +9038,14 @@ var BlocksLoginPage = ({
|
|
|
8943
9038
|
var LoginPage = () => {
|
|
8944
9039
|
const config = useBlocksAppConfigStore((state) => state.getConfig());
|
|
8945
9040
|
const { start, isLoading } = useLogin();
|
|
9041
|
+
const { signUpUrl } = useSignUpAffordance();
|
|
8946
9042
|
return /* @__PURE__ */ jsx(
|
|
8947
9043
|
BlocksLoginPage,
|
|
8948
9044
|
{
|
|
8949
9045
|
name: config.name,
|
|
8950
9046
|
onLogin: start,
|
|
8951
9047
|
isLoading,
|
|
9048
|
+
signUpUrl,
|
|
8952
9049
|
carouselItems: BLOCKS_PRODUCTS
|
|
8953
9050
|
}
|
|
8954
9051
|
);
|
|
@@ -9142,52 +9239,141 @@ function useProjectOverviewRedirect({
|
|
|
9142
9239
|
isFetching
|
|
9143
9240
|
};
|
|
9144
9241
|
}
|
|
9145
|
-
var
|
|
9146
|
-
|
|
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 = ({
|
|
9147
9255
|
project,
|
|
9148
|
-
projects,
|
|
9149
9256
|
isShared,
|
|
9150
9257
|
canOpen = true
|
|
9151
9258
|
}) => {
|
|
9152
|
-
const
|
|
9153
|
-
const { setTenantGroup, setSelectedProject } = useProjectStore();
|
|
9259
|
+
const { setTenantGroup } = useProjectStore();
|
|
9154
9260
|
const { handleClick, isDisabled, isFetching } = useProjectOverviewRedirect({
|
|
9155
9261
|
tenantGroupId: project.tenantGroupId
|
|
9156
9262
|
});
|
|
9157
|
-
const
|
|
9263
|
+
const isActionDisabled = !canOpen || isDisabled || isFetching;
|
|
9264
|
+
const { accessibleLabel, tooltipLabel } = getActionLabels(canOpen, isShared);
|
|
9265
|
+
const onClick = () => {
|
|
9158
9266
|
setTenantGroup(project.tenantGroupId);
|
|
9159
9267
|
handleClick();
|
|
9160
9268
|
};
|
|
9161
|
-
|
|
9162
|
-
|
|
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();
|
|
9163
9301
|
try {
|
|
9164
|
-
setTenantGroup(
|
|
9165
|
-
setSelectedProject(
|
|
9166
|
-
navigate(`/app/${
|
|
9167
|
-
} catch (
|
|
9168
|
-
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);
|
|
9169
9307
|
}
|
|
9170
9308
|
};
|
|
9171
|
-
const
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
"
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
};
|
|
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
|
+
}
|
|
9188
9325
|
const hasOverflow = projects.length > INLINE_LIMIT;
|
|
9189
9326
|
const visibleProjects = hasOverflow ? projects.slice(0, INLINE_LIMIT) : projects;
|
|
9190
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
|
+
}) => {
|
|
9191
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: [
|
|
9192
9378
|
/* @__PURE__ */ jsxs("div", { className: "relative flex items-start justify-between gap-2", children: [
|
|
9193
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 }) }),
|
|
@@ -9207,151 +9393,640 @@ var ProjectCard = ({
|
|
|
9207
9393
|
]
|
|
9208
9394
|
}
|
|
9209
9395
|
),
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
Button,
|
|
9213
|
-
{
|
|
9214
|
-
size: "icon",
|
|
9215
|
-
"data-testid": "project-card-open-shared",
|
|
9216
|
-
variant: "ghost",
|
|
9217
|
-
className: "text-primary hover:bg-primary/10 h-8 w-8 shrink-0 transition-colors",
|
|
9218
|
-
disabled: isDisabled || isFetching,
|
|
9219
|
-
onClick: onConfigureClick,
|
|
9220
|
-
"aria-label": "Open shared project",
|
|
9221
|
-
children: /* @__PURE__ */ jsx(Settings2, { size: 16 })
|
|
9222
|
-
}
|
|
9223
|
-
) }),
|
|
9224
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: "Open Project" })
|
|
9225
|
-
] })
|
|
9226
|
-
] }),
|
|
9227
|
-
whenFalse: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
9228
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
9229
|
-
Button,
|
|
9396
|
+
/* @__PURE__ */ jsx(
|
|
9397
|
+
ProjectActionButton,
|
|
9230
9398
|
{
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9234
|
-
className: "text-primary hover:bg-primary/10 h-8 w-8 shrink-0 transition-colors",
|
|
9235
|
-
disabled: isDisabled || isFetching,
|
|
9236
|
-
onClick: onConfigureClick,
|
|
9237
|
-
children: /* @__PURE__ */ jsx(Settings2, { size: 16 })
|
|
9399
|
+
project,
|
|
9400
|
+
isShared: true,
|
|
9401
|
+
canOpen
|
|
9238
9402
|
}
|
|
9239
|
-
)
|
|
9240
|
-
|
|
9241
|
-
|
|
9403
|
+
)
|
|
9404
|
+
] }),
|
|
9405
|
+
whenFalse: /* @__PURE__ */ jsx(ProjectActionButton, { project, isShared: false })
|
|
9242
9406
|
}
|
|
9243
9407
|
) })
|
|
9244
9408
|
] }),
|
|
9245
|
-
/* @__PURE__ */ jsx("div", { className: "mt-auto", children:
|
|
9246
|
-
visibleProjects.map((p) => renderEnvChip(p)),
|
|
9247
|
-
hasOverflow && /* @__PURE__ */ jsxs(Popover, { children: [
|
|
9248
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
9249
|
-
"button",
|
|
9250
|
-
{
|
|
9251
|
-
onClick: (e) => e.stopPropagation(),
|
|
9252
|
-
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",
|
|
9253
|
-
children: [
|
|
9254
|
-
"+",
|
|
9255
|
-
overflowCount,
|
|
9256
|
-
" more"
|
|
9257
|
-
]
|
|
9258
|
-
}
|
|
9259
|
-
) }),
|
|
9260
|
-
/* @__PURE__ */ jsxs(
|
|
9261
|
-
PopoverContent,
|
|
9262
|
-
{
|
|
9263
|
-
className: "w-52 p-1.5",
|
|
9264
|
-
align: "start",
|
|
9265
|
-
onClick: (e) => e.stopPropagation(),
|
|
9266
|
-
children: [
|
|
9267
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground px-2 pb-1.5 pt-1 text-[10px] font-semibold uppercase tracking-wider", children: "All environments" }),
|
|
9268
|
-
projects.map((p) => {
|
|
9269
|
-
const opt = environmentOptions.find(
|
|
9270
|
-
(o) => o.value === p.environment
|
|
9271
|
-
);
|
|
9272
|
-
return /* @__PURE__ */ jsxs(
|
|
9273
|
-
"button",
|
|
9274
|
-
{
|
|
9275
|
-
onClick: (e) => onEnvBadgeClick(e, p),
|
|
9276
|
-
className: "group/item hover:bg-accent flex w-full items-center justify-between rounded-md px-2 py-1.5 text-sm transition-colors",
|
|
9277
|
-
children: [
|
|
9278
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium", children: opt?.label ?? p.environment }),
|
|
9279
|
-
/* @__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" })
|
|
9280
|
-
]
|
|
9281
|
-
},
|
|
9282
|
-
p.environment
|
|
9283
|
-
);
|
|
9284
|
-
})
|
|
9285
|
-
]
|
|
9286
|
-
}
|
|
9287
|
-
)
|
|
9288
|
-
] })
|
|
9289
|
-
] }) })
|
|
9409
|
+
/* @__PURE__ */ jsx("div", { className: "mt-auto", children: /* @__PURE__ */ jsx(ProjectEnvironments, { projects }) })
|
|
9290
9410
|
] });
|
|
9291
9411
|
};
|
|
9292
|
-
var
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
opacity: 1,
|
|
9296
|
-
y: 0,
|
|
9297
|
-
scale: 1,
|
|
9298
|
-
transition: {
|
|
9299
|
-
delay: i * 0.06,
|
|
9300
|
-
duration: 0.4,
|
|
9301
|
-
ease: [0.22, 1, 0.36, 1]
|
|
9302
|
-
}
|
|
9303
|
-
})
|
|
9412
|
+
var getLastUpdatedLabel = (group) => {
|
|
9413
|
+
const timestamp = getLatestProjectUpdate(group);
|
|
9414
|
+
return timestamp === 0 ? "Unknown" : formatDistanceToNow(timestamp, { addSuffix: true });
|
|
9304
9415
|
};
|
|
9305
|
-
var
|
|
9306
|
-
|
|
9307
|
-
return
|
|
9308
|
-
|
|
9416
|
+
var getLastUpdatedCellLabel = (group) => {
|
|
9417
|
+
const timestamp = getLatestProjectUpdate(group);
|
|
9418
|
+
return timestamp === 0 ? "Not updated yet" : `Updated ${formatDistanceToNow(timestamp, { addSuffix: true })}`;
|
|
9419
|
+
};
|
|
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
|
+
}
|
|
9431
|
+
};
|
|
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
|
+
}
|
|
9309
9470
|
) });
|
|
9310
9471
|
};
|
|
9311
|
-
var
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
/* @__PURE__ */ jsxs(
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
|
|
9324
|
-
|
|
9325
|
-
|
|
9326
|
-
|
|
9327
|
-
|
|
9328
|
-
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
|
|
9335
|
-
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
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,
|
|
9345
9535
|
{
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
|
|
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,
|
|
9349
9977
|
canOpen: canOpenProject(project)
|
|
9350
9978
|
}
|
|
9351
9979
|
)
|
|
9352
9980
|
},
|
|
9353
9981
|
project.tenantGroupId
|
|
9354
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
|
+
)
|
|
9355
10030
|
] })
|
|
9356
10031
|
] });
|
|
9357
10032
|
};
|
|
@@ -9781,7 +10456,7 @@ var wildcardToRegex2 = (pattern) => {
|
|
|
9781
10456
|
const escaped = pattern.replace(/[-/\\^$+?.()|[\]{}]/g, "\\$&");
|
|
9782
10457
|
return `^${escaped.replace(/\*/g, "[^/]+")}$`;
|
|
9783
10458
|
};
|
|
9784
|
-
function
|
|
10459
|
+
function ProjectList2({
|
|
9785
10460
|
redirectPaths,
|
|
9786
10461
|
collapsed = false
|
|
9787
10462
|
}) {
|
|
@@ -10333,8 +11008,8 @@ function EditProject() {
|
|
|
10333
11008
|
] });
|
|
10334
11009
|
}
|
|
10335
11010
|
var ProjectCardLoadingSkeleton = () => {
|
|
10336
|
-
return /* @__PURE__ */ jsxs(Card, { className: "border-border/60 flex h-
|
|
10337
|
-
/* @__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: [
|
|
10338
11013
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
10339
11014
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4/5" }),
|
|
10340
11015
|
/* @__PURE__ */ jsx(Skeleton, { className: "mt-1.5 h-4 w-3/5" })
|
|
@@ -10347,6 +11022,14 @@ var ProjectCardLoadingSkeleton = () => {
|
|
|
10347
11022
|
] })
|
|
10348
11023
|
] });
|
|
10349
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
|
+
};
|
|
10350
11033
|
function SidebarMobileView({
|
|
10351
11034
|
redirectPaths,
|
|
10352
11035
|
navigationMenus
|
|
@@ -10384,7 +11067,7 @@ function SidebarMobileView({
|
|
|
10384
11067
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
10385
11068
|
/* @__PURE__ */ jsxs("div", { className: "mt-3 flex w-full flex-col items-start px-6", children: [
|
|
10386
11069
|
/* @__PURE__ */ jsx("div", { className: "ml-1 text-sm text-low-emphasis", children: "Project" }),
|
|
10387
|
-
/* @__PURE__ */ jsx(
|
|
11070
|
+
/* @__PURE__ */ jsx(ProjectList2, { redirectPaths })
|
|
10388
11071
|
] }),
|
|
10389
11072
|
/* @__PURE__ */ jsxs("div", { className: "my-3 flex w-full flex-col items-start px-6", children: [
|
|
10390
11073
|
/* @__PURE__ */ jsx("div", { className: "ml-1 text-sm text-low-emphasis", children: "Environment" }),
|
|
@@ -10452,11 +11135,11 @@ function SidebarMenuDesktop({
|
|
|
10452
11135
|
isSidebarOpen ? /* @__PURE__ */ jsxs("div", { className: "border-b px-2 pb-2 pt-2", children: [
|
|
10453
11136
|
/* @__PURE__ */ jsx("p", { className: "mb-1 px-2 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground", children: "Workspace" }),
|
|
10454
11137
|
/* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
|
|
10455
|
-
/* @__PURE__ */ jsx(
|
|
11138
|
+
/* @__PURE__ */ jsx(ProjectList2, { redirectPaths }),
|
|
10456
11139
|
/* @__PURE__ */ jsx(RenderConditionally, { condition: !isProjectOverviewRoute, children: /* @__PURE__ */ jsx(EnvironmentList, { redirectPaths }) })
|
|
10457
11140
|
] })
|
|
10458
11141
|
] }) : /* @__PURE__ */ jsxs("div", { className: "border-b py-1", children: [
|
|
10459
|
-
/* @__PURE__ */ jsx(
|
|
11142
|
+
/* @__PURE__ */ jsx(ProjectList2, { redirectPaths, collapsed: true }),
|
|
10460
11143
|
/* @__PURE__ */ jsx(RenderConditionally, { condition: !isProjectOverviewRoute, children: /* @__PURE__ */ jsx(EnvironmentList, { redirectPaths, collapsed: true }) })
|
|
10461
11144
|
] }),
|
|
10462
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)) }) })
|
|
@@ -11489,116 +12172,6 @@ var DropdownSearchInput = ({
|
|
|
11489
12172
|
)
|
|
11490
12173
|
] });
|
|
11491
12174
|
};
|
|
11492
|
-
function MultiSelect2({
|
|
11493
|
-
label,
|
|
11494
|
-
options,
|
|
11495
|
-
onChange,
|
|
11496
|
-
value: selectedValues
|
|
11497
|
-
}) {
|
|
11498
|
-
const [buttonRef, popoverWidth] = usePopoverWidth();
|
|
11499
|
-
const onSelectHandler = (value) => {
|
|
11500
|
-
const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
|
|
11501
|
-
onChange(nextValues);
|
|
11502
|
-
};
|
|
11503
|
-
const onResetHandler = () => {
|
|
11504
|
-
onChange([]);
|
|
11505
|
-
};
|
|
11506
|
-
const isMobile = useIsMobile();
|
|
11507
|
-
return /* @__PURE__ */ jsxs(Popover, { children: [
|
|
11508
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
11509
|
-
Button,
|
|
11510
|
-
{
|
|
11511
|
-
ref: buttonRef,
|
|
11512
|
-
variant: "outline",
|
|
11513
|
-
size: "sm",
|
|
11514
|
-
className: "h-8 border-dashed",
|
|
11515
|
-
children: /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center justify-between", children: [
|
|
11516
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
11517
|
-
/* @__PURE__ */ jsx(PlusCircledIcon, { className: "mr-2 h-4 w-4" }),
|
|
11518
|
-
/* @__PURE__ */ jsx("span", { className: "hidden sm:inline", children: label }),
|
|
11519
|
-
/* @__PURE__ */ jsx("span", { className: "sm:hidden", children: label?.split(" ")[0] })
|
|
11520
|
-
] }),
|
|
11521
|
-
selectedValues?.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11522
|
-
/* @__PURE__ */ jsx(
|
|
11523
|
-
Separator,
|
|
11524
|
-
{
|
|
11525
|
-
orientation: "vertical",
|
|
11526
|
-
className: "hidden h-4 sm:mx-2 sm:block"
|
|
11527
|
-
}
|
|
11528
|
-
),
|
|
11529
|
-
/* @__PURE__ */ jsx("div", { className: "flex space-x-1", children: selectedValues.length > 2 ? /* @__PURE__ */ jsxs(
|
|
11530
|
-
Badge,
|
|
11531
|
-
{
|
|
11532
|
-
variant: "secondary",
|
|
11533
|
-
className: "rounded-sm px-1 font-normal",
|
|
11534
|
-
children: [
|
|
11535
|
-
selectedValues.length,
|
|
11536
|
-
" selected"
|
|
11537
|
-
]
|
|
11538
|
-
}
|
|
11539
|
-
) : options.filter((option) => selectedValues.includes(option.value)).map((option) => /* @__PURE__ */ jsx(
|
|
11540
|
-
Badge,
|
|
11541
|
-
{
|
|
11542
|
-
variant: "secondary",
|
|
11543
|
-
className: "rounded-sm px-1 font-normal",
|
|
11544
|
-
children: option.label
|
|
11545
|
-
},
|
|
11546
|
-
option.value
|
|
11547
|
-
)) })
|
|
11548
|
-
] })
|
|
11549
|
-
] })
|
|
11550
|
-
}
|
|
11551
|
-
) }),
|
|
11552
|
-
/* @__PURE__ */ jsx(
|
|
11553
|
-
PopoverContent,
|
|
11554
|
-
{
|
|
11555
|
-
className: "w-auto p-0 sm:w-full",
|
|
11556
|
-
align: "start",
|
|
11557
|
-
style: isMobile ? { width: popoverWidth ? `${popoverWidth}px` : "auto" } : void 0,
|
|
11558
|
-
children: /* @__PURE__ */ jsxs(Command, { children: [
|
|
11559
|
-
/* @__PURE__ */ jsx(CommandInput, { placeholder: label }),
|
|
11560
|
-
/* @__PURE__ */ jsxs(CommandList, { children: [
|
|
11561
|
-
/* @__PURE__ */ jsx(CommandEmpty, { children: "No results found." }),
|
|
11562
|
-
/* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => {
|
|
11563
|
-
const isSelected = selectedValues.includes(option.value);
|
|
11564
|
-
return /* @__PURE__ */ jsxs(
|
|
11565
|
-
CommandItem,
|
|
11566
|
-
{
|
|
11567
|
-
onSelect: () => onSelectHandler(option.value),
|
|
11568
|
-
children: [
|
|
11569
|
-
/* @__PURE__ */ jsx(
|
|
11570
|
-
"div",
|
|
11571
|
-
{
|
|
11572
|
-
className: cn(
|
|
11573
|
-
"mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",
|
|
11574
|
-
isSelected ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
11575
|
-
),
|
|
11576
|
-
children: /* @__PURE__ */ jsx(CheckIcon, { className: cn("h-4 w-4") })
|
|
11577
|
-
}
|
|
11578
|
-
),
|
|
11579
|
-
/* @__PURE__ */ jsx("span", { children: option.label })
|
|
11580
|
-
]
|
|
11581
|
-
},
|
|
11582
|
-
option.value
|
|
11583
|
-
);
|
|
11584
|
-
}) }),
|
|
11585
|
-
selectedValues.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11586
|
-
/* @__PURE__ */ jsx(CommandSeparator, {}),
|
|
11587
|
-
/* @__PURE__ */ jsx(CommandGroup, { children: /* @__PURE__ */ jsx(
|
|
11588
|
-
CommandItem,
|
|
11589
|
-
{
|
|
11590
|
-
onSelect: () => onResetHandler(),
|
|
11591
|
-
className: "justify-center text-center",
|
|
11592
|
-
children: "Clear"
|
|
11593
|
-
}
|
|
11594
|
-
) })
|
|
11595
|
-
] })
|
|
11596
|
-
] })
|
|
11597
|
-
] })
|
|
11598
|
-
}
|
|
11599
|
-
)
|
|
11600
|
-
] });
|
|
11601
|
-
}
|
|
11602
12175
|
var ClearButton = ({ onClear }) => {
|
|
11603
12176
|
return /* @__PURE__ */ jsx("div", { className: "p-1", children: /* @__PURE__ */ jsx(
|
|
11604
12177
|
Button,
|
|
@@ -11707,82 +12280,6 @@ function Radio({ label, options, onChange, value }) {
|
|
|
11707
12280
|
)
|
|
11708
12281
|
] });
|
|
11709
12282
|
}
|
|
11710
|
-
var ResetButton = ({ onClick }) => {
|
|
11711
|
-
return /* @__PURE__ */ jsxs(
|
|
11712
|
-
Button,
|
|
11713
|
-
{
|
|
11714
|
-
type: "button",
|
|
11715
|
-
variant: "outline",
|
|
11716
|
-
onClick,
|
|
11717
|
-
className: "h-8 px-2 lg:px-3",
|
|
11718
|
-
children: [
|
|
11719
|
-
"Reset",
|
|
11720
|
-
/* @__PURE__ */ jsx(X, { className: "ml-2 h-4 w-4" })
|
|
11721
|
-
]
|
|
11722
|
-
}
|
|
11723
|
-
);
|
|
11724
|
-
};
|
|
11725
|
-
var SearchInput = ({
|
|
11726
|
-
onChange,
|
|
11727
|
-
placeholder = "Search...",
|
|
11728
|
-
value,
|
|
11729
|
-
className = ""
|
|
11730
|
-
}) => {
|
|
11731
|
-
const [state, setState] = useState(value);
|
|
11732
|
-
const inputRef = useRef(null);
|
|
11733
|
-
useEffect(() => {
|
|
11734
|
-
setState(value);
|
|
11735
|
-
}, [value]);
|
|
11736
|
-
const debounced = useRef(
|
|
11737
|
-
debounce((val) => {
|
|
11738
|
-
onChange(val);
|
|
11739
|
-
}, 300)
|
|
11740
|
-
).current;
|
|
11741
|
-
useEffect(() => {
|
|
11742
|
-
return () => {
|
|
11743
|
-
debounced.cancel();
|
|
11744
|
-
};
|
|
11745
|
-
}, [debounced]);
|
|
11746
|
-
const handleChange = (event) => {
|
|
11747
|
-
event.stopPropagation();
|
|
11748
|
-
setState(event.target.value);
|
|
11749
|
-
debounced(event.target.value);
|
|
11750
|
-
};
|
|
11751
|
-
const handleClear = (e) => {
|
|
11752
|
-
e.stopPropagation();
|
|
11753
|
-
setState("");
|
|
11754
|
-
onChange("");
|
|
11755
|
-
};
|
|
11756
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center rounded-sm border px-2", children: [
|
|
11757
|
-
/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 text-muted-foreground" }),
|
|
11758
|
-
/* @__PURE__ */ jsx(
|
|
11759
|
-
Input,
|
|
11760
|
-
{
|
|
11761
|
-
ref: inputRef,
|
|
11762
|
-
placeholder,
|
|
11763
|
-
value: state,
|
|
11764
|
-
onChange: handleChange,
|
|
11765
|
-
className: cn(
|
|
11766
|
-
"h-8 w-52 border-none p-0 focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
11767
|
-
className
|
|
11768
|
-
)
|
|
11769
|
-
}
|
|
11770
|
-
),
|
|
11771
|
-
/* @__PURE__ */ jsx(
|
|
11772
|
-
Button,
|
|
11773
|
-
{
|
|
11774
|
-
variant: "ghost",
|
|
11775
|
-
size: "xs",
|
|
11776
|
-
className: cn(
|
|
11777
|
-
"h-full p-1 pr-0 hover:bg-transparent",
|
|
11778
|
-
!value && "invisible"
|
|
11779
|
-
),
|
|
11780
|
-
onClick: handleClear,
|
|
11781
|
-
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-muted-foreground" })
|
|
11782
|
-
}
|
|
11783
|
-
)
|
|
11784
|
-
] });
|
|
11785
|
-
};
|
|
11786
12283
|
var sortQueryParsers = (initialValues) => ({
|
|
11787
12284
|
sortProperty: parseAsString.withDefault(initialValues.property),
|
|
11788
12285
|
isDescending: parseAsBoolean.withDefault(initialValues.isDescending)
|
|
@@ -12340,6 +12837,6 @@ var TablePagination2 = React8.forwardRef(
|
|
|
12340
12837
|
);
|
|
12341
12838
|
TablePagination2.displayName = "TablePagination";
|
|
12342
12839
|
|
|
12343
|
-
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 };
|
|
12344
|
-
//# sourceMappingURL=chunk-
|
|
12345
|
-
//# 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
|