Russian UI: settings, notch views, agent steps, errors; visible success after installing hooks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maksarsanjeev
2026-10-06 20:15:30 +03:00
parent 750e5ad0ad
commit 319cdc8b18
20 changed files with 565 additions and 519 deletions
+4 -4
View File
@@ -35,9 +35,9 @@ final class NotionPoller: @unchecked Sendable {
let code = (response as? HTTPURLResponse)?.statusCode ?? 0
if code != 200 {
let msg: String
if code == 401 { msg = "Invalid API key (401)" }
else if code == 0 { msg = error?.localizedDescription ?? "No connection" }
else { msg = "API error \(code)" }
if code == 401 { msg = "Неверный API-ключ (401)" }
else if code == 0 { msg = error?.localizedDescription ?? "Нет соединения" }
else { msg = "Ошибка API \(code)" }
DispatchQueue.main.async { AppState.shared.notionError = msg }
return
}
@@ -58,7 +58,7 @@ final class NotionPoller: @unchecked Sendable {
guard let id = obj["id"] as? String else { return nil }
let objType = obj["object"] as? String ?? "page"
var title = "Untitled"
var title = "Без названия"
if objType == "database" {
if let arr = obj["title"] as? [[String: Any]],
let text = arr.first?["plain_text"] as? String, !text.isEmpty {