@cat-factory/app 0.302.2 → 0.303.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/README.md +16 -0
- package/app/app.config.ts +19 -10
- package/app/assets/css/main.css +13 -13
- package/app/assets/css/prose.css +22 -22
- package/app/assets/css/tokens.css +298 -0
- package/app/components/assistant/AssistantModal.vue +22 -22
- package/app/components/auth/AuthGate.vue +1 -1
- package/app/components/auth/BackendMisconfiguredScreen.vue +10 -10
- package/app/components/auth/LoginScreen.vue +34 -36
- package/app/components/auth/ResetPasswordScreen.vue +12 -12
- package/app/components/auth/UserMenu.vue +4 -4
- package/app/components/binaryCandidates/BinaryCandidatesWindow.vue +27 -25
- package/app/components/binaryOutput/BinaryOutputReport.vue +15 -15
- package/app/components/binaryOutput/StoredAssetView.vue +5 -5
- package/app/components/board/AddTaskModal.vue +17 -20
- package/app/components/board/AgentFailureCard.vue +11 -11
- package/app/components/board/AgentFailureHistory.vue +2 -2
- package/app/components/board/BoardCanvas.vue +6 -5
- package/app/components/board/CreateInitiativeModal.vue +8 -10
- package/app/components/board/DependencyConnectOverlay.vue +1 -1
- package/app/components/board/FailureHistoryList.vue +7 -7
- package/app/components/board/RecurringPipelineModal.vue +17 -17
- package/app/components/board/ReviewFrictionDialog.vue +6 -6
- package/app/components/board/StepExecutionHistory.vue +13 -13
- package/app/components/board/TaskDependencyEdges.vue +8 -8
- package/app/components/board/nodes/AgentChip.vue +10 -10
- package/app/components/board/nodes/BlockNode.vue +29 -29
- package/app/components/board/nodes/DecisionBadge.vue +2 -2
- package/app/components/board/nodes/EpicNode.vue +14 -10
- package/app/components/board/nodes/FrameSwimlanes.vue +7 -9
- package/app/components/board/nodes/InitiativeCard.vue +8 -8
- package/app/components/board/nodes/LaneGroup.vue +1 -1
- package/app/components/board/nodes/LaneTask.vue +2 -2
- package/app/components/board/nodes/ResizeGrips.vue +4 -4
- package/app/components/board/nodes/TaskCard.vue +18 -18
- package/app/components/board/nodes/TaskLane.vue +5 -5
- package/app/components/board/nodes/TaskPipelineMini.vue +18 -18
- package/app/components/bootstrap/AdoptionReviewModal.vue +29 -26
- package/app/components/bootstrap/BootstrapModal.vue +21 -23
- package/app/components/bootstrap/BootstrapRunSteps.vue +1 -1
- package/app/components/brainstorm/BrainstormWindow.vue +30 -33
- package/app/components/bugFishing/BugFishingWindow.vue +49 -49
- package/app/components/clarity/ClarityReviewWindow.vue +30 -30
- package/app/components/common/AsyncViewError.vue +5 -5
- package/app/components/common/ClarificationItem.vue +8 -13
- package/app/components/common/ConfirmDialog.vue +4 -2
- package/app/components/common/DescriptorFields.vue +1 -1
- package/app/components/common/EmptyState.vue +3 -3
- package/app/components/common/InterviewGateNotice.vue +7 -7
- package/app/components/common/KeyboardShortcutsHelp.vue +1 -1
- package/app/components/common/MarkdownProse.vue +14 -13
- package/app/components/consensus/ConsensusSessionWindow.vue +26 -26
- package/app/components/context/ContextAttachmentFields.vue +17 -17
- package/app/components/docs/DocInterviewWindow.vue +14 -14
- package/app/components/documents/ContextDocumentPicker.vue +17 -17
- package/app/components/documents/DocumentImportModal.vue +7 -7
- package/app/components/documents/DocumentSourceConnectModal.vue +3 -3
- package/app/components/documents/DocumentSyncState.vue +5 -5
- package/app/components/documents/DocumentTemplatesModal.vue +15 -15
- package/app/components/documents/RepoContextDocPicker.vue +5 -5
- package/app/components/documents/SpawnPreviewModal.vue +12 -12
- package/app/components/documents/StartFromDesignModal.vue +11 -11
- package/app/components/documents/TaskContextDocs.vue +5 -5
- package/app/components/environments/EnvSetupStepper.vue +6 -6
- package/app/components/environments/EnvironmentStatusPanel.vue +17 -17
- package/app/components/environments/steps/EnvPickStep.vue +3 -3
- package/app/components/environments/steps/EnvPreflightStep.vue +9 -9
- package/app/components/environments/steps/EnvReviewStep.vue +25 -22
- package/app/components/environments/steps/EnvSaveStep.vue +7 -5
- package/app/components/environments/steps/JourneyStepNav.vue +1 -1
- package/app/components/focus/BlockFocusView.vue +17 -19
- package/app/components/followUp/FollowUpWindow.vue +23 -23
- package/app/components/forkDecision/ForkDecisionWindow.vue +37 -39
- package/app/components/foundational/FoundationalContractSummary.vue +7 -7
- package/app/components/foundational/FoundationalServiceCatalogList.vue +11 -11
- package/app/components/foundational/FoundationalServiceManager.vue +1 -1
- package/app/components/foundational/FoundationalServiceRegistry.vue +13 -13
- package/app/components/foundational/FoundationalServiceSources.vue +13 -13
- package/app/components/foundational/FoundationalSuppressions.vue +7 -7
- package/app/components/foundational/ServiceCatalogConnection.vue +10 -10
- package/app/components/fragments/FragmentLibraryManager.vue +41 -44
- package/app/components/fragments/FragmentSelector.vue +13 -13
- package/app/components/fragments/GitHubDocUrlImport.vue +1 -1
- package/app/components/gates/GateFailingCheckList.vue +5 -5
- package/app/components/gates/GateResultView.vue +50 -47
- package/app/components/github/AddServiceFromRepoModal.vue +14 -14
- package/app/components/github/BranchProtectionPreflight.vue +13 -13
- package/app/components/github/GitHubConnect.vue +7 -7
- package/app/components/github/GitHubOnboarding.vue +7 -7
- package/app/components/github/GitHubPanel.vue +37 -40
- package/app/components/github/RepoTreeBrowser.vue +18 -18
- package/app/components/humanTest/HumanTestWindow.vue +30 -33
- package/app/components/initiative/InitiativePlanNotice.vue +5 -5
- package/app/components/initiative/InitiativePlanReview.vue +27 -29
- package/app/components/initiative/InitiativePlanningWindow.vue +10 -10
- package/app/components/initiative/InitiativeTrackerWindow.vue +71 -65
- package/app/components/inputGate/InputGateNotice.vue +2 -4
- package/app/components/judge/JudgeResultView.vue +30 -32
- package/app/components/kaizen/KaizenPanel.vue +40 -36
- package/app/components/kaizen/KaizenStepStatus.vue +21 -21
- package/app/components/layout/AccountAuditLog.vue +10 -10
- package/app/components/layout/AccountDeploymentSettings.vue +20 -20
- package/app/components/layout/AccountFailureKindRules.vue +13 -13
- package/app/components/layout/AccountFoundationalSettings.vue +1 -1
- package/app/components/layout/AccountFragmentSettings.vue +1 -1
- package/app/components/layout/AccountModelPolicySettings.vue +9 -9
- package/app/components/layout/AccountPlatformAlertSettings.vue +11 -11
- package/app/components/layout/AccountRiskPolicySettings.vue +2 -2
- package/app/components/layout/AccountRunCredentialSettings.vue +5 -5
- package/app/components/layout/AccountSkillSettings.vue +1 -1
- package/app/components/layout/AccountTeamSettings.vue +23 -15
- package/app/components/layout/AiProvidersBanner.vue +11 -8
- package/app/components/layout/AppearanceSwitcher.vue +108 -0
- package/app/components/layout/BoardSwitcher.vue +8 -11
- package/app/components/layout/BoardToolbar.vue +3 -3
- package/app/components/layout/CommandBar.vue +7 -9
- package/app/components/layout/ConnectionStatusBanner.vue +2 -2
- package/app/components/layout/DefaultTestEnvBanner.vue +5 -5
- package/app/components/layout/GitHubPatBanner.vue +5 -5
- package/app/components/layout/GitHubPatPermissionsBanner.vue +16 -10
- package/app/components/layout/InfraSetupBanner.vue +6 -6
- package/app/components/layout/IntegrationsHub.vue +15 -15
- package/app/components/layout/LanguageSwitcher.vue +5 -5
- package/app/components/layout/ModelProvidersHub.vue +13 -16
- package/app/components/layout/NotificationsInbox.vue +10 -10
- package/app/components/layout/PersonalSetupModal.vue +8 -8
- package/app/components/layout/ProviderConfigBanner.vue +4 -4
- package/app/components/layout/RolePrompt.vue +7 -7
- package/app/components/layout/SideBar.vue +6 -4
- package/app/components/layout/SpendWarningBanner.vue +17 -14
- package/app/components/layout/TranslationWarningBanner.vue +4 -4
- package/app/components/layout/UiModeSwitcher.vue +13 -13
- package/app/components/layout/UiRoleSwitcher.vue +8 -8
- package/app/components/layout/WorkspaceMembersSettings.vue +15 -11
- package/app/components/media/ArtifactLightbox.vue +13 -13
- package/app/components/media/ImageCompare.vue +31 -24
- package/app/components/merge/MergeEffortChips.vue +2 -2
- package/app/components/notifications/NotificationSettingsPanel.vue +14 -12
- package/app/components/observability/OutcomeFilterChips.vue +6 -6
- package/app/components/observability/RunFailureSummary.vue +28 -25
- package/app/components/observability/StepMetricsBar.vue +26 -28
- package/app/components/observability/StepModelActivity.vue +2 -2
- package/app/components/observability/ToolCallList.vue +24 -24
- package/app/components/outcome/OutcomeSummaryWindow.vue +47 -47
- package/app/components/palettes/AgentPalette.vue +8 -8
- package/app/components/palettes/AgentTierSelect.vue +1 -1
- package/app/components/palettes/PipelinePurposeSelect.vue +1 -1
- package/app/components/panels/AgentStepDetail.vue +52 -51
- package/app/components/panels/AttemptEntryHeader.vue +4 -6
- package/app/components/panels/DecisionModal.vue +7 -7
- package/app/components/panels/GenericStructuredResultView.vue +7 -7
- package/app/components/panels/InspectorPanel.vue +17 -17
- package/app/components/panels/MergerResultView.vue +19 -19
- package/app/components/panels/ObservabilityPanel.vue +115 -123
- package/app/components/panels/OperatorDashboardPanel.vue +89 -97
- package/app/components/panels/ReportsPanel.vue +69 -66
- package/app/components/panels/ReportsSpendBreakdown.vue +9 -9
- package/app/components/panels/ResultWindowShell.vue +38 -38
- package/app/components/panels/RunDetailLoadState.vue +2 -2
- package/app/components/panels/StepContainerStatus.vue +9 -9
- package/app/components/panels/StepDelegatedStatus.logic.spec.ts +135 -0
- package/app/components/panels/StepDelegatedStatus.logic.ts +160 -0
- package/app/components/panels/StepDelegatedStatus.vue +181 -0
- package/app/components/panels/StepEffortReport.vue +16 -15
- package/app/components/panels/StepFragmentAdherence.vue +14 -10
- package/app/components/panels/StepMetadataCard.vue +74 -45
- package/app/components/panels/StepReproductionReport.vue +25 -21
- package/app/components/panels/StepRunMeta.vue +20 -20
- package/app/components/panels/StepTestReport.logic.spec.ts +8 -3
- package/app/components/panels/StepTestReport.logic.ts +4 -4
- package/app/components/panels/StepTestReport.vue +28 -28
- package/app/components/panels/StepToolServers.vue +14 -11
- package/app/components/panels/StepValidationReport.vue +7 -7
- package/app/components/panels/inspector/ContainerSummary.vue +9 -9
- package/app/components/panels/inspector/DocReferenceRepos.vue +3 -3
- package/app/components/panels/inspector/EnvProbeReport.vue +24 -27
- package/app/components/panels/inspector/EpicChildren.vue +8 -12
- package/app/components/panels/inspector/FrontendBindingsResolved.vue +11 -11
- package/app/components/panels/inspector/FrontendConfig.vue +37 -41
- package/app/components/panels/inspector/InitiativeInspector.vue +3 -3
- package/app/components/panels/inspector/InspectorSection.vue +6 -6
- package/app/components/panels/inspector/RecurringScheduleSettings.vue +16 -19
- package/app/components/panels/inspector/ServiceConnections.vue +2 -2
- package/app/components/panels/inspector/ServiceReleaseHealthConfig.vue +2 -2
- package/app/components/panels/inspector/ServiceSelfTests.vue +21 -17
- package/app/components/panels/inspector/ServiceTestConfig.vue +51 -59
- package/app/components/panels/inspector/ServiceTestSecrets.vue +5 -5
- package/app/components/panels/inspector/ServiceTestingContext.vue +3 -3
- package/app/components/panels/inspector/ServiceValidationConfig.vue +2 -2
- package/app/components/panels/inspector/TaskAgentConfig.vue +3 -3
- package/app/components/panels/inspector/TaskAprioriBranches.vue +8 -5
- package/app/components/panels/inspector/TaskDependencies.vue +1 -1
- package/app/components/panels/inspector/TaskEstimateBadge.vue +11 -11
- package/app/components/panels/inspector/TaskExecution.vue +17 -17
- package/app/components/panels/inspector/TaskReviewTarget.vue +2 -2
- package/app/components/panels/inspector/TaskRunSettings.vue +35 -37
- package/app/components/panels/inspector/TaskStructure.vue +3 -3
- package/app/components/pipeline/AgentKindIcon.vue +1 -1
- package/app/components/pipeline/AgentPromptEditor.vue +17 -17
- package/app/components/pipeline/BinaryOutputStepPicker.vue +42 -56
- package/app/components/pipeline/EstimateThresholdFields.vue +4 -4
- package/app/components/pipeline/GateConfigFields.vue +13 -10
- package/app/components/pipeline/IterationCapPrompt.vue +4 -2
- package/app/components/pipeline/PipelineBuilder.vue +47 -55
- package/app/components/pipeline/PipelineHealthModal.vue +27 -29
- package/app/components/pipeline/PipelinePicker.vue +10 -10
- package/app/components/pipeline/PipelinePreview.vue +10 -10
- package/app/components/pipeline/PipelineProgress.vue +64 -67
- package/app/components/prReview/PrReviewPhaseBadge.vue +7 -7
- package/app/components/prReview/PrReviewWindow.vue +75 -77
- package/app/components/providers/AiPresetMismatchDialog.vue +5 -5
- package/app/components/providers/AiProviderOnboardingModal.vue +9 -9
- package/app/components/providers/ApiKeysSection.vue +13 -13
- package/app/components/providers/PersonalCredentialModal.vue +2 -2
- package/app/components/providers/PersonalSubscriptionSection.vue +10 -10
- package/app/components/providers/SignInRequiredNotice.vue +1 -1
- package/app/components/providers/VendorCredentialsModal.vue +10 -10
- package/app/components/provisioning/ProvisioningLogsDrawer.vue +13 -13
- package/app/components/ralph/RalphLoopResultView.vue +28 -30
- package/app/components/recurring/RecurrenceEditor.vue +2 -2
- package/app/components/requirements/RequirementsReviewWindow.vue +51 -58
- package/app/components/riskPolicy/RiskPolicyPicker.vue +12 -15
- package/app/components/riskPolicy/RiskPolicyPreview.vue +14 -14
- package/app/components/sandbox/SandboxPanel.vue +58 -59
- package/app/components/settings/AccountSettingsPanel.vue +1 -1
- package/app/components/settings/ApiTokensPanel.vue +10 -10
- package/app/components/settings/BudgetSettings.vue +18 -22
- package/app/components/settings/CapabilityCredentialsPanel.vue +15 -15
- package/app/components/settings/CloudflareHandlerSection.vue +20 -20
- package/app/components/settings/ComposeEnvironmentSetupSection.vue +13 -13
- package/app/components/settings/ConnectionTestVerdict.vue +3 -3
- package/app/components/settings/ConnectionWarnings.vue +1 -1
- package/app/components/settings/ConsensusGroupsSection.vue +27 -35
- package/app/components/settings/CustomManifestTypeEditor.vue +10 -10
- package/app/components/settings/DefaultProvisionTypeSection.vue +6 -6
- package/app/components/settings/InfraHandlersConfigurator.vue +24 -22
- package/app/components/settings/InfrastructureBackendPicker.vue +6 -6
- package/app/components/settings/InfrastructureWindow.vue +5 -5
- package/app/components/settings/IssueTrackerPanel.vue +29 -23
- package/app/components/settings/KubernetesEngineForm.vue +11 -11
- package/app/components/settings/KubernetesEnvironmentForm.vue +4 -4
- package/app/components/settings/LocalContainerPoolSettings.vue +6 -11
- package/app/components/settings/LocalModelEndpointsPanel.vue +20 -18
- package/app/components/settings/McpAuthorizeScreen.vue +13 -15
- package/app/components/settings/McpOAuthCallbackScreen.vue +16 -10
- package/app/components/settings/MergeClassRulesEditor.vue +6 -9
- package/app/components/settings/MergeRolePolicyEditor.vue +16 -16
- package/app/components/settings/ModelConfigurationPanel.vue +23 -30
- package/app/components/settings/ModelPresetHealthModal.vue +15 -13
- package/app/components/settings/ObservabilityConnectionPanel.vue +4 -4
- package/app/components/settings/OpenRouterCatalogPanel.vue +23 -19
- package/app/components/settings/PackageRegistriesPanel.vue +8 -8
- package/app/components/settings/ProviderConnectionTab.vue +8 -11
- package/app/components/settings/ProviderManifestEditor.vue +9 -9
- package/app/components/settings/ProviderPreferenceEditor.vue +8 -8
- package/app/components/settings/RiskPolicyCreateForm.vue +10 -10
- package/app/components/settings/RiskPolicyEditorRow.vue +14 -14
- package/app/components/settings/RiskPolicyHealthModal.vue +15 -13
- package/app/components/settings/RiskPolicyInheritedRow.vue +1 -1
- package/app/components/settings/RiskPolicyPanel.vue +10 -15
- package/app/components/settings/ServiceFragmentDefaultsPanel.vue +7 -7
- package/app/components/settings/SharedStacksPanel.vue +9 -12
- package/app/components/settings/TaskSourceCard.vue +4 -4
- package/app/components/settings/TaskTypeSuppressionsPanel.vue +6 -6
- package/app/components/settings/ToolServerChecklist.vue +36 -29
- package/app/components/settings/UsageSettings.vue +15 -15
- package/app/components/settings/UserSecretsSection.vue +9 -12
- package/app/components/settings/WorkspaceMetadataSettings.vue +5 -5
- package/app/components/settings/WorkspaceSettingsPanel.vue +47 -47
- package/app/components/skills/ReviewSkillQueue.vue +10 -10
- package/app/components/skills/SkillLibraryManager.vue +23 -20
- package/app/components/slack/SlackPanel.vue +13 -17
- package/app/components/spec/ServiceSpecWindow.vue +45 -42
- package/app/components/tasks/BugHuntModal.vue +24 -27
- package/app/components/tasks/ContextIssuePicker.vue +11 -11
- package/app/components/tasks/TaskContextIssues.vue +3 -3
- package/app/components/tasks/TaskImportModal.vue +7 -7
- package/app/components/tasks/TaskSourceConnectModal.vue +10 -8
- package/app/components/testing/TestReportWindow.vue +99 -82
- package/app/components/theme/ThemeImportModal.vue +115 -0
- package/app/components/tutorial/TutorialCatalogue.vue +9 -9
- package/app/components/tutorial/TutorialNudge.vue +5 -5
- package/app/components/tutorial/TutorialOverlay.vue +12 -12
- package/app/components/tutorial/TutorialPrompt.vue +6 -9
- package/app/components/vcs/GitLabConnect.vue +4 -4
- package/app/components/vcs/VcsConnectSurfaces.vue +2 -2
- package/app/components/visualConfirm/VisualConfirmationWindow.vue +36 -36
- package/app/composables/api/client.ts +6 -1
- package/app/composables/usePipelineErrorToast.ts +17 -0
- package/app/modular/agent-kinds.ts +24 -0
- package/app/pages/index.vue +5 -5
- package/app/plugins/theme.client.ts +125 -0
- package/app/spa-loading-template.html +52 -14
- package/app/stores/agents.ts +1 -1
- package/app/stores/theme.spec.ts +56 -0
- package/app/stores/theme.ts +87 -0
- package/app/types/domain.ts +19 -0
- package/app/types/execution.ts +4 -0
- package/app/utils/agentOutput.ts +1 -1
- package/app/utils/binaryOutput.ts +6 -6
- package/app/utils/bootstrapSteps.ts +14 -14
- package/app/utils/catalog.ts +87 -83
- package/app/utils/colorTint.ts +10 -0
- package/app/utils/failureKinds.ts +1 -0
- package/app/utils/observability.ts +3 -3
- package/app/utils/pipelineRender.ts +13 -17
- package/app/utils/swimlanes.ts +4 -4
- package/app/utils/theme/bootPalette.spec.ts +54 -0
- package/app/utils/theme/bootPalette.ts +108 -0
- package/app/utils/theme/builtins.spec.ts +38 -0
- package/app/utils/theme/builtins.ts +55 -0
- package/app/utils/theme/css.ts +162 -0
- package/app/utils/theme/doc.ts +353 -0
- package/app/utils/theme/link.ts +93 -0
- package/app/utils/theme/presets.ts +509 -0
- package/app/utils/theme/theme.spec.ts +224 -0
- package/i18n/locales/de.json +61 -4
- package/i18n/locales/en.json +70 -4
- package/i18n/locales/es.json +61 -4
- package/i18n/locales/fr.json +61 -4
- package/i18n/locales/he.json +61 -4
- package/i18n/locales/it.json +61 -4
- package/i18n/locales/ja.json +61 -4
- package/i18n/locales/pl.json +61 -4
- package/i18n/locales/tr.json +61 -4
- package/i18n/locales/uk.json +61 -4
- package/nuxt.config.ts +37 -11
- package/package.json +9 -8
|
@@ -188,7 +188,7 @@ function removePending(item: PendingContext) {
|
|
|
188
188
|
<!-- Context documents (ungated; Attach disabled until a source is connected). -->
|
|
189
189
|
<div class="space-y-2">
|
|
190
190
|
<div class="flex items-center justify-between">
|
|
191
|
-
<span class="text-[11px] font-semibold uppercase tracking-wide text-
|
|
191
|
+
<span class="text-[11px] font-semibold uppercase tracking-wide text-muted">
|
|
192
192
|
{{ t('contextAttachments.documents') }}
|
|
193
193
|
</span>
|
|
194
194
|
<UButton
|
|
@@ -246,11 +246,11 @@ function removePending(item: PendingContext) {
|
|
|
246
246
|
that into an attachment would attach pages nobody meant to attach. -->
|
|
247
247
|
<div
|
|
248
248
|
v-if="offer && docsConnected"
|
|
249
|
-
class="flex items-center gap-2 rounded-md border border-
|
|
249
|
+
class="flex items-center gap-2 rounded-md border border-primary/60 bg-primary/10 px-2 py-1.5"
|
|
250
250
|
data-testid="pasted-link-offer"
|
|
251
251
|
>
|
|
252
|
-
<UIcon name="i-lucide-link" class="h-3.5 w-3.5 shrink-0 text-
|
|
253
|
-
<span class="min-w-0 flex-1 truncate text-xs text-
|
|
252
|
+
<UIcon name="i-lucide-link" class="h-3.5 w-3.5 shrink-0 text-primary" />
|
|
253
|
+
<span class="min-w-0 flex-1 truncate text-xs text-toned">
|
|
254
254
|
{{
|
|
255
255
|
t('contextAttachments.pastedLink.offer', {
|
|
256
256
|
source: documents.descriptorFor(offer.source)?.label ?? offer.source,
|
|
@@ -271,12 +271,12 @@ function removePending(item: PendingContext) {
|
|
|
271
271
|
<div
|
|
272
272
|
v-for="item in pendingDocs"
|
|
273
273
|
:key="contextKey(item)"
|
|
274
|
-
class="rounded-md border border-
|
|
274
|
+
class="rounded-md border border-default bg-default/60"
|
|
275
275
|
>
|
|
276
|
-
<div class="flex items-center gap-1.5 px-2 py-1.5 text-xs text-
|
|
276
|
+
<div class="flex items-center gap-1.5 px-2 py-1.5 text-xs text-toned">
|
|
277
277
|
<UIcon
|
|
278
278
|
:name="item.icon ?? 'i-lucide-file-text'"
|
|
279
|
-
class="h-3.5 w-3.5 shrink-0 text-
|
|
279
|
+
class="h-3.5 w-3.5 shrink-0 text-primary"
|
|
280
280
|
/>
|
|
281
281
|
<span class="truncate">{{ item.title }}</span>
|
|
282
282
|
<UBadge
|
|
@@ -290,7 +290,7 @@ function removePending(item: PendingContext) {
|
|
|
290
290
|
</UBadge>
|
|
291
291
|
<button
|
|
292
292
|
type="button"
|
|
293
|
-
class="ms-auto shrink-0 text-
|
|
293
|
+
class="ms-auto shrink-0 text-muted hover:text-default"
|
|
294
294
|
@click="removePending(item)"
|
|
295
295
|
>
|
|
296
296
|
<UIcon name="i-lucide-x" class="h-3.5 w-3.5" />
|
|
@@ -298,14 +298,14 @@ function removePending(item: PendingContext) {
|
|
|
298
298
|
</div>
|
|
299
299
|
<p
|
|
300
300
|
v-if="item.unreadable"
|
|
301
|
-
class="px-2 pb-1.5 text-[11px] text-
|
|
301
|
+
class="px-2 pb-1.5 text-[11px] text-app-warning-400"
|
|
302
302
|
data-testid="context-item-unreadable"
|
|
303
303
|
>
|
|
304
304
|
{{ t('contextAttachments.unreadable', { error: item.unreadable }) }}
|
|
305
305
|
</p>
|
|
306
306
|
</div>
|
|
307
307
|
</div>
|
|
308
|
-
<p v-else class="text-[11px] text-
|
|
308
|
+
<p v-else class="text-[11px] text-dimmed">
|
|
309
309
|
{{ docsHint }}
|
|
310
310
|
</p>
|
|
311
311
|
</div>
|
|
@@ -313,7 +313,7 @@ function removePending(item: PendingContext) {
|
|
|
313
313
|
<!-- Context issues (ungated; Attach disabled until a tracker is connected). -->
|
|
314
314
|
<div class="space-y-2">
|
|
315
315
|
<div class="flex items-center justify-between">
|
|
316
|
-
<span class="text-[11px] font-semibold uppercase tracking-wide text-
|
|
316
|
+
<span class="text-[11px] font-semibold uppercase tracking-wide text-muted">
|
|
317
317
|
{{ t('contextAttachments.issues') }}
|
|
318
318
|
</span>
|
|
319
319
|
<UButton
|
|
@@ -379,12 +379,12 @@ function removePending(item: PendingContext) {
|
|
|
379
379
|
<div
|
|
380
380
|
v-for="item in pendingIssues"
|
|
381
381
|
:key="contextKey(item)"
|
|
382
|
-
class="rounded-md border border-
|
|
382
|
+
class="rounded-md border border-default bg-default/60"
|
|
383
383
|
>
|
|
384
|
-
<div class="flex items-center gap-1.5 px-2 py-1.5 text-xs text-
|
|
384
|
+
<div class="flex items-center gap-1.5 px-2 py-1.5 text-xs text-toned">
|
|
385
385
|
<UIcon
|
|
386
386
|
:name="item.icon ?? 'i-lucide-square-check'"
|
|
387
|
-
class="h-3.5 w-3.5 shrink-0 text-
|
|
387
|
+
class="h-3.5 w-3.5 shrink-0 text-primary"
|
|
388
388
|
/>
|
|
389
389
|
<span class="truncate">{{ item.title }}</span>
|
|
390
390
|
<UBadge
|
|
@@ -398,7 +398,7 @@ function removePending(item: PendingContext) {
|
|
|
398
398
|
</UBadge>
|
|
399
399
|
<button
|
|
400
400
|
type="button"
|
|
401
|
-
class="ms-auto shrink-0 text-
|
|
401
|
+
class="ms-auto shrink-0 text-muted hover:text-default"
|
|
402
402
|
@click="removePending(item)"
|
|
403
403
|
>
|
|
404
404
|
<UIcon name="i-lucide-x" class="h-3.5 w-3.5" />
|
|
@@ -409,14 +409,14 @@ function removePending(item: PendingContext) {
|
|
|
409
409
|
again on submit, and a failure now blocks the create. -->
|
|
410
410
|
<p
|
|
411
411
|
v-if="item.unreadable"
|
|
412
|
-
class="px-2 pb-1.5 text-[11px] text-
|
|
412
|
+
class="px-2 pb-1.5 text-[11px] text-app-warning-400"
|
|
413
413
|
data-testid="context-item-unreadable"
|
|
414
414
|
>
|
|
415
415
|
{{ t('contextAttachments.unreadable', { error: item.unreadable }) }}
|
|
416
416
|
</p>
|
|
417
417
|
</div>
|
|
418
418
|
</div>
|
|
419
|
-
<p v-else class="text-[11px] text-
|
|
419
|
+
<p v-else class="text-[11px] text-dimmed">
|
|
420
420
|
{{ issuesHint }}
|
|
421
421
|
</p>
|
|
422
422
|
</div>
|
|
@@ -107,7 +107,7 @@ const onProceed = () =>
|
|
|
107
107
|
<ResultWindowShell
|
|
108
108
|
:open="open"
|
|
109
109
|
icon="i-lucide-messages-square"
|
|
110
|
-
icon-class="bg-
|
|
110
|
+
icon-class="bg-primary/15 text-primary"
|
|
111
111
|
:title="block?.title ?? t('docInterview.title')"
|
|
112
112
|
:subtitle="t('docInterview.subtitle')"
|
|
113
113
|
width="3xl"
|
|
@@ -124,14 +124,14 @@ const onProceed = () =>
|
|
|
124
124
|
<!-- No session yet -->
|
|
125
125
|
<div
|
|
126
126
|
v-if="!session"
|
|
127
|
-
class="flex h-full flex-col items-center justify-center gap-2 text-center text-
|
|
127
|
+
class="flex h-full flex-col items-center justify-center gap-2 text-center text-muted"
|
|
128
128
|
>
|
|
129
129
|
<UIcon name="i-lucide-messages-square" class="h-8 w-8 opacity-40" />
|
|
130
130
|
<p class="text-sm">{{ t('docInterview.empty') }}</p>
|
|
131
131
|
</div>
|
|
132
132
|
|
|
133
133
|
<template v-else>
|
|
134
|
-
<p class="mb-4 text-[13px] leading-relaxed text-
|
|
134
|
+
<p class="mb-4 text-[13px] leading-relaxed text-toned">
|
|
135
135
|
{{ t('docInterview.intro') }}
|
|
136
136
|
</p>
|
|
137
137
|
|
|
@@ -168,23 +168,23 @@ const onProceed = () =>
|
|
|
168
168
|
<!-- Converged: show the synthesized authoring brief -->
|
|
169
169
|
<div
|
|
170
170
|
v-else-if="converged"
|
|
171
|
-
class="rounded-lg border border-
|
|
171
|
+
class="rounded-lg border border-default bg-app-950/40 p-4"
|
|
172
172
|
data-testid="doc-interview-converged"
|
|
173
173
|
>
|
|
174
|
-
<p class="mb-2 text-[11px] font-medium uppercase tracking-wide text-
|
|
174
|
+
<p class="mb-2 text-[11px] font-medium uppercase tracking-wide text-dimmed">
|
|
175
175
|
{{ t('docInterview.brief') }}
|
|
176
176
|
</p>
|
|
177
177
|
<pre
|
|
178
178
|
v-if="session.brief"
|
|
179
|
-
class="whitespace-pre-wrap break-words text-[13px] leading-relaxed text-
|
|
179
|
+
class="whitespace-pre-wrap break-words text-[13px] leading-relaxed text-toned"
|
|
180
180
|
>{{ session.brief }}</pre>
|
|
181
|
-
<p v-else class="text-[13px] text-
|
|
181
|
+
<p v-else class="text-[13px] text-muted">{{ t('docInterview.converged') }}</p>
|
|
182
182
|
</div>
|
|
183
183
|
|
|
184
184
|
<!-- No pending questions but not yet converged -->
|
|
185
185
|
<div
|
|
186
186
|
v-else-if="questions.length === 0"
|
|
187
|
-
class="rounded-lg border border-
|
|
187
|
+
class="rounded-lg border border-default bg-app-950/40 p-4 text-center text-[13px] text-muted"
|
|
188
188
|
>
|
|
189
189
|
{{ t('docInterview.converged') }}
|
|
190
190
|
</div>
|
|
@@ -194,10 +194,10 @@ const onProceed = () =>
|
|
|
194
194
|
<li
|
|
195
195
|
v-for="q in questions"
|
|
196
196
|
:key="q.key"
|
|
197
|
-
class="rounded-lg border border-
|
|
197
|
+
class="rounded-lg border border-default bg-app-950/40 p-3"
|
|
198
198
|
data-testid="doc-interview-question"
|
|
199
199
|
>
|
|
200
|
-
<p class="mb-2 text-[13px] font-medium text-
|
|
200
|
+
<p class="mb-2 text-[13px] font-medium text-default">{{ q.question }}</p>
|
|
201
201
|
<UTextarea
|
|
202
202
|
v-model="drafts[q.key]"
|
|
203
203
|
:rows="2"
|
|
@@ -212,7 +212,7 @@ const onProceed = () =>
|
|
|
212
212
|
for an answer to go. Saying so beats taking text the flush could only drop. -->
|
|
213
213
|
<p
|
|
214
214
|
v-if="!addressable(q)"
|
|
215
|
-
class="mt-1 text-[11px] text-
|
|
215
|
+
class="mt-1 text-[11px] text-app-warning-300"
|
|
216
216
|
data-testid="doc-interview-unanswerable"
|
|
217
217
|
>
|
|
218
218
|
{{ t('docInterview.unanswerable') }}
|
|
@@ -226,12 +226,12 @@ const onProceed = () =>
|
|
|
226
226
|
re-submit a question set already in flight, and the resume is a no-op once it isn't. -->
|
|
227
227
|
<footer
|
|
228
228
|
v-if="session && phase === 'awaiting' && questions.length > 0"
|
|
229
|
-
class="flex items-center justify-between gap-3 border-t border-
|
|
229
|
+
class="flex items-center justify-between gap-3 border-t border-default px-5 py-3"
|
|
230
230
|
>
|
|
231
|
-
<p class="text-[11px] text-
|
|
231
|
+
<p class="text-[11px] text-dimmed">
|
|
232
232
|
<span
|
|
233
233
|
v-if="unanswered > 0"
|
|
234
|
-
class="text-
|
|
234
|
+
class="text-app-warning-400/90"
|
|
235
235
|
data-testid="doc-interview-unanswered"
|
|
236
236
|
>
|
|
237
237
|
{{ t('docInterview.unanswered', { count: unanswered }) }}
|
|
@@ -415,14 +415,14 @@ onMounted(() => {
|
|
|
415
415
|
</script>
|
|
416
416
|
|
|
417
417
|
<template>
|
|
418
|
-
<div class="space-y-2 rounded-lg border border-
|
|
418
|
+
<div class="space-y-2 rounded-lg border border-default bg-default/40 p-2">
|
|
419
419
|
<!-- Which source is being searched, always visible, plus the sources the user could add from
|
|
420
420
|
here (each opens the connect modal over the caller's form). Rendered as plain text when
|
|
421
421
|
there is nothing to decide, which for a member is the usual case. -->
|
|
422
422
|
<div class="flex items-center gap-1.5">
|
|
423
423
|
<span
|
|
424
424
|
:id="sourceLabelId"
|
|
425
|
-
class="shrink-0 text-[11px] font-semibold uppercase tracking-wide text-
|
|
425
|
+
class="shrink-0 text-[11px] font-semibold uppercase tracking-wide text-dimmed"
|
|
426
426
|
>
|
|
427
427
|
{{ t('documents.picker.sourceLabel') }}
|
|
428
428
|
</span>
|
|
@@ -444,7 +444,7 @@ onMounted(() => {
|
|
|
444
444
|
<span class="truncate">{{ descriptor?.label ?? t('documents.picker.noSource') }}</span>
|
|
445
445
|
</UButton>
|
|
446
446
|
</UDropdownMenu>
|
|
447
|
-
<span v-else class="flex min-w-0 items-center gap-1 text-xs text-
|
|
447
|
+
<span v-else class="flex min-w-0 items-center gap-1 text-xs text-toned">
|
|
448
448
|
<UIcon :name="icon" class="h-3.5 w-3.5 shrink-0" />
|
|
449
449
|
<span class="truncate">{{ descriptor?.label ?? t('documents.picker.noSource') }}</span>
|
|
450
450
|
</span>
|
|
@@ -490,7 +490,7 @@ onMounted(() => {
|
|
|
490
490
|
@keydown.enter="refRow && pickRef(refRow)"
|
|
491
491
|
/>
|
|
492
492
|
|
|
493
|
-
<p v-if="searchError" class="px-1 text-[11px] text-
|
|
493
|
+
<p v-if="searchError" class="px-1 text-[11px] text-app-warning-400">
|
|
494
494
|
{{ t('documents.picker.searchFailed', { error: searchError }) }}
|
|
495
495
|
</p>
|
|
496
496
|
|
|
@@ -498,14 +498,14 @@ onMounted(() => {
|
|
|
498
498
|
the user can still edit, rather than as a toast after the task is created. -->
|
|
499
499
|
<p
|
|
500
500
|
v-if="refState.status === 'checking'"
|
|
501
|
-
class="px-1 text-[11px] text-
|
|
501
|
+
class="px-1 text-[11px] text-dimmed"
|
|
502
502
|
data-testid="doc-ref-checking"
|
|
503
503
|
>
|
|
504
504
|
{{ t('documents.picker.refChecking') }}
|
|
505
505
|
</p>
|
|
506
506
|
<div
|
|
507
507
|
v-else-if="refRejection"
|
|
508
|
-
class="flex flex-wrap items-center gap-x-2 gap-y-1 px-1 text-[11px] text-
|
|
508
|
+
class="flex flex-wrap items-center gap-x-2 gap-y-1 px-1 text-[11px] text-app-warning-400"
|
|
509
509
|
data-testid="doc-ref-rejected"
|
|
510
510
|
>
|
|
511
511
|
<span>{{ refRejection }}</span>
|
|
@@ -523,7 +523,7 @@ onMounted(() => {
|
|
|
523
523
|
</div>
|
|
524
524
|
<p
|
|
525
525
|
v-else-if="refState.status === 'unchecked'"
|
|
526
|
-
class="px-1 text-[11px] text-
|
|
526
|
+
class="px-1 text-[11px] text-app-warning-400"
|
|
527
527
|
data-testid="doc-ref-unchecked"
|
|
528
528
|
>
|
|
529
529
|
{{ t('documents.picker.refCheckFailed', { error: refState.message }) }}
|
|
@@ -532,7 +532,7 @@ onMounted(() => {
|
|
|
532
532
|
at all reads as a picker that dropped it. -->
|
|
533
533
|
<p
|
|
534
534
|
v-else-if="refAlreadyAttached"
|
|
535
|
-
class="px-1 text-[11px] text-
|
|
535
|
+
class="px-1 text-[11px] text-dimmed"
|
|
536
536
|
data-testid="doc-ref-already-attached"
|
|
537
537
|
>
|
|
538
538
|
{{ t('documents.picker.refAlreadyAttached') }}
|
|
@@ -544,10 +544,10 @@ onMounted(() => {
|
|
|
544
544
|
v-for="d in importedRows"
|
|
545
545
|
:key="`imp:${d.externalId}`"
|
|
546
546
|
type="button"
|
|
547
|
-
class="flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-start text-xs text-
|
|
547
|
+
class="flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-start text-xs text-toned hover:bg-elevated/70"
|
|
548
548
|
@click="pickImported(d.externalId, d.title, d.excerpt)"
|
|
549
549
|
>
|
|
550
|
-
<UIcon :name="icon" class="h-3.5 w-3.5 shrink-0 text-
|
|
550
|
+
<UIcon :name="icon" class="h-3.5 w-3.5 shrink-0 text-primary" />
|
|
551
551
|
<span class="truncate">{{ d.title }}</span>
|
|
552
552
|
<UBadge color="neutral" variant="soft" size="xs" class="ms-auto shrink-0">{{
|
|
553
553
|
t('documents.picker.importedBadge')
|
|
@@ -559,10 +559,10 @@ onMounted(() => {
|
|
|
559
559
|
v-for="r in searchRows"
|
|
560
560
|
:key="`hit:${r.externalId}`"
|
|
561
561
|
type="button"
|
|
562
|
-
class="flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-start text-xs text-
|
|
562
|
+
class="flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-start text-xs text-toned hover:bg-elevated/70"
|
|
563
563
|
@click="pickSearch(r)"
|
|
564
564
|
>
|
|
565
|
-
<UIcon :name="icon" class="h-3.5 w-3.5 shrink-0 text-
|
|
565
|
+
<UIcon :name="icon" class="h-3.5 w-3.5 shrink-0 text-muted" />
|
|
566
566
|
<span class="truncate">{{ r.title }}</span>
|
|
567
567
|
</button>
|
|
568
568
|
|
|
@@ -572,20 +572,20 @@ onMounted(() => {
|
|
|
572
572
|
<button
|
|
573
573
|
v-if="refRow"
|
|
574
574
|
type="button"
|
|
575
|
-
class="flex w-full items-start gap-1.5 rounded-md px-2 py-1.5 text-start text-xs text-
|
|
575
|
+
class="flex w-full items-start gap-1.5 rounded-md px-2 py-1.5 text-start text-xs text-toned hover:bg-elevated/70"
|
|
576
576
|
data-testid="doc-ref-attach"
|
|
577
577
|
@click="pickRef(refRow)"
|
|
578
578
|
>
|
|
579
|
-
<UIcon name="i-lucide-link" class="mt-0.5 h-3.5 w-3.5 shrink-0 text-
|
|
579
|
+
<UIcon name="i-lucide-link" class="mt-0.5 h-3.5 w-3.5 shrink-0 text-muted" />
|
|
580
580
|
<span class="min-w-0">
|
|
581
581
|
<span class="block truncate">
|
|
582
582
|
<i18n-t keypath="documents.picker.attachByReference" scope="global">
|
|
583
583
|
<template #ref>
|
|
584
|
-
<span class="text-
|
|
584
|
+
<span class="text-default">{{ refRow.label }}</span>
|
|
585
585
|
</template>
|
|
586
586
|
</i18n-t>
|
|
587
587
|
</span>
|
|
588
|
-
<span v-if="refRow.trimmed" class="block truncate text-[11px] text-
|
|
588
|
+
<span v-if="refRow.trimmed" class="block truncate text-[11px] text-dimmed">
|
|
589
589
|
{{ t('documents.picker.refTrimmed') }}
|
|
590
590
|
</span>
|
|
591
591
|
<!-- A WIDENED reference, which the trim note above must never be left to imply: the
|
|
@@ -593,7 +593,7 @@ onMounted(() => {
|
|
|
593
593
|
around it. Amber and separate, because it is a loss rather than tidying. -->
|
|
594
594
|
<span
|
|
595
595
|
v-if="refRow.droppedScope"
|
|
596
|
-
class="block text-[11px] text-
|
|
596
|
+
class="block text-[11px] text-app-warning-400"
|
|
597
597
|
data-testid="doc-ref-widened"
|
|
598
598
|
>
|
|
599
599
|
{{ t('documents.picker.refWidened', { scope: refRow.droppedScope }) }}
|
|
@@ -80,8 +80,8 @@ function preview(externalId: string) {
|
|
|
80
80
|
</template>
|
|
81
81
|
<template #body>
|
|
82
82
|
<div v-if="!documents.anyConnected" class="space-y-3 text-center">
|
|
83
|
-
<UIcon name="i-lucide-plug" class="mx-auto h-8 w-8 text-
|
|
84
|
-
<p class="text-sm text-
|
|
83
|
+
<UIcon name="i-lucide-plug" class="mx-auto h-8 w-8 text-dimmed" />
|
|
84
|
+
<p class="text-sm text-muted">{{ t('documents.import.connectFirst') }}</p>
|
|
85
85
|
<div class="flex justify-center gap-2">
|
|
86
86
|
<UButton
|
|
87
87
|
v-for="s in documents.sources"
|
|
@@ -125,13 +125,13 @@ function preview(externalId: string) {
|
|
|
125
125
|
</div>
|
|
126
126
|
|
|
127
127
|
<div v-if="sourceDocs.length" class="space-y-2">
|
|
128
|
-
<h3 class="text-[11px] font-semibold uppercase tracking-wide text-
|
|
128
|
+
<h3 class="text-[11px] font-semibold uppercase tracking-wide text-muted">
|
|
129
129
|
{{ t('documents.import.importedHeading') }}
|
|
130
130
|
</h3>
|
|
131
131
|
<div
|
|
132
132
|
v-for="doc in sourceDocs"
|
|
133
133
|
:key="`${doc.source}:${doc.externalId}`"
|
|
134
|
-
class="rounded-lg border border-
|
|
134
|
+
class="rounded-lg border border-default bg-default/60 p-3"
|
|
135
135
|
>
|
|
136
136
|
<div class="flex items-start justify-between gap-2">
|
|
137
137
|
<div class="min-w-0">
|
|
@@ -139,11 +139,11 @@ function preview(externalId: string) {
|
|
|
139
139
|
:href="doc.url"
|
|
140
140
|
target="_blank"
|
|
141
141
|
rel="noopener"
|
|
142
|
-
class="truncate text-sm font-medium text-
|
|
142
|
+
class="truncate text-sm font-medium text-highlighted hover:underline"
|
|
143
143
|
>
|
|
144
144
|
{{ doc.title }}
|
|
145
145
|
</a>
|
|
146
|
-
<p class="mt-0.5 line-clamp-2 text-xs text-
|
|
146
|
+
<p class="mt-0.5 line-clamp-2 text-xs text-dimmed">{{ doc.excerpt }}</p>
|
|
147
147
|
<DocumentSyncState :doc="doc" class="mt-1" />
|
|
148
148
|
</div>
|
|
149
149
|
<UButton
|
|
@@ -158,7 +158,7 @@ function preview(externalId: string) {
|
|
|
158
158
|
</div>
|
|
159
159
|
</div>
|
|
160
160
|
</div>
|
|
161
|
-
<p v-else class="text-center text-xs text-
|
|
161
|
+
<p v-else class="text-center text-xs text-dimmed">
|
|
162
162
|
{{ t('documents.import.noneImported') }}
|
|
163
163
|
</p>
|
|
164
164
|
</div>
|
|
@@ -118,7 +118,7 @@ async function disconnect() {
|
|
|
118
118
|
</template>
|
|
119
119
|
<template #body>
|
|
120
120
|
<div v-if="descriptor" class="space-y-4">
|
|
121
|
-
<p class="text-sm text-
|
|
121
|
+
<p class="text-sm text-muted">
|
|
122
122
|
{{ t('documents.connect.intro', { source: descriptor.label }) }}
|
|
123
123
|
</p>
|
|
124
124
|
|
|
@@ -132,10 +132,10 @@ async function disconnect() {
|
|
|
132
132
|
>
|
|
133
133
|
{{ t('documents.connect.oauth.action', { source: descriptor.label }) }}
|
|
134
134
|
</UButton>
|
|
135
|
-
<p class="text-[11px] text-
|
|
135
|
+
<p class="text-[11px] text-dimmed">
|
|
136
136
|
{{ t('documents.connect.oauth.scopes', { scopes: oauth.scopes.join(', ') }) }}
|
|
137
137
|
</p>
|
|
138
|
-
<p class="text-[11px] text-
|
|
138
|
+
<p class="text-[11px] text-dimmed">{{ t('documents.connect.oauth.fallback') }}</p>
|
|
139
139
|
</div>
|
|
140
140
|
|
|
141
141
|
<div class="space-y-3">
|
|
@@ -148,9 +148,9 @@ const renders = computed(() => {
|
|
|
148
148
|
})
|
|
149
149
|
|
|
150
150
|
const TONE_CLASS: Record<Stated['tone'], string> = {
|
|
151
|
-
ok: 'text-
|
|
152
|
-
warn: 'text-
|
|
153
|
-
muted: 'text-
|
|
151
|
+
ok: 'text-app-success-400',
|
|
152
|
+
warn: 'text-app-warning-400',
|
|
153
|
+
muted: 'text-dimmed',
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
async function refresh() {
|
|
@@ -165,7 +165,7 @@ async function refresh() {
|
|
|
165
165
|
</script>
|
|
166
166
|
|
|
167
167
|
<template>
|
|
168
|
-
<div class="flex items-center gap-1.5 text-[11px] text-
|
|
168
|
+
<div class="flex items-center gap-1.5 text-[11px] text-dimmed">
|
|
169
169
|
<span class="truncate">
|
|
170
170
|
{{ t('documents.freshness.updated', { when: d(new Date(props.doc.syncedAt), 'long') }) }}
|
|
171
171
|
</span>
|
|
@@ -178,7 +178,7 @@ async function refresh() {
|
|
|
178
178
|
<UIcon :name="stated.icon" class="h-3 w-3 shrink-0" />
|
|
179
179
|
<span class="truncate">{{ stated.text }}</span>
|
|
180
180
|
</span>
|
|
181
|
-
<span v-if="renders" class="flex min-w-0 items-center gap-1 text-
|
|
181
|
+
<span v-if="renders" class="flex min-w-0 items-center gap-1 text-dimmed" :title="renders">
|
|
182
182
|
<UIcon name="i-lucide-image-off" class="h-3 w-3 shrink-0" />
|
|
183
183
|
<span class="truncate">{{ renders }}</span>
|
|
184
184
|
</span>
|
|
@@ -93,12 +93,12 @@ async function unlink(doc: SourceDocument) {
|
|
|
93
93
|
</template>
|
|
94
94
|
<template #body>
|
|
95
95
|
<div class="space-y-4">
|
|
96
|
-
<p class="text-xs text-
|
|
96
|
+
<p class="text-xs text-muted">{{ t('documents.templates.intro') }}</p>
|
|
97
97
|
|
|
98
98
|
<!-- No imported documents yet: a template/exemplar must be an imported document. -->
|
|
99
99
|
<div v-if="!documents.documents.length" class="space-y-3 text-center">
|
|
100
|
-
<UIcon name="i-lucide-file-plus" class="mx-auto h-8 w-8 text-
|
|
101
|
-
<p class="text-sm text-
|
|
100
|
+
<UIcon name="i-lucide-file-plus" class="mx-auto h-8 w-8 text-dimmed" />
|
|
101
|
+
<p class="text-sm text-muted">{{ t('documents.templates.importFirst') }}</p>
|
|
102
102
|
<UButton
|
|
103
103
|
color="primary"
|
|
104
104
|
variant="soft"
|
|
@@ -131,20 +131,20 @@ async function unlink(doc: SourceDocument) {
|
|
|
131
131
|
</UFormField>
|
|
132
132
|
|
|
133
133
|
<!-- Template (singular per kind) ------------------------------------ -->
|
|
134
|
-
<section class="rounded-lg border border-
|
|
135
|
-
<h3 class="text-[11px] font-semibold uppercase tracking-wide text-
|
|
134
|
+
<section class="rounded-lg border border-default bg-default/50 p-3">
|
|
135
|
+
<h3 class="text-[11px] font-semibold uppercase tracking-wide text-muted">
|
|
136
136
|
{{ t('documents.templates.templateHeading') }}
|
|
137
137
|
</h3>
|
|
138
|
-
<p class="mt-0.5 text-xs text-
|
|
138
|
+
<p class="mt-0.5 text-xs text-dimmed">
|
|
139
139
|
{{ t('documents.templates.templateHint', { kind }) }}
|
|
140
140
|
</p>
|
|
141
141
|
<div
|
|
142
142
|
v-if="template"
|
|
143
|
-
class="mt-2 flex items-center justify-between gap-2 rounded-md bg-
|
|
143
|
+
class="mt-2 flex items-center justify-between gap-2 rounded-md bg-default/70 px-3 py-2"
|
|
144
144
|
>
|
|
145
145
|
<DocumentOriginLink
|
|
146
146
|
:url="template.url"
|
|
147
|
-
class="truncate text-sm font-medium text-
|
|
147
|
+
class="truncate text-sm font-medium text-highlighted"
|
|
148
148
|
hover-class="hover:underline"
|
|
149
149
|
>
|
|
150
150
|
{{ template.title }}
|
|
@@ -160,28 +160,28 @@ async function unlink(doc: SourceDocument) {
|
|
|
160
160
|
{{ t('documents.templates.remove') }}
|
|
161
161
|
</UButton>
|
|
162
162
|
</div>
|
|
163
|
-
<p v-else class="mt-2 text-xs text-
|
|
163
|
+
<p v-else class="mt-2 text-xs text-dimmed">
|
|
164
164
|
{{ t('documents.templates.templateEmpty') }}
|
|
165
165
|
</p>
|
|
166
166
|
</section>
|
|
167
167
|
|
|
168
168
|
<!-- Exemplars (multi per kind) -------------------------------------- -->
|
|
169
|
-
<section class="rounded-lg border border-
|
|
170
|
-
<h3 class="text-[11px] font-semibold uppercase tracking-wide text-
|
|
169
|
+
<section class="rounded-lg border border-default bg-default/50 p-3">
|
|
170
|
+
<h3 class="text-[11px] font-semibold uppercase tracking-wide text-muted">
|
|
171
171
|
{{ t('documents.templates.exemplarsHeading') }}
|
|
172
172
|
</h3>
|
|
173
|
-
<p class="mt-0.5 text-xs text-
|
|
173
|
+
<p class="mt-0.5 text-xs text-dimmed">
|
|
174
174
|
{{ t('documents.templates.exemplarsHint') }}
|
|
175
175
|
</p>
|
|
176
176
|
<div v-if="exemplars.length" class="mt-2 space-y-1.5">
|
|
177
177
|
<div
|
|
178
178
|
v-for="doc in exemplars"
|
|
179
179
|
:key="`${doc.source}:${doc.externalId}`"
|
|
180
|
-
class="flex items-center justify-between gap-2 rounded-md bg-
|
|
180
|
+
class="flex items-center justify-between gap-2 rounded-md bg-default/70 px-3 py-2"
|
|
181
181
|
>
|
|
182
182
|
<DocumentOriginLink
|
|
183
183
|
:url="doc.url"
|
|
184
|
-
class="truncate text-sm font-medium text-
|
|
184
|
+
class="truncate text-sm font-medium text-highlighted"
|
|
185
185
|
hover-class="hover:underline"
|
|
186
186
|
>
|
|
187
187
|
{{ doc.title }}
|
|
@@ -198,7 +198,7 @@ async function unlink(doc: SourceDocument) {
|
|
|
198
198
|
</UButton>
|
|
199
199
|
</div>
|
|
200
200
|
</div>
|
|
201
|
-
<p v-else class="mt-2 text-xs text-
|
|
201
|
+
<p v-else class="mt-2 text-xs text-dimmed">
|
|
202
202
|
{{ t('documents.templates.exemplarsEmpty') }}
|
|
203
203
|
</p>
|
|
204
204
|
</section>
|
|
@@ -238,7 +238,7 @@ onMounted(() => {
|
|
|
238
238
|
class="w-full"
|
|
239
239
|
:placeholder="t('documents.repoPicker.searchFilesPlaceholder')"
|
|
240
240
|
/>
|
|
241
|
-
<p v-if="filesError" class="px-1 text-[11px] text-
|
|
241
|
+
<p v-if="filesError" class="px-1 text-[11px] text-app-warning-400">
|
|
242
242
|
{{ t('documents.repoPicker.filesFailed', { error: filesError }) }}
|
|
243
243
|
</p>
|
|
244
244
|
<div class="max-h-56 space-y-0.5 overflow-y-auto">
|
|
@@ -246,13 +246,13 @@ onMounted(() => {
|
|
|
246
246
|
v-for="f in fileMatches"
|
|
247
247
|
:key="f.path"
|
|
248
248
|
type="button"
|
|
249
|
-
class="flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-start text-xs text-
|
|
249
|
+
class="flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-start text-xs text-toned hover:bg-elevated/70"
|
|
250
250
|
@click="pickFile(f.path)"
|
|
251
251
|
>
|
|
252
|
-
<UIcon :name="icon" class="h-3.5 w-3.5 shrink-0 text-
|
|
252
|
+
<UIcon :name="icon" class="h-3.5 w-3.5 shrink-0 text-primary" />
|
|
253
253
|
<span class="truncate">{{ f.path }}</span>
|
|
254
254
|
</button>
|
|
255
|
-
<p v-if="fileMatchesTruncated" class="px-2 py-1 text-[11px] text-
|
|
255
|
+
<p v-if="fileMatchesTruncated" class="px-2 py-1 text-[11px] text-dimmed">
|
|
256
256
|
{{ t('documents.repoPicker.moreFiles', { count: FILE_RESULTS_CAP }) }}
|
|
257
257
|
</p>
|
|
258
258
|
<EmptyState
|
|
@@ -263,7 +263,7 @@ onMounted(() => {
|
|
|
263
263
|
/>
|
|
264
264
|
<p
|
|
265
265
|
v-else-if="!loadingFiles && !fileQuery.trim()"
|
|
266
|
-
class="px-2 py-1 text-[11px] text-
|
|
266
|
+
class="px-2 py-1 text-[11px] text-dimmed"
|
|
267
267
|
>
|
|
268
268
|
{{ t('documents.repoPicker.searchFilesHint') }}
|
|
269
269
|
</p>
|
|
@@ -139,7 +139,7 @@ async function spawn() {
|
|
|
139
139
|
: t('documents.spawn.plannerHeadings')
|
|
140
140
|
}}
|
|
141
141
|
</UBadge>
|
|
142
|
-
<span class="text-xs text-
|
|
142
|
+
<span class="text-xs text-muted">{{
|
|
143
143
|
plan.targetFrameId ? t('documents.spawn.intoService') : t('documents.spawn.asTopLevel')
|
|
144
144
|
}}</span>
|
|
145
145
|
</div>
|
|
@@ -161,13 +161,13 @@ async function spawn() {
|
|
|
161
161
|
|
|
162
162
|
<p
|
|
163
163
|
v-if="needsTarget && !targetFrameId"
|
|
164
|
-
class="text-xs text-
|
|
164
|
+
class="text-xs text-muted"
|
|
165
165
|
data-testid="spawn-target-required"
|
|
166
166
|
>
|
|
167
167
|
{{ t('documents.spawn.target.required') }}
|
|
168
168
|
</p>
|
|
169
169
|
|
|
170
|
-
<div v-if="loadingPlan" class="flex items-center gap-2 text-sm text-
|
|
170
|
+
<div v-if="loadingPlan" class="flex items-center gap-2 text-sm text-muted">
|
|
171
171
|
<UIcon name="i-lucide-loader" class="h-4 w-4 animate-spin" />
|
|
172
172
|
{{ t('documents.spawn.buildingPlan') }}
|
|
173
173
|
</div>
|
|
@@ -176,11 +176,11 @@ async function spawn() {
|
|
|
176
176
|
<div
|
|
177
177
|
v-for="(frame, fi) in plan.frames"
|
|
178
178
|
:key="fi"
|
|
179
|
-
class="rounded-lg border border-
|
|
179
|
+
class="rounded-lg border border-default bg-default/60 p-3"
|
|
180
180
|
>
|
|
181
181
|
<div class="flex items-center gap-2">
|
|
182
|
-
<UIcon name="i-lucide-box" class="h-4 w-4 text-
|
|
183
|
-
<span class="text-sm font-semibold text-
|
|
182
|
+
<UIcon name="i-lucide-box" class="h-4 w-4 text-primary" />
|
|
183
|
+
<span class="text-sm font-semibold text-highlighted">{{ frame.title }}</span>
|
|
184
184
|
<UBadge variant="subtle" size="sm" color="neutral">{{ frame.type }}</UBadge>
|
|
185
185
|
</div>
|
|
186
186
|
|
|
@@ -188,25 +188,25 @@ async function spawn() {
|
|
|
188
188
|
<li
|
|
189
189
|
v-for="(task, ti) in frame.tasks"
|
|
190
190
|
:key="`t-${ti}`"
|
|
191
|
-
class="flex items-center gap-1.5 text-xs text-
|
|
191
|
+
class="flex items-center gap-1.5 text-xs text-toned"
|
|
192
192
|
>
|
|
193
|
-
<UIcon name="i-lucide-square-check-big" class="h-3 w-3 text-
|
|
193
|
+
<UIcon name="i-lucide-square-check-big" class="h-3 w-3 text-dimmed" />
|
|
194
194
|
{{ task.title }}
|
|
195
195
|
</li>
|
|
196
196
|
</ul>
|
|
197
197
|
|
|
198
198
|
<div v-for="(mod, mi) in frame.modules" :key="`m-${mi}`" class="mt-2 ps-4">
|
|
199
|
-
<div class="flex items-center gap-1.5 text-xs font-medium text-
|
|
200
|
-
<UIcon name="i-lucide-folder" class="h-3.5 w-3.5 text-
|
|
199
|
+
<div class="flex items-center gap-1.5 text-xs font-medium text-default">
|
|
200
|
+
<UIcon name="i-lucide-folder" class="h-3.5 w-3.5 text-app-warning-400" />
|
|
201
201
|
{{ mod.name }}
|
|
202
202
|
</div>
|
|
203
203
|
<ul class="mt-1 space-y-1 ps-5">
|
|
204
204
|
<li
|
|
205
205
|
v-for="(task, ti) in mod.tasks"
|
|
206
206
|
:key="`mt-${ti}`"
|
|
207
|
-
class="flex items-center gap-1.5 text-xs text-
|
|
207
|
+
class="flex items-center gap-1.5 text-xs text-toned"
|
|
208
208
|
>
|
|
209
|
-
<UIcon name="i-lucide-square-check-big" class="h-3 w-3 text-
|
|
209
|
+
<UIcon name="i-lucide-square-check-big" class="h-3 w-3 text-dimmed" />
|
|
210
210
|
{{ task.title }}
|
|
211
211
|
</li>
|
|
212
212
|
</ul>
|