improved sharing not finished

This commit is contained in:
2026-03-19 17:30:04 -05:00
parent 727cfe0083
commit a4d3da984b
2 changed files with 117 additions and 45 deletions
+7 -1
View File
@@ -56,7 +56,13 @@ export const TagPicker: Component<TagPickerProps> = (props) => {
if (!name) return;
if (name.startsWith("@")) {
const exists = store.contexts.some(context => context.key === normalizeContextKey(name));
const normalized = normalizeContextKey(name);
const exists = store.contexts.some(context =>
!context.deletedAt && (
context.key === normalized ||
normalizeContextKey(context.displayName) === normalized
)
);
if (!exists) {
toast.error("Create the shared context first before tagging tasks with it.");
return;