@elevasis/ui 2.33.1 → 2.34.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.
Files changed (73) hide show
  1. package/dist/api/index.d.ts +9 -2
  2. package/dist/api/index.js +1 -1
  3. package/dist/app/index.css +452 -0
  4. package/dist/app/index.d.ts +1250 -3
  5. package/dist/app/index.js +144 -8
  6. package/dist/charts/index.js +2 -3
  7. package/dist/{chunk-3YZRKADM.js → chunk-3AJVNMY5.js} +45 -28
  8. package/dist/chunk-3QXJK5IY.js +25 -0
  9. package/dist/chunk-4O4MII5S.js +4716 -0
  10. package/dist/{chunk-KW7ZNQD7.js → chunk-5EYJ2GIN.js} +4 -8
  11. package/dist/{chunk-53436UTQ.js → chunk-BPQVTIUP.js} +12 -3
  12. package/dist/{chunk-DYIDXUJS.js → chunk-DTFKWZ7A.js} +1098 -2280
  13. package/dist/{chunk-EPTHX4VZ.js → chunk-HRWLKKWM.js} +11 -2
  14. package/dist/{chunk-SWMQTF2H.js → chunk-IGDYWFNE.js} +2 -2
  15. package/dist/{chunk-QVTIOT73.js → chunk-IVGI4GDL.js} +3 -3
  16. package/dist/{chunk-4DYOXEH6.js → chunk-LAWLB6CT.js} +1 -1
  17. package/dist/{chunk-UYRT7SPM.js → chunk-LRWTWOGP.js} +3 -3
  18. package/dist/{chunk-2VYMDNJ3.js → chunk-MP3GPBPX.js} +3 -3
  19. package/dist/{chunk-YENKDBUU.js → chunk-NLBQTDOW.js} +12 -17
  20. package/dist/{chunk-WJOE76FI.js → chunk-O6JXQ6UQ.js} +5 -4
  21. package/dist/{chunk-F3MXFE72.js → chunk-OBBQ2JCM.js} +3 -3
  22. package/dist/{chunk-WGUEIGPC.js → chunk-PLP3NYPL.js} +80 -171
  23. package/dist/{chunk-AV2TKVVV.js → chunk-RIAXZ6AH.js} +5 -6
  24. package/dist/chunk-SDXSB3HN.js +425 -0
  25. package/dist/{chunk-JA5ECJJB.js → chunk-VTXTZXAU.js} +156 -4
  26. package/dist/{chunk-H6EFQP2P.js → chunk-W73ZABT6.js} +1 -1
  27. package/dist/{chunk-UNVRVCXZ.js → chunk-WU4FNWCW.js} +3 -3
  28. package/dist/{chunk-NCEQGEW5.js → chunk-YNWZIWJL.js} +4 -5
  29. package/dist/components/index.d.ts +0 -23
  30. package/dist/components/index.js +27 -448
  31. package/dist/components/navigation/index.js +4 -6
  32. package/dist/features/clients/index.js +7 -12
  33. package/dist/features/crm/index.js +9 -14
  34. package/dist/features/dashboard/index.d.ts +0 -23
  35. package/dist/features/dashboard/index.js +9 -14
  36. package/dist/features/delivery/index.js +8 -13
  37. package/dist/features/knowledge/index.js +5 -7
  38. package/dist/features/lead-gen/index.js +9 -14
  39. package/dist/features/monitoring/index.js +10 -15
  40. package/dist/features/monitoring/requests/index.js +7 -12
  41. package/dist/features/operations/index.d.ts +44 -35
  42. package/dist/features/operations/index.js +12 -17
  43. package/dist/features/settings/index.js +8 -13
  44. package/dist/hooks/index.d.ts +20 -27
  45. package/dist/hooks/index.js +7 -12
  46. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +20 -27
  47. package/dist/hooks/published.d.ts +20 -27
  48. package/dist/hooks/published.js +7 -12
  49. package/dist/index.d.ts +54 -39
  50. package/dist/index.js +8 -13
  51. package/dist/knowledge/index.d.ts +30 -38
  52. package/dist/knowledge/index.js +37 -201
  53. package/dist/{knowledge-search-index-P7PR626V.js → knowledge-search-index-ORIJCEZX.js} +142 -150
  54. package/dist/organization/index.js +1 -2
  55. package/dist/provider/index.d.ts +25 -32
  56. package/dist/provider/index.js +6 -11
  57. package/dist/provider/published.d.ts +25 -32
  58. package/dist/provider/published.js +5 -9
  59. package/dist/test-utils/index.d.ts +2 -0
  60. package/dist/test-utils/index.js +14 -2
  61. package/dist/test-utils/setup.js +38 -0
  62. package/dist/types/index.d.ts +20 -27
  63. package/dist/utils/index.d.ts +0 -23
  64. package/dist/zustand/index.d.ts +15 -2
  65. package/dist/zustand/index.js +35 -1
  66. package/package.json +5 -5
  67. package/dist/chunk-4AAZXKLL.js +0 -347
  68. package/dist/chunk-DWXDNT7P.js +0 -145
  69. package/dist/chunk-FOUYP4JX.js +0 -13
  70. package/dist/chunk-HUJCU55S.js +0 -159
  71. package/dist/chunk-PIS24NIV.js +0 -29
  72. package/dist/chunk-SZHARWKU.js +0 -15
  73. package/dist/chunk-XCYKC6OZ.js +0 -1
@@ -1,5 +1,5 @@
1
- import { getKnowledgeIconToken, getKnowledgeGraphNodeCommand, getKnowledgeNodeReadCommand, getKnowledgeOntologyProjection, getPrimaryOntologyItemsForDomain, projectNavigationSurfaces, projectNavigationGroups, getOntologyDomainLabel, getKnowledgeDomainFolderCommand, getKnowledgeTreeFolderCommand, KNOWLEDGE_DOMAINS_WITH_PANELS } from '../chunk-AV2TKVVV.js';
2
- export { KNOWLEDGE_ICON_TOKEN_BY_KIND, KnowledgeSearchBar, KnowledgeTree, OM_TREE_GROUPS, getKnowledgeIconToken, getSharedOrganizationGraph } from '../chunk-AV2TKVVV.js';
1
+ import { getKnowledgeIconToken, getKnowledgeGraphNodeCommand, getKnowledgeNodeReadCommand, getKnowledgeOntologyProjection, getPrimaryOntologyItemsForDomain, projectNavigationSurfaces, projectNavigationGroups, getOntologyDomainLabel, getKnowledgeDomainFolderCommand, getKnowledgeTreeFolderCommand, KNOWLEDGE_DOMAINS_WITH_PANELS } from '../chunk-RIAXZ6AH.js';
2
+ export { KNOWLEDGE_ICON_TOKEN_BY_KIND, KnowledgeSearchBar, KnowledgeTree, OM_TREE_GROUPS, getKnowledgeIconToken, getSharedOrganizationGraph } from '../chunk-RIAXZ6AH.js';
3
3
  import '../chunk-V6SZ4ECN.js';
4
4
  import '../chunk-N55DVMAG.js';
5
5
  import '../chunk-CLDCYJQT.js';
@@ -10,9 +10,8 @@ import { PageContainer } from '../chunk-BZZCNLT6.js';
10
10
  import '../chunk-WLOQ4IBG.js';
11
11
  import '../chunk-TKAYX2SP.js';
12
12
  import '../chunk-NYBEU5TE.js';
13
- import { SemanticIcon } from '../chunk-DWXDNT7P.js';
14
- export { SemanticIcon, extendSemanticIconRegistry, getSemanticIconComponent, resolveSemanticIconComponent } from '../chunk-DWXDNT7P.js';
15
- import { getSystem, SystemEntrySchema, IdentityDomainSchema, WorkflowResourceEntrySchema, AgentResourceEntrySchema, IntegrationResourceEntrySchema, ScriptResourceEntrySchema, getContent, lookupContentType, SurfaceDefinitionSchema, RoleSchema, PolicySchema, EntitySchema, ActionSchema, listAllSystems, SalesStageSchema, OntologyIdSchema, ontologyGraphNodeId } from '../chunk-DYIDXUJS.js';
13
+ import { SemanticIcon, getSystem, SystemEntrySchema, IdentityDomainSchema, WorkflowResourceEntrySchema, AgentResourceEntrySchema, IntegrationResourceEntrySchema, ScriptResourceEntrySchema, SurfaceDefinitionSchema, RoleSchema, PolicySchema, EntitySchema, ActionSchema, OntologyIdSchema, ontologyGraphNodeId, compileOrganizationOntology, parseOntologyId } from '../chunk-DTFKWZ7A.js';
14
+ export { SemanticIcon, extendSemanticIconRegistry, getSemanticIconComponent, resolveSemanticIconComponent } from '../chunk-DTFKWZ7A.js';
16
15
  import '../chunk-2IFYDILW.js';
17
16
  import '../chunk-Q7DJKLEN.js';
18
17
  import '../chunk-E565XMTQ.js';
@@ -2232,7 +2231,7 @@ function _createMdxContent(props) {
2232
2231
  }), "\\n", _jsx(_components.pre, {
2233
2232
  children: _jsx(_components.code, {
2234
2233
  className: "language-text",
2235
- children: "q{NN}-{slug}.mdx\\r\\ncandidate-{slug}.mdx\\r\\nsummary.mdx\\n"
2234
+ children: "q{NN}-{slug}.mdx\\ncandidate-{slug}.mdx\\nsummary.mdx\\n"
2236
2235
  })
2237
2236
  }), "\\n", _jsxs(_components.p, {
2238
2237
  children: ["Use active-query filenames such as ", _jsx(_components.code, {
@@ -3949,11 +3948,11 @@ function _createMdxContent(props) {
3949
3948
  children: ["\\n", _jsxs(_components.li, {
3950
3949
  children: ["For ", _jsx(_components.code, {
3951
3950
  children: "crm.pipeline"
3952
- }), ", the builder walks pipeline content via the pipeline migration helper."]
3951
+ }), ", the builder walks pipeline catalog records via the pipeline migration helper."]
3953
3952
  }), "\\n", _jsxs(_components.li, {
3954
3953
  children: ["For ", _jsx(_components.code, {
3955
3954
  children: "delivery.task"
3956
- }), ", the builder walks project task status content via the project-status helper."]
3955
+ }), ", the builder walks project task status catalog records via the project-status helper."]
3957
3956
  }), "\\n", _jsxs(_components.li, {
3958
3957
  children: ["For ", _jsx(_components.code, {
3959
3958
  children: "lead-gen.company"
@@ -3961,8 +3960,8 @@ function _createMdxContent(props) {
3961
3960
  children: "lead-gen.contact"
3962
3961
  }), ", the builder walks the lead-gen stage catalog."]
3963
3962
  }), "\\n", _jsxs(_components.li, {
3964
- children: ["General status catalogs now live in ", _jsx(_components.code, {
3965
- children: "System.content"
3963
+ children: ["General status catalogs live in ", _jsx(_components.code, {
3964
+ children: "System.ontology.catalogTypes"
3966
3965
  }), "; direct ", _jsx(_components.code, {
3967
3966
  children: "OM.statuses"
3968
3967
  }), " reads are legacy."]
@@ -4130,7 +4129,7 @@ function _createMdxContent(props) {
4130
4129
  }), "\\n", _jsxs(_components.li, {
4131
4130
  children: ["To change an entity state-transition event, update the entity's ", _jsx(_components.code, {
4132
4131
  children: "stateCatalogId"
4133
- }), " or the underlying status/stage content entry on the owning System."]
4132
+ }), " or the underlying ontology status/stage catalog on the owning System."]
4134
4133
  }), "\\n"]
4135
4134
  }), "\\n", _jsxs(_components.p, {
4136
4135
  children: ["The graph builder projects these into ", _jsx(_components.code, {
@@ -4264,8 +4263,8 @@ function _createMdxContent(props) {
4264
4263
  children: ["\\n", _jsxs(_components.li, {
4265
4264
  children: [_jsx(_components.strong, {
4266
4265
  children: "General status catalogs"
4267
- }), ": status data now lives in ", _jsx(_components.code, {
4268
- children: "System.content"
4266
+ }), ": status data lives in ", _jsx(_components.code, {
4267
+ children: "System.ontology.catalogTypes"
4269
4268
  }), "; direct ", _jsx(_components.code, {
4270
4269
  children: "OM.statuses"
4271
4270
  }), " reads are legacy."]
@@ -4274,13 +4273,13 @@ function _createMdxContent(props) {
4274
4273
  children: _jsx(_components.code, {
4275
4274
  children: "crm.pipeline"
4276
4275
  })
4277
- }), ": walks pipeline content via the pipeline migration helper."]
4276
+ }), ": walks pipeline catalog records via the pipeline migration helper."]
4278
4277
  }), "\\n", _jsxs(_components.li, {
4279
4278
  children: [_jsx(_components.strong, {
4280
4279
  children: _jsx(_components.code, {
4281
4280
  children: "delivery.task"
4282
4281
  })
4283
- }), ": walks project task status content via the project-status helper."]
4282
+ }), ": walks project task status catalog records via the project-status helper."]
4284
4283
  }), "\\n", _jsxs(_components.li, {
4285
4284
  children: [_jsxs(_components.strong, {
4286
4285
  children: [_jsx(_components.code, {
@@ -4633,10 +4632,8 @@ function _createMdxContent(props) {
4633
4632
  })
4634
4633
  }), _jsx(_components.td, {
4635
4634
  children: "Projected"
4636
- }), _jsxs(_components.td, {
4637
- children: ["Derived from prospecting stage helpers over ", _jsx(_components.code, {
4638
- children: "System.content"
4639
- }), " and compatibility catalogs"]
4635
+ }), _jsx(_components.td, {
4636
+ children: "Derived from ontology-backed stage catalog helpers"
4640
4637
  })]
4641
4638
  }), _jsxs(_components.tr, {
4642
4639
  children: [_jsx(_components.td, {
@@ -4722,24 +4719,6 @@ function _createMdxContent(props) {
4722
4719
  children: "OM.navigation.sidebar"
4723
4720
  })]
4724
4721
  })]
4725
- }), _jsxs(_components.tr, {
4726
- children: [_jsx(_components.td, {
4727
- children: _jsx(_components.code, {
4728
- children: "content-node"
4729
- })
4730
- }), _jsx(_components.td, {
4731
- children: "Authored on System, projected to graph"
4732
- }), _jsxs(_components.td, {
4733
- children: [_jsx(_components.code, {
4734
- children: "System.content"
4735
- }), " entries such as ", _jsx(_components.code, {
4736
- children: "schema:pipeline"
4737
- }), ", ", _jsx(_components.code, {
4738
- children: "schema:stage"
4739
- }), ", and ", _jsx(_components.code, {
4740
- children: "config:kv"
4741
- })]
4742
- })]
4743
4722
  })]
4744
4723
  })]
4745
4724
  }), "\\n", _jsx(_components.h2, {
@@ -4963,9 +4942,9 @@ function _createMdxContent(props) {
4963
4942
  }), "\\n", _jsx(_components.h3, {
4964
4943
  children: "Authored nodes"
4965
4944
  }), "\\n", _jsxs(_components.p, {
4966
- children: ["System, role, action, entity, policy, resource, knowledge, customer-segment, offering, and goal nodes are authored in the OM domain maps. Content nodes are authored inside ", _jsx(_components.code, {
4967
- children: "System.content"
4968
- }), " and projected with qualified graph IDs. Their ", _jsx(_components.code, {
4945
+ children: ["System, role, action, entity, policy, resource, knowledge, customer-segment, offering, and goal nodes are authored in the OM domain maps. Ontology catalog nodes are authored inside ", _jsx(_components.code, {
4946
+ children: "System.ontology.catalogTypes"
4947
+ }), " and projected with ontology graph IDs. Their ", _jsx(_components.code, {
4969
4948
  children: "id"
4970
4949
  }), ", ", _jsx(_components.code, {
4971
4950
  children: "label"
@@ -4994,9 +4973,7 @@ function _createMdxContent(props) {
4994
4973
  }), "\\n", _jsxs(_components.li, {
4995
4974
  children: [_jsx(_components.strong, {
4996
4975
  children: "Stage nodes"
4997
- }), ": derived from prospecting stage helpers over current ", _jsx(_components.code, {
4998
- children: "System.content"
4999
- }), " and compatibility catalogs."]
4976
+ }), ": derived from ontology-backed prospecting and lead-gen stage helpers."]
5000
4977
  }), "\\n", _jsxs(_components.li, {
5001
4978
  children: [_jsx(_components.strong, {
5002
4979
  children: "Surface and navigation-group nodes"
@@ -8499,22 +8476,7 @@ function ResourceDescribeView({
8499
8476
  }
8500
8477
  );
8501
8478
  }
8502
- function StageDescribeView({
8503
- node,
8504
- graph,
8505
- knowledgeNodes,
8506
- onNavigateToNode,
8507
- organizationModel
8508
- }) {
8509
- const stage = node.sourceId != null && organizationModel != null ? (() => {
8510
- const colonIdx = node.sourceId.indexOf(":");
8511
- if (colonIdx === -1) return void 0;
8512
- const systemPath = node.sourceId.slice(0, colonIdx);
8513
- const localId = node.sourceId.slice(colonIdx + 1);
8514
- const found = listAllSystems(organizationModel).find(({ path }) => path === systemPath);
8515
- const contentNode = found?.system.content?.[localId];
8516
- return contentNode?.kind === "schema" && contentNode.type === "stage" ? { id: localId, label: contentNode.label, ...contentNode.data ?? {} } : void 0;
8517
- })() : void 0;
8479
+ function StageDescribeView({ node, graph, knowledgeNodes, onNavigateToNode }) {
8518
8480
  const actionIds = graph.edges.filter((e) => e.kind === "uses" && e.sourceId === node.id).map((e) => e.targetId).filter((id, i, arr) => arr.indexOf(id) === i);
8519
8481
  const dependsOnStageIds = graph.edges.filter((e) => e.kind === "references" && e.sourceId === node.id).map((e) => e.targetId).filter((id, i, arr) => arr.indexOf(id) === i);
8520
8482
  return /* @__PURE__ */ jsx(
@@ -8544,15 +8506,6 @@ function StageDescribeView({
8544
8506
  { kind: "references", direction: "outgoing" }
8545
8507
  ]
8546
8508
  }
8547
- ),
8548
- /* @__PURE__ */ jsx(
8549
- SchemaDrivenFieldList,
8550
- {
8551
- schema: SalesStageSchema,
8552
- value: stage,
8553
- excludeFieldNames: ["id", "label", "description"],
8554
- onNavigateToNode
8555
- }
8556
8509
  )
8557
8510
  ] }),
8558
8511
  footer: /* @__PURE__ */ jsx(NodeMetadataFooter, { node })
@@ -8927,101 +8880,6 @@ function SurfaceDescribeView({
8927
8880
  }
8928
8881
  );
8929
8882
  }
8930
- function ContentNodeDescribeView({
8931
- node,
8932
- graph,
8933
- knowledgeNodes,
8934
- onNavigateToNode,
8935
- organizationModel
8936
- }) {
8937
- const content = node.sourceId != null && organizationModel != null ? getContent(organizationModel, node.sourceId) : void 0;
8938
- const kind = content?.kind ?? node.kind;
8939
- const type = content?.type ?? void 0;
8940
- const def = kind != null && type != null ? lookupContentType(kind, type) : void 0;
8941
- const isRegistered = def != null;
8942
- if (!isRegistered && typeof import.meta !== "undefined" && import.meta.env?.DEV) {
8943
- console.warn(
8944
- `[ContentNodeDescribeView] Unregistered content kind/type: ${kind ?? "(unknown)"}/${type ?? "(unknown)"} for node ${node.id}. Rendering generic fallback.`
8945
- );
8946
- }
8947
- const kindLabel = kind != null && type != null ? `${kind}:${type}` : kind ?? type ?? "content-node";
8948
- return /* @__PURE__ */ jsx(
8949
- NodeDescribeShell,
8950
- {
8951
- header: /* @__PURE__ */ jsx(
8952
- NodeHeader,
8953
- {
8954
- title: node.label,
8955
- kind: "Content",
8956
- tone: "subtle",
8957
- description: node.description ?? content?.description,
8958
- rightSection: /* @__PURE__ */ jsx(
8959
- KindChip,
8960
- {
8961
- kind: kindLabel,
8962
- tone: isRegistered ? "primary" : "muted",
8963
- style: { flexShrink: 0, marginTop: 4 }
8964
- }
8965
- )
8966
- }
8967
- ),
8968
- content: /* @__PURE__ */ jsxs(Stack, { gap: "xs", children: [
8969
- node.sourceId && /* @__PURE__ */ jsx(KeyField, { label: "ID", value: node.sourceId }),
8970
- content?.label && /* @__PURE__ */ jsx(KeyField, { label: "Label", value: content.label }),
8971
- content?.description && /* @__PURE__ */ jsx(KeyField, { label: "Description", value: content.description }),
8972
- content?.order != null && /* @__PURE__ */ jsx(KeyField, { label: "Order", value: String(content.order) }),
8973
- content?.parentContentId && /* @__PURE__ */ jsx(KeyField, { label: "Parent content", value: content.parentContentId }),
8974
- !isRegistered && /* @__PURE__ */ jsxs(Stack, { gap: 4, children: [
8975
- /* @__PURE__ */ jsx(KindChip, { kind: "unregistered kind", tone: "muted" }),
8976
- content?.data != null && /* @__PURE__ */ jsx(
8977
- Box,
8978
- {
8979
- component: "pre",
8980
- style: {
8981
- fontSize: "var(--mantine-font-size-xs)",
8982
- fontFamily: "var(--mantine-font-family-monospace)",
8983
- background: "var(--color-surface)",
8984
- border: "1px solid var(--color-border)",
8985
- borderRadius: "var(--mantine-radius-sm)",
8986
- padding: "var(--mantine-spacing-xs)",
8987
- overflowX: "auto",
8988
- whiteSpace: "pre-wrap",
8989
- wordBreak: "break-all",
8990
- margin: 0
8991
- },
8992
- children: JSON.stringify(content.data, null, 2)
8993
- }
8994
- )
8995
- ] })
8996
- ] }),
8997
- relationships: /* @__PURE__ */ jsx(
8998
- EdgeRelationshipGroup,
8999
- {
9000
- nodeId: node.id,
9001
- graph,
9002
- knowledgeNodes,
9003
- onNavigateToNode
9004
- }
9005
- ),
9006
- footer: /* @__PURE__ */ jsxs(Fragment, { children: [
9007
- isRegistered && /* @__PURE__ */ jsxs(Fragment, { children: [
9008
- /* @__PURE__ */ jsx(Divider, {}),
9009
- /* @__PURE__ */ jsx(Text, { size: "xs", fw: 600, tt: "uppercase", c: "dimmed", style: { letterSpacing: "0.05em" }, children: "Payload" }),
9010
- /* @__PURE__ */ jsx(
9011
- SchemaDrivenFieldList,
9012
- {
9013
- schema: def.payloadSchema,
9014
- value: content?.data,
9015
- excludeFieldNames: [],
9016
- onNavigateToNode
9017
- }
9018
- )
9019
- ] }),
9020
- /* @__PURE__ */ jsx(NodeMetadataFooter, { node })
9021
- ] })
9022
- }
9023
- );
9024
- }
9025
8883
  function BrandingPanel({ model }) {
9026
8884
  const branding = model.branding;
9027
8885
  if (!branding) {
@@ -9779,31 +9637,21 @@ var SEMANTIC_CLASS_COLORS = {
9779
9637
  function formatCategoryLabel(category) {
9780
9638
  return category.split(/[.\-_]/).filter(Boolean).map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join(" ");
9781
9639
  }
9782
- function collectStatusEntriesFromSystem(systemId, system, acc) {
9783
- const content = system.content ?? {};
9784
- for (const [localId, node] of Object.entries(content)) {
9785
- if (node.kind !== "schema" || node.type !== "status") continue;
9786
- const data = node.data ?? {};
9787
- const semanticClass = typeof data.semanticClass === "string" ? data.semanticClass : "unknown";
9788
- const category = semanticClass.split(".")[0] ?? semanticClass;
9789
- acc.push({
9790
- id: `${systemId}:${localId}`,
9791
- label: node.label,
9792
- order: typeof node.order === "number" ? node.order : 0,
9793
- semanticClass,
9794
- category
9795
- });
9796
- }
9797
- for (const subsystem of Object.values(system.subsystems ?? {})) {
9798
- collectStatusEntriesFromSystem(subsystem.id, subsystem, acc);
9799
- }
9800
- }
9801
9640
  function collectAllStatusEntries(model) {
9802
- const acc = [];
9803
- for (const system of Object.values(model.systems)) {
9804
- collectStatusEntriesFromSystem(system.id, system, acc);
9805
- }
9806
- return acc;
9641
+ return Object.values(compileOrganizationOntology(model).ontology.catalogTypes).filter((catalog) => catalog.kind === "status-flow").flatMap((catalog) => {
9642
+ const appliesTo = catalog.appliesTo !== void 0 ? parseOntologyId(catalog.appliesTo).localId : "unknown";
9643
+ return Object.entries(catalog.entries ?? {}).map(([localId, value]) => {
9644
+ const entry = value && typeof value === "object" && !Array.isArray(value) ? value : {};
9645
+ const semanticClass = typeof entry.semanticClass === "string" ? entry.semanticClass : `${appliesTo}.${localId}`;
9646
+ return {
9647
+ id: `${catalog.id}:${localId}`,
9648
+ label: typeof entry.label === "string" ? entry.label : localId,
9649
+ order: typeof entry.order === "number" ? entry.order : 0,
9650
+ semanticClass,
9651
+ category: appliesTo
9652
+ };
9653
+ });
9654
+ });
9807
9655
  }
9808
9656
  function StatusesPanel({ model, filterToItemId }) {
9809
9657
  const allEntries = collectAllStatusEntries(model).filter((entry) => !filterToItemId || entry.id === filterToItemId).sort((a, b) => a.order - b.order);
@@ -9824,10 +9672,9 @@ function StatusesPanel({ model, filterToItemId }) {
9824
9672
  const semanticClasses = new Set(allEntries.map((entry) => entry.semanticClass));
9825
9673
  const entriesByCategory = /* @__PURE__ */ new Map();
9826
9674
  for (const entry of allEntries) {
9827
- const category = entry.category ?? "uncategorized";
9828
- const entries = entriesByCategory.get(category) ?? [];
9675
+ const entries = entriesByCategory.get(entry.category) ?? [];
9829
9676
  entries.push(entry);
9830
- entriesByCategory.set(category, entries);
9677
+ entriesByCategory.set(entry.category, entries);
9831
9678
  }
9832
9679
  const categoryGroups = [...entriesByCategory.entries()].sort(([left], [right]) => left.localeCompare(right)).map(([category, entries]) => ({
9833
9680
  category,
@@ -10322,17 +10169,6 @@ function DescribeNodeView({
10322
10169
  onNavigateToNode
10323
10170
  }
10324
10171
  ) });
10325
- case "content-node":
10326
- return /* @__PURE__ */ jsx(DomainPanelFrame, { children: /* @__PURE__ */ jsx(
10327
- ContentNodeDescribeView,
10328
- {
10329
- node,
10330
- graph,
10331
- knowledgeNodes,
10332
- onNavigateToNode,
10333
- organizationModel
10334
- }
10335
- ) });
10336
10172
  default:
10337
10173
  return /* @__PURE__ */ jsx(DomainPanelFrame, { children: /* @__PURE__ */ jsx(
10338
10174
  GenericDescribeView,