feat(keyboard): ship AI hint carousel, home library cards, and clipboard polish

Rotate AI idle suggestions with optional remote packs, move history/dictionary onto self-sizing Home preview cards, harden clipboard capture/prompting, and simplify keyboard chrome by dropping most liquid-glass shadows.
This commit is contained in:
Rocky
2026-08-13 01:00:51 +08:00
parent fd6e0d3e7e
commit 9f308fadd2
202 changed files with 10897 additions and 5962 deletions
@@ -118,4 +118,24 @@ final class KeyboardStateTests: XCTestCase {
XCTAssertEqual(KeyboardState.InputMode.allCases, [.polish])
XCTAssertEqual(KeyboardState.InputMode(rawValue: "polish"), .polish)
}
func testSecureFieldImmediatelyHidesClipboardUIWithoutRestoringBody() {
let state = KeyboardState()
state.clipboardSuggestionText = "private clipboard body"
state.clipboardSuggestionChangeCount = 7
state.clipboardOverlay = .historyPanel
state.setSecureTextEntry(true)
XCTAssertFalse(state.canShowClipboardEntry)
XCTAssertNil(state.clipboardSuggestionText)
XCTAssertNil(state.clipboardSuggestionChangeCount)
XCTAssertEqual(state.clipboardOverlay, .none)
state.setSecureTextEntry(false)
XCTAssertTrue(state.canShowClipboardEntry)
XCTAssertNil(state.clipboardSuggestionText)
XCTAssertEqual(state.clipboardOverlay, .none)
}
}