@manta-eu/react 0.8.0 → 0.9.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/action-plan-changes/ActionPlanChangesTable.js +1 -1
- package/dist/action-plan-changes/build-change-tree.js.map +1 -1
- package/dist/ad-preview/AdPluralDisplay.js +1 -1
- package/dist/ad-preview/GoogleAdGroupAdSingularDisplay.js +1 -3
- package/dist/ad-preview/GoogleAdGroupAdSingularDisplay.js.map +1 -1
- package/dist/ad-preview/MetaAdPreview.js +1 -1
- package/dist/ad-preview/meta-ad-copy.d.ts.map +1 -1
- package/dist/ad-preview/meta-ad-model.js.map +1 -1
- package/dist/components/ErrorBoundary.d.ts.map +1 -1
- package/dist/components/ad-preview/business-avatar.d.ts.map +1 -1
- package/dist/components/ad-preview/business-identity.d.ts.map +1 -1
- package/dist/components/ad-preview/business-info.d.ts.map +1 -1
- package/dist/components/ad-preview/facebook/carousel.d.ts.map +1 -1
- package/dist/components/ad-preview/facebook/constants.d.ts.map +1 -1
- package/dist/components/ad-preview/facebook/header.js +1 -1
- package/dist/components/ad-preview/facebook/instream-reels.d.ts.map +1 -1
- package/dist/components/ad-preview/facebook/marketplace.d.ts.map +1 -1
- package/dist/components/ad-preview/google/search.js +1 -1
- package/dist/components/ad-preview/instagram/feed.js +1 -1
- package/dist/components/ad-preview/instagram/search-result.d.ts.map +1 -1
- package/dist/components/ad-preview/use-scroll-navigation.d.ts.map +1 -1
- package/dist/components/ai-elements/conversation.js +1 -1
- package/dist/components/badge/index.d.ts.map +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/banner/index.d.ts.map +1 -1
- package/dist/components/branding/MantaGridAnimation.js +1 -1
- package/dist/components/breadcrumbs/index.js +1 -1
- package/dist/components/button/index.d.ts.map +1 -1
- package/dist/components/calendar/index.js +2 -2
- package/dist/components/card/index.d.ts.map +1 -1
- package/dist/components/chart/ForecastEventCard.js +1 -1
- package/dist/components/chart/ForecastHoverCard.js +1 -1
- package/dist/components/chart/ForecastLegend.d.ts.map +1 -1
- package/dist/components/chart/ForecastLegend.js +10 -2
- package/dist/components/chart/ForecastLegend.js.map +1 -1
- package/dist/components/chart/annotations.d.ts.map +1 -1
- package/dist/components/chart/chart-colors.d.ts.map +1 -1
- package/dist/components/chart/chart-schemas.d.ts +599 -599
- package/dist/components/chart/chart-schemas.d.ts.map +1 -1
- package/dist/components/chart/chart-schemas.js.map +1 -1
- package/dist/components/chart/chart.js +1 -1
- package/dist/components/chart/forecast-model.d.ts +1 -1
- package/dist/components/chart/forecast-model.d.ts.map +1 -1
- package/dist/components/chart/forecast-model.js.map +1 -1
- package/dist/components/chart/forecast.d.ts.map +1 -1
- package/dist/components/chat/chat-input/index.d.ts +1 -1
- package/dist/components/chat/chat-input/index.js +1 -1
- package/dist/components/chat/chat-input-footer/index.js +1 -1
- package/dist/components/chat/chat-reasoning/index.js +1 -1
- package/dist/components/chat-view/Chat.js +3 -3
- package/dist/components/chat-view/FileMessagePart.js +1 -1
- package/dist/components/chat-view/GraphContextPanel.js +1 -1
- package/dist/components/chat-view/MessageItem.js +1 -1
- package/dist/components/command/index.d.ts +15 -15
- package/dist/components/command/index.d.ts.map +1 -1
- package/dist/components/command/index.js +1 -1
- package/dist/components/dropdown/index.js +1 -1
- package/dist/components/file-dropzone/index.d.ts +25 -0
- package/dist/components/file-dropzone/index.d.ts.map +1 -0
- package/dist/components/file-dropzone/index.js +70 -0
- package/dist/components/file-dropzone/index.js.map +1 -0
- package/dist/components/graph/AgentsGraphListRow.js +1 -1
- package/dist/components/input/ai-action-buttons.js +1 -1
- package/dist/components/input/input-date-range.js +1 -1
- package/dist/components/input/input-field.d.ts.map +1 -1
- package/dist/components/input/input-field.js +1 -1
- package/dist/components/input/textarea.d.ts.map +1 -1
- package/dist/components/input/textarea.js +2 -2
- package/dist/components/input-otp/index.d.ts +6 -6
- package/dist/components/input-otp/index.d.ts.map +1 -1
- package/dist/components/layouts/InstallPrompt.js +1 -1
- package/dist/components/layouts/KnowledgeGraphStartupGate.d.ts +1 -1
- package/dist/components/layouts/RouteLayout.js +1 -1
- package/dist/components/layouts/page/PageHeaderActions.js +1 -1
- package/dist/components/loader/index.d.ts.map +1 -1
- package/dist/components/manta-logo/index.d.ts.map +1 -1
- package/dist/components/modal/index.d.ts.map +1 -1
- package/dist/components/onboarding/SidebarSpotlight.js +1 -1
- package/dist/components/pill/index.d.ts.map +1 -1
- package/dist/components/planning/ActionPlanDetailView.js +1 -1
- package/dist/components/planning/ManualActionList.d.ts +1 -1
- package/dist/components/planning/PlanDetailFooter.js +1 -1
- package/dist/components/planning/plan-detail-utils.d.ts.map +1 -1
- package/dist/components/planning/plan-detail-utils.js +2 -0
- package/dist/components/planning/plan-detail-utils.js.map +1 -1
- package/dist/components/progress/index.d.ts.map +1 -1
- package/dist/components/radio/index.d.ts.map +1 -1
- package/dist/components/rdf-insights/CampaignPerformanceSummary.js +1 -1
- package/dist/components/rdf-insights/InsightCard.js +1 -1
- package/dist/components/rdf-insights/ProductProfitability.js +1 -1
- package/dist/components/rdf-insights/ProductSalesRanking.js +1 -1
- package/dist/components/rdf-insights/ProductVariantsTable.js +1 -1
- package/dist/components/rdf-insights/RoasBenchmark.js +1 -1
- package/dist/components/select/index.d.ts.map +1 -1
- package/dist/components/sheet/index.d.ts.map +1 -1
- package/dist/components/sidebar/company-picker.js +1 -1
- package/dist/components/sidebar/nav-menu.js +1 -1
- package/dist/components/skeleton/index.d.ts +4 -4
- package/dist/components/skeleton/index.d.ts.map +1 -1
- package/dist/components/status/index.d.ts.map +1 -1
- package/dist/components/table/index.d.ts.map +1 -1
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/table/use-table-state.js.map +1 -1
- package/dist/components/table-skeleton/index.js +1 -1
- package/dist/components/tabs/index.d.ts.map +1 -1
- package/dist/components/thinking/index.d.ts.map +1 -1
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/toast/index.d.ts.map +1 -1
- package/dist/components/toast/index.js +1 -0
- package/dist/components/toast/index.js.map +1 -1
- package/dist/components/tool-invocation-card/DefaultResultDisplay.js +1 -1
- package/dist/components/tool-invocation-card/ToolOutputRenderer.js +1 -1
- package/dist/components/tree-multi-select/tree-multi-select-rows.js.map +1 -1
- package/dist/datastore-picker/DatastoreRow.js +1 -1
- package/dist/easing.d.ts.map +1 -1
- package/dist/entity-tree/EntityRelationTree.js +1 -1
- package/dist/explain-fact/EntityChip.js +1 -1
- package/dist/explain-fact/conclusion/ConclusionSubtitle.js +1 -1
- package/dist/explain-fact/inspector/InspectorBindings.js +1 -1
- package/dist/explain-fact/inspector/SupportsSection.js +1 -1
- package/dist/explain-fact/proof-tree/ProofRowContent.js +1 -1
- package/dist/explain-fact/proof-tree/ProofRowValue.js +1 -1
- package/dist/globals.css +33 -0
- package/dist/graph/GraphContextPanel.js +1 -1
- package/dist/graph/GraphControls.d.ts +1 -1
- package/dist/graph/GraphControls.d.ts.map +1 -1
- package/dist/graph/GraphControls.js +1 -1
- package/dist/graph/GraphErrorBoundary.d.ts +1 -1
- package/dist/graph/GraphErrorBoundary.d.ts.map +1 -1
- package/dist/graph/NodeContextMenu.d.ts +1 -1
- package/dist/graph/NodeContextMenu.d.ts.map +1 -1
- package/dist/graph/NodeContextMenu.js +1 -1
- package/dist/graph/NodeDetailPanel/PropertyDiffView.js +1 -1
- package/dist/graph/NodeDetailPanel/TypeSummaryPanel.d.ts.map +1 -1
- package/dist/graph/NodeDetailPanel/TypeSummaryPanel.js.map +1 -1
- package/dist/graph/custom-nodes.d.ts +4 -4
- package/dist/graph/custom-nodes.d.ts.map +1 -1
- package/dist/graph/custom-nodes.js +1 -1
- package/dist/graph/graph-layout.js.map +1 -1
- package/dist/graph/graph-list-utils.js.map +1 -1
- package/dist/graph/graph-model.js.map +1 -1
- package/dist/graph/graph-store.js.map +1 -1
- package/dist/graph/nodes/AdsDailyReportTemplateView.d.ts +1 -1
- package/dist/graph/nodes/AdsDailyReportTemplateView.d.ts.map +1 -1
- package/dist/graph/nodes/AttioCallRecordingView.d.ts +1 -1
- package/dist/graph/nodes/AttioCallRecordingView.d.ts.map +1 -1
- package/dist/graph/nodes/AttioCompanyView.d.ts +1 -1
- package/dist/graph/nodes/AttioCompanyView.d.ts.map +1 -1
- package/dist/graph/nodes/AttioDealView.d.ts +1 -1
- package/dist/graph/nodes/AttioDealView.d.ts.map +1 -1
- package/dist/graph/nodes/AttioMeetingView.d.ts +1 -1
- package/dist/graph/nodes/AttioMeetingView.d.ts.map +1 -1
- package/dist/graph/nodes/AttioNoteView.d.ts +1 -1
- package/dist/graph/nodes/AttioNoteView.d.ts.map +1 -1
- package/dist/graph/nodes/AttioTaskView.d.ts +1 -1
- package/dist/graph/nodes/AttioTaskView.d.ts.map +1 -1
- package/dist/graph/nodes/BrandAssetAnalysisActionView.d.ts +1 -1
- package/dist/graph/nodes/BrandAssetAnalysisActionView.d.ts.map +1 -1
- package/dist/graph/nodes/BrandAssetAnalysisView.d.ts +1 -1
- package/dist/graph/nodes/BrandAssetAnalysisView.d.ts.map +1 -1
- package/dist/graph/nodes/BrandFontSuggestionView.d.ts +1 -1
- package/dist/graph/nodes/BrandFontSuggestionView.d.ts.map +1 -1
- package/dist/graph/nodes/BrandGuidelinesView.d.ts +1 -1
- package/dist/graph/nodes/BrandGuidelinesView.d.ts.map +1 -1
- package/dist/graph/nodes/ConnectedAccountCard.d.ts +1 -1
- package/dist/graph/nodes/ConnectedAccountCard.d.ts.map +1 -1
- package/dist/graph/nodes/CoresignalCompanyView.d.ts +1 -1
- package/dist/graph/nodes/CoresignalCompanyView.d.ts.map +1 -1
- package/dist/graph/nodes/CoresignalEmployeeView.d.ts +1 -1
- package/dist/graph/nodes/CoresignalEmployeeView.d.ts.map +1 -1
- package/dist/graph/nodes/CoresignalExperienceView.d.ts +1 -1
- package/dist/graph/nodes/CoresignalExperienceView.d.ts.map +1 -1
- package/dist/graph/nodes/CoresignalJobView.d.ts +1 -1
- package/dist/graph/nodes/CoresignalJobView.d.ts.map +1 -1
- package/dist/graph/nodes/CoresignalKeyExecutiveDepartureView.d.ts +1 -1
- package/dist/graph/nodes/CoresignalKeyExecutiveDepartureView.d.ts.map +1 -1
- package/dist/graph/nodes/EntityCardShell.d.ts +1 -1
- package/dist/graph/nodes/EntityCardShell.d.ts.map +1 -1
- package/dist/graph/nodes/Ga4DailyOverviewView.d.ts +1 -1
- package/dist/graph/nodes/Ga4DailyOverviewView.d.ts.map +1 -1
- package/dist/graph/nodes/Ga4FunnelEventCountView.d.ts +1 -1
- package/dist/graph/nodes/Ga4FunnelEventCountView.d.ts.map +1 -1
- package/dist/graph/nodes/Ga4TrafficSourceView.d.ts +1 -1
- package/dist/graph/nodes/Ga4TrafficSourceView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleAdGroupAdView.d.ts +1 -1
- package/dist/graph/nodes/GoogleAdGroupAdView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleAdGroupCriterionView.d.ts +1 -1
- package/dist/graph/nodes/GoogleAdGroupCriterionView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleAdGroupView.d.ts +1 -1
- package/dist/graph/nodes/GoogleAdGroupView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleCampaignBudgetView.d.ts +1 -1
- package/dist/graph/nodes/GoogleCampaignBudgetView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleCampaignCriterionView.d.ts +1 -1
- package/dist/graph/nodes/GoogleCampaignCriterionView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleCampaignInsightView.d.ts +1 -1
- package/dist/graph/nodes/GoogleCampaignInsightView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleCampaignView.d.ts +1 -1
- package/dist/graph/nodes/GoogleCampaignView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleCustomerClientView.d.ts +1 -1
- package/dist/graph/nodes/GoogleCustomerClientView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleCustomerView.d.ts +1 -1
- package/dist/graph/nodes/GoogleCustomerView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleSearchTermInsightView.d.ts +1 -1
- package/dist/graph/nodes/GoogleSearchTermInsightView.d.ts.map +1 -1
- package/dist/graph/nodes/LinkedinAdAccountView.d.ts +1 -1
- package/dist/graph/nodes/LinkedinAdAccountView.d.ts.map +1 -1
- package/dist/graph/nodes/MetaAdAccountActivityView.d.ts +1 -1
- package/dist/graph/nodes/MetaAdAccountActivityView.d.ts.map +1 -1
- package/dist/graph/nodes/MetaAdAccountView.d.ts +1 -1
- package/dist/graph/nodes/MetaAdAccountView.d.ts.map +1 -1
- package/dist/graph/nodes/MetaAdImageView.d.ts +1 -1
- package/dist/graph/nodes/MetaAdImageView.d.ts.map +1 -1
- package/dist/graph/nodes/MetaAdSetView.d.ts +1 -1
- package/dist/graph/nodes/MetaAdSetView.d.ts.map +1 -1
- package/dist/graph/nodes/MetaAdView.d.ts +1 -1
- package/dist/graph/nodes/MetaAdView.d.ts.map +1 -1
- package/dist/graph/nodes/MetaCampaignView.d.ts +1 -1
- package/dist/graph/nodes/MetaCampaignView.d.ts.map +1 -1
- package/dist/graph/nodes/MetaInsightView.d.ts +1 -1
- package/dist/graph/nodes/MetaInsightView.d.ts.map +1 -1
- package/dist/graph/nodes/RenderedTemplateView.d.ts +1 -1
- package/dist/graph/nodes/RenderedTemplateView.d.ts.map +1 -1
- package/dist/graph/nodes/SchemaActionView.d.ts +1 -1
- package/dist/graph/nodes/SchemaActionView.d.ts.map +1 -1
- package/dist/graph/nodes/ShopifyShopView.d.ts +1 -1
- package/dist/graph/nodes/ShopifyShopView.d.ts.map +1 -1
- package/dist/graph/nodes/SlackChannelView.d.ts +1 -1
- package/dist/graph/nodes/SlackChannelView.d.ts.map +1 -1
- package/dist/graph/nodes/SlackMessageView.d.ts +1 -1
- package/dist/graph/nodes/SlackMessageView.d.ts.map +1 -1
- package/dist/graph/nodes/SlackUserView.d.ts +1 -1
- package/dist/graph/nodes/SlackUserView.d.ts.map +1 -1
- package/dist/graph/nodes/SlackWorkspaceView.d.ts +1 -1
- package/dist/graph/nodes/SlackWorkspaceView.d.ts.map +1 -1
- package/dist/graph/nodes/attio-shared.d.ts +1 -1
- package/dist/graph/nodes/attio-shared.d.ts.map +1 -1
- package/dist/graph/nodes/attio-shared.js +1 -1
- package/dist/graph/nodes/brand-shared.d.ts.map +1 -1
- package/dist/graph/nodes/card-rows.js +1 -1
- package/dist/graph/nodes/google-campaign-utils.d.ts.map +1 -1
- package/dist/graph/nodes/insight-shared.d.ts +1 -1
- package/dist/graph/nodes/insight-shared.d.ts.map +1 -1
- package/dist/graph/special-nodes/BaseNode.d.ts +2 -2
- package/dist/graph/special-nodes/BaseNode.d.ts.map +1 -1
- package/dist/graph/special-nodes/BaseNode.js +1 -1
- package/dist/graph/special-nodes/DynamicNode.d.ts +1 -1
- package/dist/graph/special-nodes/DynamicNode.d.ts.map +1 -1
- package/dist/graph/special-nodes/EntityValueChip.js +1 -1
- package/dist/graph/special-nodes/GenericNode.d.ts +1 -1
- package/dist/graph/special-nodes/GenericNode.d.ts.map +1 -1
- package/dist/graph/special-nodes/GenericView.d.ts +1 -1
- package/dist/graph/special-nodes/GenericView.d.ts.map +1 -1
- package/dist/graph/special-nodes/NodeFrame.d.ts +1 -1
- package/dist/graph/special-nodes/NodeFrame.d.ts.map +1 -1
- package/dist/graph/special-nodes/NodeFrame.js +1 -1
- package/dist/graph/special-nodes/TypeSummaryNode.d.ts +1 -1
- package/dist/graph/special-nodes/TypeSummaryNode.d.ts.map +1 -1
- package/dist/graph/special-nodes/TypeSummaryNode.js +1 -1
- package/dist/graph/special-nodes/card-facts.js.map +1 -1
- package/dist/hooks/resolved-terms.d.ts +1 -0
- package/dist/hooks/resolved-terms.d.ts.map +1 -1
- package/dist/hooks/resolved-terms.js +2 -1
- package/dist/hooks/resolved-terms.js.map +1 -1
- package/dist/hooks/use-action-plans-list.d.ts.map +1 -1
- package/dist/hooks/use-action-plans-list.js.map +1 -1
- package/dist/hooks/use-activity-feed.js.map +1 -1
- package/dist/hooks/use-connection-problems.d.ts.map +1 -1
- package/dist/hooks/use-conversation-starters.d.ts +2 -2
- package/dist/hooks/use-entity-relations.d.ts.map +1 -1
- package/dist/hooks/use-entity.d.ts.map +1 -1
- package/dist/hooks/use-latest-rendered-template.d.ts.map +1 -1
- package/dist/hooks/use-manual-actions.d.ts.map +1 -1
- package/dist/hooks/use-manual-actions.js.map +1 -1
- package/dist/hooks/use-sparql-construct.d.ts +2 -0
- package/dist/hooks/use-sparql-construct.d.ts.map +1 -1
- package/dist/hooks/use-sparql-construct.js +2 -1
- package/dist/hooks/use-sparql-construct.js.map +1 -1
- package/dist/hooks/useActionGraph.d.ts.map +1 -1
- package/dist/hooks/useActionGraph.js.map +1 -1
- package/dist/hooks/useActionPlanDetail.d.ts +2 -2
- package/dist/hooks/useActionPlanDetail.d.ts.map +1 -1
- package/dist/hooks/useAuth.d.ts +1 -1
- package/dist/hooks/useAuth.d.ts.map +1 -1
- package/dist/hooks/useAuth.js +3 -1
- package/dist/hooks/useAuth.js.map +1 -1
- package/dist/hooks/useConversationGraphContext.js.map +1 -1
- package/dist/hooks/useConversations.js.map +1 -1
- package/dist/hooks/useDatastoreSelection.js.map +1 -1
- package/dist/hooks/useValidateActionPlan.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/build-config.js.map +1 -1
- package/dist/lib/datastore-route-table.d.ts +3 -0
- package/dist/lib/datastore-route-table.d.ts.map +1 -1
- package/dist/lib/datastore-route-table.js +3 -0
- package/dist/lib/datastore-route-table.js.map +1 -1
- package/dist/lib/default-map.d.ts.map +1 -1
- package/dist/lib/default-map.js.map +1 -1
- package/dist/lib/hooks/{useChatUpload.d.ts → useFileUpload.d.ts} +3 -3
- package/dist/lib/hooks/{useChatUpload.d.ts.map → useFileUpload.d.ts.map} +1 -1
- package/dist/lib/hooks/{useChatUpload.js → useFileUpload.js} +2 -2
- package/dist/lib/hooks/{useChatUpload.js.map → useFileUpload.js.map} +1 -1
- package/dist/lib/merge-refs.d.ts.map +1 -1
- package/dist/lib/rdf/insights.js.map +1 -1
- package/dist/lib/structured-data/schema-converter.d.ts +2 -2
- package/dist/lib/structured-data/schema-converter.d.ts.map +1 -1
- package/dist/lib/structured-data/schema-converter.js.map +1 -1
- package/dist/lib/tanstack-query.js +1 -1
- package/dist/lib/tanstack-query.js.map +1 -1
- package/dist/lib/term-batcher.d.ts +3 -1
- package/dist/lib/term-batcher.d.ts.map +1 -1
- package/dist/lib/term-batcher.js +2 -2
- package/dist/lib/term-batcher.js.map +1 -1
- package/dist/lib/use-can-scroll.d.ts.map +1 -1
- package/dist/lib/use-color-palette.d.ts.map +1 -1
- package/dist/lib/use-toggle-set.js.map +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/ontology/OntologyTermText.js +1 -1
- package/dist/providers/ActiveChatProvider.d.ts +1 -1
- package/dist/providers/ActiveDatastoreProvider.js.map +1 -1
- package/dist/providers/ChatManagerProvider.js.map +1 -1
- package/dist/providers/commands/CommandContext.js +1 -1
- package/dist/routes/activity/components/ActivityTable.js +1 -1
- package/dist/routes/activity/detail/ActivityDetail.d.ts.map +1 -1
- package/dist/routes/activity/detail/ActivityDetail.js +1 -1
- package/dist/routes/activity/detail/ActivityStepsRail.js +1 -1
- package/dist/routes/activity/detail/ActivityTimeline.js +1 -1
- package/dist/routes/data-collection/index.d.ts +3 -0
- package/dist/routes/data-collection/index.d.ts.map +1 -0
- package/dist/routes/data-collection/index.js +43 -0
- package/dist/routes/data-collection/index.js.map +1 -0
- package/dist/routes/data-explorer/class-properties.js.map +1 -1
- package/dist/routes/data-explorer/class-relations.d.ts +2 -2
- package/dist/routes/data-explorer/components/DataExplorerLayout.d.ts.map +1 -1
- package/dist/routes/data-explorer/components/DataExplorerLayout.js +5 -2
- package/dist/routes/data-explorer/components/DataExplorerLayout.js.map +1 -1
- package/dist/routes/data-explorer/components/DetailHeader.js +1 -1
- package/dist/routes/data-explorer/components/DetailHeader.js.map +1 -1
- package/dist/routes/data-explorer/components/Rail.d.ts.map +1 -1
- package/dist/routes/data-explorer/components/Rail.js +3 -3
- package/dist/routes/data-explorer/components/Rail.js.map +1 -1
- package/dist/routes/data-explorer/components/SegmentBuilder.js +1 -1
- package/dist/routes/data-explorer/components/class-detail/ClassDetail.js +1 -1
- package/dist/routes/data-explorer/components/class-detail/CreateRecordAction.js +1 -1
- package/dist/routes/data-explorer/components/class-detail/Overview.js +1 -1
- package/dist/routes/data-explorer/components/ontology-coverage/CoverageNamespaceRail.js +1 -1
- package/dist/routes/data-explorer/components/ontology-coverage/CoverageSkeleton.js +1 -1
- package/dist/routes/data-explorer/components/record-detail/CreateAction.js +1 -1
- package/dist/routes/data-explorer/components/record-detail/RecordActions.d.ts.map +1 -1
- package/dist/routes/data-explorer/components/record-detail/RecordActions.js +12 -9
- package/dist/routes/data-explorer/components/record-detail/RecordActions.js.map +1 -1
- package/dist/routes/data-explorer/components/record-detail/RecordDetail.js +1 -1
- package/dist/routes/data-explorer/components/record-detail/RecordRefresh.d.ts +7 -0
- package/dist/routes/data-explorer/components/record-detail/RecordRefresh.d.ts.map +1 -0
- package/dist/routes/data-explorer/components/record-detail/RecordRefresh.js +104 -0
- package/dist/routes/data-explorer/components/record-detail/RecordRefresh.js.map +1 -0
- package/dist/routes/data-explorer/components/uploads/IngestRunsList.d.ts +8 -0
- package/dist/routes/data-explorer/components/uploads/IngestRunsList.d.ts.map +1 -0
- package/dist/routes/data-explorer/components/uploads/IngestRunsList.js +18 -0
- package/dist/routes/data-explorer/components/uploads/IngestRunsList.js.map +1 -0
- package/dist/routes/data-explorer/components/uploads/IngestStateStatus.d.ts +14 -0
- package/dist/routes/data-explorer/components/uploads/IngestStateStatus.d.ts.map +1 -0
- package/dist/routes/data-explorer/components/uploads/IngestStateStatus.js +33 -0
- package/dist/routes/data-explorer/components/uploads/IngestStateStatus.js.map +1 -0
- package/dist/routes/data-explorer/components/uploads/UploadedFilesList.d.ts +8 -0
- package/dist/routes/data-explorer/components/uploads/UploadedFilesList.d.ts.map +1 -0
- package/dist/routes/data-explorer/components/uploads/UploadedFilesList.js +34 -0
- package/dist/routes/data-explorer/components/uploads/UploadedFilesList.js.map +1 -0
- package/dist/routes/data-explorer/components/uploads/UploadsPages.d.ts +7 -0
- package/dist/routes/data-explorer/components/uploads/UploadsPages.d.ts.map +1 -0
- package/dist/routes/data-explorer/components/uploads/UploadsPages.js +35 -0
- package/dist/routes/data-explorer/components/uploads/UploadsPages.js.map +1 -0
- package/dist/routes/data-explorer/coverage.d.ts.map +1 -1
- package/dist/routes/data-explorer/index.d.ts +1 -0
- package/dist/routes/data-explorer/index.d.ts.map +1 -1
- package/dist/routes/data-explorer/index.js +1 -0
- package/dist/routes/data-explorer/index.js.map +1 -1
- package/dist/routes/data-explorer/namespaces.d.ts +4 -0
- package/dist/routes/data-explorer/namespaces.d.ts.map +1 -1
- package/dist/routes/data-explorer/namespaces.js +6 -1
- package/dist/routes/data-explorer/namespaces.js.map +1 -1
- package/dist/routes/data-explorer/sparql-client.js.map +1 -1
- package/dist/routes/data-explorer/uploads.d.ts +56 -0
- package/dist/routes/data-explorer/uploads.d.ts.map +1 -0
- package/dist/routes/data-explorer/uploads.js +140 -0
- package/dist/routes/data-explorer/uploads.js.map +1 -0
- package/dist/routes/datastores/components/DatastoreTableSkeleton.js +1 -1
- package/dist/routes/datastores/components/DatastoresToolbar.js +1 -1
- package/dist/routes/datastores/components/LinkUnlinkedDatastoreDialog.d.ts +1 -0
- package/dist/routes/datastores/components/LinkUnlinkedDatastoreDialog.d.ts.map +1 -1
- package/dist/routes/datastores/components/LinkUnlinkedDatastoreDialog.js +17 -10
- package/dist/routes/datastores/components/LinkUnlinkedDatastoreDialog.js.map +1 -1
- package/dist/routes/datastores/components/StatusBadge.d.ts +7 -8
- package/dist/routes/datastores/components/StatusBadge.d.ts.map +1 -1
- package/dist/routes/datastores/components/StatusBadge.js +17 -1
- package/dist/routes/datastores/components/StatusBadge.js.map +1 -1
- package/dist/routes/datastores/components/UnlinkedDatastoresPanel.js +1 -1
- package/dist/routes/datastores/flatten.d.ts +6 -1
- package/dist/routes/datastores/flatten.d.ts.map +1 -1
- package/dist/routes/datastores/flatten.js +37 -2
- package/dist/routes/datastores/flatten.js.map +1 -1
- package/dist/routes/datastores/hooks/useDatastoreColumns.d.ts +4 -2
- package/dist/routes/datastores/hooks/useDatastoreColumns.d.ts.map +1 -1
- package/dist/routes/datastores/hooks/useDatastoreColumns.js +9 -7
- package/dist/routes/datastores/hooks/useDatastoreColumns.js.map +1 -1
- package/dist/routes/datastores/index.d.ts.map +1 -1
- package/dist/routes/datastores/index.js +54 -19
- package/dist/routes/datastores/index.js.map +1 -1
- package/dist/routes/integrations/catalog-shape.js.map +1 -1
- package/dist/routes/integrations/components/ConnectionRow.js +1 -1
- package/dist/routes/integrations/components/ProviderLogo.d.ts.map +1 -1
- package/dist/routes/integrations/components/connect-forms/DashConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/GoogleMerchantCenterConnectForm.d.ts +3 -0
- package/dist/routes/integrations/components/connect-forms/GoogleMerchantCenterConnectForm.d.ts.map +1 -0
- package/dist/routes/integrations/components/connect-forms/GoogleMerchantCenterConnectForm.js +38 -0
- package/dist/routes/integrations/components/connect-forms/GoogleMerchantCenterConnectForm.js.map +1 -0
- package/dist/routes/integrations/components/connect-forms/MetaAdsConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/MicrosoftAdsConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/google-ads-account-tree.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/google-analytics-property-tree.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/google-merchant-center-account-tree.d.ts +4 -0
- package/dist/routes/integrations/components/connect-forms/google-merchant-center-account-tree.d.ts.map +1 -0
- package/dist/routes/integrations/components/connect-forms/google-merchant-center-account-tree.js +32 -0
- package/dist/routes/integrations/components/connect-forms/google-merchant-center-account-tree.js.map +1 -0
- package/dist/routes/integrations/components/connect-forms/setup-account-unavailable-reason.d.ts.map +1 -1
- package/dist/routes/integrations/components/connect-forms/setup-account-unavailable-reason.js +1 -0
- package/dist/routes/integrations/components/connect-forms/setup-account-unavailable-reason.js.map +1 -1
- package/dist/routes/integrations/connect-forms.d.ts +1 -0
- package/dist/routes/integrations/connect-forms.d.ts.map +1 -1
- package/dist/routes/integrations/connect-forms.js +1 -0
- package/dist/routes/integrations/connect-forms.js.map +1 -1
- package/dist/routes/integrations/connection-view.d.ts.map +1 -1
- package/dist/routes/integrations/connection-view.js +1 -0
- package/dist/routes/integrations/connection-view.js.map +1 -1
- package/dist/routes/integrations/types.d.ts.map +1 -1
- package/dist/routes/memories/components/ChangeScopeDialog.js +1 -1
- package/dist/routes/memories/components/ConflictMemoryCard.js +1 -1
- package/dist/routes/memories/components/ConsolidationReviewDialog.js +1 -1
- package/dist/routes/memories/components/LoadingSkeleton.js +1 -1
- package/dist/routes/memories/components/MemoriesFilters.js +1 -1
- package/dist/routes/memories/components/MemoriesTabPanel.js +1 -1
- package/dist/routes/memories/components/MemoryActions.js +1 -1
- package/dist/routes/memories/components/MemoryFields.js +1 -1
- package/dist/routes/memories/components/MemoryFormDialog.js +1 -1
- package/dist/routes/memories/expiry-utils.js.map +1 -1
- package/dist/routes/memories/hooks/useDuplicateDetection.js.map +1 -1
- package/dist/routes/memories/hooks/useLiveContext.d.ts.map +1 -1
- package/dist/routes/memories/hooks/useMemoryColumns.d.ts.map +1 -1
- package/dist/routes/memories/hooks/useMemoryColumns.js +1 -1
- package/dist/routes/memories/hooks/useMemoryTable.js.map +1 -1
- package/dist/routes/plans/components/ActionPlanPage.js +1 -1
- package/dist/routes/plans/components/ActionPlansFilters.js +1 -1
- package/dist/routes/plans/components/ActionPlansPage.js +1 -1
- package/dist/routes/plans/components/ActionPlansTableBody.js +1 -1
- package/dist/routes/plans/components/actionPlansTableConfig.d.ts +7 -7
- package/dist/routes/plans/components/actionPlansTableConfig.d.ts.map +1 -1
- package/dist/routes/plans/index.js +1 -1
- package/dist/routes/rules/components/RuleAffectedActionPlansSection.js +1 -1
- package/dist/routes/rules/components/RuleDetailsPage.js +1 -1
- package/dist/routes/rules/components/RuleProducersSection.js +1 -1
- package/dist/routes/rules/components/RuleSetup.js +1 -1
- package/dist/routes/rules/components/RulesOverviewPage.js +1 -1
- package/dist/routes/rules/components/datalog-editor/FactsPreview.js +1 -1
- package/dist/routes/rules/components/datalog-editor/SparqlQueryPanel.js +1 -1
- package/dist/routes/rules/components/rule-actionability.js.map +1 -1
- package/dist/rules/RuleNarrativeSegments.js +1 -1
- package/dist/rules/datalog-ast/DatalogAtomComponent.js +1 -1
- package/dist/rules/datalog-ast/DatalogBodyFormulaComponent.js +1 -1
- package/dist/rules/datalog-ast/DatalogExpressionRenderer.js +1 -1
- package/dist/rules/datalog-ast/DatalogTermComponent.js +1 -1
- package/dist/rules/datalog-cache.js.map +1 -1
- package/dist/rules/rule-narrative-format.d.ts.map +1 -1
- package/dist/rules/rule-narrative-renderer.js.map +1 -1
- package/dist/shared/graph-derived-queries.d.ts.map +1 -1
- package/dist/shared/graph-derived-queries.js +2 -1
- package/dist/shared/graph-derived-queries.js.map +1 -1
- package/dist/style.js +1 -1
- package/dist/templates/slack-to-markdown.js +1 -1
- package/package.json +27 -14
- package/src/app-subpaths.json +1 -0
- package/src/components/badge/index.tsx +1 -1
- package/src/components/calendar/index.tsx +2 -2
- package/src/components/chart/ForecastLegend.tsx +15 -13
- package/src/components/chart/forecast-model.ts +6 -8
- package/src/components/chat-view/Chat.tsx +2 -2
- package/src/components/file-dropzone/index.tsx +165 -0
- package/src/components/input/input-field.tsx +1 -1
- package/src/components/input/textarea.tsx +1 -1
- package/src/components/planning/plan-detail-utils.tsx +2 -0
- package/src/components/table/index.tsx +0 -1
- package/src/components/toast/index.tsx +1 -0
- package/src/graph/NodeDetailPanel/TypeSummaryPanel.tsx +12 -14
- package/src/hooks/resolved-terms.ts +6 -1
- package/src/hooks/use-sparql-construct.ts +4 -2
- package/src/hooks/useAuth.ts +3 -1
- package/src/index.ts +1 -0
- package/src/lib/chat-types.ts +1 -1
- package/src/lib/datastore-route-table.ts +6 -0
- package/src/lib/hooks/{useChatUpload.ts → useFileUpload.ts} +2 -2
- package/src/lib/tanstack-query.ts +2 -2
- package/src/lib/term-batcher.ts +3 -3
- package/src/lib/utils.ts +1 -1
- package/src/routes/data-collection/index.tsx +82 -0
- package/src/routes/data-explorer/components/DataExplorerLayout.tsx +5 -2
- package/src/routes/data-explorer/components/DetailHeader.tsx +4 -4
- package/src/routes/data-explorer/components/Rail.tsx +13 -2
- package/src/routes/data-explorer/components/record-detail/RecordActions.tsx +22 -16
- package/src/routes/data-explorer/components/record-detail/RecordRefresh.tsx +150 -0
- package/src/routes/data-explorer/components/uploads/IngestRunsList.tsx +63 -0
- package/src/routes/data-explorer/components/uploads/IngestStateStatus.tsx +45 -0
- package/src/routes/data-explorer/components/uploads/UploadedFilesList.tsx +93 -0
- package/src/routes/data-explorer/components/uploads/UploadsPages.tsx +80 -0
- package/src/routes/data-explorer/index.tsx +6 -0
- package/src/routes/data-explorer/namespaces.ts +7 -1
- package/src/routes/data-explorer/uploads.ts +205 -0
- package/src/routes/datastores/components/LinkUnlinkedDatastoreDialog.tsx +49 -10
- package/src/routes/datastores/components/StatusBadge.tsx +22 -7
- package/src/routes/datastores/flatten.ts +50 -2
- package/src/routes/datastores/hooks/useDatastoreColumns.tsx +21 -1
- package/src/routes/datastores/index.tsx +64 -13
- package/src/routes/integrations/components/connect-forms/GoogleMerchantCenterConnectForm.tsx +61 -0
- package/src/routes/integrations/components/connect-forms/google-merchant-center-account-tree.ts +38 -0
- package/src/routes/integrations/components/connect-forms/setup-account-unavailable-reason.ts +1 -0
- package/src/routes/integrations/connect-forms.ts +1 -0
- package/src/routes/integrations/connection-view.ts +1 -0
- package/src/rules/datalog-ast/DatalogBodyFormulaComponent.tsx +1 -1
- package/src/rules/datalog-ast/DatalogTermComponent.tsx +1 -1
- package/src/shacl/shacl-form-types.ts +1 -1
- package/src/shared/graph-derived-queries.ts +2 -0
- package/src/style.ts +1 -1
- package/src/templates/slack-to-markdown.ts +1 -1
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
useRenameDatastoreGroupMutation,
|
|
12
12
|
useRestoreDatastoreMutation,
|
|
13
13
|
useUnlinkedDatastoresQuery,
|
|
14
|
+
type GQLRegisterDatastoreMutationVariables,
|
|
14
15
|
} from "@manta-eu/client";
|
|
15
16
|
import { enableDatastoreRemoval } from "@manta-eu/client/shared/constants";
|
|
16
17
|
import { deriveDatastoreId } from "@manta-eu/client/shared/datastore-id";
|
|
@@ -18,7 +19,7 @@ import { parseError } from "@manta-eu/client/shared/error-utils";
|
|
|
18
19
|
import { namesAGroup, pathSegments } from "@manta-eu/client/shared/team";
|
|
19
20
|
import { activeRealm } from "@manta-eu/ldo/realm";
|
|
20
21
|
import { isPresent } from "@manta-eu/lib/present";
|
|
21
|
-
import { useQueryClient } from "@tanstack/react-query";
|
|
22
|
+
import { useMutationState, useQueryClient } from "@tanstack/react-query";
|
|
22
23
|
import type { SortingState } from "@tanstack/react-table";
|
|
23
24
|
import { Archive, Database, EyeOff, type LucideIcon, Plus, RefreshCcw, TriangleAlert } from "lucide-react";
|
|
24
25
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
@@ -34,12 +35,16 @@ import { RenameDatastoreGroupDialog } from "./components/RenameDatastoreGroupDia
|
|
|
34
35
|
import { UnlinkedDatastoresPanel } from "./components/UnlinkedDatastoresPanel";
|
|
35
36
|
import {
|
|
36
37
|
existingOrganizationNameKeys,
|
|
38
|
+
hiddenRemovedRowCount,
|
|
37
39
|
hiddenRowCount,
|
|
38
40
|
matchesProviderFilter,
|
|
39
41
|
nestedDatastoreNamesByRowId,
|
|
42
|
+
organizationGroupPaths,
|
|
40
43
|
organizationNameKey,
|
|
41
44
|
organizationNames,
|
|
45
|
+
outsideRemovedSubtrees,
|
|
42
46
|
realmDefaultRow,
|
|
47
|
+
removedSubtreeRowIds,
|
|
43
48
|
toDatastoreRows,
|
|
44
49
|
unlinkedDatastoreRow,
|
|
45
50
|
visibilityForStatusFilter,
|
|
@@ -75,6 +80,8 @@ import { useMantaClient } from "#providers/index";
|
|
|
75
80
|
|
|
76
81
|
const realmDatastoreId = activeRealm();
|
|
77
82
|
|
|
83
|
+
const registerDatastoreMutationKey = ["RegisterDatastore"];
|
|
84
|
+
|
|
78
85
|
type ActiveTab = "organizations" | "unlinked";
|
|
79
86
|
|
|
80
87
|
const tabLabels: Record<ActiveTab, string> = {
|
|
@@ -233,17 +240,37 @@ export function DatastoresRoute() {
|
|
|
233
240
|
});
|
|
234
241
|
|
|
235
242
|
const registerMutation = useRegisterDatastoreMutation(mantaClient, {
|
|
236
|
-
|
|
243
|
+
mutationKey: registerDatastoreMutationKey,
|
|
244
|
+
onSuccess: async (result, variables) => {
|
|
237
245
|
// "Not registered" is treated as settled, so status polling stopped - force a re-check.
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
246
|
+
await refreshDatastores();
|
|
247
|
+
const { success, error, pending } = result.registerDatastore;
|
|
248
|
+
if (!success) {
|
|
249
|
+
toast.error("Couldn't build the datastore", { description: error ?? undefined });
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
if (pending) {
|
|
254
|
+
toast.success(`Datastore "${variables.datastoreId}" is being built`, {
|
|
255
|
+
description: "It is taking longer than usual, and becomes available once its knowledge graph is built.",
|
|
256
|
+
});
|
|
257
|
+
} else {
|
|
258
|
+
toast.success(`Datastore "${variables.datastoreId}" is registered and built`);
|
|
259
|
+
}
|
|
241
260
|
},
|
|
242
261
|
onError: (error) => {
|
|
243
|
-
const info = parseError(error, "Couldn't
|
|
262
|
+
const info = parseError(error, "Couldn't build the datastore");
|
|
244
263
|
toast.error(info.message, { description: info.description });
|
|
245
264
|
},
|
|
246
265
|
});
|
|
266
|
+
const registeringIds = useMutationState({
|
|
267
|
+
filters: { mutationKey: registerDatastoreMutationKey, status: "pending" },
|
|
268
|
+
select: (mutation) => (mutation.state.variables as GQLRegisterDatastoreMutationVariables | undefined)?.datastoreId,
|
|
269
|
+
});
|
|
270
|
+
const registeringDatastoreIds = useMemo(
|
|
271
|
+
() => new Set(registeringIds.filter((id): id is string => id !== undefined)),
|
|
272
|
+
[registeringIds],
|
|
273
|
+
);
|
|
247
274
|
|
|
248
275
|
const renameMutation = useRenameDatastoreGroupMutation(mantaClient, {
|
|
249
276
|
onSuccess: (result) => {
|
|
@@ -313,7 +340,7 @@ export function DatastoresRoute() {
|
|
|
313
340
|
[data],
|
|
314
341
|
);
|
|
315
342
|
const unlinkedRows = useMemo(
|
|
316
|
-
() => (unlinkedData?.unlinkedDatastores ?? []).map((entry) => unlinkedDatastoreRow(entry.id)),
|
|
343
|
+
() => (unlinkedData?.unlinkedDatastores ?? []).map((entry) => unlinkedDatastoreRow(entry.id, entry.built)),
|
|
317
344
|
[unlinkedData],
|
|
318
345
|
);
|
|
319
346
|
const allRows = useMemo(() => [...treeRows, ...unlinkedRows], [treeRows, unlinkedRows]);
|
|
@@ -323,6 +350,9 @@ export function DatastoresRoute() {
|
|
|
323
350
|
() => hiddenRowCount(treeRows, visibility, "showUnprovisioned", rows.length),
|
|
324
351
|
[treeRows, visibility, rows.length],
|
|
325
352
|
);
|
|
353
|
+
const archivedCount = useMemo(() => hiddenRemovedRowCount(treeRows, visibility), [treeRows, visibility]);
|
|
354
|
+
const groupPathsByOrganization = useMemo(() => organizationGroupPaths(treeRows), [treeRows]);
|
|
355
|
+
const removedSubtreeIds = useMemo(() => removedSubtreeRowIds(treeRows), [treeRows]);
|
|
326
356
|
const providerLinkEnabled = linkingQuery.data?.organizationLinking?.linkEnabled;
|
|
327
357
|
const linkingUnreadable = linkingQuery.isError || linkingQuery.data?.organizationLinking === null;
|
|
328
358
|
const tableRows = useMemo(
|
|
@@ -331,7 +361,7 @@ export function DatastoresRoute() {
|
|
|
331
361
|
);
|
|
332
362
|
const unlinkedCount = unlinkedRows.length;
|
|
333
363
|
const existingOrganizationNames = useMemo(() => existingOrganizationNameKeys(allRows), [allRows]);
|
|
334
|
-
const organizationNameOptions = useMemo(() => organizationNames(allRows), [allRows]);
|
|
364
|
+
const organizationNameOptions = useMemo(() => organizationNames(outsideRemovedSubtrees(allRows)), [allRows]);
|
|
335
365
|
// Mirrors provisionDatastore's assertDatastoreIdAvailable (Infisical folder-per-id is global,
|
|
336
366
|
// not scoped to siblings), so a slug collision is caught before the server round-trip.
|
|
337
367
|
const existingDatastoreIds = useMemo(
|
|
@@ -354,7 +384,7 @@ export function DatastoresRoute() {
|
|
|
354
384
|
);
|
|
355
385
|
const suggestedMatchByDatastoreId = useMemo(() => {
|
|
356
386
|
const matches: Record<string, DatastoreRow> = {};
|
|
357
|
-
for (const row of treeRows) {
|
|
387
|
+
for (const row of outsideRemovedSubtrees(treeRows)) {
|
|
358
388
|
if (isPresent(row.datastoreId)) continue;
|
|
359
389
|
const derived = derivedIdForRow(row);
|
|
360
390
|
if (unlinkedIdSet.has(derived)) matches[derived] ??= row;
|
|
@@ -383,7 +413,7 @@ export function DatastoresRoute() {
|
|
|
383
413
|
|
|
384
414
|
const matchableRowIds = useMemo(() => {
|
|
385
415
|
const ids = new Set<string>();
|
|
386
|
-
for (const row of allRows) {
|
|
416
|
+
for (const row of outsideRemovedSubtrees(allRows)) {
|
|
387
417
|
if (!isPresent(row.datastoreId) && unlinkedIdSet.has(derivedIdForRow(row))) ids.add(row.id);
|
|
388
418
|
}
|
|
389
419
|
return ids;
|
|
@@ -410,7 +440,11 @@ export function DatastoresRoute() {
|
|
|
410
440
|
void queryClient.invalidateQueries({ queryKey: useUnlinkedDatastoresQuery.getKey() });
|
|
411
441
|
void queryClient.invalidateQueries({ queryKey: ["DatastoreProvisioningStatuses"] });
|
|
412
442
|
if (result.linkUnlinkedDatastore.success) {
|
|
413
|
-
toast.success(
|
|
443
|
+
toast.success(
|
|
444
|
+
result.linkUnlinkedDatastore.pending
|
|
445
|
+
? `Linked to "${result.linkUnlinkedDatastore.datastoreId}", which is still being built`
|
|
446
|
+
: `Linked to the existing datastore "${result.linkUnlinkedDatastore.datastoreId}"`,
|
|
447
|
+
);
|
|
414
448
|
toastProviderWarning(result.linkUnlinkedDatastore.providerWarning);
|
|
415
449
|
} else {
|
|
416
450
|
toast.error("Couldn't link the existing datastore", {
|
|
@@ -471,7 +505,9 @@ export function DatastoresRoute() {
|
|
|
471
505
|
|
|
472
506
|
const onRegister = useCallback(
|
|
473
507
|
(row: DatastoreRow) => {
|
|
474
|
-
if (isPresent(row.datastoreId))
|
|
508
|
+
if (isPresent(row.datastoreId)) {
|
|
509
|
+
registerMutation.mutate({ datastoreId: row.datastoreId, launchProvisioning: true });
|
|
510
|
+
}
|
|
475
511
|
},
|
|
476
512
|
[registerMutation.mutate],
|
|
477
513
|
);
|
|
@@ -524,6 +560,8 @@ export function DatastoresRoute() {
|
|
|
524
560
|
onRestore,
|
|
525
561
|
onRename: setRenameTarget,
|
|
526
562
|
onRegister,
|
|
563
|
+
registeringDatastoreIds,
|
|
564
|
+
removedSubtreeRowIds: removedSubtreeIds,
|
|
527
565
|
onManageUsers,
|
|
528
566
|
onManageCustomApps,
|
|
529
567
|
onBringOnline,
|
|
@@ -545,7 +583,19 @@ export function DatastoresRoute() {
|
|
|
545
583
|
onToggle: () => toggleVisibility("showArchived"),
|
|
546
584
|
},
|
|
547
585
|
]
|
|
548
|
-
:
|
|
586
|
+
: showArchived || archivedCount > 0
|
|
587
|
+
? [
|
|
588
|
+
{
|
|
589
|
+
key: "archived",
|
|
590
|
+
label: showArchived ? "Hide removed" : `Show removed (${archivedCount})`,
|
|
591
|
+
description:
|
|
592
|
+
"Out of use: a permanent delete stopped partway, or they were removed before removal was turned off.",
|
|
593
|
+
icon: showArchived ? EyeOff : Archive,
|
|
594
|
+
active: showArchived,
|
|
595
|
+
onToggle: () => toggleVisibility("showArchived"),
|
|
596
|
+
},
|
|
597
|
+
]
|
|
598
|
+
: []),
|
|
549
599
|
...(showUnprovisioned || unprovisionedCount > 0
|
|
550
600
|
? [
|
|
551
601
|
{
|
|
@@ -813,6 +863,7 @@ export function DatastoresRoute() {
|
|
|
813
863
|
datastoreId={linkDialogTarget}
|
|
814
864
|
suggestedMatch={suggestedLinkTarget(linkDialogTarget)}
|
|
815
865
|
organizationNames={organizationNameOptions}
|
|
866
|
+
groupPathsByOrganization={groupPathsByOrganization}
|
|
816
867
|
existingOrganizationNames={existingOrganizationNames}
|
|
817
868
|
onClose={() => setLinkDialogTarget(null)}
|
|
818
869
|
/>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GQLIntegration,
|
|
3
|
+
useGoogleMerchantCenterSetupConnectMutation,
|
|
4
|
+
useGoogleMerchantCenterSetupProgressQuery,
|
|
5
|
+
type GQLGoogleMerchantCenterAccount,
|
|
6
|
+
} from "@manta-eu/client";
|
|
7
|
+
import { useQueryClient } from "@tanstack/react-query";
|
|
8
|
+
import { googleMerchantCenterTreeItems } from "./google-merchant-center-account-tree";
|
|
9
|
+
import { OAuthSetupConnectForm, type OAuthSetup, type SetupCopy } from "./OAuthSetupConnectForm";
|
|
10
|
+
import type { ConnectFormProps } from "./types";
|
|
11
|
+
import { useMantaClient } from "#providers/index";
|
|
12
|
+
|
|
13
|
+
const copy: SetupCopy = {
|
|
14
|
+
providerName: "Merchant Center",
|
|
15
|
+
identityProviderName: "Google",
|
|
16
|
+
entitySingular: "account",
|
|
17
|
+
entityPlural: "accounts",
|
|
18
|
+
signInDescription:
|
|
19
|
+
"We'll take you to Google sign-in so you can grant Manta access to your Google Merchant Center accounts.",
|
|
20
|
+
pickTitle: "Pick the Merchant Center accounts to connect",
|
|
21
|
+
pickDescription:
|
|
22
|
+
"Choose the accounts whose products Manta should manage. An advanced account only groups its sub-accounts, so connect the sub-accounts. An account whose latest terms aren't accepted yet can be connected once they are accepted in Merchant Center.",
|
|
23
|
+
noEntitiesLabel:
|
|
24
|
+
"We couldn't find any Merchant Center accounts on this Google identity. Sign in with a different account or check your Merchant Center access.",
|
|
25
|
+
noneConnectableLabel:
|
|
26
|
+
"No connectable Merchant Center accounts remain on this Google identity — they are already connected or unavailable. Sign in with a different Google account to connect a new one.",
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
function useGoogleMerchantCenterSetup(): OAuthSetup<GQLGoogleMerchantCenterAccount> {
|
|
30
|
+
const { mantaClient } = useMantaClient();
|
|
31
|
+
const queryClient = useQueryClient();
|
|
32
|
+
const progressQuery = useGoogleMerchantCenterSetupProgressQuery(mantaClient, undefined, { staleTime: 0 });
|
|
33
|
+
const connectMutation = useGoogleMerchantCenterSetupConnectMutation(mantaClient);
|
|
34
|
+
const progress = progressQuery.data?.googleMerchantCenterSetupProgress;
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
progress: progress && { state: progress.state, rows: progress.accounts, lastError: progress.lastError },
|
|
38
|
+
refetchProgress: progressQuery.refetch,
|
|
39
|
+
resetProgress: () =>
|
|
40
|
+
queryClient.setQueryData(useGoogleMerchantCenterSetupProgressQuery.getKey(), {
|
|
41
|
+
googleMerchantCenterSetupProgress: { state: [], accounts: null, lastError: null },
|
|
42
|
+
}),
|
|
43
|
+
connect: async (accountIds) => (await connectMutation.mutateAsync({ accountIds })).googleMerchantCenterSetupConnect,
|
|
44
|
+
isConnecting: connectMutation.isPending,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function GoogleMerchantCenterConnectForm(props: ConnectFormProps) {
|
|
49
|
+
const setup = useGoogleMerchantCenterSetup();
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<OAuthSetupConnectForm
|
|
53
|
+
{...props}
|
|
54
|
+
integration={GQLIntegration.GoogleMerchantCenter}
|
|
55
|
+
oauthStartPath="/oauth/google-merchant-center/start"
|
|
56
|
+
copy={copy}
|
|
57
|
+
setup={setup}
|
|
58
|
+
treeItems={googleMerchantCenterTreeItems}
|
|
59
|
+
/>
|
|
60
|
+
);
|
|
61
|
+
}
|
package/src/routes/integrations/components/connect-forms/google-merchant-center-account-tree.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { GQLGoogleMerchantCenterAccount } from "@manta-eu/client";
|
|
2
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
3
|
+
import { unavailableReasonLabel } from "./setup-account-unavailable-reason";
|
|
4
|
+
import { buildTreeRows, type TreeSelectItem } from "#components/tree-multi-select/index";
|
|
5
|
+
|
|
6
|
+
function rowHint(
|
|
7
|
+
row: GQLGoogleMerchantCenterAccount,
|
|
8
|
+
alreadyConnected: boolean,
|
|
9
|
+
reconnectable: boolean,
|
|
10
|
+
): string | undefined {
|
|
11
|
+
if (row.advanced === true) return "Advanced account";
|
|
12
|
+
if (row.isConnectable !== true) return unavailableReasonLabel(row.unavailableReason);
|
|
13
|
+
if (reconnectable) return "Reconnect";
|
|
14
|
+
if (alreadyConnected) return "Already connected";
|
|
15
|
+
if (row.testAccount === true) return "Test account";
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function googleMerchantCenterTreeItems(
|
|
20
|
+
rows: GQLGoogleMerchantCenterAccount[],
|
|
21
|
+
alreadyConnectedExternalIds: ReadonlySet<string>,
|
|
22
|
+
reconnectableExternalIds: ReadonlySet<string> = new Set(),
|
|
23
|
+
): TreeSelectItem[] {
|
|
24
|
+
return buildTreeRows(rows).map(({ node, depth }) => {
|
|
25
|
+
const reconnectable = isPresent(node.externalId) && reconnectableExternalIds.has(node.externalId);
|
|
26
|
+
const alreadyConnected =
|
|
27
|
+
!reconnectable && isPresent(node.externalId) && alreadyConnectedExternalIds.has(node.externalId);
|
|
28
|
+
return {
|
|
29
|
+
id: node.id,
|
|
30
|
+
label: node.name ?? node.externalId ?? node.id,
|
|
31
|
+
caption: node.name != null ? (node.externalId ?? undefined) : undefined,
|
|
32
|
+
hint: rowHint(node, alreadyConnected, reconnectable),
|
|
33
|
+
selectable: node.isConnectable === true,
|
|
34
|
+
disabled: alreadyConnected,
|
|
35
|
+
depth,
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
}
|
package/src/routes/integrations/components/connect-forms/setup-account-unavailable-reason.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { isPresent } from "@manta-eu/lib/present";
|
|
|
3
3
|
|
|
4
4
|
const unavailableReasonLabels: Record<GQLSetupAccountUnavailableReason, string> = {
|
|
5
5
|
[GQLSetupAccountUnavailableReason.InsufficientPermissions]: "Insufficient permissions",
|
|
6
|
+
[GQLSetupAccountUnavailableReason.TermsNotAccepted]: "Accept the latest terms in Merchant Center",
|
|
6
7
|
};
|
|
7
8
|
|
|
8
9
|
export function unavailableReasonLabel(reason: GQLSetupAccountUnavailableReason | null | undefined): string {
|
|
@@ -11,6 +11,7 @@ export { FigmaConnectForm } from "./components/connect-forms/FigmaConnectForm";
|
|
|
11
11
|
export { GmailConnectForm } from "./components/connect-forms/GmailConnectForm";
|
|
12
12
|
export { GoogleAdsConnectForm } from "./components/connect-forms/GoogleAdsConnectForm";
|
|
13
13
|
export { GoogleAnalyticsConnectForm } from "./components/connect-forms/GoogleAnalyticsConnectForm";
|
|
14
|
+
export { GoogleMerchantCenterConnectForm } from "./components/connect-forms/GoogleMerchantCenterConnectForm";
|
|
14
15
|
export { KlaviyoConnectForm } from "./components/connect-forms/KlaviyoConnectForm";
|
|
15
16
|
export { LinkedinConnectForm } from "./components/connect-forms/LinkedinConnectForm";
|
|
16
17
|
export { MetaAdsConnectForm } from "./components/connect-forms/MetaAdsConnectForm";
|
|
@@ -42,6 +42,7 @@ const oauthAccountNoun = {
|
|
|
42
42
|
[GQLIntegration.Slack]: "Workspace",
|
|
43
43
|
[GQLIntegration.Google]: "Customer",
|
|
44
44
|
[GQLIntegration.GoogleAnalytics]: "Property",
|
|
45
|
+
[GQLIntegration.GoogleMerchantCenter]: "Account",
|
|
45
46
|
[GQLIntegration.Meta]: "Ad account",
|
|
46
47
|
[GQLIntegration.Linkedin]: "Ad account",
|
|
47
48
|
[GQLIntegration.MicrosoftAds]: "Account",
|
|
@@ -41,7 +41,7 @@ declare module "@ulb-darmstadt/shacl-form" {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
declare module "react" {
|
|
44
|
-
//
|
|
44
|
+
// oxlint-disable-next-line typescript/no-namespace -- augmenting JSX needs a namespace.
|
|
45
45
|
namespace JSX {
|
|
46
46
|
interface IntrinsicElements {
|
|
47
47
|
"shacl-form": import("react").DetailedHTMLProps<
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
useCurrentFactValueQuery,
|
|
11
11
|
useExplainFactQuery,
|
|
12
12
|
useGetActionPlansSummaryQuery,
|
|
13
|
+
useManualActionProgressQuery,
|
|
13
14
|
useMemoriesQuery,
|
|
14
15
|
useMemorySchemasQuery,
|
|
15
16
|
useNodePropertiesQuery,
|
|
@@ -36,6 +37,7 @@ export const graphDerivedQueries: QueryWithGetKey[] = [
|
|
|
36
37
|
useCurrentFactValueQuery,
|
|
37
38
|
useExplainFactQuery,
|
|
38
39
|
useGetActionPlansSummaryQuery,
|
|
40
|
+
useManualActionProgressQuery,
|
|
39
41
|
useMemoriesQuery,
|
|
40
42
|
useMemorySchemasQuery,
|
|
41
43
|
useNodePropertiesQuery,
|
package/src/style.ts
CHANGED
|
@@ -19,7 +19,7 @@ export function slackToMarkdown(input: string): string {
|
|
|
19
19
|
|
|
20
20
|
output = output.replace(/([^\n])\n(?!\n)/g, "$1 \n");
|
|
21
21
|
|
|
22
|
-
//
|
|
22
|
+
// oxlint-disable-next-line no-control-regex -- NUL delimits the code placeholders this file writes.
|
|
23
23
|
output = output.replace(/\x00CODE(\d+)\x00/g, (_, i) => placeholders[Number(i)]!);
|
|
24
24
|
|
|
25
25
|
return output;
|