Migrate dashboard dialogs to the shared movable and resizable FloatingWindow contract. - Move core, workflow, Git, planning, and automation modal surfaces to stable floating-window identities with persisted geometry. - Suspend geometry and floating controls for phone and short-viewport sheets, including Quick Chat. - Add accessibility wiring, tablet touch targets, migration tests, and operator documentation. Files changed: .changeset/fn-8606-floating-window-core-modals.md | 7 + docs/dashboard-guide.md | 4 + packages/dashboard/app/App.tsx | 8 +- .../dashboard/app/components/ActivityLogModal.tsx | 30 ++-- packages/dashboard/app/components/AddNodeModal.tsx | 8 +- .../dashboard/app/components/ChangesDiffModal.tsx | 35 +++-- .../dashboard/app/components/ConnectNodeModal.tsx | 9 +- .../dashboard/app/components/FloatingWindow.css | 71 ++++++++- .../dashboard/app/components/FloatingWindow.tsx | 27 +++- .../dashboard/app/components/GitManagerModal.tsx | 30 +++- .../dashboard/app/components/GroupTaskModal.tsx | 8 +- .../app/components/ModelOnboardingModal.tsx | 28 ++-- .../dashboard/app/components/NodeDetailModal.tsx | 9 +- .../dashboard/app/components/PlanningModeModal.css | 1 - .../dashboard/app/components/PlanningModeModal.tsx | 57 +++---- .../app/components/ScheduledTasksModal.tsx | 9 +- packages/dashboard/app/components/ScriptsModal.css | 1 - packages/dashboard/app/components/ScriptsModal.tsx | 32 ++-- .../dashboard/app/components/SettingsModal.css | 1 - .../dashboard/app/components/SettingsModal.tsx | 58 ++++--- .../app/components/WorkflowAddStepModal.css | 15 -- .../app/components/WorkflowAddStepModal.tsx | 46 +++--- .../components/__tests__/ActivityLogModal.test.tsx | 33 ++-- .../app/components/__tests__/AddNodeModal.test.tsx | 12 +- .../components/__tests__/ChangesDiffModal.test.tsx | 78 +++++----- .../components/__tests__/ConnectNodeModal.test.tsx | 7 + .../components/__tests__/FloatingWindow.test.tsx | 173 ++++++++++++++++++++- .../components/__tests__/GitManagerModal.test.tsx | 30 ++-- .../components/__tests__/GroupTaskModal.test.tsx | 9 ++ .../__tests__/ModelOnboardingModal.test.tsx | 18 ++- .../components/__tests__/NodeDetailModal.test.tsx | 9 ++ .../__tests__/PlanningModeModal.autosize.test.tsx | 30 ++-- .../__tests__/ScheduledTasksModal.test.tsx | 21 ++- .../app/components/__tests__/ScriptsModal.test.tsx | 15 +- .../__tests__/SettingsModal.mobileClose.test.tsx | 25 ++- .../__tests__/WorkflowAddStepModal.test.tsx | 7 + .../floatingWindowMigration.test-helpers.ts | 126 +++++++++++++++ 37 files changed, 828 insertions(+), 259 deletions(-) Fusion-Task-Id: FN-8606 Fusion-Task-Lineage: dab0df2d-73f4-4b0f-bec3-a45016310c91 Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
215 lines
4.6 KiB
CSS
215 lines
4.6 KiB
CSS
/*
|
|
FNXC:WorkflowSimpleView 2026-07-10-12:00:
|
|
Add-step dialog for the simplified workflow view. Centered card on desktop,
|
|
full-width bottom sheet on mobile (mirrors the app's mobile modal pattern) so
|
|
the same dialog serves both breakpoints.
|
|
*/
|
|
|
|
.wf-add-step-dialog {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: min(680px, calc(100vw - 32px));
|
|
max-height: min(72vh, 640px);
|
|
border-radius: var(--radius-xl);
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
box-shadow: var(--shadow-lg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.wf-add-step-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 14px 16px 10px;
|
|
}
|
|
|
|
.wf-add-step-header h3 {
|
|
margin: 0;
|
|
font-size: 0.95rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
.wf-add-step-search {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin: 0 16px 12px;
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.wf-add-step-search:focus-within {
|
|
border-color: var(--todo);
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.wf-add-step-search-input {
|
|
flex: 1;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
color: var(--text);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.wf-add-step-conflict {
|
|
margin: 0 16px 10px;
|
|
padding: 8px 10px;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid color-mix(in srgb, var(--color-error) 45%, var(--border));
|
|
background: var(--status-error-bg);
|
|
color: var(--color-error);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.wf-add-step-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 0 16px 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.wf-add-step-section h4 {
|
|
margin: 0 0 8px;
|
|
font-size: 0.68rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.wf-add-step-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.wf-add-step-option {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
width: 100%;
|
|
padding: 10px;
|
|
border-radius: var(--radius-lg);
|
|
border: 1px solid var(--border-subtle);
|
|
background: var(--surface-subtle);
|
|
color: var(--text);
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition:
|
|
background var(--transition-fast),
|
|
border-color var(--transition-fast);
|
|
}
|
|
|
|
.wf-add-step-option:hover {
|
|
background: var(--surface-hover);
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.wf-add-step-option:focus-visible {
|
|
outline: none;
|
|
border-color: var(--todo);
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.wf-add-step-option-chip {
|
|
flex: 0 0 auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: var(--radius-md);
|
|
/* FNXC:DashboardTokenHygiene 2026-07-18-04:07: Colored workflow-status chips require an always-white foreground, not theme-variant --accent-text. */
|
|
color: var(--workflow-chip-foreground);
|
|
background: var(--surface-emphasis);
|
|
}
|
|
|
|
.wf-add-step-option--agent .wf-add-step-option-chip {
|
|
background: color-mix(in srgb, var(--ws-quality) 85%, var(--bg));
|
|
}
|
|
|
|
.wf-add-step-option--automation .wf-add-step-option-chip {
|
|
background: color-mix(in srgb, var(--ws-teal) 85%, var(--bg));
|
|
}
|
|
|
|
.wf-add-step-option--flow .wf-add-step-option-chip {
|
|
background: color-mix(in srgb, var(--color-merged) 85%, var(--bg));
|
|
}
|
|
|
|
.wf-add-step-option--template .wf-add-step-option-chip {
|
|
background: color-mix(in srgb, var(--triage) 80%, var(--bg));
|
|
}
|
|
|
|
.wf-add-step-option-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.wf-add-step-option-label {
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.wf-add-step-option-desc {
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.wf-add-step-template-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.wf-add-step-optional {
|
|
align-self: flex-start;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
margin-left: 40px;
|
|
padding: 3px 9px;
|
|
border-radius: var(--radius-pill);
|
|
border: 1px solid var(--border-subtle);
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
font-size: 0.68rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.wf-add-step-optional:hover {
|
|
border-color: var(--border-strong);
|
|
color: var(--text);
|
|
}
|
|
|
|
.wf-add-step-empty {
|
|
margin: 6px 2px;
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
@media (max-width: 768px), (max-height: 480px) {
|
|
.wf-add-step-dialog {
|
|
width: 100vw;
|
|
max-height: 82dvh;
|
|
border-radius: var(--radius-xl) var(--radius-xl) 0 0;
|
|
border-bottom: none;
|
|
}
|
|
|
|
.wf-add-step-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|