fix: trash duplicate path, journal tabs, today undefined, mouse back, inbox search
- Trash: removed duplicate fsPath display, folders/files open by clicking icon/name - Trash: removed separate 'Open' button, only restore/delete right-aligned - Trash: added ReadTrashFileContent binding + preview for files - Trash: breadcrumb path under title, compact date display - Journal: split into 'Предложения' + 'Журнал работы' tabs - Journal: suggestions tab opens by default - Today: fixed undefined in feed (null-guard on eventType/title) - Today: improved event type label readability (blue badge style) - Today: folder_deleted clicks navigate to trash - Mouse Back: added mouseup fallback for Wails compat, handle button 3/4 - SearchNodes: case-insensitive with LOWER() - Inbox assign: added search hint placeholder
This commit is contained in:
@@ -221,7 +221,7 @@ func (r *Repository) CountChildren(parentID string, types ...string) (int, error
|
||||
// Search finds active nodes whose title contains the query (case-insensitive).
|
||||
func (r *Repository) Search(query string, limit int) ([]Node, error) {
|
||||
q := `SELECT ` + nodeColumns + ` FROM nodes
|
||||
WHERE deleted_at IS NULL AND title LIKE ? ORDER BY sort_order, title LIMIT ?`
|
||||
WHERE deleted_at IS NULL AND LOWER(title) LIKE LOWER(?) ORDER BY sort_order, title LIMIT ?`
|
||||
rows, err := r.db.Query(q, "%"+query+"%", limit)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user