@nivaro/react 0.2.53 → 0.2.55
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +99 -98
- package/dist/index.d.ts +452 -4
- package/dist/index.js +644 -618
- package/dist/layout-editor.d.ts +252 -2
- package/dist/shared/components/BackgroundRunOffer.js +117 -0
- package/dist/shared/components/BroadcastView.js +214 -213
- package/dist/shared/components/CollectionBrowserView.js +2592 -2695
- package/dist/shared/components/FormWhatsNew.js +60 -0
- package/dist/shared/components/ItemEditForm.js +3968 -3618
- package/dist/shared/components/JobsTray.js +100 -55
- package/dist/shared/components/MyWorkView.js +91 -89
- package/dist/shared/components/NotificationBell.js +80 -79
- package/dist/shared/components/ProfileView.js +568 -520
- package/dist/shared/components/RecordCompare.js +254 -0
- package/dist/shared/components/RecordReadView.js +598 -543
- package/dist/shared/components/ReportView.js +578 -543
- package/dist/shared/components/RowPresence.js +91 -0
- package/dist/shared/components/TipLayer.js +27 -27
- package/dist/shared/components/WidgetSlot.js +474 -458
- package/dist/shared/components/ai/AiAnalyticsView.js +16 -6
- package/dist/shared/components/ai/AskPanel.js +139 -119
- package/dist/shared/components/ai/FirstWeekCard.js +126 -0
- package/dist/shared/components/bulk/BulkFieldUpdate.js +289 -0
- package/dist/shared/components/bulk/bulk-field-options.js +45 -0
- package/dist/shared/components/charts/CumulativeFlowChart.js +176 -0
- package/dist/shared/components/chat/ChannelArchive.js +326 -0
- package/dist/shared/components/chat/ChannelExtras.js +141 -121
- package/dist/shared/components/chat/ChatAnalyticsView.js +112 -110
- package/dist/shared/components/chat/ChatPanel.js +1695 -1733
- package/dist/shared/components/chat/Composer.js +357 -303
- package/dist/shared/components/chat/MessageActions.js +92 -0
- package/dist/shared/components/chat/MessageFormat.js +290 -264
- package/dist/shared/components/chat/OutboxBubbles.js +146 -0
- package/dist/shared/components/chat/RequestIdCard.js +135 -0
- package/dist/shared/components/chat/RoomHeaderMenu.js +202 -0
- package/dist/shared/components/chat/RoomParts.js +213 -274
- package/dist/shared/components/chat/ScreenClip.js +184 -0
- package/dist/shared/components/chat/chat-core.js +402 -483
- package/dist/shared/components/chat/chat-drafts.js +59 -0
- package/dist/shared/components/chat/chat-emoji.js +348 -0
- package/dist/shared/components/chat/chat-local-time.js +41 -0
- package/dist/shared/components/chat/chat-outbox.js +303 -0
- package/dist/shared/components/chat/chat-window.js +163 -0
- package/dist/shared/components/chat/huddle/HuddleControls.js +143 -0
- package/dist/shared/components/chat/huddle/HuddleStage.js +164 -0
- package/dist/shared/components/chat/huddle/huddle-store.js +342 -0
- package/dist/shared/components/chat/huddle/useHuddle.js +58 -0
- package/dist/shared/components/help-videos/api.js +80 -67
- package/dist/shared/components/help-videos/editor/DetailsTab.js +147 -130
- package/dist/shared/components/item-edit/CatalogPickerField.js +113 -112
- package/dist/shared/components/item-edit/ChangeReasonDialog.js +13 -13
- package/dist/shared/components/item-edit/FieldAffordances.js +9 -8
- package/dist/shared/components/item-edit/FieldRenderer.js +248 -245
- package/dist/shared/components/item-edit/FieldRow.js +382 -320
- package/dist/shared/components/item-edit/FormHelpVideoButton.js +59 -0
- package/dist/shared/components/item-edit/GroupSection.js +786 -639
- package/dist/shared/components/item-edit/HeaderTools.js +59 -56
- package/dist/shared/components/item-edit/InlineTableField.js +3 -1
- package/dist/shared/components/item-edit/LayoutContentBlock.js +47 -24
- package/dist/shared/components/item-edit/RelationCombobox.js +186 -176
- package/dist/shared/components/item-edit/entry/EntryStrip.js +54 -0
- package/dist/shared/components/item-edit/entry/entry-keys.js +27 -0
- package/dist/shared/components/item-edit/entry/useEntryKeyboard.js +70 -0
- package/dist/shared/components/item-edit/entry/useEntryMode.js +59 -0
- package/dist/shared/components/item-edit/form-structure-ui.js +105 -0
- package/dist/shared/components/item-edit/lazy-sections.js +36 -0
- package/dist/shared/components/item-edit/lock-why.js +94 -0
- package/dist/shared/components/item-edit/picker-miss.js +26 -0
- package/dist/shared/components/item-edit/placement-behaviour.js +196 -0
- package/dist/shared/components/item-edit/useFormUsageBeacon.js +65 -0
- package/dist/shared/components/layout-editor/AddPanel.js +226 -151
- package/dist/shared/components/layout-editor/ArrangeButton.js +34 -0
- package/dist/shared/components/layout-editor/AutoArrange.js +86 -0
- package/dist/shared/components/layout-editor/CanvasCompare.js +79 -0
- package/dist/shared/components/layout-editor/ChangeNote.js +147 -0
- package/dist/shared/components/layout-editor/CollabParts.js +175 -0
- package/dist/shared/components/layout-editor/DesignNode.js +311 -116
- package/dist/shared/components/layout-editor/EditorCanvas.js +30 -26
- package/dist/shared/components/layout-editor/EditorTopBar.js +463 -175
- package/dist/shared/components/layout-editor/FindReplace.js +188 -0
- package/dist/shared/components/layout-editor/FormMapButton.js +141 -0
- package/dist/shared/components/layout-editor/HistoryPanel.js +250 -109
- package/dist/shared/components/layout-editor/LayoutEditor.js +1196 -305
- package/dist/shared/components/layout-editor/LayoutsRail.js +94 -67
- package/dist/shared/components/layout-editor/NoteMarker.js +38 -0
- package/dist/shared/components/layout-editor/PlacementsTable.js +187 -0
- package/dist/shared/components/layout-editor/RestorePiece.js +143 -0
- package/dist/shared/components/layout-editor/ScheduleChange.js +106 -0
- package/dist/shared/components/layout-editor/SessionHistory.js +84 -0
- package/dist/shared/components/layout-editor/StagedChip.js +22 -0
- package/dist/shared/components/layout-editor/StructureMenu.js +464 -0
- package/dist/shared/components/layout-editor/UnsavedConfirm.js +103 -0
- package/dist/shared/components/layout-editor/ai/AiToolsButton.js +625 -0
- package/dist/shared/components/layout-editor/ai/ChangeCheck.js +153 -0
- package/dist/shared/components/layout-editor/ai/ai-tools-api.js +80 -0
- package/dist/shared/components/layout-editor/ai/assist-ops.js +38 -0
- package/dist/shared/components/layout-editor/ai/autofill-ops.js +73 -0
- package/dist/shared/components/layout-editor/ai/canvas-capture.js +41 -0
- package/dist/shared/components/layout-editor/ai-forms/AiComposer.js +271 -0
- package/dist/shared/components/layout-editor/ai-forms/AiFormsButton.js +182 -0
- package/dist/shared/components/layout-editor/ai-forms/MeaningSuggestions.js +109 -0
- package/dist/shared/components/layout-editor/ai-forms/SlimPanel.js +170 -0
- package/dist/shared/components/layout-editor/ai-forms/ai-forms-api.js +40 -0
- package/dist/shared/components/layout-editor/ai-forms/pending.js +25 -0
- package/dist/shared/components/layout-editor/ai-forms/plan.js +263 -0
- package/dist/shared/components/layout-editor/ai-rules/AiAskPopover.js +160 -0
- package/dist/shared/components/layout-editor/ai-rules/CascadeWriter.js +175 -0
- package/dist/shared/components/layout-editor/ai-rules/FieldRuleWriter.js +97 -0
- package/dist/shared/components/layout-editor/ai-rules/RuleWriter.js +94 -0
- package/dist/shared/components/layout-editor/ai-rules/ValidationSuggest.js +153 -0
- package/dist/shared/components/layout-editor/ai-rules/api.js +6 -0
- package/dist/shared/components/layout-editor/ai-text/AiTextTools.js +383 -0
- package/dist/shared/components/layout-editor/ai-text/text-ops.js +125 -0
- package/dist/shared/components/layout-editor/assist/AskPanel.js +278 -0
- package/dist/shared/components/layout-editor/assist/ExplainDiff.js +93 -0
- package/dist/shared/components/layout-editor/assist/ProposalsButton.js +150 -0
- package/dist/shared/components/layout-editor/assist/assist-api.js +63 -0
- package/dist/shared/components/layout-editor/assist/jump.js +142 -0
- package/dist/shared/components/layout-editor/assist/settings-index.js +118 -0
- package/dist/shared/components/layout-editor/auto-arrange.js +101 -0
- package/dist/shared/components/layout-editor/bulk/BulkChangesButton.js +221 -0
- package/dist/shared/components/layout-editor/bulk/BulkRun.js +237 -0
- package/dist/shared/components/layout-editor/bulk/MacrosPanel.js +230 -0
- package/dist/shared/components/layout-editor/bulk/bulk-api.js +65 -0
- package/dist/shared/components/layout-editor/bulk/field-labels.js +22 -0
- package/dist/shared/components/layout-editor/bulk/macro-record.js +142 -0
- package/dist/shared/components/layout-editor/bulk/useMacroRecorder.js +65 -0
- package/dist/shared/components/layout-editor/bundle-to-active.js +1 -0
- package/dist/shared/components/layout-editor/canvas-diff.js +157 -0
- package/dist/shared/components/layout-editor/collab/FormFollowShare.js +388 -0
- package/dist/shared/components/layout-editor/collab/collab-api.js +80 -0
- package/dist/shared/components/layout-editor/commands/CommandPalette.js +221 -0
- package/dist/shared/components/layout-editor/commands/intents.js +214 -0
- package/dist/shared/components/layout-editor/commands/parse.js +242 -0
- package/dist/shared/components/layout-editor/design-context.js +26 -6
- package/dist/shared/components/layout-editor/dnd/LayoutDndProvider.js +181 -164
- package/dist/shared/components/layout-editor/dnd/collision.js +25 -23
- package/dist/shared/components/layout-editor/dnd/node.js +69 -57
- package/dist/shared/components/layout-editor/dnd/rail-drop.js +56 -0
- package/dist/shared/components/layout-editor/draft-recovery.js +131 -0
- package/dist/shared/components/layout-editor/editor-notes.js +78 -0
- package/dist/shared/components/layout-editor/editors/swap-config.js +1 -0
- package/dist/shared/components/layout-editor/entry/PlacementPresets.js +149 -0
- package/dist/shared/components/layout-editor/entry/entry-editor-context.js +10 -0
- package/dist/shared/components/layout-editor/entry/presets.js +71 -0
- package/dist/shared/components/layout-editor/entry/tab-order.js +110 -0
- package/dist/shared/components/layout-editor/entry/theme-preview.js +37 -0
- package/dist/shared/components/layout-editor/explain/CanvasRules.js +142 -0
- package/dist/shared/components/layout-editor/explain/default-ghosts.js +81 -0
- package/dist/shared/components/layout-editor/explain/driver-hover.js +62 -0
- package/dist/shared/components/layout-editor/explain/field-sources.js +246 -0
- package/dist/shared/components/layout-editor/explain/rule-graph.js +215 -0
- package/dist/shared/components/layout-editor/explain/use-explain.js +132 -0
- package/dist/shared/components/layout-editor/field-zones.js +116 -0
- package/dist/shared/components/layout-editor/form-map.js +138 -0
- package/dist/shared/components/layout-editor/grid-guides.js +142 -0
- package/dist/shared/components/layout-editor/history-api.js +87 -0
- package/dist/shared/components/layout-editor/inheritance.js +55 -0
- package/dist/shared/components/layout-editor/inspect/inspect-api.js +66 -0
- package/dist/shared/components/layout-editor/inspect/picker-preview.js +48 -0
- package/dist/shared/components/layout-editor/inspect/width-fit.js +87 -0
- package/dist/shared/components/layout-editor/inspector/AiFillSetting.js +85 -0
- package/dist/shared/components/layout-editor/inspector/BehaviourSettings.js +402 -0
- package/dist/shared/components/layout-editor/inspector/Breadcrumb.js +36 -0
- package/dist/shared/components/layout-editor/inspector/BulkInspector.js +179 -0
- package/dist/shared/components/layout-editor/inspector/ColumnFit.js +112 -0
- package/dist/shared/components/layout-editor/inspector/GroupInspector.js +291 -141
- package/dist/shared/components/layout-editor/inspector/HelpTab.js +174 -0
- package/dist/shared/components/layout-editor/inspector/Inspector.js +282 -180
- package/dist/shared/components/layout-editor/inspector/LookTab.js +166 -109
- package/dist/shared/components/layout-editor/inspector/OverrideNotice.js +61 -0
- package/dist/shared/components/layout-editor/inspector/PickerMisses.js +129 -0
- package/dist/shared/components/layout-editor/inspector/PickerPreview.js +134 -0
- package/dist/shared/components/layout-editor/inspector/PickerTab.js +146 -118
- package/dist/shared/components/layout-editor/inspector/RulesTab.js +162 -111
- package/dist/shared/components/layout-editor/inspector/Translations.js +156 -0
- package/dist/shared/components/layout-editor/inspector/kit.js +71 -70
- package/dist/shared/components/layout-editor/inspector/tab-request.js +21 -0
- package/dist/shared/components/layout-editor/is-typing.js +9 -0
- package/dist/shared/components/layout-editor/keyboard-move.js +66 -0
- package/dist/shared/components/layout-editor/lint/LintPanel.js +190 -0
- package/dist/shared/components/layout-editor/lint/lint-api.js +52 -0
- package/dist/shared/components/layout-editor/load-error.js +37 -0
- package/dist/shared/components/layout-editor/matrix/FieldStateMatrix.js +305 -0
- package/dist/shared/components/layout-editor/matrix/MatrixGrid.js +181 -0
- package/dist/shared/components/layout-editor/matrix/RoleSectionMatrix.js +147 -0
- package/dist/shared/components/layout-editor/matrix/matrix-api.js +48 -0
- package/dist/shared/components/layout-editor/matrix/role-matrix.js +36 -0
- package/dist/shared/components/layout-editor/matrix/state-matrix.js +145 -0
- package/dist/shared/components/layout-editor/nav/FindPanel.js +109 -0
- package/dist/shared/components/layout-editor/nav/NavTools.js +114 -0
- package/dist/shared/components/layout-editor/nav/OutlinePanel.js +228 -0
- package/dist/shared/components/layout-editor/nav/ShortcutSheet.js +31 -0
- package/dist/shared/components/layout-editor/nav/find.js +20 -0
- package/dist/shared/components/layout-editor/nav/tree.js +142 -0
- package/dist/shared/components/layout-editor/nav/useEditorNav.js +101 -0
- package/dist/shared/components/layout-editor/nav/view-prefs.js +34 -0
- package/dist/shared/components/layout-editor/ops/ChangeRequestsPanel.js +143 -0
- package/dist/shared/components/layout-editor/ops/DependencyDiagram.js +179 -0
- package/dist/shared/components/layout-editor/ops/LayoutOpsBlocks.js +92 -0
- package/dist/shared/components/layout-editor/ops/PromotePanel.js +287 -0
- package/dist/shared/components/layout-editor/ops/ops-api.js +122 -0
- package/dist/shared/components/layout-editor/outputs/OutputsButton.js +254 -0
- package/dist/shared/components/layout-editor/outputs/help-sheet.js +154 -0
- package/dist/shared/components/layout-editor/outputs/output-api.js +61 -0
- package/dist/shared/components/layout-editor/overview/OverviewActions.js +15 -3
- package/dist/shared/components/layout-editor/overview/describe-conditions.js +24 -14
- package/dist/shared/components/layout-editor/overview/overview-api.js +105 -88
- package/dist/shared/components/layout-editor/overview/purpose.js +15 -13
- package/dist/shared/components/layout-editor/panel-style.js +8 -7
- package/dist/shared/components/layout-editor/parity-keys.json.js +4 -0
- package/dist/shared/components/layout-editor/pin.js +25 -0
- package/dist/shared/components/layout-editor/presence.js +111 -0
- package/dist/shared/components/layout-editor/preview/PreviewModes.js +224 -0
- package/dist/shared/components/layout-editor/preview/PreviewPanes.js +262 -0
- package/dist/shared/components/layout-editor/preview/preview-api.js +57 -0
- package/dist/shared/components/layout-editor/preview/preview-model.js +157 -0
- package/dist/shared/components/layout-editor/restore-piece.js +192 -0
- package/dist/shared/components/layout-editor/reuse/FieldMapStep.js +70 -0
- package/dist/shared/components/layout-editor/reuse/FormMoreMenu.js +127 -0
- package/dist/shared/components/layout-editor/reuse/LibraryRows.js +150 -0
- package/dist/shared/components/layout-editor/reuse/NewFormStart.js +20 -0
- package/dist/shared/components/layout-editor/reuse/SectionReuseActions.js +291 -0
- package/dist/shared/components/layout-editor/reuse/field-match.js +77 -0
- package/dist/shared/components/layout-editor/reuse/reuse-api.js +73 -0
- package/dist/shared/components/layout-editor/reuse/seed.js +13 -0
- package/dist/shared/components/layout-editor/reuse/useFormFromRecord.js +43 -0
- package/dist/shared/components/layout-editor/reuse/useRailCopy.js +34 -0
- package/dist/shared/components/layout-editor/section-structure.js +241 -0
- package/dist/shared/components/layout-editor/settings/EntrySection.js +296 -0
- package/dist/shared/components/layout-editor/settings/FormSettings.js +125 -103
- package/dist/shared/components/layout-editor/settings/InheritanceSection.js +1 -1
- package/dist/shared/components/layout-editor/settings/ResolveSettings.js +255 -0
- package/dist/shared/components/layout-editor/settings/ToolsSection.js +215 -105
- package/dist/shared/components/layout-editor/settings/WhoSection.js +139 -100
- package/dist/shared/components/layout-editor/settings/controls.js +8 -8
- package/dist/shared/components/layout-editor/settings/settings-registry.js +142 -21
- package/dist/shared/components/layout-editor/shortcuts.js +88 -0
- package/dist/shared/components/layout-editor/show-when.js +35 -0
- package/dist/shared/components/layout-editor/slot-names.js +4 -3
- package/dist/shared/components/layout-editor/staged-api.js +64 -0
- package/dist/shared/components/layout-editor/structure-ops.js +403 -0
- package/dist/shared/components/layout-editor/testing/CostLimitSetting.js +42 -0
- package/dist/shared/components/layout-editor/testing/TestingPanels.js +556 -0
- package/dist/shared/components/layout-editor/testing/testing-api.js +67 -0
- package/dist/shared/components/layout-editor/testing/testing-model.js +406 -0
- package/dist/shared/components/layout-editor/testing/use-record-check.js +44 -0
- package/dist/shared/components/layout-editor/toolbar-kit.js +242 -0
- package/dist/shared/components/layout-editor/unsaved-marks.js +72 -0
- package/dist/shared/components/layout-editor/usage/AbTestSection.js +355 -0
- package/dist/shared/components/layout-editor/usage/FillChip.js +27 -0
- package/dist/shared/components/layout-editor/usage/UsagePanel.js +232 -0
- package/dist/shared/components/layout-editor/usage/ab-api.js +86 -0
- package/dist/shared/components/layout-editor/usage/suggest-collapse.js +32 -0
- package/dist/shared/components/layout-editor/usage/suggest-sections.js +55 -0
- package/dist/shared/components/layout-editor/usage/usage-api.js +104 -0
- package/dist/shared/components/layout-editor/useLayoutDraft.js +573 -306
- package/dist/shared/components/notifications/NotificationAnalyticsView.js +148 -77
- package/dist/shared/components/panels/ErpFailureBanner.js +18 -17
- package/dist/shared/components/panels/ExternalRequestsChip.js +63 -62
- package/dist/shared/components/pipeline/PipelineEditorView.js +106 -104
- package/dist/shared/components/profile/AgentsPanel.js +479 -0
- package/dist/shared/components/queue/QueueWorklist.js +1026 -1040
- package/dist/shared/components/support/SuggestFormChange.js +143 -0
- package/dist/shared/components/support/SupportAnalytics.js +171 -0
- package/dist/shared/components/support/SupportView.js +75 -73
- package/dist/shared/lib/ai-fill.js +37 -0
- package/dist/shared/lib/background-runs.js +150 -0
- package/dist/shared/lib/delivery-ack.js +9 -0
- package/dist/shared/lib/entry-badge-style.js +13 -0
- package/dist/shared/lib/entry-config.js +71 -0
- package/dist/shared/lib/form-sections.js +64 -0
- package/dist/shared/lib/form-structure.js +99 -0
- package/dist/shared/lib/form-usage-beacon.js +133 -0
- package/dist/shared/lib/jobs-tray.js +25 -23
- package/dist/shared/lib/keyset-pager.js +37 -0
- package/dist/shared/lib/layout-i18n.js +66 -0
- package/dist/shared/lib/layout-lint.js +490 -0
- package/dist/shared/lib/layout-ops.js +116 -110
- package/dist/shared/lib/layout-resolve.js +113 -0
- package/dist/shared/lib/placement-behaviour.js +144 -0
- package/dist/shared/lib/prefetch.js +149 -0
- package/dist/shared/lib/presence-hooks.js +199 -0
- package/dist/shared/lib/record-outbox.js +82 -81
- package/dist/shared/lib/replay-socket.js +93 -0
- package/dist/shared/lib/request-gate.js +51 -50
- package/dist/shared/lib/room-gaps.js +96 -0
- package/dist/shared/lib/screenshot.js +54 -28
- package/dist/shared/lib/search-log.js +27 -0
- package/dist/shared/lib/socket-realtime.js +101 -80
- package/dist/shared/lib/visible-when.js +34 -0
- package/dist/shared/lib/worker-socket.js +200 -0
- package/package.json +1 -1
|
@@ -8,27 +8,28 @@ import { useState as $, useEffect as ue, useContext as ua, useRef as Je, useMemo
|
|
|
8
8
|
import { createPortal as fa } from "react-dom";
|
|
9
9
|
import { toast as T } from "sonner";
|
|
10
10
|
import { useNivaroClient as Z } from "../../context.js";
|
|
11
|
-
import { ExplainCard as ga } from "../ai/ExplainButton.js";
|
|
12
11
|
import { post as J, get as Y, patch as we, del as $e } from "../../lib/commands.js";
|
|
13
|
-
import { cn as I, formatRelative as
|
|
12
|
+
import { cn as I, formatRelative as ga, titleCase as ba } from "../../lib/utils.js";
|
|
13
|
+
import { ExplainCard as ya } from "../ai/ExplainButton.js";
|
|
14
|
+
import { PipelineCumulativeFlowCard as va } from "../charts/CumulativeFlowChart.js";
|
|
14
15
|
import { Badge as _e } from "../ui/badge.js";
|
|
15
16
|
import { Button as P } from "../ui/button.js";
|
|
16
17
|
import { Input as V } from "../ui/input.js";
|
|
17
18
|
import { Label as U } from "../ui/label.js";
|
|
18
19
|
import { Popover as Ae, PopoverTrigger as je, PopoverContent as Le } from "../ui/popover.js";
|
|
19
|
-
import { Select as
|
|
20
|
+
import { Select as Na, SelectTrigger as wa, SelectValue as ka, SelectContent as _a, SelectItem as Ca } from "../ui/select.js";
|
|
20
21
|
import { Skeleton as De } from "../ui/skeleton.js";
|
|
21
22
|
import { Switch as Pe } from "../ui/switch.js";
|
|
22
23
|
import { Textarea as zt } from "../ui/textarea.js";
|
|
23
24
|
import { FieldPicker as rt } from "./FieldPicker.js";
|
|
24
|
-
import { OwnerMatrix as
|
|
25
|
-
import { OwnerMatrixVersionsCard as
|
|
26
|
-
import { TemplateLintCard as
|
|
27
|
-
import { PipelineSkipCriteria as
|
|
28
|
-
import { PipelineStateOwners as
|
|
29
|
-
import { findM2ORelation as
|
|
30
|
-
import { TeamsView as
|
|
31
|
-
import { useScopeDimensions as
|
|
25
|
+
import { OwnerMatrix as Sa } from "./OwnerMatrix.js";
|
|
26
|
+
import { OwnerMatrixVersionsCard as qa } from "./OwnerMatrixVersionsCard.js";
|
|
27
|
+
import { TemplateLintCard as $a, SkipReportCard as Fa } from "./PipelineHealthCards.js";
|
|
28
|
+
import { PipelineSkipCriteria as Ea } from "./PipelineSkipCriteria.js";
|
|
29
|
+
import { PipelineStateOwners as Oa } from "./PipelineStateOwners.js";
|
|
30
|
+
import { findM2ORelation as Ra, extractTemplateFields as Pa, renderDisplayTemplate as nt } from "./relations.js";
|
|
31
|
+
import { TeamsView as Ta } from "./TeamsView.js";
|
|
32
|
+
import { useScopeDimensions as Da, rankTeamForFilters as Aa, tierOrder as St } from "./teamScopes.js";
|
|
32
33
|
const Kt = "rgb(var(--nvr-cyan-rgb, 0 206 255))";
|
|
33
34
|
function ge({
|
|
34
35
|
value: a,
|
|
@@ -126,7 +127,7 @@ function ge({
|
|
|
126
127
|
] })
|
|
127
128
|
] });
|
|
128
129
|
}
|
|
129
|
-
function
|
|
130
|
+
function ja({
|
|
130
131
|
values: a,
|
|
131
132
|
onChange: l,
|
|
132
133
|
options: d,
|
|
@@ -211,7 +212,7 @@ function Aa({
|
|
|
211
212
|
] })
|
|
212
213
|
] });
|
|
213
214
|
}
|
|
214
|
-
const
|
|
215
|
+
const La = [
|
|
215
216
|
"#6b7280",
|
|
216
217
|
"#ef4444",
|
|
217
218
|
"#f97316",
|
|
@@ -239,7 +240,7 @@ function Ge({
|
|
|
239
240
|
title: "No color"
|
|
240
241
|
}
|
|
241
242
|
),
|
|
242
|
-
|
|
243
|
+
La.map((d) => /* @__PURE__ */ e(
|
|
243
244
|
"button",
|
|
244
245
|
{
|
|
245
246
|
type: "button",
|
|
@@ -529,10 +530,10 @@ function Rt() {
|
|
|
529
530
|
}
|
|
530
531
|
);
|
|
531
532
|
}
|
|
532
|
-
function
|
|
533
|
+
function Ma(a) {
|
|
533
534
|
return a ? Array.isArray(a) ? a.map(String).filter(Boolean) : typeof a == "string" && a.trim() ? [a] : [] : [];
|
|
534
535
|
}
|
|
535
|
-
function
|
|
536
|
+
function za({
|
|
536
537
|
relatedCollection: a,
|
|
537
538
|
value: l,
|
|
538
539
|
onChange: d
|
|
@@ -550,7 +551,7 @@ function Ma({
|
|
|
550
551
|
staleTime: 6e4,
|
|
551
552
|
enabled: !!a
|
|
552
553
|
}), h = ((b == null ? void 0 : b.fields) ?? []).map((O) => O.field), m = (b == null ? void 0 : b.display_template) ?? null, p = ["name", "title", "label", "display_name", "subject", "email", "slug"], n = [
|
|
553
|
-
.../* @__PURE__ */ new Set(["id", ...
|
|
554
|
+
.../* @__PURE__ */ new Set(["id", ...Pa(m), ...p])
|
|
554
555
|
], y = h.length ? n.filter((O) => O === "id" || h.includes(O)).join(",") : "id", { data: q, isLoading: v, isError: _ } = G({
|
|
555
556
|
queryKey: ["relation-picker-items", a, y],
|
|
556
557
|
queryFn: () => x.request(
|
|
@@ -666,7 +667,7 @@ function Ma({
|
|
|
666
667
|
] })
|
|
667
668
|
] });
|
|
668
669
|
}
|
|
669
|
-
const
|
|
670
|
+
const Ka = [
|
|
670
671
|
{ value: "eq", label: "equals" },
|
|
671
672
|
{ value: "neq", label: "not equals" },
|
|
672
673
|
{ value: "gt", label: "greater than" },
|
|
@@ -676,8 +677,8 @@ const za = [
|
|
|
676
677
|
{ value: "contains", label: "contains" },
|
|
677
678
|
{ value: "null", label: "is empty" },
|
|
678
679
|
{ value: "nnull", label: "is not empty" }
|
|
679
|
-
],
|
|
680
|
-
function
|
|
680
|
+
], Ba = /* @__PURE__ */ new Set(["integer", "bigInteger", "float", "decimal", "number"]), Wa = /* @__PURE__ */ new Set(["date", "dateTime", "datetime", "timestamp"]), Qa = /* @__PURE__ */ new Set(["boolean"]);
|
|
681
|
+
function Va({
|
|
681
682
|
rules: a,
|
|
682
683
|
onChange: l,
|
|
683
684
|
collection: d
|
|
@@ -695,7 +696,7 @@ function Qa({
|
|
|
695
696
|
if (!v.includes(".")) {
|
|
696
697
|
const _ = b.find((N) => N.field === v);
|
|
697
698
|
if (_) {
|
|
698
|
-
const N =
|
|
699
|
+
const N = Ra(h, d ?? "", v);
|
|
699
700
|
return { type: _.type, relatedCollection: (N == null ? void 0 : N.one_collection) ?? void 0 };
|
|
700
701
|
}
|
|
701
702
|
}
|
|
@@ -703,7 +704,7 @@ function Qa({
|
|
|
703
704
|
}
|
|
704
705
|
const p = (v, _) => l(a.map((N, C) => C === v ? { ...N, ..._ } : N)), n = (v) => l(a.filter((_, N) => N !== v));
|
|
705
706
|
function y(v) {
|
|
706
|
-
return v ? v.split(".").map(
|
|
707
|
+
return v ? v.split(".").map(ba).join(" → ") : "";
|
|
707
708
|
}
|
|
708
709
|
return /* @__PURE__ */ t("div", { className: "space-y-2 border-t border-slate-200 pt-3", children: [
|
|
709
710
|
/* @__PURE__ */ t(
|
|
@@ -724,7 +725,7 @@ function Qa({
|
|
|
724
725
|
o && /* @__PURE__ */ t("div", { className: "space-y-2", children: [
|
|
725
726
|
/* @__PURE__ */ e("p", { className: "text-[11px] text-slate-400 leading-snug", children: "Transition is only offered when all conditions match the record — use two transitions with opposite conditions to branch." }),
|
|
726
727
|
a.map((v, _) => {
|
|
727
|
-
const N = v.op === "null" || v.op === "nnull", C = m(v.field), D =
|
|
728
|
+
const N = v.op === "null" || v.op === "nnull", C = m(v.field), D = Ba.has(C.type), j = Wa.has(C.type), O = Qa.has(C.type), g = !!C.relatedCollection;
|
|
728
729
|
return /* @__PURE__ */ t(
|
|
729
730
|
"div",
|
|
730
731
|
{
|
|
@@ -757,15 +758,15 @@ function Qa({
|
|
|
757
758
|
{
|
|
758
759
|
value: v.op,
|
|
759
760
|
onChange: (i) => p(_, { op: i || "eq" }),
|
|
760
|
-
options:
|
|
761
|
+
options: Ka.map((i) => ({ value: i.value, label: i.label })),
|
|
761
762
|
placeholder: "Operator…"
|
|
762
763
|
}
|
|
763
764
|
) }),
|
|
764
765
|
!N && /* @__PURE__ */ e("div", { className: "flex-1 min-w-[120px]", children: g ? /* @__PURE__ */ e(
|
|
765
|
-
|
|
766
|
+
za,
|
|
766
767
|
{
|
|
767
768
|
relatedCollection: C.relatedCollection,
|
|
768
|
-
value:
|
|
769
|
+
value: Ma(v.value),
|
|
769
770
|
onChange: (i) => p(_, { value: i.length === 1 ? i[0] : i })
|
|
770
771
|
}
|
|
771
772
|
) : O ? /* @__PURE__ */ e(
|
|
@@ -828,7 +829,7 @@ function Qa({
|
|
|
828
829
|
] })
|
|
829
830
|
] });
|
|
830
831
|
}
|
|
831
|
-
function
|
|
832
|
+
function Ha({
|
|
832
833
|
requirement: a,
|
|
833
834
|
childRelations: l,
|
|
834
835
|
onChange: d,
|
|
@@ -951,7 +952,7 @@ function Va({
|
|
|
951
952
|
] })
|
|
952
953
|
] });
|
|
953
954
|
}
|
|
954
|
-
function
|
|
955
|
+
function Ua({
|
|
955
956
|
requirements: a,
|
|
956
957
|
onChange: l,
|
|
957
958
|
collection: d
|
|
@@ -982,7 +983,7 @@ function Ha({
|
|
|
982
983
|
o && /* @__PURE__ */ t("div", { className: "space-y-2", children: [
|
|
983
984
|
/* @__PURE__ */ e("p", { className: "text-[11px] text-slate-400 leading-snug", children: "Block this transition until every row of a child relation has the listed fields filled in. Prompts the user with a fill-in dialog when rows are incomplete." }),
|
|
984
985
|
a.map((m, p) => /* @__PURE__ */ e(
|
|
985
|
-
|
|
986
|
+
Ha,
|
|
986
987
|
{
|
|
987
988
|
requirement: m,
|
|
988
989
|
childRelations: u,
|
|
@@ -1051,7 +1052,7 @@ function Fe({
|
|
|
1051
1052
|
r && /* @__PURE__ */ e("p", { className: "text-[10.5px] text-red-500", children: "Invalid JSON — not saved yet." })
|
|
1052
1053
|
] });
|
|
1053
1054
|
}
|
|
1054
|
-
function
|
|
1055
|
+
function Ga({
|
|
1055
1056
|
actions: a,
|
|
1056
1057
|
onChange: l
|
|
1057
1058
|
}) {
|
|
@@ -1340,7 +1341,7 @@ function lt({
|
|
|
1340
1341
|
/* @__PURE__ */ e(U, { className: "text-[12px]", children: r.to_previous ? "Fallback state" : `To State${r.to_states.length !== 1 ? "s" : ""}` }),
|
|
1341
1342
|
r.to_previous && /* @__PURE__ */ e("p", { className: "text-[11px] text-slate-400", children: "The real target is the record's previous state — this only applies when history can't answer (the record started in this state, or the prior state was removed)." }),
|
|
1342
1343
|
/* @__PURE__ */ e(
|
|
1343
|
-
|
|
1344
|
+
ja,
|
|
1344
1345
|
{
|
|
1345
1346
|
values: r.to_states,
|
|
1346
1347
|
onChange: (n) => b("to_states", n),
|
|
@@ -1381,7 +1382,7 @@ function lt({
|
|
|
1381
1382
|
/* @__PURE__ */ e(Ge, { value: r.color, onChange: (n) => b("color", n) })
|
|
1382
1383
|
] }),
|
|
1383
1384
|
/* @__PURE__ */ e(
|
|
1384
|
-
|
|
1385
|
+
Va,
|
|
1385
1386
|
{
|
|
1386
1387
|
rules: r.condition_rules ?? [],
|
|
1387
1388
|
onChange: (n) => b("condition_rules", n),
|
|
@@ -1389,7 +1390,7 @@ function lt({
|
|
|
1389
1390
|
}
|
|
1390
1391
|
),
|
|
1391
1392
|
/* @__PURE__ */ e(
|
|
1392
|
-
|
|
1393
|
+
Ua,
|
|
1393
1394
|
{
|
|
1394
1395
|
requirements: r.requirements ?? [],
|
|
1395
1396
|
onChange: (n) => b("requirements", n.length > 0 ? n : null),
|
|
@@ -1397,7 +1398,7 @@ function lt({
|
|
|
1397
1398
|
}
|
|
1398
1399
|
),
|
|
1399
1400
|
/* @__PURE__ */ e(
|
|
1400
|
-
|
|
1401
|
+
Ga,
|
|
1401
1402
|
{
|
|
1402
1403
|
actions: r.actions ?? [],
|
|
1403
1404
|
onChange: (n) => b("actions", n.length > 0 ? n : null)
|
|
@@ -1512,19 +1513,19 @@ function lt({
|
|
|
1512
1513
|
] })
|
|
1513
1514
|
] });
|
|
1514
1515
|
}
|
|
1515
|
-
function
|
|
1516
|
+
function Ya(a) {
|
|
1516
1517
|
var x, o;
|
|
1517
1518
|
const l = ((x = a.first_name) == null ? void 0 : x[0]) ?? "", d = ((o = a.last_name) == null ? void 0 : o[0]) ?? "";
|
|
1518
1519
|
return (l + d).toUpperCase() || a.email[0].toUpperCase();
|
|
1519
1520
|
}
|
|
1520
|
-
function
|
|
1521
|
+
function Ja(a) {
|
|
1521
1522
|
const l = a.filter((o) => !o.filters || o.filters.length === 0), d = /* @__PURE__ */ new Set(), x = [];
|
|
1522
1523
|
for (const o of l)
|
|
1523
1524
|
for (const f of o.users)
|
|
1524
1525
|
d.has(f.user) || (d.add(f.user), x.push(f));
|
|
1525
1526
|
return x;
|
|
1526
1527
|
}
|
|
1527
|
-
function
|
|
1528
|
+
function Xa({
|
|
1528
1529
|
users: a,
|
|
1529
1530
|
filteredCount: l
|
|
1530
1531
|
}) {
|
|
@@ -1537,7 +1538,7 @@ function Ja({
|
|
|
1537
1538
|
{
|
|
1538
1539
|
title: `${o.first_name ?? ""} ${o.last_name ?? ""}`.trim() || o.email,
|
|
1539
1540
|
className: "h-5 w-5 rounded-full bg-nvr-cyan/20 border border-white flex items-center justify-center text-[9px] font-semibold text-nvr-cyan",
|
|
1540
|
-
children:
|
|
1541
|
+
children: Ya(o)
|
|
1541
1542
|
},
|
|
1542
1543
|
o.user
|
|
1543
1544
|
)),
|
|
@@ -1560,7 +1561,7 @@ function Ja({
|
|
|
1560
1561
|
)
|
|
1561
1562
|
] });
|
|
1562
1563
|
}
|
|
1563
|
-
function
|
|
1564
|
+
function Ia({
|
|
1564
1565
|
s: a,
|
|
1565
1566
|
groups: l,
|
|
1566
1567
|
expandedStateId: d,
|
|
@@ -1607,9 +1608,9 @@ function Xa({
|
|
|
1607
1608
|
a.lock_record && /* @__PURE__ */ e(_e, { variant: "outline", className: "text-[10px] h-4 px-1", children: "locked" })
|
|
1608
1609
|
] }) }),
|
|
1609
1610
|
/* @__PURE__ */ e(
|
|
1610
|
-
|
|
1611
|
+
Xa,
|
|
1611
1612
|
{
|
|
1612
|
-
users:
|
|
1613
|
+
users: Ja(l),
|
|
1613
1614
|
filteredCount: l.filter((p) => p.filters && p.filters.length > 0).length
|
|
1614
1615
|
}
|
|
1615
1616
|
),
|
|
@@ -1647,7 +1648,7 @@ function Xa({
|
|
|
1647
1648
|
}
|
|
1648
1649
|
);
|
|
1649
1650
|
}
|
|
1650
|
-
function
|
|
1651
|
+
function Za({
|
|
1651
1652
|
d: a,
|
|
1652
1653
|
siblings: l,
|
|
1653
1654
|
onSave: d,
|
|
@@ -1776,7 +1777,7 @@ function Ia({
|
|
|
1776
1777
|
] })
|
|
1777
1778
|
] });
|
|
1778
1779
|
}
|
|
1779
|
-
function
|
|
1780
|
+
function es({
|
|
1780
1781
|
d: a,
|
|
1781
1782
|
siblings: l,
|
|
1782
1783
|
onEdit: d,
|
|
@@ -1829,7 +1830,7 @@ function Za({
|
|
|
1829
1830
|
] }),
|
|
1830
1831
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
1831
1832
|
/* @__PURE__ */ e(
|
|
1832
|
-
|
|
1833
|
+
Za,
|
|
1833
1834
|
{
|
|
1834
1835
|
d: a,
|
|
1835
1836
|
siblings: l,
|
|
@@ -1860,7 +1861,7 @@ function Za({
|
|
|
1860
1861
|
}
|
|
1861
1862
|
);
|
|
1862
1863
|
}
|
|
1863
|
-
function
|
|
1864
|
+
function ts({
|
|
1864
1865
|
binding: a,
|
|
1865
1866
|
templateId: l
|
|
1866
1867
|
}) {
|
|
@@ -2018,7 +2019,7 @@ function es({
|
|
|
2018
2019
|
},
|
|
2019
2020
|
i.id
|
|
2020
2021
|
) : /* @__PURE__ */ e(
|
|
2021
|
-
|
|
2022
|
+
es,
|
|
2022
2023
|
{
|
|
2023
2024
|
d: i,
|
|
2024
2025
|
siblings: r,
|
|
@@ -2111,7 +2112,7 @@ function es({
|
|
|
2111
2112
|
] })
|
|
2112
2113
|
] });
|
|
2113
2114
|
}
|
|
2114
|
-
function
|
|
2115
|
+
function Ys({
|
|
2115
2116
|
templateId: a,
|
|
2116
2117
|
onBack: l,
|
|
2117
2118
|
onExport: d,
|
|
@@ -2510,7 +2511,7 @@ function Us({
|
|
|
2510
2511
|
] })
|
|
2511
2512
|
] }),
|
|
2512
2513
|
/* @__PURE__ */ e(
|
|
2513
|
-
|
|
2514
|
+
ya,
|
|
2514
2515
|
{
|
|
2515
2516
|
kind: "config",
|
|
2516
2517
|
params: { type: "pipeline", id: a },
|
|
@@ -2559,7 +2560,7 @@ function Us({
|
|
|
2559
2560
|
onCancel: () => y(null)
|
|
2560
2561
|
}
|
|
2561
2562
|
) : /* @__PURE__ */ e(
|
|
2562
|
-
|
|
2563
|
+
Ia,
|
|
2563
2564
|
{
|
|
2564
2565
|
s,
|
|
2565
2566
|
groups: (Ie == null ? void 0 : Ie[s.id]) ?? [],
|
|
@@ -2573,7 +2574,7 @@ function Us({
|
|
|
2573
2574
|
),
|
|
2574
2575
|
E === s.id && (n == null ? void 0 : n.id) !== s.id && /* @__PURE__ */ t("div", { className: "ml-4 mb-2 mt-2 rounded-xl border border-slate-200 bg-slate-50 p-4 space-y-4", children: [
|
|
2575
2576
|
/* @__PURE__ */ e(
|
|
2576
|
-
|
|
2577
|
+
Oa,
|
|
2577
2578
|
{
|
|
2578
2579
|
stateId: s.id,
|
|
2579
2580
|
stateName: s.label,
|
|
@@ -2582,7 +2583,7 @@ function Us({
|
|
|
2582
2583
|
}
|
|
2583
2584
|
),
|
|
2584
2585
|
/* @__PURE__ */ e("div", { className: "border-t border-slate-200 pt-4", children: /* @__PURE__ */ e(
|
|
2585
|
-
|
|
2586
|
+
Ea,
|
|
2586
2587
|
{
|
|
2587
2588
|
stateId: s.id,
|
|
2588
2589
|
stateName: s.label,
|
|
@@ -2995,7 +2996,7 @@ function Us({
|
|
|
2995
2996
|
] })
|
|
2996
2997
|
] })
|
|
2997
2998
|
] }),
|
|
2998
|
-
!c.has("branches") && /* @__PURE__ */ e(
|
|
2999
|
+
!c.has("branches") && /* @__PURE__ */ e(is, { templateId: a, states: at }),
|
|
2999
3000
|
!c.has("bindings") && /* @__PURE__ */ t("div", { className: "rounded-xl border border-slate-200 bg-white p-6 space-y-4", children: [
|
|
3000
3001
|
/* @__PURE__ */ t("h2", { className: "text-[13px] font-semibold text-slate-800", children: [
|
|
3001
3002
|
"Applied to Collections",
|
|
@@ -3035,7 +3036,7 @@ function Us({
|
|
|
3035
3036
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-1.5", children: [
|
|
3036
3037
|
/* @__PURE__ */ e("span", { className: "text-[11px] text-slate-400", children: "Owner fallback:" }),
|
|
3037
3038
|
/* @__PURE__ */ e(
|
|
3038
|
-
|
|
3039
|
+
ls,
|
|
3039
3040
|
{
|
|
3040
3041
|
value: s.owner_fallback_field ?? "",
|
|
3041
3042
|
onCommit: (R) => tt.mutate({
|
|
@@ -3103,7 +3104,7 @@ function Us({
|
|
|
3103
3104
|
)
|
|
3104
3105
|
] })
|
|
3105
3106
|
] }),
|
|
3106
|
-
de === s.id && /* @__PURE__ */ e(
|
|
3107
|
+
de === s.id && /* @__PURE__ */ e(ts, { binding: s, templateId: a })
|
|
3107
3108
|
] }, s.id);
|
|
3108
3109
|
}) }),
|
|
3109
3110
|
/* @__PURE__ */ t("div", { className: "space-y-2 pt-2", children: [
|
|
@@ -3180,24 +3181,25 @@ function Us({
|
|
|
3180
3181
|
}
|
|
3181
3182
|
)
|
|
3182
3183
|
] }),
|
|
3183
|
-
/* @__PURE__ */ e(
|
|
3184
|
+
/* @__PURE__ */ e(Sa, { templateId: a, states: at, bindings: me })
|
|
3184
3185
|
] }),
|
|
3185
|
-
L && /* @__PURE__ */ e(
|
|
3186
|
-
!c.has("simulator") && /* @__PURE__ */ e(
|
|
3187
|
-
!c.has("canvas") && /* @__PURE__ */ e(
|
|
3188
|
-
!c.has("flow-map") && /* @__PURE__ */ e(
|
|
3189
|
-
!c.has("
|
|
3190
|
-
!c.has("
|
|
3191
|
-
!c.has("
|
|
3192
|
-
!c.has("
|
|
3193
|
-
!c.has("
|
|
3194
|
-
!c.has("
|
|
3195
|
-
!c.has("
|
|
3196
|
-
!c.has("
|
|
3186
|
+
L && /* @__PURE__ */ e(fs, { onClose: () => M(!1) }),
|
|
3187
|
+
!c.has("simulator") && /* @__PURE__ */ e(os, { bindings: me }),
|
|
3188
|
+
!c.has("canvas") && /* @__PURE__ */ e(us, { templateId: a }),
|
|
3189
|
+
!c.has("flow-map") && /* @__PURE__ */ e(hs, { templateId: a }),
|
|
3190
|
+
!c.has("cumulative-flow") && /* @__PURE__ */ e(va, { templateId: a }),
|
|
3191
|
+
!c.has("replay") && /* @__PURE__ */ e(xs, { templateId: a }),
|
|
3192
|
+
!c.has("migration") && /* @__PURE__ */ e(ps, { templateId: a }),
|
|
3193
|
+
!c.has("lint") && /* @__PURE__ */ e($a, { templateId: a }),
|
|
3194
|
+
!c.has("coverage") && /* @__PURE__ */ e(ms, { templateId: a, states: ie }),
|
|
3195
|
+
!c.has("skip-report") && /* @__PURE__ */ e(Fa, { templateId: a }),
|
|
3196
|
+
!c.has("ai-review") && /* @__PURE__ */ e(as, { templateId: a }),
|
|
3197
|
+
!c.has("versions") && /* @__PURE__ */ e(ss, { templateId: a }),
|
|
3198
|
+
!c.has("matrix-versions") && /* @__PURE__ */ e(qa, { templateId: a })
|
|
3197
3199
|
] })
|
|
3198
3200
|
] });
|
|
3199
3201
|
}
|
|
3200
|
-
function
|
|
3202
|
+
function as({ templateId: a }) {
|
|
3201
3203
|
const l = Z(), [d, x] = $(
|
|
3202
3204
|
null
|
|
3203
3205
|
), o = z({
|
|
@@ -3240,7 +3242,7 @@ function ts({ templateId: a }) {
|
|
|
3240
3242
|
] })
|
|
3241
3243
|
] });
|
|
3242
3244
|
}
|
|
3243
|
-
function
|
|
3245
|
+
function ss({ templateId: a }) {
|
|
3244
3246
|
const l = Z(), d = ve(), [x, o] = $(null), [f, c] = $(null), { data: r, isFetching: u } = G({
|
|
3245
3247
|
queryKey: ["pipeline-version-diff", a, f],
|
|
3246
3248
|
queryFn: () => l.request(Y(`/pipelines/${a}/versions/${f}/diff`)).then((p) => p.data),
|
|
@@ -3280,7 +3282,7 @@ function as({ templateId: a }) {
|
|
|
3280
3282
|
p.note ?? "—",
|
|
3281
3283
|
(n = p.created_by_name) != null && n.trim() ? ` · ${p.created_by_name}` : ""
|
|
3282
3284
|
] }),
|
|
3283
|
-
/* @__PURE__ */ e("span", { className: "shrink-0 text-[10.5px] text-slate-400", children:
|
|
3285
|
+
/* @__PURE__ */ e("span", { className: "shrink-0 text-[10.5px] text-slate-400", children: ga(p.created_at) }),
|
|
3284
3286
|
x === p.id ? /* @__PURE__ */ t("span", { className: "flex shrink-0 items-center gap-1.5", children: [
|
|
3285
3287
|
/* @__PURE__ */ e(
|
|
3286
3288
|
P,
|
|
@@ -3325,7 +3327,7 @@ function as({ templateId: a }) {
|
|
|
3325
3327
|
] })
|
|
3326
3328
|
] }, p.id);
|
|
3327
3329
|
}) }),
|
|
3328
|
-
f != null && /* @__PURE__ */ e("div", { className: "rounded-lg border border-slate-200 bg-slate-50 p-3 dark:border-border dark:bg-muted/30", children: u ? /* @__PURE__ */ e("p", { className: "text-[11.5px] text-slate-400", children: "Comparing…" }) : r ? /* @__PURE__ */ e(
|
|
3330
|
+
f != null && /* @__PURE__ */ e("div", { className: "rounded-lg border border-slate-200 bg-slate-50 p-3 dark:border-border dark:bg-muted/30", children: u ? /* @__PURE__ */ e("p", { className: "text-[11.5px] text-slate-400", children: "Comparing…" }) : r ? /* @__PURE__ */ e(ns, { fromVersion: r.from_version, to: r.to, diff: r.diff }) : /* @__PURE__ */ e("p", { className: "text-[11.5px] text-slate-400", children: "Could not load the diff." }) }),
|
|
3329
3331
|
/* @__PURE__ */ e("p", { className: "text-[10.5px] text-slate-400", children: "Restore snapshots the current config first, then upserts states/transitions/bindings by id — states are never deleted, and transitions with execution history are kept." })
|
|
3330
3332
|
] });
|
|
3331
3333
|
}
|
|
@@ -3334,7 +3336,7 @@ function Ke(a) {
|
|
|
3334
3336
|
const l = typeof a == "string" ? a : JSON.stringify(a);
|
|
3335
3337
|
return l.length > 80 ? `${l.slice(0, 80)}…` : l;
|
|
3336
3338
|
}
|
|
3337
|
-
function
|
|
3339
|
+
function ns({
|
|
3338
3340
|
fromVersion: a,
|
|
3339
3341
|
to: l,
|
|
3340
3342
|
diff: d
|
|
@@ -3435,7 +3437,7 @@ function Ye({
|
|
|
3435
3437
|
a.label
|
|
3436
3438
|
] }) : /* @__PURE__ */ e("span", { className: x, style: o, children: a.label });
|
|
3437
3439
|
}
|
|
3438
|
-
function
|
|
3440
|
+
function ls({ value: a, onCommit: l }) {
|
|
3439
3441
|
const [d, x] = $(a);
|
|
3440
3442
|
return ue(() => x(a), [a]), /* @__PURE__ */ e(
|
|
3441
3443
|
"input",
|
|
@@ -3454,7 +3456,7 @@ function ns({ value: a, onCommit: l }) {
|
|
|
3454
3456
|
}
|
|
3455
3457
|
);
|
|
3456
3458
|
}
|
|
3457
|
-
function
|
|
3459
|
+
function rs({
|
|
3458
3460
|
states: a,
|
|
3459
3461
|
saving: l,
|
|
3460
3462
|
onSave: d,
|
|
@@ -3522,7 +3524,7 @@ function ls({
|
|
|
3522
3524
|
] })
|
|
3523
3525
|
] });
|
|
3524
3526
|
}
|
|
3525
|
-
function
|
|
3527
|
+
function is({
|
|
3526
3528
|
templateId: a,
|
|
3527
3529
|
states: l
|
|
3528
3530
|
}) {
|
|
@@ -3623,7 +3625,7 @@ function rs({
|
|
|
3623
3625
|
n.id
|
|
3624
3626
|
)),
|
|
3625
3627
|
o && /* @__PURE__ */ e(
|
|
3626
|
-
|
|
3628
|
+
rs,
|
|
3627
3629
|
{
|
|
3628
3630
|
states: l,
|
|
3629
3631
|
saving: m.isPending,
|
|
@@ -3633,7 +3635,7 @@ function rs({
|
|
|
3633
3635
|
)
|
|
3634
3636
|
] });
|
|
3635
3637
|
}
|
|
3636
|
-
function
|
|
3638
|
+
function os({ bindings: a }) {
|
|
3637
3639
|
var b;
|
|
3638
3640
|
const l = Z(), [d, x] = $(""), [o, f] = $(""), c = o || ((b = a[0]) == null ? void 0 : b.collection) || "", r = z({
|
|
3639
3641
|
mutationFn: () => l.request(J("/pipelines/simulate", { collection: c, item_id: d.trim() })).then((h) => h.data),
|
|
@@ -3828,19 +3830,19 @@ function Wt({
|
|
|
3828
3830
|
] })
|
|
3829
3831
|
] });
|
|
3830
3832
|
}
|
|
3831
|
-
function
|
|
3833
|
+
function cs({
|
|
3832
3834
|
templateId: a,
|
|
3833
3835
|
cluster: l,
|
|
3834
3836
|
onDone: d
|
|
3835
3837
|
}) {
|
|
3836
3838
|
var _, N;
|
|
3837
|
-
const x = Z(), o = ve(), f = !!((_ = l.suggestion) != null && _.group_id) && l.suggestion.mismatched_filters.length === 0, c = Object.values(l.dims).filter(Boolean).join(" · ") || "New group", [r, u] = $(c), [b, h] = $([]), [m, p] = $([]), n =
|
|
3839
|
+
const x = Z(), o = ve(), f = !!((_ = l.suggestion) != null && _.group_id) && l.suggestion.mismatched_filters.length === 0, c = Object.values(l.dims).filter(Boolean).join(" · ") || "New group", [r, u] = $(c), [b, h] = $([]), [m, p] = $([]), n = Da(), { data: y } = G({
|
|
3838
3840
|
queryKey: ["user-groups-teams"],
|
|
3839
3841
|
queryFn: () => x.request(Y("/user-groups")).then((C) => C.data),
|
|
3840
3842
|
staleTime: 6e4
|
|
3841
3843
|
}), q = (y ?? []).map((C) => ({
|
|
3842
3844
|
...C,
|
|
3843
|
-
rank:
|
|
3845
|
+
rank: Aa(C.scopes, l.filters, n, l.collection)
|
|
3844
3846
|
})).sort(
|
|
3845
3847
|
(C, D) => St(C.rank.tier) - St(D.rank.tier) || C.name.localeCompare(D.name, void 0, { sensitivity: "base" })
|
|
3846
3848
|
), v = z({
|
|
@@ -3936,7 +3938,7 @@ function os({
|
|
|
3936
3938
|
] })
|
|
3937
3939
|
] });
|
|
3938
3940
|
}
|
|
3939
|
-
function
|
|
3941
|
+
function ds({ templateId: a, finding: l }) {
|
|
3940
3942
|
const d = Z(), x = ve(), [o, f] = $(
|
|
3941
3943
|
"idle"
|
|
3942
3944
|
), [c, r] = $([]), u = (v) => {
|
|
@@ -4132,7 +4134,7 @@ function cs({ templateId: a, finding: l }) {
|
|
|
4132
4134
|
] })
|
|
4133
4135
|
] });
|
|
4134
4136
|
}
|
|
4135
|
-
function
|
|
4137
|
+
function ms({
|
|
4136
4138
|
templateId: a,
|
|
4137
4139
|
states: l
|
|
4138
4140
|
}) {
|
|
@@ -4395,7 +4397,7 @@ function ds({
|
|
|
4395
4397
|
"No group comes close — assigning creates one for this combination."
|
|
4396
4398
|
] }) }),
|
|
4397
4399
|
u === L && /* @__PURE__ */ e(
|
|
4398
|
-
|
|
4400
|
+
cs,
|
|
4399
4401
|
{
|
|
4400
4402
|
templateId: a,
|
|
4401
4403
|
cluster: E,
|
|
@@ -4425,7 +4427,7 @@ function ds({
|
|
|
4425
4427
|
] }),
|
|
4426
4428
|
/* @__PURE__ */ e("div", { className: "max-h-96 divide-y divide-slate-100 overflow-y-auto px-3 dark:divide-border/60", children: _.map((g, i) => (
|
|
4427
4429
|
// biome-ignore lint/suspicious/noArrayIndexKey: findings are positional
|
|
4428
|
-
/* @__PURE__ */ e(
|
|
4430
|
+
/* @__PURE__ */ e(ds, { templateId: a, finding: g }, i)
|
|
4429
4431
|
)) })
|
|
4430
4432
|
] })
|
|
4431
4433
|
] })
|
|
@@ -4444,7 +4446,7 @@ function Vt(a) {
|
|
|
4444
4446
|
function Pt(a) {
|
|
4445
4447
|
return a.replace(/[a-z_]+(?:\.[a-z_]+)+/g, (l) => Vt(l));
|
|
4446
4448
|
}
|
|
4447
|
-
function
|
|
4449
|
+
function ps({ templateId: a }) {
|
|
4448
4450
|
const l = Z(), d = ve(), [x, o] = $(""), [f, c] = $(""), [r, u] = $(!1), { data: b } = G({
|
|
4449
4451
|
queryKey: ["instance-distribution", a],
|
|
4450
4452
|
queryFn: () => l.request(Y(`/pipelines/${a}/instance-distribution`)),
|
|
@@ -4528,9 +4530,9 @@ function ms({ templateId: a }) {
|
|
|
4528
4530
|
n,
|
|
4529
4531
|
" instance(s) to"
|
|
4530
4532
|
] }),
|
|
4531
|
-
/* @__PURE__ */ t(
|
|
4532
|
-
/* @__PURE__ */ e(
|
|
4533
|
-
/* @__PURE__ */ e(
|
|
4533
|
+
/* @__PURE__ */ t(Na, { value: f || void 0, onValueChange: c, children: [
|
|
4534
|
+
/* @__PURE__ */ e(wa, { className: "h-8 w-[220px] text-[12.5px]", children: /* @__PURE__ */ e(ka, { placeholder: "Pick a state…" }) }),
|
|
4535
|
+
/* @__PURE__ */ e(_a, { children: m.filter((N) => String(N.id) !== x).map((N) => /* @__PURE__ */ e(Ca, { value: N.id, children: N.label }, N.id)) })
|
|
4534
4536
|
] }),
|
|
4535
4537
|
f && !r && /* @__PURE__ */ e(P, { size: "sm", className: "h-8 text-[12.5px]", onClick: () => u(!0), children: "Migrate…" }),
|
|
4536
4538
|
f && r && /* @__PURE__ */ t("span", { className: "flex items-center gap-2 rounded-md border border-amber-300 bg-amber-50 px-2.5 py-1 dark:border-amber-500/40 dark:bg-amber-400/10", children: [
|
|
@@ -4561,7 +4563,7 @@ function ms({ templateId: a }) {
|
|
|
4561
4563
|
] })
|
|
4562
4564
|
] });
|
|
4563
4565
|
}
|
|
4564
|
-
function
|
|
4566
|
+
function us({ templateId: a }) {
|
|
4565
4567
|
const l = Z(), [d, x] = $(
|
|
4566
4568
|
null
|
|
4567
4569
|
), [o, f] = $(() => {
|
|
@@ -4858,7 +4860,7 @@ function ps({ templateId: a }) {
|
|
|
4858
4860
|
] })
|
|
4859
4861
|
] });
|
|
4860
4862
|
}
|
|
4861
|
-
function
|
|
4863
|
+
function hs({ templateId: a }) {
|
|
4862
4864
|
var j, O;
|
|
4863
4865
|
const l = Z(), [d, x] = $(90), [o, f] = $(null), { data: c } = G({
|
|
4864
4866
|
queryKey: ["flow-map", a, d],
|
|
@@ -4886,25 +4888,25 @@ function us({ templateId: a }) {
|
|
|
4886
4888
|
const te = xe + 8, ae = Re - xe - 8, ce = (te + ae) / 2, de = `M ${te} ${M} C ${ce} ${M}, ${ce} ${Q}, ${ae} ${Q} L ${ae} ${Q + L} C ${ce} ${Q + L}, ${ce} ${M + B}, ${te} ${M + B} Z`;
|
|
4887
4889
|
return { f: g, path: de };
|
|
4888
4890
|
}), D = new Map(r.map((g) => [g.id, g]));
|
|
4889
|
-
return r.length === 0 ? null : /* @__PURE__ */ t("div", { className: "rounded-xl border border-slate-200 bg-white p-6 space-y-4", children: [
|
|
4891
|
+
return r.length === 0 ? null : /* @__PURE__ */ t("div", { className: "rounded-xl border border-slate-200 bg-white p-6 space-y-4 dark:border-border dark:bg-card", children: [
|
|
4890
4892
|
/* @__PURE__ */ t("div", { className: "flex items-center justify-between", children: [
|
|
4891
4893
|
/* @__PURE__ */ t("div", { children: [
|
|
4892
|
-
/* @__PURE__ */ e("h2", { className: "text-[13px] font-semibold text-slate-800", children: "Flow Map" }),
|
|
4893
|
-
/* @__PURE__ */ t("p", { className: "text-[12px] text-slate-
|
|
4894
|
+
/* @__PURE__ */ e("h2", { className: "text-[13px] font-semibold text-slate-800 dark:text-foreground", children: "Flow Map" }),
|
|
4895
|
+
/* @__PURE__ */ t("p", { className: "text-[12px] text-slate-500 dark:text-muted-foreground", children: [
|
|
4894
4896
|
b.toLocaleString(),
|
|
4895
4897
|
" transitions in the last ",
|
|
4896
4898
|
d,
|
|
4897
4899
|
" days — red ribbons are send-backs."
|
|
4898
4900
|
] })
|
|
4899
4901
|
] }),
|
|
4900
|
-
/* @__PURE__ */ e("div", { className: "flex items-center rounded-lg border border-slate-200 p-0.5", children: [30, 90, 365].map((g) => /* @__PURE__ */ t(
|
|
4902
|
+
/* @__PURE__ */ e("div", { className: "flex items-center rounded-lg border border-slate-200 p-0.5 dark:border-border", children: [30, 90, 365].map((g) => /* @__PURE__ */ t(
|
|
4901
4903
|
"button",
|
|
4902
4904
|
{
|
|
4903
4905
|
type: "button",
|
|
4904
4906
|
onClick: () => x(g),
|
|
4905
4907
|
className: I(
|
|
4906
4908
|
"h-6 rounded-md px-2 text-[11px] font-medium",
|
|
4907
|
-
d === g ? "bg-slate-900 text-white" : "text-slate-
|
|
4909
|
+
d === g ? "bg-slate-900 text-white dark:bg-nvr-cyan dark:text-[#172940]" : "text-slate-500 hover:text-slate-700 dark:text-muted-foreground dark:hover:text-foreground"
|
|
4908
4910
|
),
|
|
4909
4911
|
children: [
|
|
4910
4912
|
g,
|
|
@@ -4961,7 +4963,7 @@ function us({ templateId: a }) {
|
|
|
4961
4963
|
x: xe - 8,
|
|
4962
4964
|
y: i.y + i.h / 2 + 3,
|
|
4963
4965
|
textAnchor: "end",
|
|
4964
|
-
className: "fill-slate-700 text-[10.5px] font-medium",
|
|
4966
|
+
className: "fill-slate-700 text-[10.5px] font-medium dark:fill-slate-200",
|
|
4965
4967
|
children: (((E = D.get(g)) == null ? void 0 : E.label) ?? "").slice(0, 32)
|
|
4966
4968
|
}
|
|
4967
4969
|
)
|
|
@@ -4998,7 +5000,7 @@ function us({ templateId: a }) {
|
|
|
4998
5000
|
{
|
|
4999
5001
|
x: Re - xe + 8,
|
|
5000
5002
|
y: i.y + i.h / 2 + 3,
|
|
5001
|
-
className: "fill-slate-700 text-[10.5px] font-medium",
|
|
5003
|
+
className: "fill-slate-700 text-[10.5px] font-medium dark:fill-slate-200",
|
|
5002
5004
|
children: (((E = D.get(g)) == null ? void 0 : E.label) ?? "").slice(0, 32)
|
|
5003
5005
|
}
|
|
5004
5006
|
)
|
|
@@ -5019,7 +5021,7 @@ function us({ templateId: a }) {
|
|
|
5019
5021
|
] })
|
|
5020
5022
|
] });
|
|
5021
5023
|
}
|
|
5022
|
-
function
|
|
5024
|
+
function xs({ templateId: a }) {
|
|
5023
5025
|
const l = Z(), [d, x] = $(90), [o, f] = $(0), [c, r] = $(!1), [u, b] = $(!0), { data: h } = G({
|
|
5024
5026
|
queryKey: ["pipeline-replay", a, d],
|
|
5025
5027
|
queryFn: () => l.request(Y(`/pipelines/${a}/replay`, { days: d })).then((_) => _.data),
|
|
@@ -5149,7 +5151,7 @@ function hs({ templateId: a }) {
|
|
|
5149
5151
|
] })
|
|
5150
5152
|
] });
|
|
5151
5153
|
}
|
|
5152
|
-
function
|
|
5154
|
+
function fs({ onClose: a }) {
|
|
5153
5155
|
return ue(() => {
|
|
5154
5156
|
const l = (d) => {
|
|
5155
5157
|
d.key === "Escape" && a();
|
|
@@ -5181,15 +5183,15 @@ function xs({ onClose: a }) {
|
|
|
5181
5183
|
}
|
|
5182
5184
|
)
|
|
5183
5185
|
] }),
|
|
5184
|
-
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ e(
|
|
5186
|
+
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ e(Ta, { compact: !0 }) })
|
|
5185
5187
|
] })
|
|
5186
5188
|
] }),
|
|
5187
5189
|
document.body
|
|
5188
5190
|
);
|
|
5189
5191
|
}
|
|
5190
5192
|
export {
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5193
|
+
as as AiReviewCard,
|
|
5194
|
+
ms as OwnerGapsCard,
|
|
5195
|
+
Ys as PipelineEditorView,
|
|
5196
|
+
os as PipelineSimulatorCard
|
|
5195
5197
|
};
|