T23d round 1 fix
- the conversation list reads the zone through format::system_zone, which fails loud; the gallery expects the system zone - Combobox opens with its cursor on its value, MultiSelect on the first row ticked; tests for all three lists open r25 of thirty in view - AGENTS: the zone rule; lists open on their choice
This commit is contained in:
1 parent
f3336b18bf
commit
4f9e9eb756
8 files changed
+87
-26
No files matched your search
@@ -79,7 +79,9 @@ pub fn conversations_section(
|
||||
window: &mut Window,
|
||||
cx: &mut App,
|
||||
) -> impl IntoElement + use<> {
|
||||
let today = Timestamp::now().to_zoned(TimeZone::system()).date();
|
||||
let today = Timestamp::now()
|
||||
.to_zoned(TimeZone::try_system().expect("the gallery reads the system time zone"))
|
||||
.date();
|
||||
let query = window.use_keyed_state("chat-find-conversation", cx, |window, cx| {
|
||||
TextInput::new(window, cx).placeholder("Search conversations")
|
||||
});
|
||||
|
||||
@@ -115,7 +115,9 @@ fn row(ix: usize, row: &Row, today: Date, now: Timestamp) -> gpui::AnyElement {
|
||||
}
|
||||
|
||||
pub fn conversation(_: &mut Window, cx: &mut App) -> impl IntoElement + use<> {
|
||||
let today = Timestamp::now().to_zoned(TimeZone::system()).date();
|
||||
let today = Timestamp::now()
|
||||
.to_zoned(TimeZone::try_system().expect("the gallery reads the system time zone"))
|
||||
.date();
|
||||
let now = Timestamp::now();
|
||||
let all = rows(today);
|
||||
let count = all.len();
|
||||
|
||||
Reference in new issue
Block a user