@seed-ship/mcp-ui-solid 3.0.0 → 3.0.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/dist/components/ScratchpadPanel.cjs +5 -5
- package/dist/components/ScratchpadPanel.cjs.map +1 -1
- package/dist/components/ScratchpadPanel.js +5 -5
- package/dist/components/ScratchpadPanel.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ScratchpadPanel.tsx +4 -4
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -36,7 +36,7 @@ export interface ScratchpadPanelProps {
|
|
|
36
36
|
|
|
37
37
|
const STATUS_BADGES: Record<ScratchpadState['status'], { label: string; class: string }> = {
|
|
38
38
|
loading: { label: 'Loading...', class: 'bg-yellow-100 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-400' },
|
|
39
|
-
ready: { label: '
|
|
39
|
+
ready: { label: 'Action available', class: 'bg-cyan-100 text-cyan-700 dark:bg-cyan-900/30 dark:text-cyan-400' },
|
|
40
40
|
waiting_human: { label: 'Your turn', class: 'bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400 animate-pulse' },
|
|
41
41
|
processing: { label: 'Processing...', class: 'bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-400' },
|
|
42
42
|
complete: { label: 'Complete', class: 'bg-green-100 text-green-600 dark:bg-green-900/30 dark:text-green-400' },
|
|
@@ -123,7 +123,7 @@ export const ScratchpadPanel: Component<ScratchpadPanelProps> = (props) => {
|
|
|
123
123
|
props.state.status === 'waiting_human'
|
|
124
124
|
? 'border-blue-300 dark:border-blue-600'
|
|
125
125
|
: 'border-gray-200 dark:border-gray-700'
|
|
126
|
-
}`}
|
|
126
|
+
} ${props.pinned ? 'sticky top-0 z-40' : ''}`}
|
|
127
127
|
style={{ animation: 'scratchpad-slide-down 0.2s ease-out' }}
|
|
128
128
|
>
|
|
129
129
|
{/* Header */}
|
|
@@ -547,7 +547,7 @@ const EnrichedStepsSection: Component<{
|
|
|
547
547
|
<div class="space-y-3">
|
|
548
548
|
<For each={stepsData().steps}>
|
|
549
549
|
{(step: any) => (
|
|
550
|
-
<div class={`rounded-lg ${step.status === 'active' ? 'bg-blue-50/50 dark:bg-blue-900/10 border border-blue-200 dark:border-blue-800 p-3' : 'px-1'}`}>
|
|
550
|
+
<div class={`rounded-lg ${step.status === 'active' ? 'bg-blue-50/50 dark:bg-blue-900/10 border border-blue-200 dark:border-blue-800 p-3 animate-pulse' : 'px-1'}`}>
|
|
551
551
|
<div class={`flex items-center gap-2 text-sm font-medium ${
|
|
552
552
|
step.status === 'done' ? 'text-green-600 dark:text-green-400'
|
|
553
553
|
: step.status === 'active' ? 'text-blue-600 dark:text-blue-400'
|
|
@@ -822,7 +822,7 @@ const StepperProgressSection: Component<{ content: unknown }> = (props) => {
|
|
|
822
822
|
</Show>
|
|
823
823
|
<div class={`flex items-center gap-1 px-2 py-1 rounded text-xs ${
|
|
824
824
|
step.status === 'done' ? 'bg-green-50 dark:bg-green-900/20 text-green-700 dark:text-green-400'
|
|
825
|
-
: step.status === 'active' ? 'bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-400 font-medium'
|
|
825
|
+
: step.status === 'active' ? 'bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-400 font-medium animate-pulse'
|
|
826
826
|
: step.status === 'error' ? 'bg-red-50 dark:bg-red-900/20 text-red-700 dark:text-red-400'
|
|
827
827
|
: 'text-gray-400'
|
|
828
828
|
}`}>
|