Add safe desktop click-drag panning to the Board while preserving existing card and touch interactions. - Add the mouse-pan hook with pointer capture, intent threshold, and click suppression. - Wire panning and cursor states into Board surfaces with regression coverage. - Document the interaction and publish the feature changeset. Files changed: .changeset/fn-009-board-mouse-pan.md | 7 + docs/dashboard-guide.md | 2 + packages/dashboard/app/components/Board.css | 11 ++ packages/dashboard/app/components/Board.tsx | 19 ++- .../app/components/__tests__/Board.test.tsx | 78 +++++++++- .../app/hooks/__tests__/useBoardMousePan.test.tsx | 164 +++++++++++++++++++++ packages/dashboard/app/hooks/useBoardMousePan.ts | 151 +++++++++++++++++++ 7 files changed, 429 insertions(+), 3 deletions(-) Fusion-Task-Id: FN-009 Fusion-Task-Lineage: 0f0bee56-cbb8-4e8d-b866-51d439ab9655 Co-authored-by: Fusion <noreply@runfusion.ai>
81 lines
2.0 KiB
CSS
81 lines
2.0 KiB
CSS
/*
|
|
FNXC:BoardWorkflows 2026-06-20-09:02:
|
|
The board needs a neutral first-paint shell whenever workflow lanes are enabled but metadata is not ready, so users never see the legacy single-lane board flash before workflow lanes load.
|
|
*/
|
|
.board.board-workflows-skeleton {
|
|
display: flex;
|
|
align-items: stretch;
|
|
gap: var(--column-gap, var(--space-md));
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
padding: var(--board-padding, var(--space-md));
|
|
background: var(--bg);
|
|
}
|
|
|
|
.board-workflows-skeleton__column {
|
|
flex: 1 0 min(24rem, 85vw);
|
|
min-width: min(24rem, 85vw);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
padding: var(--space-md);
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
}
|
|
|
|
.board-workflows-skeleton__header,
|
|
.board-workflows-skeleton__card {
|
|
border-radius: var(--radius-md);
|
|
background: color-mix(in srgb, var(--border) 70%, var(--surface));
|
|
animation: board-workflows-skeleton-pulse 1.4s ease-in-out infinite;
|
|
}
|
|
|
|
.board-workflows-skeleton__header {
|
|
block-size: var(--space-lg);
|
|
inline-size: 55%;
|
|
}
|
|
|
|
.board-workflows-skeleton__card {
|
|
block-size: calc(var(--space-2xl) * 2);
|
|
inline-size: 100%;
|
|
}
|
|
|
|
.board-workflows-skeleton__card--short {
|
|
inline-size: 75%;
|
|
}
|
|
|
|
/*
|
|
FNXC:BoardNavigation 2026-08-18-18:18:
|
|
A real desktop board pan gets non-semantic feedback on the existing scroll surface only. The active
|
|
state disables text selection while dragging, but does not add a control, change touch behavior, or
|
|
alter the desktop free-pan/mobile snap CSS boundary.
|
|
*/
|
|
.board.board-workflow-columns.is-mouse-panning {
|
|
cursor: grabbing;
|
|
user-select: none;
|
|
}
|
|
|
|
@keyframes board-workflows-skeleton-pulse {
|
|
0%, 100% {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
50% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.board.board-workflows-skeleton {
|
|
gap: var(--space-sm);
|
|
padding: var(--space-sm);
|
|
scroll-snap-type: x proximity;
|
|
}
|
|
|
|
.board-workflows-skeleton__column {
|
|
flex-basis: 86vw;
|
|
min-width: 86vw;
|
|
scroll-snap-align: center;
|
|
}
|
|
}
|