notes: AI titles for new notes, personal-only access, modal polish
- new note created without a title gets one generated by a background worker (createNoteTitleWorker, ai_status column, wake channel, notes_changed SSE event, settings toggle notes_ai_enabled) - notes are strictly personal: list/update/delete/reorder always scoped to req.user.id, admin no longer sees other users' notes (403) - notes modal: focus goes to the text body, random color for new notes, ctrl+enter hint, tags hint styling, empty-title 400 fix (optText) - backup/restore: user_notes.ai_status normalized and restored
This commit is contained in:
+3
-1
@@ -57,6 +57,8 @@
|
||||
.note-empty { text-align: center; color: var(--muted); padding: 32px 16px; font-size: .9rem; border: 1px dashed var(--border); border-radius: 12px; }
|
||||
.note-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
||||
.note-modal-head h3 { margin: 0; font-size: 1.05rem; }
|
||||
.settings-field .hint { font-size: .78rem; color: var(--muted); line-height: 1.5; }
|
||||
.settings-field label .hint { font-weight: 400; margin-left: 6px; }
|
||||
</style>
|
||||
</head>
|
||||
<body data-page="notes">
|
||||
@@ -83,7 +85,7 @@
|
||||
<input id="notesTitle" class="settings-input" maxlength="200" placeholder="Краткое название заметки">
|
||||
</div>
|
||||
<div class="settings-field">
|
||||
<label>Заметка</label>
|
||||
<label>Заметка<span class="hint">ctrl+enter отправить</span></label>
|
||||
<textarea id="notesNote" class="settings-input" rows="6" placeholder="Текст заметки"></textarea>
|
||||
</div>
|
||||
<div class="settings-field">
|
||||
|
||||
Reference in New Issue
Block a user