Add duplicate detection parity to full-dialog task creation and improve duplicate warnings.\n\n- Run duplicate checks before New Task dialog creation and require explicit acknowledgement to create anyway.\n- Show duplicate task descriptions with title and empty-state fallbacks in the warning modal.\n- Cover duplicate warning and New Task duplicate flows with dashboard tests.\n- Document duplicate handling parity and add a published CLI changeset.\n\nFiles changed:\n .changeset/new-task-duplicates.md | 5 +\n docs/dashboard-guide.md | 4 +\n .../app/components/DuplicateWarningModal.css | 6 +-\n .../app/components/DuplicateWarningModal.tsx | 6 +-\n packages/dashboard/app/components/NewTaskModal.tsx | 324 ++++++++++++---------\n .../__tests__/DuplicateWarningModal.test.tsx | 28 +-\n .../app/components/__tests__/NewTaskModal.test.tsx | 104 +++++++\n 7 files changed, 331 insertions(+), 146 deletions(-) Fusion-Task-Id: FN-6930 Fusion-Task-Lineage: 06d75ec5-e7e8-4124-9b08-47a7adad4fad
65 lines
1.2 KiB
CSS
65 lines
1.2 KiB
CSS
.duplicate-warning-modal {
|
|
max-width: min(100%, calc(var(--space-2xl) * 18));
|
|
}
|
|
|
|
.duplicate-warning-modal-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
padding: 0 var(--space-lg) var(--space-md);
|
|
}
|
|
|
|
.duplicate-warning-modal-copy {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.duplicate-warning-modal-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
max-height: calc(var(--space-2xl) * 8);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.duplicate-warning-modal-item {
|
|
cursor: default;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.duplicate-warning-modal-item-header {
|
|
align-items: center;
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.duplicate-warning-modal-score {
|
|
margin-left: auto;
|
|
border: var(--btn-border-width) solid var(--border);
|
|
border-radius: var(--radius-pill);
|
|
color: var(--text-muted);
|
|
font-size: 0.75rem;
|
|
padding: var(--space-xs) var(--space-sm);
|
|
}
|
|
|
|
.duplicate-warning-modal-title {
|
|
display: -webkit-box;
|
|
overflow: hidden;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 3;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.duplicate-warning-modal-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.duplicate-warning-modal {
|
|
width: 100%;
|
|
}
|
|
}
|