@cat-factory/app 0.302.2 → 0.303.1
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 +99 -14
- 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 +26 -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 +10 -9
|
@@ -21,19 +21,19 @@ defineProps<{
|
|
|
21
21
|
<template>
|
|
22
22
|
<div
|
|
23
23
|
v-if="variant === 'working'"
|
|
24
|
-
class="flex flex-col items-center gap-2 rounded-lg border border-
|
|
24
|
+
class="flex flex-col items-center gap-2 rounded-lg border border-default bg-app-950/40 p-6 text-center"
|
|
25
25
|
:data-testid="testid"
|
|
26
26
|
>
|
|
27
|
-
<UIcon name="i-lucide-loader-circle" class="h-5 w-5 animate-spin text-
|
|
28
|
-
<p class="text-[13px] text-
|
|
29
|
-
<p class="text-[12px] text-
|
|
27
|
+
<UIcon name="i-lucide-loader-circle" class="h-5 w-5 animate-spin text-primary" />
|
|
28
|
+
<p class="text-[13px] text-default">{{ title }}</p>
|
|
29
|
+
<p class="text-[12px] text-muted">{{ hint }}</p>
|
|
30
30
|
</div>
|
|
31
31
|
<div
|
|
32
32
|
v-else
|
|
33
|
-
class="rounded-lg border border-
|
|
33
|
+
class="rounded-lg border border-app-error-900/60 bg-app-error-950/20 p-4 text-center"
|
|
34
34
|
:data-testid="testid"
|
|
35
35
|
>
|
|
36
|
-
<p class="text-[13px] text-
|
|
37
|
-
<p class="mt-1 text-[12px] text-
|
|
36
|
+
<p class="text-[13px] text-app-error-200">{{ title }}</p>
|
|
37
|
+
<p class="mt-1 text-[12px] text-muted">{{ hint }}</p>
|
|
38
38
|
</div>
|
|
39
39
|
</template>
|
|
@@ -37,7 +37,7 @@ const shortcuts = computed(() => [
|
|
|
37
37
|
:key="i"
|
|
38
38
|
class="flex items-center justify-between gap-4 rounded-md px-1 py-1.5"
|
|
39
39
|
>
|
|
40
|
-
<dt class="text-sm text-
|
|
40
|
+
<dt class="text-sm text-toned">{{ s.label }}</dt>
|
|
41
41
|
<dd class="flex shrink-0 items-center gap-1">
|
|
42
42
|
<UKbd v-for="k in s.keys" :key="k" :value="k" />
|
|
43
43
|
</dd>
|
|
@@ -22,7 +22,8 @@ const html = computed(() => renderMarkdown(props.text))
|
|
|
22
22
|
|
|
23
23
|
<style scoped>
|
|
24
24
|
/* Prose styling for the sanitized markdown injected via v-html (out of scoped reach
|
|
25
|
-
without :deep), mirroring the
|
|
25
|
+
without :deep), mirroring the reader's `prose.css` token for token so both flip with the
|
|
26
|
+
theme and the mode. */
|
|
26
27
|
.cf-prose :deep(p) {
|
|
27
28
|
margin: 0.5rem 0;
|
|
28
29
|
}
|
|
@@ -48,36 +49,36 @@ const html = computed(() => renderMarkdown(props.text))
|
|
|
48
49
|
}
|
|
49
50
|
.cf-prose :deep(strong) {
|
|
50
51
|
font-weight: 600;
|
|
51
|
-
color:
|
|
52
|
+
color: var(--ui-text-highlighted);
|
|
52
53
|
}
|
|
53
54
|
.cf-prose :deep(em) {
|
|
54
55
|
font-style: italic;
|
|
55
56
|
}
|
|
56
57
|
.cf-prose :deep(code) {
|
|
57
58
|
border-radius: 0.25rem;
|
|
58
|
-
background:
|
|
59
|
+
background: var(--ui-bg-elevated);
|
|
59
60
|
padding: 0.1rem 0.3rem;
|
|
60
|
-
font-family:
|
|
61
|
+
font-family: var(--font-mono);
|
|
61
62
|
font-size: 0.85em;
|
|
62
|
-
color:
|
|
63
|
+
color: var(--ui-primary);
|
|
63
64
|
}
|
|
64
65
|
.cf-prose :deep(pre) {
|
|
65
66
|
margin: 0.6rem 0;
|
|
66
67
|
overflow: auto;
|
|
67
68
|
border-radius: 0.5rem;
|
|
68
|
-
background:
|
|
69
|
+
background: var(--app-bg-canvas);
|
|
69
70
|
padding: 0.75rem 0.9rem;
|
|
70
71
|
}
|
|
71
72
|
.cf-prose :deep(pre code) {
|
|
72
73
|
background: transparent;
|
|
73
74
|
padding: 0;
|
|
74
|
-
color:
|
|
75
|
+
color: var(--ui-text-toned);
|
|
75
76
|
}
|
|
76
77
|
.cf-prose :deep(blockquote) {
|
|
77
78
|
margin: 0.6rem 0;
|
|
78
|
-
border-left: 3px solid
|
|
79
|
+
border-left: 3px solid color-mix(in srgb, var(--ui-primary) 50%, transparent);
|
|
79
80
|
padding-left: 0.75rem;
|
|
80
|
-
color:
|
|
81
|
+
color: var(--ui-text-muted);
|
|
81
82
|
}
|
|
82
83
|
.cf-prose :deep(h1),
|
|
83
84
|
.cf-prose :deep(h2),
|
|
@@ -85,7 +86,7 @@ const html = computed(() => renderMarkdown(props.text))
|
|
|
85
86
|
.cf-prose :deep(h4) {
|
|
86
87
|
margin: 0.7rem 0 0.4rem;
|
|
87
88
|
font-weight: 600;
|
|
88
|
-
color:
|
|
89
|
+
color: var(--ui-text-highlighted);
|
|
89
90
|
}
|
|
90
91
|
.cf-prose :deep(table) {
|
|
91
92
|
margin: 0.6rem 0;
|
|
@@ -94,16 +95,16 @@ const html = computed(() => renderMarkdown(props.text))
|
|
|
94
95
|
}
|
|
95
96
|
.cf-prose :deep(th),
|
|
96
97
|
.cf-prose :deep(td) {
|
|
97
|
-
border: 1px solid
|
|
98
|
+
border: 1px solid var(--ui-border-muted);
|
|
98
99
|
padding: 0.3rem 0.6rem;
|
|
99
100
|
}
|
|
100
101
|
.cf-prose :deep(th) {
|
|
101
|
-
background:
|
|
102
|
+
background: var(--ui-bg-elevated);
|
|
102
103
|
font-weight: 600;
|
|
103
104
|
}
|
|
104
105
|
.cf-prose :deep(hr) {
|
|
105
106
|
margin: 1rem 0;
|
|
106
107
|
border: none;
|
|
107
|
-
border-top: 1px solid
|
|
108
|
+
border-top: 1px solid var(--ui-border-muted);
|
|
108
109
|
}
|
|
109
110
|
</style>
|
|
@@ -68,10 +68,10 @@ const STATUS_LABEL_KEYS: Record<string, string> = {
|
|
|
68
68
|
failed: 'consensus.status.failed',
|
|
69
69
|
}
|
|
70
70
|
const STATUS_CLASS: Record<string, string> = {
|
|
71
|
-
running: 'bg-
|
|
72
|
-
synthesizing: 'bg-
|
|
73
|
-
done: 'bg-
|
|
74
|
-
failed: 'bg-
|
|
71
|
+
running: 'bg-app-info-500/15 text-app-info-300',
|
|
72
|
+
synthesizing: 'bg-primary/15 text-primary',
|
|
73
|
+
done: 'bg-app-success-500/15 text-app-success-300',
|
|
74
|
+
failed: 'bg-app-error-500/15 text-app-error-300',
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
function strategyLabel(strategy: string): string {
|
|
@@ -116,7 +116,7 @@ function topScore(c: ConsensusContribution): { label: string; value: number } |
|
|
|
116
116
|
<ResultWindowShell
|
|
117
117
|
:open="open"
|
|
118
118
|
icon="i-lucide-users-round"
|
|
119
|
-
icon-class="bg-
|
|
119
|
+
icon-class="bg-app-warning-500/15 text-app-warning-300"
|
|
120
120
|
:title="headerTitle"
|
|
121
121
|
:subtitle="headerSubtitle"
|
|
122
122
|
variant="centered"
|
|
@@ -130,31 +130,31 @@ function topScore(c: ConsensusContribution): { label: string; value: number } |
|
|
|
130
130
|
this task" has the transcript but not the reason. -->
|
|
131
131
|
<span
|
|
132
132
|
v-if="session.groupName"
|
|
133
|
-
class="rounded-full bg-
|
|
133
|
+
class="rounded-full bg-app-success-900/50 px-2.5 py-1 text-xs font-medium text-app-success-200"
|
|
134
134
|
:title="t('consensus.groupTitle')"
|
|
135
135
|
>
|
|
136
136
|
{{ session.groupName }}
|
|
137
137
|
</span>
|
|
138
138
|
<span
|
|
139
139
|
class="rounded-full px-2.5 py-1 text-xs font-medium"
|
|
140
|
-
:class="STATUS_CLASS[session.status] ?? 'bg-
|
|
140
|
+
:class="STATUS_CLASS[session.status] ?? 'bg-accented text-toned'"
|
|
141
141
|
>
|
|
142
142
|
{{ statusLabel(session.status) }}
|
|
143
143
|
</span>
|
|
144
144
|
</template>
|
|
145
145
|
|
|
146
146
|
<div class="flex-1 overflow-y-auto px-6 py-5">
|
|
147
|
-
<div v-if="loading && !session" class="py-16 text-center text-sm text-
|
|
147
|
+
<div v-if="loading && !session" class="py-16 text-center text-sm text-dimmed">
|
|
148
148
|
{{ t('consensus.loading') }}
|
|
149
149
|
</div>
|
|
150
|
-
<div v-else-if="!session" class="py-16 text-center text-sm text-
|
|
150
|
+
<div v-else-if="!session" class="py-16 text-center text-sm text-dimmed">
|
|
151
151
|
{{ t('consensus.empty') }}
|
|
152
152
|
</div>
|
|
153
153
|
<template v-else>
|
|
154
154
|
<!-- failure -->
|
|
155
155
|
<div
|
|
156
156
|
v-if="session.status === 'failed'"
|
|
157
|
-
class="mb-5 flex items-start gap-2 rounded-lg border border-
|
|
157
|
+
class="mb-5 flex items-start gap-2 rounded-lg border border-app-error-800/60 bg-app-error-950/40 px-4 py-3 text-sm text-app-error-200"
|
|
158
158
|
>
|
|
159
159
|
<span class="min-w-0 flex-1">{{
|
|
160
160
|
t('consensus.failed', { error: session.error ?? t('consensus.unknownError') })
|
|
@@ -165,25 +165,25 @@ function topScore(c: ConsensusContribution): { label: string; value: number } |
|
|
|
165
165
|
<!-- synthesized result -->
|
|
166
166
|
<section v-if="session.synthesis" class="mb-6">
|
|
167
167
|
<div class="mb-2 flex items-center gap-2">
|
|
168
|
-
<h3 class="text-xs font-semibold uppercase tracking-wide text-
|
|
168
|
+
<h3 class="text-xs font-semibold uppercase tracking-wide text-muted">
|
|
169
169
|
{{ t('consensus.synthesizedResult') }}
|
|
170
170
|
</h3>
|
|
171
171
|
<span
|
|
172
172
|
v-if="session.confidence != null"
|
|
173
|
-
class="rounded bg-
|
|
173
|
+
class="rounded bg-app-success-500/15 px-1.5 py-0.5 text-xs text-app-success-300"
|
|
174
174
|
>{{ t('consensus.confidence', { pct: pct(session.confidence) }) }}</span
|
|
175
175
|
>
|
|
176
176
|
<CopyButton :text="session.synthesis" class="ms-auto -my-1" />
|
|
177
177
|
</div>
|
|
178
178
|
<MarkdownProse
|
|
179
179
|
:text="session.synthesis"
|
|
180
|
-
class="rounded-lg border border-
|
|
180
|
+
class="rounded-lg border border-default bg-app-950/60 px-4 py-3 text-sm text-default"
|
|
181
181
|
/>
|
|
182
182
|
<ul v-if="session.dissent?.length" class="mt-2 space-y-1">
|
|
183
183
|
<li
|
|
184
184
|
v-for="(d, i) in session.dissent"
|
|
185
185
|
:key="i"
|
|
186
|
-
class="flex items-start gap-2 text-xs text-
|
|
186
|
+
class="flex items-start gap-2 text-xs text-app-warning-300/90"
|
|
187
187
|
>
|
|
188
188
|
<UIcon name="i-lucide-triangle-alert" class="mt-0.5 h-3.5 w-3.5 shrink-0" />
|
|
189
189
|
<span>{{ d }}</span>
|
|
@@ -193,20 +193,20 @@ function topScore(c: ConsensusContribution): { label: string; value: number } |
|
|
|
193
193
|
|
|
194
194
|
<!-- participants -->
|
|
195
195
|
<section class="mb-6">
|
|
196
|
-
<h3 class="mb-2 text-xs font-semibold uppercase tracking-wide text-
|
|
196
|
+
<h3 class="mb-2 text-xs font-semibold uppercase tracking-wide text-muted">
|
|
197
197
|
{{ t('consensus.panel') }}
|
|
198
198
|
</h3>
|
|
199
199
|
<div class="flex flex-wrap gap-2">
|
|
200
200
|
<div
|
|
201
201
|
v-for="(p, i) in session.participants"
|
|
202
202
|
:key="p.id"
|
|
203
|
-
class="rounded-lg border border-
|
|
203
|
+
class="rounded-lg border border-default bg-app-950/40 px-3 py-1.5 text-xs"
|
|
204
204
|
>
|
|
205
|
-
<span class="font-medium text-
|
|
205
|
+
<span class="font-medium text-default">{{
|
|
206
206
|
t('consensus.expert', { letter: String.fromCharCode(65 + i) })
|
|
207
207
|
}}</span>
|
|
208
|
-
<span class="text-
|
|
209
|
-
<span v-if="p.modelId" class="ms-1 text-
|
|
208
|
+
<span class="text-muted"> · {{ p.role }}</span>
|
|
209
|
+
<span v-if="p.modelId" class="ms-1 text-dimmed"
|
|
210
210
|
>({{ models.labelForRef(p.modelId) ?? p.modelId }})</span
|
|
211
211
|
>
|
|
212
212
|
</div>
|
|
@@ -215,7 +215,7 @@ function topScore(c: ConsensusContribution): { label: string; value: number } |
|
|
|
215
215
|
|
|
216
216
|
<!-- rounds -->
|
|
217
217
|
<section v-for="round in session.rounds" :key="round.index" class="mb-5">
|
|
218
|
-
<h3 class="mb-2 text-xs font-semibold uppercase tracking-wide text-
|
|
218
|
+
<h3 class="mb-2 text-xs font-semibold uppercase tracking-wide text-muted">
|
|
219
219
|
{{ t('consensus.round.heading', { n: round.index + 1 }) }} ·
|
|
220
220
|
{{ roundLabel(round.kind) }}
|
|
221
221
|
</h3>
|
|
@@ -223,16 +223,16 @@ function topScore(c: ConsensusContribution): { label: string; value: number } |
|
|
|
223
223
|
<div
|
|
224
224
|
v-for="c in round.contributions"
|
|
225
225
|
:key="c.participantId"
|
|
226
|
-
class="rounded-lg border border-
|
|
226
|
+
class="rounded-lg border border-default bg-app-950/40 px-4 py-3"
|
|
227
227
|
>
|
|
228
228
|
<div class="mb-1 flex items-center gap-2">
|
|
229
|
-
<span class="text-xs font-semibold text-
|
|
229
|
+
<span class="text-xs font-semibold text-default">{{
|
|
230
230
|
anonLabel(c.participantId)
|
|
231
231
|
}}</span>
|
|
232
|
-
<span class="text-xs text-
|
|
232
|
+
<span class="text-xs text-dimmed">{{ roleFor(c.participantId) }}</span>
|
|
233
233
|
<span
|
|
234
234
|
v-if="topScore(c)"
|
|
235
|
-
class="ms-auto rounded bg-
|
|
235
|
+
class="ms-auto rounded bg-elevated px-1.5 py-0.5 text-xs text-toned"
|
|
236
236
|
>{{
|
|
237
237
|
t('consensus.topScore', {
|
|
238
238
|
label: topScore(c)!.label,
|
|
@@ -242,12 +242,12 @@ function topScore(c: ConsensusContribution): { label: string; value: number } |
|
|
|
242
242
|
>
|
|
243
243
|
<CopyButton :text="c.text" :class="topScore(c) ? '-my-1' : 'ms-auto -my-1'" />
|
|
244
244
|
</div>
|
|
245
|
-
<MarkdownProse :text="c.text" class="text-sm text-
|
|
245
|
+
<MarkdownProse :text="c.text" class="text-sm text-toned" />
|
|
246
246
|
<div v-if="c.scores?.length" class="mt-2 flex flex-wrap gap-1.5">
|
|
247
247
|
<span
|
|
248
248
|
v-for="s in c.scores"
|
|
249
249
|
:key="s.dimension"
|
|
250
|
-
class="rounded bg-
|
|
250
|
+
class="rounded bg-elevated/80 px-1.5 py-0.5 text-xs text-muted"
|
|
251
251
|
>{{ s.dimension }}: {{ pct(s.value) }}</span
|
|
252
252
|
>
|
|
253
253
|
</div>
|
|
@@ -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 }) }}
|