@echothink-ui/task 0.1.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 +5 -0
- package/dist/components/BackendThinkingChain.d.ts +2 -0
- package/dist/components/BlockingReasonPanel.d.ts +2 -0
- package/dist/components/DAGEdge.d.ts +2 -0
- package/dist/components/DAGLegend.d.ts +2 -0
- package/dist/components/DAGNode.d.ts +4 -0
- package/dist/components/DecisionRequiredPanel.d.ts +2 -0
- package/dist/components/HumanInterventionPanel.d.ts +2 -0
- package/dist/components/MobileTaskShell.d.ts +12 -0
- package/dist/components/TaskApprovalPanel.d.ts +2 -0
- package/dist/components/TaskCard.d.ts +2 -0
- package/dist/components/TaskDependencyList.d.ts +2 -0
- package/dist/components/TaskDetailPanel.d.ts +2 -0
- package/dist/components/TaskHandoffPanel.d.ts +2 -0
- package/dist/components/TaskProgressIndicator.d.ts +2 -0
- package/dist/components/TaskRetryPanel.d.ts +2 -0
- package/dist/components/TaskRunLog.d.ts +2 -0
- package/dist/components/TaskStatusBadge.d.ts +2 -0
- package/dist/components/TaskTable.d.ts +5 -0
- package/dist/components/TaskTimeline.d.ts +2 -0
- package/dist/components/TaskWaveDAG.d.ts +2 -0
- package/dist/components/TaskWaveHeader.d.ts +2 -0
- package/dist/components/TaskWaveTable.d.ts +2 -0
- package/dist/components/utils.d.ts +13 -0
- package/dist/index.cjs +2434 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +2402 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +2388 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +249 -0
- package/package.json +45 -0
- package/src/components/BackendThinkingChain.tsx +129 -0
- package/src/components/BlockingReasonPanel.tsx +67 -0
- package/src/components/DAGEdge.tsx +97 -0
- package/src/components/DAGLegend.tsx +86 -0
- package/src/components/DAGNode.tsx +103 -0
- package/src/components/DecisionRequiredPanel.tsx +166 -0
- package/src/components/HumanInterventionPanel.tsx +82 -0
- package/src/components/MobileTaskShell.tsx +52 -0
- package/src/components/TaskApprovalPanel.tsx +159 -0
- package/src/components/TaskCard.tsx +71 -0
- package/src/components/TaskDependencyList.test.tsx +54 -0
- package/src/components/TaskDependencyList.tsx +105 -0
- package/src/components/TaskDetailPanel.test.tsx +49 -0
- package/src/components/TaskDetailPanel.tsx +139 -0
- package/src/components/TaskHandoffPanel.tsx +125 -0
- package/src/components/TaskProgressIndicator.tsx +70 -0
- package/src/components/TaskRetryPanel.test.tsx +29 -0
- package/src/components/TaskRetryPanel.tsx +103 -0
- package/src/components/TaskRunLog.tsx +156 -0
- package/src/components/TaskStatusBadge.tsx +29 -0
- package/src/components/TaskTable.tsx +294 -0
- package/src/components/TaskTimeline.tsx +98 -0
- package/src/components/TaskWaveDAG.tsx +202 -0
- package/src/components/TaskWaveHeader.tsx +82 -0
- package/src/components/TaskWaveTable.tsx +151 -0
- package/src/components/css.d.ts +1 -0
- package/src/components/utils.ts +116 -0
- package/src/index.test.tsx +316 -0
- package/src/index.tsx +90 -0
- package/src/styles.css +2889 -0
- package/src/types.ts +289 -0
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# @echothink-ui/task
|
|
2
|
+
|
|
3
|
+
Task package for EchoThink app-domain websites.
|
|
4
|
+
|
|
5
|
+
This package is part of the EchoThink-UI app-domain library. It is designed for normal website app domains rendered inside EchoThink Studio's Chromium shell, not for implementing the studio browser chrome itself.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DAGNodeProps } from "../types";
|
|
2
|
+
export declare function DAGNode({ node, selected, onSelect, className, ...props }: DAGNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const DAG_NODE_WIDTH = 156;
|
|
4
|
+
export declare const DAG_NODE_HEIGHT = 60;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { DecisionRequiredPanelProps } from "../types";
|
|
2
|
+
export declare function DecisionRequiredPanel({ title, summary, riskLevel, evidence, options, onDecide, decidedOptionId, className, description, actions, items, severity, status, ...props }: DecisionRequiredPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { HumanInterventionPanelProps } from "../types";
|
|
2
|
+
export declare function HumanInterventionPanel({ reason, affectedTask, actions, urgency, className, title, status, severity, role, "aria-labelledby": ariaLabelledBy, ...props }: HumanInterventionPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface MobileTaskShellProps {
|
|
3
|
+
title?: React.ReactNode;
|
|
4
|
+
subtitle?: React.ReactNode;
|
|
5
|
+
progress?: React.ReactNode;
|
|
6
|
+
main?: React.ReactNode;
|
|
7
|
+
footer?: React.ReactNode;
|
|
8
|
+
identity?: React.ReactNode;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function MobileTaskShell({ title, subtitle, progress, main, footer, identity, children, className }: MobileTaskShellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { TaskApprovalPanelProps } from "../types";
|
|
2
|
+
export declare function TaskApprovalPanel({ taskRef, diffRef, policyRef, summary, evidence, onApprove, onReject, onRequestChanges, state, title, description, footer, ...props }: TaskApprovalPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Task, TaskTableProps } from "../types";
|
|
2
|
+
export declare function TaskTable({ tasks, items, density, selectable, selectedRows, onSelectionChange, rowActions, bulkActions, columns, showFilters, statusFilter, onStatusFilterChange, className, title, description, actions, subtitle: _subtitle, eyebrow: _eyebrow, status: _status, severity: _severity, loading: _loading, empty: _empty, error: _error, metadata: _metadata, footer: _footer, "aria-label": ariaLabel, ...sectionProps }: TaskTableProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function StatusCell({ task }: {
|
|
4
|
+
task: Task;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { EthOperationalStatus, EthSeverity } from "@echothink-ui/core";
|
|
2
|
+
import type { RiskLevel, TaskPriority, TaskWave } from "../types";
|
|
3
|
+
export declare function severityForStatus(status: EthOperationalStatus): EthSeverity;
|
|
4
|
+
export declare function severityForPriority(priority?: TaskPriority): EthSeverity;
|
|
5
|
+
export declare function severityForRisk(riskLevel?: RiskLevel): EthSeverity;
|
|
6
|
+
export declare function labelForStatus(status: EthOperationalStatus): string;
|
|
7
|
+
export declare function formatDateTime(value?: string | Date): string;
|
|
8
|
+
export declare function relativeTime(value?: string | Date, now?: Date): string;
|
|
9
|
+
export declare function formatDuration(durationMs?: number): string;
|
|
10
|
+
export declare function clampProgress(value?: number, total?: number): number;
|
|
11
|
+
export declare function waveProgress(wave?: TaskWave): number;
|
|
12
|
+
export declare function statusColor(status?: EthOperationalStatus): "var(--eth-color-success)" | "var(--eth-color-info)" | "var(--eth-color-danger)" | "var(--eth-color-warning)" | "var(--eth-color-border-strong)";
|
|
13
|
+
export declare function fallbackId(prefix: string): string;
|