feat(notes): let organizations edit the note category bar

The filter chips were fixed labels. Owners can rename, hide, reorder, and add categories.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-01 16:34:34 +03:30
co-authored by Cursor
parent 8e1e94a439
commit 81edf61065
10 changed files with 645 additions and 390 deletions
+37
View File
@@ -2014,6 +2014,43 @@ export const NOTE_VISIBILITY_LABELS: Record<NoteVisibility, string> = {
personal: "شخصی (فقط من)",
};
export type NoteCategoryTone =
| "general"
| "follow_up"
| "idea"
| "suggestion"
| "meeting"
| "personal";
export interface NoteCategoryDto {
id: string;
key: string;
label: string;
tone: NoteCategoryTone | string;
position: number;
isActive: boolean;
showInBar: boolean;
isSystem: boolean;
}
export interface CreateNoteCategoryRequest {
label: string;
tone?: NoteCategoryTone | string;
showInBar?: boolean;
}
export interface UpdateNoteCategoryRequest {
label?: string;
tone?: NoteCategoryTone | string;
showInBar?: boolean;
isActive?: boolean;
position?: number;
}
export interface ReorderNoteCategoriesRequest {
ids: string[];
}
export interface NoteRevisionDto {
id: string;
title: string | null;