feat(navigation): count open workspace todos and style tab badges as notification dots
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 56s

This commit is contained in:
sandrodach committed 2026-10-25 10:25:21 +01:00
1 parent 1168c7e2ea
commit 290848a93e
5 files changed
+67 -42

No files matched your search

@@ -260,6 +260,7 @@ export const WorkspaceView: React.FC<WorkspaceViewProps> = ({
}
: prev
);
onStatsChange();
} catch (e: any) {
if (e.message && e.message.includes('423')) {
api.getDocLock(docToSave.id).then((res) => {
@@ -2162,9 +2163,15 @@ export const WorkspaceView: React.FC<WorkspaceViewProps> = ({
type="checkbox"
disabled={isReadOnly}
checked={!!block.checked}
onChange={(e) =>
!isReadOnly && updateBlock(block.id, { checked: e.target.checked })
}
onChange={(e) => {
if (!isReadOnly && selectedDoc) {
const nextBlocks = selectedDoc.blocks.map((b) =>
b.id === block.id ? { ...b, checked: e.target.checked } : b
);
persistDocument({ ...selectedDoc, blocks: nextBlocks }, true);
onStatsChange();
}
}}
className={`w-4 h-4 checkbox-square flex-shrink-0 ${
isReadOnly ? 'cursor-not-allowed opacity-60' : 'cursor-pointer'
}`}