@elevasis/ui 2.31.0 → 2.33.0
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/{CoreAuthKitInner-KSEGSB67.js → CoreAuthKitInner-QC62UHTZ.js} +1 -1
- package/dist/api/index.js +3 -3
- package/dist/app/index.css +38 -0
- package/dist/app/index.d.ts +69 -9
- package/dist/app/index.js +7 -6
- package/dist/auth/context.js +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/charts/index.js +5 -6
- package/dist/{chunk-JKSUN5GN.js → chunk-2GMF5IRF.js} +81 -746
- package/dist/{chunk-XQHZBA65.js → chunk-2RJMVWFJ.js} +1 -6
- package/dist/{chunk-CW3UNAF2.js → chunk-4DYOXEH6.js} +410 -5
- package/dist/{chunk-HQGF4ATG.js → chunk-52NLZN6Z.js} +118 -141
- package/dist/chunk-AHCKOU2M.js +13 -0
- package/dist/chunk-CLDCYJQT.js +1 -0
- package/dist/chunk-DWXDNT7P.js +145 -0
- package/dist/chunk-E4T2N7P7.js +124 -0
- package/dist/{chunk-HYNYEBHM.js → chunk-E7C4XEWH.js} +3 -3
- package/dist/{chunk-L3BVJWML.js → chunk-EPTHX4VZ.js} +1 -1
- package/dist/{chunk-QDEETKYT.js → chunk-FFPHJBJC.js} +9 -9
- package/dist/chunk-GNRMB6DC.js +5126 -0
- package/dist/{chunk-DZTG5IAC.js → chunk-I2KLQ2HA.js} +1 -7
- package/dist/{chunk-Q6OYNEGR.js → chunk-IUKFNASA.js} +5 -6
- package/dist/{chunk-QHEWXU7I.js → chunk-JFL3GRD4.js} +1 -1
- package/dist/{chunk-T3IPHEYJ.js → chunk-JHT5JIJ3.js} +4410 -566
- package/dist/{chunk-L2NVFLXU.js → chunk-MHLZ4F4N.js} +4 -4
- package/dist/{chunk-XQQEKWTL.js → chunk-N55DVMAG.js} +6 -2
- package/dist/{chunk-TOIXUWR6.js → chunk-ND5TDV2J.js} +1 -1
- package/dist/{chunk-5LJAEZMA.js → chunk-NOIRGGW2.js} +5 -6
- package/dist/{chunk-7KC4P3AU.js → chunk-QNOVUCSV.js} +2 -12
- package/dist/{chunk-3BAPR3KA.js → chunk-RQA2EVN3.js} +5 -15
- package/dist/{chunk-ND42LPY4.js → chunk-TKF5S4XP.js} +6 -6
- package/dist/{chunk-DWK2QIAK.js → chunk-TYRUKGGD.js} +1 -1
- package/dist/{chunk-Y4FWCG7Y.js → chunk-UVFOURXR.js} +8 -7
- package/dist/chunk-UW7IV2Y3.js +447 -0
- package/dist/{chunk-P55BJZZW.js → chunk-V6SZ4ECN.js} +20 -5
- package/dist/{chunk-6YT4IKJ7.js → chunk-VNAZTCHA.js} +15 -0
- package/dist/chunk-XG57WXOL.js +85 -0
- package/dist/{chunk-SHQXMW4F.js → chunk-XOFSMJLF.js} +46 -28
- package/dist/{chunk-7HMCB26R.js → chunk-XZGSCABI.js} +1 -1
- package/dist/chunk-YAQ25UNM.js +2126 -0
- package/dist/chunk-ZGTDKH3P.js +467 -0
- package/dist/components/chat/index.js +1 -1
- package/dist/components/index.css +38 -0
- package/dist/components/index.d.ts +262 -51
- package/dist/components/index.js +37 -39
- package/dist/components/navigation/index.css +38 -0
- package/dist/components/navigation/index.js +5 -3
- package/dist/execution/index.d.ts +11 -2
- package/dist/execution/index.js +1 -1
- package/dist/features/auth/index.css +38 -0
- package/dist/features/auth/index.d.ts +91 -14
- package/dist/features/auth/index.js +42 -10
- package/dist/features/clients/index.css +38 -0
- package/dist/features/clients/index.d.ts +1 -1
- package/dist/features/clients/index.js +17 -15
- package/dist/features/crm/index.css +38 -0
- package/dist/features/crm/index.d.ts +80 -18
- package/dist/features/crm/index.js +17 -15
- package/dist/features/dashboard/index.css +38 -0
- package/dist/features/dashboard/index.d.ts +174 -25
- package/dist/features/dashboard/index.js +17 -16
- package/dist/features/delivery/index.css +38 -0
- package/dist/features/delivery/index.d.ts +80 -18
- package/dist/features/delivery/index.js +16 -15
- package/dist/features/knowledge/index.css +38 -0
- package/dist/features/knowledge/index.d.ts +20 -18
- package/dist/features/knowledge/index.js +114 -609
- package/dist/features/lead-gen/index.css +38 -0
- package/dist/features/lead-gen/index.d.ts +45 -43
- package/dist/features/lead-gen/index.js +17 -16
- package/dist/features/monitoring/index.css +38 -0
- package/dist/features/monitoring/index.d.ts +20 -18
- package/dist/features/monitoring/index.js +18 -17
- package/dist/features/monitoring/requests/index.css +38 -0
- package/dist/features/monitoring/requests/index.d.ts +23 -21
- package/dist/features/monitoring/requests/index.js +16 -14
- package/dist/features/operations/index.css +38 -0
- package/dist/features/operations/index.d.ts +1299 -66
- package/dist/features/operations/index.js +22 -24
- package/dist/features/seo/index.d.ts +20 -18
- package/dist/features/seo/index.js +2 -2
- package/dist/features/settings/index.css +38 -0
- package/dist/features/settings/index.d.ts +80 -18
- package/dist/features/settings/index.js +17 -15
- package/dist/graph/index.js +1 -1
- package/dist/hooks/delivery/index.css +38 -0
- package/dist/hooks/delivery/index.d.ts +60 -0
- package/dist/hooks/delivery/index.js +3 -3
- package/dist/hooks/index.css +38 -0
- package/dist/hooks/index.d.ts +492 -89
- package/dist/hooks/index.js +15 -13
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +332 -33
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -1
- package/dist/hooks/published.css +38 -0
- package/dist/hooks/published.d.ts +492 -89
- package/dist/hooks/published.js +15 -13
- package/dist/index.css +38 -0
- package/dist/index.d.ts +1353 -1349
- package/dist/index.js +16 -14
- package/dist/initialization/index.d.ts +60 -0
- package/dist/initialization/index.js +1 -1
- package/dist/knowledge/index.d.ts +1217 -1292
- package/dist/knowledge/index.js +6538 -2198
- package/dist/knowledge-search-index-P7PR626V.js +1514 -0
- package/dist/layout/index.js +3 -4
- package/dist/organization/index.css +38 -0
- package/dist/organization/index.js +1 -1
- package/dist/profile/index.d.ts +60 -0
- package/dist/profile/index.js +1 -1
- package/dist/provider/ElevasisServiceContext.js +1 -1
- package/dist/provider/index.css +38 -0
- package/dist/provider/index.d.ts +1068 -1246
- package/dist/provider/index.js +12 -10
- package/dist/provider/published.css +38 -0
- package/dist/provider/published.d.ts +1065 -1243
- package/dist/provider/published.js +9 -7
- package/dist/router/context.js +1 -1
- package/dist/router/index.js +1 -1
- package/dist/sse/index.js +1 -1
- package/dist/supabase/index.d.ts +117 -0
- package/dist/supabase/index.js +1 -1
- package/dist/test-utils/index.d.ts +16 -9
- package/dist/test-utils/index.js +40 -33
- package/dist/test-utils/setup-integration.js +1 -1
- package/dist/test-utils/setup.js +1 -1
- package/dist/theme/index.js +3 -3
- package/dist/theme/presets/index.js +1 -1
- package/dist/typeform/index.js +1 -1
- package/dist/typeform/schemas.js +1 -1
- package/dist/types/index.d.ts +394 -35
- package/dist/utils/index.d.ts +174 -25
- package/dist/utils/index.js +2 -2
- package/dist/vite/index.js +1 -1
- package/dist/vite-plugin-knowledge/index.js +1 -1
- package/dist/zustand/index.js +1 -1
- package/package.json +10 -9
- package/src/README.md +29 -29
- package/src/api/README.md +18 -18
- package/src/app/README.md +24 -24
- package/src/auth/README.md +18 -18
- package/src/components/README.md +24 -24
- package/src/execution/README.md +16 -16
- package/src/features/README.md +28 -28
- package/src/graph/README.md +16 -16
- package/src/hooks/README.md +23 -23
- package/src/initialization/README.md +19 -19
- package/src/knowledge/README.md +31 -31
- package/src/organization/README.md +18 -18
- package/src/profile/README.md +19 -19
- package/src/provider/README.md +32 -32
- package/src/router/README.md +18 -18
- package/src/sse/README.md +13 -13
- package/src/test-utils/README.md +7 -7
- package/src/theme/README.md +23 -23
- package/src/theme/presets/README.md +19 -19
- package/src/types/README.md +16 -16
- package/src/utils/README.md +18 -18
- package/src/zustand/README.md +18 -18
- package/dist/chunk-542WPQU2.js +0 -413
- package/dist/chunk-6IXOKUBC.js +0 -347
- package/dist/chunk-CQZ3DNQY.js +0 -740
- package/dist/chunk-ECNNI3NT.js +0 -6
- package/dist/chunk-GRDLB6LM.js +0 -160
- package/dist/chunk-JDNEWB5F.js +0 -10
- package/dist/chunk-MVFCLZSK.js +0 -4337
- package/dist/chunk-O2QOPJI5.js +0 -2235
- package/dist/chunk-OAVTMITG.js +0 -13
- package/dist/chunk-TVRQ6AQI.js +0 -476
- package/dist/chunk-WF227UBV.js +0 -48
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PROJECTS_VIEW_CAPABILITY_ID, PROJECTS_FEATURE_ID } from './chunk-ECNNI3NT.js';
|
|
2
1
|
import { SubshellNavItem } from './chunk-X4WBGKJQ.js';
|
|
3
2
|
import { SubshellSidebarSection } from './chunk-IIMU5YAJ.js';
|
|
4
3
|
import { milestoneStatusColors, formatStatusLabel, taskTypeColors, taskStatusColors, projectStatusColors, calculateProgress, noteTypeColors } from './chunk-R2XR4FCV.js';
|
|
@@ -6,12 +5,13 @@ import { PageContainer } from './chunk-BZZCNLT6.js';
|
|
|
6
5
|
import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
|
|
7
6
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
8
7
|
import { CustomModal } from './chunk-R66W5UDG.js';
|
|
9
|
-
import { useProjectRealtime, useTableSort, sortData, usePaginationState, useTableSelection, useProjectActivities } from './chunk-
|
|
10
|
-
import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote, showApiErrorNotification, projectKeys } from './chunk-
|
|
11
|
-
import { StatusBadge, EmptyState, PageTitleCaption, CenteredErrorState, StatCard, CardHeader } from './chunk-
|
|
8
|
+
import { useProjectRealtime, useTableSort, sortData, usePaginationState, useTableSelection, useProjectActivities } from './chunk-2GMF5IRF.js';
|
|
9
|
+
import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote, showApiErrorNotification, projectKeys } from './chunk-XZGSCABI.js';
|
|
10
|
+
import { StatusBadge, EmptyState, PageTitleCaption, CenteredErrorState, StatCard, CardHeader } from './chunk-EPTHX4VZ.js';
|
|
12
11
|
import { SubshellContentContainer } from './chunk-TKAYX2SP.js';
|
|
12
|
+
import { PROJECTS_VIEW_ACTION_ID } from './chunk-GNRMB6DC.js';
|
|
13
13
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
14
|
-
import { PAGE_SIZE_DEFAULT, formatTimeAgo, formatDate, formatRelativeTime } from './chunk-
|
|
14
|
+
import { PAGE_SIZE_DEFAULT, formatTimeAgo, formatDate, formatRelativeTime } from './chunk-2RJMVWFJ.js';
|
|
15
15
|
import { useElevasisServices } from './chunk-KJ3QUBNU.js';
|
|
16
16
|
import { useState, useMemo, useCallback } from 'react';
|
|
17
17
|
import { Stack, Text, Group, Checkbox, ActionIcon, TextInput, Button, Modal, Title, Textarea, Select, SimpleGrid, Card, ThemeIcon, RingProgress, Paper, Timeline, Badge, Collapse, Center, Loader, Table, Pagination, Alert, CopyButton, Tooltip, Space, Tabs, Divider, Anchor, Chip } from '@mantine/core';
|
|
@@ -498,10 +498,9 @@ var ProjectsSidebar = ({ children } = {}) => {
|
|
|
498
498
|
};
|
|
499
499
|
var deliveryManifest = {
|
|
500
500
|
key: "delivery",
|
|
501
|
-
|
|
502
|
-
capabilityIds: [
|
|
503
|
-
icon: IconBriefcase
|
|
504
|
-
sidebar: ProjectsSidebar
|
|
501
|
+
systemId: "projects",
|
|
502
|
+
capabilityIds: [PROJECTS_VIEW_ACTION_ID],
|
|
503
|
+
icon: IconBriefcase
|
|
505
504
|
};
|
|
506
505
|
function AllTasksPage() {
|
|
507
506
|
return /* @__PURE__ */ jsx(SubshellContentContainer, { children: /* @__PURE__ */ jsxs(PageContainer, { children: [
|
|
@@ -1049,14 +1048,6 @@ function renderMilestoneBullet(status) {
|
|
|
1049
1048
|
}
|
|
1050
1049
|
);
|
|
1051
1050
|
}
|
|
1052
|
-
function getMilestoneSurfaceStyles(status) {
|
|
1053
|
-
const normalizedStatus = status ?? "upcoming";
|
|
1054
|
-
const accent = normalizedStatus === "completed" ? "var(--color-primary)" : normalizedStatus === "in_progress" ? "color-mix(in srgb, var(--color-primary) 72%, white)" : "color-mix(in srgb, var(--color-primary) 36%, var(--color-border))";
|
|
1055
|
-
return {
|
|
1056
|
-
accent,
|
|
1057
|
-
background: "transparent"
|
|
1058
|
-
};
|
|
1059
|
-
}
|
|
1060
1051
|
function MilestoneChecklist({ milestone }) {
|
|
1061
1052
|
const items = parseChecklist2(milestone);
|
|
1062
1053
|
const { mutate: updateMilestone } = useUpdateMilestone();
|
|
@@ -1394,19 +1385,18 @@ function ProjectDetailPage({ projectId, onBack, backLabel = "Projects" }) {
|
|
|
1394
1385
|
const milestoneTasks = tasks.filter((task) => task.milestone_id === milestone.id);
|
|
1395
1386
|
const checklistItems = parseChecklist2(milestone);
|
|
1396
1387
|
const completedChecklistItems = checklistItems.filter((item) => item.completed).length;
|
|
1397
|
-
const { accent, background } = getMilestoneSurfaceStyles(milestone.status);
|
|
1398
1388
|
return /* @__PURE__ */ jsx(
|
|
1399
1389
|
Timeline.Item,
|
|
1400
1390
|
{
|
|
1401
1391
|
bullet: renderMilestoneBullet(milestone.status),
|
|
1402
1392
|
title: /* @__PURE__ */ jsx("div", {}),
|
|
1403
|
-
children: /* @__PURE__ */
|
|
1393
|
+
children: /* @__PURE__ */ jsx(
|
|
1404
1394
|
Paper,
|
|
1405
1395
|
{
|
|
1406
1396
|
p: "lg",
|
|
1407
1397
|
radius: "md",
|
|
1408
1398
|
style: {
|
|
1409
|
-
background,
|
|
1399
|
+
background: "transparent",
|
|
1410
1400
|
border: "none",
|
|
1411
1401
|
borderTop: "1px solid var(--color-border)",
|
|
1412
1402
|
borderRight: "1px solid var(--color-border)",
|
|
@@ -1415,138 +1405,125 @@ function ProjectDetailPage({ projectId, onBack, backLabel = "Projects" }) {
|
|
|
1415
1405
|
position: "relative",
|
|
1416
1406
|
overflow: "hidden"
|
|
1417
1407
|
},
|
|
1418
|
-
children: [
|
|
1419
|
-
/* @__PURE__ */
|
|
1420
|
-
|
|
1421
|
-
{
|
|
1422
|
-
style: {
|
|
1423
|
-
position: "absolute",
|
|
1424
|
-
inset: "0 auto 0 0",
|
|
1425
|
-
width: 3,
|
|
1426
|
-
background: `linear-gradient(180deg, ${accent} 0%, color-mix(in srgb, ${accent} 30%, transparent) 100%)`
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
),
|
|
1430
|
-
/* @__PURE__ */ jsxs(Stack, { gap: "md", children: [
|
|
1431
|
-
/* @__PURE__ */ jsxs(Group, { justify: "space-between", align: "flex-start", wrap: "wrap", children: [
|
|
1432
|
-
/* @__PURE__ */ jsxs(Stack, { gap: 6, style: { flex: 1, minWidth: 260 }, children: [
|
|
1433
|
-
/* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "wrap", children: [
|
|
1434
|
-
/* @__PURE__ */ jsx(Text, { fw: 700, size: "lg", c: "var(--color-text)", children: milestone.name }),
|
|
1435
|
-
/* @__PURE__ */ jsx(
|
|
1436
|
-
Badge,
|
|
1437
|
-
{
|
|
1438
|
-
variant: "light",
|
|
1439
|
-
color: milestoneStatusColors[milestone.status || ""] || "gray",
|
|
1440
|
-
size: "sm",
|
|
1441
|
-
styles: {
|
|
1442
|
-
root: {
|
|
1443
|
-
letterSpacing: "0.02em"
|
|
1444
|
-
}
|
|
1445
|
-
},
|
|
1446
|
-
children: formatStatusLabel(milestone.status || "unknown")
|
|
1447
|
-
}
|
|
1448
|
-
)
|
|
1449
|
-
] }),
|
|
1450
|
-
milestone.description && /* @__PURE__ */ jsx(Text, { size: "sm", c: "var(--color-text-dimmed)", maw: 900, children: milestone.description })
|
|
1451
|
-
] }),
|
|
1408
|
+
children: /* @__PURE__ */ jsxs(Stack, { gap: "md", children: [
|
|
1409
|
+
/* @__PURE__ */ jsxs(Group, { justify: "space-between", align: "flex-start", wrap: "wrap", children: [
|
|
1410
|
+
/* @__PURE__ */ jsxs(Stack, { gap: 6, style: { flex: 1, minWidth: 260 }, children: [
|
|
1452
1411
|
/* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "wrap", children: [
|
|
1453
|
-
|
|
1412
|
+
/* @__PURE__ */ jsx(Text, { fw: 700, size: "lg", c: "var(--color-text)", children: milestone.name }),
|
|
1413
|
+
/* @__PURE__ */ jsx(
|
|
1454
1414
|
Badge,
|
|
1455
1415
|
{
|
|
1456
|
-
variant: "
|
|
1457
|
-
|
|
1416
|
+
variant: "light",
|
|
1417
|
+
color: milestoneStatusColors[milestone.status || ""] || "gray",
|
|
1418
|
+
size: "sm",
|
|
1458
1419
|
styles: {
|
|
1459
1420
|
root: {
|
|
1460
|
-
|
|
1461
|
-
backgroundColor: "var(--surface-primary-faint)"
|
|
1421
|
+
letterSpacing: "0.02em"
|
|
1462
1422
|
}
|
|
1463
1423
|
},
|
|
1464
|
-
children:
|
|
1465
|
-
"Due ",
|
|
1466
|
-
formatDate(milestone.due_date)
|
|
1467
|
-
]
|
|
1468
|
-
}
|
|
1469
|
-
),
|
|
1470
|
-
/* @__PURE__ */ jsxs(
|
|
1471
|
-
Badge,
|
|
1472
|
-
{
|
|
1473
|
-
variant: "outline",
|
|
1474
|
-
size: "md",
|
|
1475
|
-
styles: {
|
|
1476
|
-
root: {
|
|
1477
|
-
borderColor: "var(--border-primary-soft)",
|
|
1478
|
-
backgroundColor: "var(--color-surface)"
|
|
1479
|
-
}
|
|
1480
|
-
},
|
|
1481
|
-
children: [
|
|
1482
|
-
completedChecklistItems,
|
|
1483
|
-
"/",
|
|
1484
|
-
checklistItems.length,
|
|
1485
|
-
" complete"
|
|
1486
|
-
]
|
|
1487
|
-
}
|
|
1488
|
-
),
|
|
1489
|
-
milestoneTasks.length > 0 && /* @__PURE__ */ jsxs(
|
|
1490
|
-
Badge,
|
|
1491
|
-
{
|
|
1492
|
-
variant: "outline",
|
|
1493
|
-
size: "md",
|
|
1494
|
-
styles: {
|
|
1495
|
-
root: {
|
|
1496
|
-
borderColor: "var(--border-primary-soft)",
|
|
1497
|
-
backgroundColor: "var(--color-surface)"
|
|
1498
|
-
}
|
|
1499
|
-
},
|
|
1500
|
-
children: [
|
|
1501
|
-
milestoneTasks.length,
|
|
1502
|
-
" tasks"
|
|
1503
|
-
]
|
|
1424
|
+
children: formatStatusLabel(milestone.status || "unknown")
|
|
1504
1425
|
}
|
|
1505
1426
|
)
|
|
1506
|
-
] })
|
|
1427
|
+
] }),
|
|
1428
|
+
milestone.description && /* @__PURE__ */ jsx(Text, { size: "sm", c: "var(--color-text-dimmed)", maw: 900, children: milestone.description })
|
|
1507
1429
|
] }),
|
|
1508
|
-
/* @__PURE__ */
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
]
|
|
1543
|
-
|
|
1544
|
-
|
|
1430
|
+
/* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "wrap", children: [
|
|
1431
|
+
milestone.due_date && /* @__PURE__ */ jsxs(
|
|
1432
|
+
Badge,
|
|
1433
|
+
{
|
|
1434
|
+
variant: "outline",
|
|
1435
|
+
size: "md",
|
|
1436
|
+
styles: {
|
|
1437
|
+
root: {
|
|
1438
|
+
borderColor: "var(--border-primary-subtle)",
|
|
1439
|
+
backgroundColor: "var(--surface-primary-faint)"
|
|
1440
|
+
}
|
|
1441
|
+
},
|
|
1442
|
+
children: [
|
|
1443
|
+
"Due ",
|
|
1444
|
+
formatDate(milestone.due_date)
|
|
1445
|
+
]
|
|
1446
|
+
}
|
|
1447
|
+
),
|
|
1448
|
+
/* @__PURE__ */ jsxs(
|
|
1449
|
+
Badge,
|
|
1450
|
+
{
|
|
1451
|
+
variant: "outline",
|
|
1452
|
+
size: "md",
|
|
1453
|
+
styles: {
|
|
1454
|
+
root: {
|
|
1455
|
+
borderColor: "var(--border-primary-soft)",
|
|
1456
|
+
backgroundColor: "var(--color-surface)"
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
children: [
|
|
1460
|
+
completedChecklistItems,
|
|
1461
|
+
"/",
|
|
1462
|
+
checklistItems.length,
|
|
1463
|
+
" complete"
|
|
1464
|
+
]
|
|
1465
|
+
}
|
|
1466
|
+
),
|
|
1467
|
+
milestoneTasks.length > 0 && /* @__PURE__ */ jsxs(
|
|
1468
|
+
Badge,
|
|
1469
|
+
{
|
|
1470
|
+
variant: "outline",
|
|
1471
|
+
size: "md",
|
|
1472
|
+
styles: {
|
|
1473
|
+
root: {
|
|
1474
|
+
borderColor: "var(--border-primary-soft)",
|
|
1475
|
+
backgroundColor: "var(--color-surface)"
|
|
1476
|
+
}
|
|
1477
|
+
},
|
|
1478
|
+
children: [
|
|
1479
|
+
milestoneTasks.length,
|
|
1480
|
+
" tasks"
|
|
1481
|
+
]
|
|
1482
|
+
}
|
|
1483
|
+
)
|
|
1484
|
+
] })
|
|
1485
|
+
] }),
|
|
1486
|
+
/* @__PURE__ */ jsx(MilestoneChecklist, { milestone }),
|
|
1487
|
+
milestoneTasks.length > 0 && /* @__PURE__ */ jsx(Stack, { gap: "sm", children: milestoneTasks.map((task) => /* @__PURE__ */ jsx(
|
|
1488
|
+
Card,
|
|
1489
|
+
{
|
|
1490
|
+
p: "sm",
|
|
1491
|
+
radius: "md",
|
|
1492
|
+
style: {
|
|
1493
|
+
border: "1px solid var(--border-primary-faint)",
|
|
1494
|
+
backgroundColor: "color-mix(in srgb, var(--color-surface-hover) 70%, var(--color-surface))",
|
|
1495
|
+
boxShadow: "var(--standard-box-shadow)"
|
|
1545
1496
|
},
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1497
|
+
children: /* @__PURE__ */ jsxs(Stack, { gap: "xs", children: [
|
|
1498
|
+
/* @__PURE__ */ jsxs(Group, { gap: "xs", justify: "space-between", align: "flex-start", wrap: "wrap", children: [
|
|
1499
|
+
/* @__PURE__ */ jsx(Text, { size: "sm", fw: 600, c: "var(--color-text)", children: task.name }),
|
|
1500
|
+
/* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "wrap", children: [
|
|
1501
|
+
/* @__PURE__ */ jsx(
|
|
1502
|
+
Badge,
|
|
1503
|
+
{
|
|
1504
|
+
variant: "light",
|
|
1505
|
+
color: taskTypeColors[task.type || ""] || "gray",
|
|
1506
|
+
size: "xs",
|
|
1507
|
+
children: formatStatusLabel(task.type || "other")
|
|
1508
|
+
}
|
|
1509
|
+
),
|
|
1510
|
+
/* @__PURE__ */ jsx(
|
|
1511
|
+
Badge,
|
|
1512
|
+
{
|
|
1513
|
+
variant: "light",
|
|
1514
|
+
color: taskStatusColors[task.status || ""] || "gray",
|
|
1515
|
+
size: "xs",
|
|
1516
|
+
children: formatStatusLabel(task.status || "pending")
|
|
1517
|
+
}
|
|
1518
|
+
)
|
|
1519
|
+
] })
|
|
1520
|
+
] }),
|
|
1521
|
+
/* @__PURE__ */ jsx(InlineResumeContextEditor, { task, projectId })
|
|
1522
|
+
] })
|
|
1523
|
+
},
|
|
1524
|
+
task.id
|
|
1525
|
+
)) })
|
|
1526
|
+
] })
|
|
1550
1527
|
}
|
|
1551
1528
|
)
|
|
1552
1529
|
},
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ElevasisSystemsProvider } from './chunk-ZGTDKH3P.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
function createTestSystemsProvider({
|
|
5
|
+
organizationModel,
|
|
6
|
+
systems = []
|
|
7
|
+
} = {}) {
|
|
8
|
+
return function TestSystemsProvider({ children }) {
|
|
9
|
+
return /* @__PURE__ */ jsx(ElevasisSystemsProvider, { systems, organizationModel, children });
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { createTestSystemsProvider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { IconMail, IconSend, IconFileText, IconClock, IconArrowUp, IconMessageCircle, IconRocket, IconEye, IconEdit, IconAlertTriangle, IconRefresh, IconX, IconCheck, IconShieldLock, IconActivity, IconTopologyStar3, IconApps, IconBriefcase, IconBuilding, IconBolt, IconSearch, IconChartBar, IconUsers, IconInfoCircle, IconDatabase, IconGitBranch, IconDashboard, IconBuildingStore, IconUser, IconPlug, IconBrain, IconTargetArrow, IconBook, IconLayoutGrid, IconArchive, IconSettings, IconTool, IconCalendar } from '@tabler/icons-react';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
// src/icons/registry.tsx
|
|
5
|
+
var DEFAULT_SEMANTIC_ICON_REGISTRY = {
|
|
6
|
+
// Navigation / app areas
|
|
7
|
+
dashboard: IconDashboard,
|
|
8
|
+
calendar: IconCalendar,
|
|
9
|
+
sales: IconChartBar,
|
|
10
|
+
crm: IconBuildingStore,
|
|
11
|
+
"lead-gen": IconTargetArrow,
|
|
12
|
+
projects: IconBriefcase,
|
|
13
|
+
operations: IconTool,
|
|
14
|
+
monitoring: IconChartBar,
|
|
15
|
+
knowledge: IconBrain,
|
|
16
|
+
settings: IconSettings,
|
|
17
|
+
admin: IconShieldLock,
|
|
18
|
+
archive: IconArchive,
|
|
19
|
+
business: IconBuildingStore,
|
|
20
|
+
finance: IconChartBar,
|
|
21
|
+
platform: IconLayoutGrid,
|
|
22
|
+
seo: IconSearch,
|
|
23
|
+
// Knowledge kinds
|
|
24
|
+
playbook: IconBook,
|
|
25
|
+
strategy: IconTargetArrow,
|
|
26
|
+
reference: IconFileText,
|
|
27
|
+
// Resource kinds
|
|
28
|
+
agent: IconBrain,
|
|
29
|
+
workflow: IconGitBranch,
|
|
30
|
+
integration: IconPlug,
|
|
31
|
+
database: IconDatabase,
|
|
32
|
+
user: IconUser,
|
|
33
|
+
team: IconUsers,
|
|
34
|
+
// Integration specifics
|
|
35
|
+
gmail: IconMail,
|
|
36
|
+
"google-sheets": IconDatabase,
|
|
37
|
+
attio: IconBuildingStore,
|
|
38
|
+
// Surface / UI views
|
|
39
|
+
overview: IconDashboard,
|
|
40
|
+
"command-view": IconTopologyStar3,
|
|
41
|
+
"command-queue": IconSend,
|
|
42
|
+
pipeline: IconGitBranch,
|
|
43
|
+
lists: IconFileText,
|
|
44
|
+
resources: IconDatabase,
|
|
45
|
+
// Actions
|
|
46
|
+
approve: IconCheck,
|
|
47
|
+
reject: IconX,
|
|
48
|
+
retry: IconRefresh,
|
|
49
|
+
edit: IconEdit,
|
|
50
|
+
view: IconEye,
|
|
51
|
+
launch: IconRocket,
|
|
52
|
+
message: IconMessageCircle,
|
|
53
|
+
escalate: IconAlertTriangle,
|
|
54
|
+
promote: IconArrowUp,
|
|
55
|
+
submit: IconSend,
|
|
56
|
+
email: IconMail,
|
|
57
|
+
// Status
|
|
58
|
+
success: IconCheck,
|
|
59
|
+
error: IconX,
|
|
60
|
+
warning: IconAlertTriangle,
|
|
61
|
+
info: IconInfoCircle,
|
|
62
|
+
pending: IconClock,
|
|
63
|
+
// OM / UI group icons
|
|
64
|
+
bolt: IconBolt,
|
|
65
|
+
building: IconBuilding,
|
|
66
|
+
briefcase: IconBriefcase,
|
|
67
|
+
apps: IconApps,
|
|
68
|
+
graph: IconTopologyStar3,
|
|
69
|
+
shield: IconShieldLock,
|
|
70
|
+
users: IconUsers,
|
|
71
|
+
"chart-bar": IconChartBar,
|
|
72
|
+
search: IconSearch,
|
|
73
|
+
// UI-only om.* group tokens (not in the core enum — kept for registry lookup
|
|
74
|
+
// by components that reference them directly via extendSemanticIconRegistry)
|
|
75
|
+
"om.quick-access": IconBolt,
|
|
76
|
+
"om.profile": IconBuilding,
|
|
77
|
+
"om.business-model": IconBriefcase,
|
|
78
|
+
"om.systems": IconApps,
|
|
79
|
+
"om.graph": IconTopologyStar3,
|
|
80
|
+
"om.governance-wiring": IconShieldLock,
|
|
81
|
+
// Graph node-kind fallback tokens (used internally by knowledge-tree helpers)
|
|
82
|
+
"entity.record": IconActivity,
|
|
83
|
+
"event.lifecycle": IconActivity,
|
|
84
|
+
"policy.governance": IconShieldLock,
|
|
85
|
+
// Compatibility aliases for existing command queue payloads.
|
|
86
|
+
IconCheck,
|
|
87
|
+
IconX,
|
|
88
|
+
IconRefresh,
|
|
89
|
+
IconAlertTriangle,
|
|
90
|
+
IconEdit,
|
|
91
|
+
IconEye,
|
|
92
|
+
IconRocket,
|
|
93
|
+
IconMessageCircle,
|
|
94
|
+
IconArrowUp,
|
|
95
|
+
IconClock,
|
|
96
|
+
IconFileText,
|
|
97
|
+
IconSend,
|
|
98
|
+
IconMail
|
|
99
|
+
};
|
|
100
|
+
var semanticIconRegistry = { ...DEFAULT_SEMANTIC_ICON_REGISTRY };
|
|
101
|
+
function extendSemanticIconRegistry(overrides) {
|
|
102
|
+
semanticIconRegistry = { ...semanticIconRegistry, ...overrides };
|
|
103
|
+
}
|
|
104
|
+
function getSemanticIconComponent(token, fallbackToken) {
|
|
105
|
+
const icon = resolveSemanticIconComponent(token);
|
|
106
|
+
if (icon) return icon;
|
|
107
|
+
if (fallbackToken && semanticIconRegistry[fallbackToken]) return semanticIconRegistry[fallbackToken];
|
|
108
|
+
return IconInfoCircle;
|
|
109
|
+
}
|
|
110
|
+
function resolveSemanticIconComponent(token) {
|
|
111
|
+
if (!token) return null;
|
|
112
|
+
return semanticIconRegistry[token] ?? null;
|
|
113
|
+
}
|
|
114
|
+
function SemanticIcon({
|
|
115
|
+
token,
|
|
116
|
+
fallbackToken,
|
|
117
|
+
size = 16,
|
|
118
|
+
stroke = 1.8,
|
|
119
|
+
className,
|
|
120
|
+
style,
|
|
121
|
+
"aria-hidden": ariaHidden = true
|
|
122
|
+
}) {
|
|
123
|
+
const Icon = getSemanticIconComponent(token, fallbackToken);
|
|
124
|
+
return /* @__PURE__ */ jsx(
|
|
125
|
+
"span",
|
|
126
|
+
{
|
|
127
|
+
className,
|
|
128
|
+
"aria-hidden": ariaHidden,
|
|
129
|
+
style: {
|
|
130
|
+
display: "inline-flex",
|
|
131
|
+
alignItems: "center",
|
|
132
|
+
justifyContent: "center",
|
|
133
|
+
width: size,
|
|
134
|
+
height: size,
|
|
135
|
+
minWidth: size,
|
|
136
|
+
color: "currentColor",
|
|
137
|
+
flexShrink: 0,
|
|
138
|
+
...style
|
|
139
|
+
},
|
|
140
|
+
children: /* @__PURE__ */ jsx(Icon, { size, stroke })
|
|
141
|
+
}
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export { SemanticIcon, extendSemanticIconRegistry, getSemanticIconComponent, resolveSemanticIconComponent };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// src/features/operations/organization-graph/types.ts
|
|
2
|
+
var ORGANIZATION_GRAPH_NODE_KIND_ORDER = [
|
|
3
|
+
"organization",
|
|
4
|
+
"system",
|
|
5
|
+
"role",
|
|
6
|
+
"action",
|
|
7
|
+
"entity",
|
|
8
|
+
"event",
|
|
9
|
+
"policy",
|
|
10
|
+
"stage",
|
|
11
|
+
"resource",
|
|
12
|
+
"knowledge",
|
|
13
|
+
"customer-segment",
|
|
14
|
+
"offering",
|
|
15
|
+
"goal",
|
|
16
|
+
"surface",
|
|
17
|
+
"navigation-group",
|
|
18
|
+
"ontology",
|
|
19
|
+
"content-node"
|
|
20
|
+
];
|
|
21
|
+
var ORGANIZATION_GRAPH_NODE_KIND_LABELS = {
|
|
22
|
+
organization: "Organization",
|
|
23
|
+
system: "System",
|
|
24
|
+
role: "Role",
|
|
25
|
+
action: "Action",
|
|
26
|
+
entity: "Entity",
|
|
27
|
+
event: "Event",
|
|
28
|
+
policy: "Policy",
|
|
29
|
+
stage: "Stage",
|
|
30
|
+
resource: "Resource",
|
|
31
|
+
knowledge: "Knowledge",
|
|
32
|
+
"customer-segment": "Customer segment",
|
|
33
|
+
offering: "Offering",
|
|
34
|
+
goal: "Goal",
|
|
35
|
+
surface: "Surface",
|
|
36
|
+
"navigation-group": "Navigation group",
|
|
37
|
+
ontology: "Ontology",
|
|
38
|
+
"content-node": "Content node"
|
|
39
|
+
};
|
|
40
|
+
var ORGANIZATION_GRAPH_NODE_KIND_DETAIL_LABELS = {
|
|
41
|
+
organization: "Organization root",
|
|
42
|
+
system: "System",
|
|
43
|
+
role: "Role",
|
|
44
|
+
action: "Action",
|
|
45
|
+
entity: "Entity",
|
|
46
|
+
event: "Event",
|
|
47
|
+
policy: "Policy",
|
|
48
|
+
stage: "Stage",
|
|
49
|
+
resource: "Resource",
|
|
50
|
+
knowledge: "Knowledge",
|
|
51
|
+
"customer-segment": "Customer segment",
|
|
52
|
+
offering: "Offering",
|
|
53
|
+
goal: "Goal",
|
|
54
|
+
surface: "Surface",
|
|
55
|
+
"navigation-group": "Navigation group",
|
|
56
|
+
ontology: "Ontology record",
|
|
57
|
+
"content-node": "Content node"
|
|
58
|
+
};
|
|
59
|
+
var ORGANIZATION_GRAPH_NODE_KIND_MEANINGS = {
|
|
60
|
+
organization: "The root of the shared organization model and the parent for every derived node.",
|
|
61
|
+
system: "A canonical Organization Model system for ownership, routing, and governance.",
|
|
62
|
+
role: "An Organization Model role that owns responsibilities and may govern systems.",
|
|
63
|
+
action: "A reusable action that can be attached to a system.",
|
|
64
|
+
entity: "A modeled business object or stateful data domain owned by the organization model.",
|
|
65
|
+
event: "A derived domain or runtime event emitted by entities, resources, or actions.",
|
|
66
|
+
policy: "A governance rule that applies to targets and may trigger effects across the graph.",
|
|
67
|
+
stage: "A lifecycle stage that records progress for an entity through a build pipeline.",
|
|
68
|
+
resource: "A concrete command-view or mapped resource that bridges execution topology into the model.",
|
|
69
|
+
knowledge: "An operational knowledge node that documents a process, strategy, or runbook in the org model.",
|
|
70
|
+
"customer-segment": "A defined segment of customers or prospects that the organization targets or serves.",
|
|
71
|
+
offering: "A product, service, or value proposition the organization delivers to customer segments.",
|
|
72
|
+
goal: "A strategic or operational objective that guides priorities and measures progress.",
|
|
73
|
+
surface: "A navigation surface (page or view) that is exposed through the platform shell.",
|
|
74
|
+
"navigation-group": "A logical grouping of navigation surfaces within the platform shell.",
|
|
75
|
+
ontology: "A compiled ontology record such as an object, action, catalog, value type, surface, or resource binding.",
|
|
76
|
+
"content-node": "A system-scoped content node authored in system.content (schema, config, or tenant-defined kind)."
|
|
77
|
+
};
|
|
78
|
+
var ORGANIZATION_GRAPH_EDGE_KIND_LABELS = {
|
|
79
|
+
contains: "Containment",
|
|
80
|
+
references: "Reference",
|
|
81
|
+
maps_to: "Mapping",
|
|
82
|
+
uses: "Uses",
|
|
83
|
+
governs: "Governs",
|
|
84
|
+
links: "Links",
|
|
85
|
+
affects: "Affects",
|
|
86
|
+
emits: "Emits",
|
|
87
|
+
originates_from: "Originates from",
|
|
88
|
+
triggers: "Triggers",
|
|
89
|
+
applies_to: "Applies to",
|
|
90
|
+
effects: "Effects",
|
|
91
|
+
implements: "Implements",
|
|
92
|
+
reads: "Reads",
|
|
93
|
+
writes: "Writes",
|
|
94
|
+
uses_catalog: "Uses catalog"
|
|
95
|
+
};
|
|
96
|
+
var ORGANIZATION_GRAPH_EDGE_KIND_MEANINGS = {
|
|
97
|
+
contains: "A hierarchy or ownership link inside the shared graph.",
|
|
98
|
+
references: "A semantic association or dependency between two graph nodes.",
|
|
99
|
+
maps_to: "An action is aligned to a concrete resource.",
|
|
100
|
+
uses: "A graph node depends on another node, resource, entity, or integration.",
|
|
101
|
+
governs: "A knowledge node, role, or policy provides authoritative guidance for another node.",
|
|
102
|
+
links: "Two modeled nodes are associated without stronger ownership or execution semantics.",
|
|
103
|
+
affects: "The source can influence the behavior, state, or outcome of the target.",
|
|
104
|
+
emits: "The source produces an event that can be inspected or traversed.",
|
|
105
|
+
originates_from: "The source is derived from or owned by the target origin.",
|
|
106
|
+
triggers: "The source can start or activate the target.",
|
|
107
|
+
applies_to: "A policy or rule targets the node it applies to.",
|
|
108
|
+
effects: "A policy or event produces the target effect.",
|
|
109
|
+
implements: "The source implements or realizes the target ontology contract.",
|
|
110
|
+
reads: "The source reads data described by the target ontology record.",
|
|
111
|
+
writes: "The source writes data described by the target ontology record.",
|
|
112
|
+
uses_catalog: "The source uses the target ontology catalog."
|
|
113
|
+
};
|
|
114
|
+
var DEFAULT_ORGANIZATION_GRAPH_FILTERS = {
|
|
115
|
+
search: "",
|
|
116
|
+
nodeKinds: [],
|
|
117
|
+
topologyPresence: "all",
|
|
118
|
+
environmentStatus: "all",
|
|
119
|
+
resourceTypes: [],
|
|
120
|
+
showIntegrations: true,
|
|
121
|
+
domainFilters: {}
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export { DEFAULT_ORGANIZATION_GRAPH_FILTERS, ORGANIZATION_GRAPH_EDGE_KIND_LABELS, ORGANIZATION_GRAPH_EDGE_KIND_MEANINGS, ORGANIZATION_GRAPH_NODE_KIND_DETAIL_LABELS, ORGANIZATION_GRAPH_NODE_KIND_LABELS, ORGANIZATION_GRAPH_NODE_KIND_MEANINGS, ORGANIZATION_GRAPH_NODE_KIND_ORDER };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-
|
|
1
|
+
import { mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-RQA2EVN3.js';
|
|
2
2
|
import { PRESETS, getPreset, generateShades } from './chunk-3FV6HBXS.js';
|
|
3
3
|
import { AppBackground } from './chunk-WLOQ4IBG.js';
|
|
4
|
-
import { ElevasisCoreProvider } from './chunk-
|
|
4
|
+
import { ElevasisCoreProvider } from './chunk-UW7IV2Y3.js';
|
|
5
5
|
import { ElevasisLoader } from './chunk-SZHARWKU.js';
|
|
6
6
|
import { AppearanceProvider } from './chunk-E565XMTQ.js';
|
|
7
|
-
import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-
|
|
7
|
+
import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-2RJMVWFJ.js';
|
|
8
8
|
import { useMemo, useEffect } from 'react';
|
|
9
9
|
import { Loader, mergeThemeOverrides, MantineProvider } from '@mantine/core';
|
|
10
10
|
import '@mantine/core/styles.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StyledMarkdown } from './chunk-3KMDHCAR.js';
|
|
2
2
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
3
|
-
import { getErrorInfo, getErrorTitle, getResourceIcon, formatTimeAgo } from './chunk-
|
|
3
|
+
import { getErrorInfo, getErrorTitle, getResourceIcon, formatTimeAgo } from './chunk-2RJMVWFJ.js';
|
|
4
4
|
import { ResourceStatusColors } from './chunk-KRWALB24.js';
|
|
5
5
|
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
6
6
|
import { Center, Stack, Title, Text, Button, Box, Loader, Badge, Group, Collapse, ScrollArea, Card, Select, Alert, Code, ThemeIcon, Paper, Grid, Timeline, Space } from '@mantine/core';
|