mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-02 14:28:59 +02:00
[eric] workflows: drop em/en-dashes from UI strings + comments (no-dash rule)
This commit is contained in:
@@ -123,7 +123,7 @@ TOOLS = [
|
||||
},
|
||||
{
|
||||
"name": "DeleteScheduledWorkflow",
|
||||
"description": "Permanently delete a scheduled workflow. Cannot be undone. ALWAYS confirm via AskUserQuestion before calling this — the user should pick from a list, not have you guess.",
|
||||
"description": "Permanently delete a scheduled workflow. Cannot be undone. ALWAYS confirm via AskUserQuestion before calling this; the user should pick from a list, not have you guess.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {"workflow_id": {"type": "string"}},
|
||||
|
||||
@@ -21,7 +21,7 @@ interface Props {
|
||||
refDate?: Date;
|
||||
}
|
||||
|
||||
// Both compact (popover) and roomy (hub) show the full 24 hours scrollable —
|
||||
// Both compact (popover) and roomy (hub) show the full 24 hours scrollable;
|
||||
// the user explicitly wants midnight visible at the top, not "9am" as the
|
||||
// starting hour. The scroll container caps the visible window.
|
||||
const HOURS_24 = Array.from({ length: 24 }, (_, i) => i);
|
||||
|
||||
@@ -74,7 +74,7 @@ export default function SchedulePopover({
|
||||
const endStr = sameMonth
|
||||
? String(end.getDate())
|
||||
: end.toLocaleString('en', { month: 'short', day: 'numeric' });
|
||||
return `${startStr} – ${endStr}, ${end.getFullYear()}`;
|
||||
return `${startStr} to ${endStr}, ${end.getFullYear()}`;
|
||||
}
|
||||
return refDate.toLocaleString('en', { month: 'long', day: 'numeric', year: 'numeric' });
|
||||
}, [refDate, calendarView]);
|
||||
@@ -112,7 +112,7 @@ export default function SchedulePopover({
|
||||
</Box>
|
||||
)}
|
||||
|
||||
{/* Content card — separately bordered/rounded, like image #30.
|
||||
{/* Content card, separately bordered/rounded, like image #30.
|
||||
Inner content crossfades on tab switch so search↔schedule isn't
|
||||
a jarring jump. Outer card stays fixed-size (W×H) so the toolbar
|
||||
doesn't reflow. */}
|
||||
|
||||
@@ -214,7 +214,7 @@ const ComposeView: React.FC<{ nav: AppNav }> = ({ nav }) => {
|
||||
{!tested && (
|
||||
<div style={{ display: 'flex', alignItems: 'flex-start', gap: 7, fontSize: 11.5, lineHeight: 1.4, color: WC.muted }}>
|
||||
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke={WC.warn} strokeWidth="2" style={{ flex: 'none', marginTop: 1 }}><circle cx="12" cy="12" r="9" /><path d="M12 8v5" /><path d="M12 16h.01" /></svg>
|
||||
<span>Not tested yet — a test run grants the tool access this workflow needs.</span>
|
||||
<span>Not tested yet. A test run grants the tool access this workflow needs.</span>
|
||||
</div>
|
||||
)}
|
||||
<div style={{ display: 'flex', gap: 9 }}>
|
||||
|
||||
@@ -216,7 +216,7 @@ const WorkflowsAppCard: React.FC<Props> = ({
|
||||
transition: noTransition ? 'none' : 'box-shadow 0.3s ease, border-color 0.2s ease',
|
||||
}}
|
||||
>
|
||||
{/* TITLE BAR — drag handle */}
|
||||
{/* TITLE BAR (drag handle) */}
|
||||
<div
|
||||
onPointerDown={onHeaderPointerDown}
|
||||
onPointerMove={onHeaderPointerMove}
|
||||
|
||||
Reference in New Issue
Block a user