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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user