BlueGit

ict rusty-teams

fix(build): main builds again after the Linux and calendar merges

- Drop ui_locale and the rust_i18n macro (#12 brought them without the module or the crate)
- Customize reactions labels back to plain text, crate::i18n does not exist
- call exports match the current stage split and share view (#14 restored old names)
- Calendar shows the agent meeting proposals again (#14 dropped them)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-11-13 · 2 weeks ago

Hash
6994ef7f12f14d720f2d433cf3a1c79553e2d023
Parent
c9ab4c36
4 files changed +10 −12
crates/app-base/src/lib.rs +0 −3
@@ -38,12 +38,9 @@ pub mod stickers;
38 38 pub mod task_dialog;
39 39 pub mod theme;
40 40 pub mod translation;
41 pub mod ui_locale;
42 41 pub mod updater;
43 42 pub mod user_activity;
44 43 pub mod version;
45 44 pub mod zoom;
46 45
47 46 pub const APP_NAME: &str = "Rusty Teams";
48
49 rust_i18n::i18n!("locales", fallback = "en");
@@ -38,12 +38,9 @@ pub mod stickers;
38pub mod task_dialog;
38pub mod task_dialog;
39pub mod theme;
39pub mod theme;
40pub mod translation;
40pub mod translation;
41pub mod ui_locale;
42pub mod updater;
41pub mod updater;
43pub mod user_activity;
42pub mod user_activity;
44pub mod version;
43pub mod version;
45pub mod zoom;
44pub mod zoom;
46
45
47pub const APP_NAME: &str = "Rusty Teams";
46pub const APP_NAME: &str = "Rusty Teams";
48
49rust_i18n::i18n!("locales", fallback = "en");
crates/app-state/src/call/mod.rs +3 −6
@@ -62,15 +62,12 @@ pub use report::load_enabled as load_report_enabled;
62 62 pub use ring::{MissedCall, RingEntry, Rings};
63 63 pub use schedule::{FormValues, Invitee, default_window, draft_from_form};
64 64 pub use share_actions::ZoomStep;
65 pub use share_view::{
66 SHARE_MOTION_META_KEY, SHARE_STANDOUT_META_KEY, STRIP_DEFAULT_WIDTH, ShareStage, load_flag,
67 load_strip_width,
68 };
65 pub use share_view::{SHARE_MOTION_META_KEY, SHARE_STANDOUT_META_KEY, ShareStage, load_flag};
69 66 pub use speed_dial::SpeedDialEntry;
70 67 pub use stage_layout::{contain_size, focus_stage_size, gallery_grid};
71 68 pub use stage_split::{
72 GRID_PADDING, STRIP_GAP, SpeakerSplit, StripSplit, TILE_GAP, gallery_split, measured_stage,
73 speaker_split, strip_split, video_wants,
69 GRID_PADDING, STRIP_GAP, GalleryPage, SpeakerSplit, StripSplit, TILE_GAP, gallery_page,
70 measured_stage, speaker_split, strip_split, video_wants,
74 71 };
75 72 pub use target::{is_echo_chat, plan_for_chat};
76 73 pub use transcript::clock_label;
@@ -62,15 +62,12 @@ pub use report::load_enabled as load_report_enabled;
62pub use ring::{MissedCall, RingEntry, Rings};
62pub use ring::{MissedCall, RingEntry, Rings};
63pub use schedule::{FormValues, Invitee, default_window, draft_from_form};
63pub use schedule::{FormValues, Invitee, default_window, draft_from_form};
64pub use share_actions::ZoomStep;
64pub use share_actions::ZoomStep;
65pub use share_view::{
65pub use share_view::{SHARE_MOTION_META_KEY, SHARE_STANDOUT_META_KEY, ShareStage, load_flag};
66 SHARE_MOTION_META_KEY, SHARE_STANDOUT_META_KEY, STRIP_DEFAULT_WIDTH, ShareStage, load_flag,
67 load_strip_width,
68};
69pub use speed_dial::SpeedDialEntry;
66pub use speed_dial::SpeedDialEntry;
70pub use stage_layout::{contain_size, focus_stage_size, gallery_grid};
67pub use stage_layout::{contain_size, focus_stage_size, gallery_grid};
71pub use stage_split::{
68pub use stage_split::{
72 GRID_PADDING, STRIP_GAP, SpeakerSplit, StripSplit, TILE_GAP, gallery_split, measured_stage,
69 GRID_PADDING, STRIP_GAP, GalleryPage, SpeakerSplit, StripSplit, TILE_GAP, gallery_page,
73 speaker_split, strip_split, video_wants,
70 measured_stage, speaker_split, strip_split, video_wants,
74};
71};
75pub use target::{is_echo_chat, plan_for_chat};
72pub use target::{is_echo_chat, plan_for_chat};
76pub use transcript::clock_label;
73pub use transcript::clock_label;
crates/app/src/views/calendar_view.rs +5 −0
@@ -14,6 +14,7 @@ use gpui_kit::*;
14 14 use super::calendar_date_picker::date_picker_button;
15 15 use super::calendar_month::month_grid;
16 16 use super::join_dialog::open_join_with_id;
17 use super::meeting_proposal_card::meeting_proposal_cards;
17 18 use super::new_meeting_dialog::open_new_meeting;
18 19 use super::rsvp_menu::rsvp_menu;
19 20 use super::scroll_edge::scroll_offset;
@@ -59,11 +60,13 @@ pub struct CalendarView {
59 60 skip_manual_check: bool,
60 61 clock_running: bool,
61 62 _observation: Subscription,
63 _agent_observation: Option<Subscription>,
62 64 }
63 65
64 66 impl CalendarView {
65 67 pub fn new(state: Entity<AppState>, cx: &mut Context<Self>) -> Self {
66 68 let observation = cx.observe(&state, |_, _, cx| cx.notify());
69 let agent_observation = crate::agent_api::handle(cx).map(|api| cx.observe(&api, |_, _, cx| cx.notify()));
67 70 CalendarView {
68 71 state,
69 72 scroll: ScrollHandle::new(),
@@ -73,6 +76,7 @@ impl CalendarView {
73 76 skip_manual_check: false,
74 77 clock_running: false,
75 78 _observation: observation,
79 _agent_observation: agent_observation,
76 80 }
77 81 }
78 82
@@ -705,6 +709,7 @@ impl Render for CalendarView {
705 709 .bg(theme::surface())
706 710 .overflow_hidden()
707 711 .child(self.header(start, span, compact))
712 .children(meeting_proposal_cards(cx))
708 713 .map(|calendar| {
709 714 if span == CalendarSpan::Month {
710 715 calendar.child(month_grid(
@@ -14,6 +14,7 @@ use gpui_kit::*;
14use super::calendar_date_picker::date_picker_button;
14use super::calendar_date_picker::date_picker_button;
15use super::calendar_month::month_grid;
15use super::calendar_month::month_grid;
16use super::join_dialog::open_join_with_id;
16use super::join_dialog::open_join_with_id;
17use super::meeting_proposal_card::meeting_proposal_cards;
17use super::new_meeting_dialog::open_new_meeting;
18use super::new_meeting_dialog::open_new_meeting;
18use super::rsvp_menu::rsvp_menu;
19use super::rsvp_menu::rsvp_menu;
19use super::scroll_edge::scroll_offset;
20use super::scroll_edge::scroll_offset;
@@ -59,11 +60,13 @@ pub struct CalendarView {
59 skip_manual_check: bool,
60 skip_manual_check: bool,
60 clock_running: bool,
61 clock_running: bool,
61 _observation: Subscription,
62 _observation: Subscription,
63 _agent_observation: Option<Subscription>,
62}
64}
63
65
64impl CalendarView {
66impl CalendarView {
65 pub fn new(state: Entity<AppState>, cx: &mut Context<Self>) -> Self {
67 pub fn new(state: Entity<AppState>, cx: &mut Context<Self>) -> Self {
66 let observation = cx.observe(&state, |_, _, cx| cx.notify());
68 let observation = cx.observe(&state, |_, _, cx| cx.notify());
69 let agent_observation = crate::agent_api::handle(cx).map(|api| cx.observe(&api, |_, _, cx| cx.notify()));
67 CalendarView {
70 CalendarView {
68 state,
71 state,
69 scroll: ScrollHandle::new(),
72 scroll: ScrollHandle::new(),
@@ -73,6 +76,7 @@ impl CalendarView {
73 skip_manual_check: false,
76 skip_manual_check: false,
74 clock_running: false,
77 clock_running: false,
75 _observation: observation,
78 _observation: observation,
79 _agent_observation: agent_observation,
76 }
80 }
77 }
81 }
78
82
@@ -705,6 +709,7 @@ impl Render for CalendarView {
705 .bg(theme::surface())
709 .bg(theme::surface())
706 .overflow_hidden()
710 .overflow_hidden()
707 .child(self.header(start, span, compact))
711 .child(self.header(start, span, compact))
712 .children(meeting_proposal_cards(cx))
708 .map(|calendar| {
713 .map(|calendar| {
709 if span == CalendarSpan::Month {
714 if span == CalendarSpan::Month {
710 calendar.child(month_grid(
715 calendar.child(month_grid(
crates/app/src/views/customize_reactions.rs +2 −3
@@ -12,7 +12,6 @@ use gpui_kit::*;
12 12
13 13 use super::reaction_picker::ReactionPicker;
14 14 use super::widgets::{Corner, corner_badge, icon};
15 use crate::i18n::tr;
16 15 use crate::app_state::AppState;
17 16 use crate::default_reactions::{
18 17 filled, place_in_slot, quick_reaction_glyphs, reaction_id_for_glyph, slots_for,
@@ -253,13 +252,13 @@ pub fn open_customize_reactions(state: Entity<AppState>, window: &mut Window, cx
253 252 let footer = DialogFooter::new()
254 253 .child(
255 254 Button::new("customize-reactions-cancel")
256 .label(tr("common.cancel"))
255 .label("Cancel")
257 256 .on_click(|_, window, cx| window.close_dialog(cx)),
258 257 )
259 258 .child(
260 259 Button::new("customize-reactions-save")
261 260 .primary()
262 .label(tr("common.save"))
261 .label("Save")
263 262 .disabled(unchanged)
264 263 .on_click(move |_, window, cx| {
265 264 submit_form.update(cx, |form, cx| form.save(window, cx));
@@ -12,7 +12,6 @@ use gpui_kit::*;
12
12
13use super::reaction_picker::ReactionPicker;
13use super::reaction_picker::ReactionPicker;
14use super::widgets::{Corner, corner_badge, icon};
14use super::widgets::{Corner, corner_badge, icon};
15use crate::i18n::tr;
16use crate::app_state::AppState;
15use crate::app_state::AppState;
17use crate::default_reactions::{
16use crate::default_reactions::{
18 filled, place_in_slot, quick_reaction_glyphs, reaction_id_for_glyph, slots_for,
17 filled, place_in_slot, quick_reaction_glyphs, reaction_id_for_glyph, slots_for,
@@ -253,13 +252,13 @@ pub fn open_customize_reactions(state: Entity<AppState>, window: &mut Window, cx
253 let footer = DialogFooter::new()
252 let footer = DialogFooter::new()
254 .child(
253 .child(
255 Button::new("customize-reactions-cancel")
254 Button::new("customize-reactions-cancel")
256 .label(tr("common.cancel"))
255 .label("Cancel")
257 .on_click(|_, window, cx| window.close_dialog(cx)),
256 .on_click(|_, window, cx| window.close_dialog(cx)),
258 )
257 )
259 .child(
258 .child(
260 Button::new("customize-reactions-save")
259 Button::new("customize-reactions-save")
261 .primary()
260 .primary()
262 .label(tr("common.save"))
261 .label("Save")
263 .disabled(unchanged)
262 .disabled(unchanged)
264 .on_click(move |_, window, cx| {
263 .on_click(move |_, window, cx| {
265 submit_form.update(cx, |form, cx| form.save(window, cx));
264 submit_form.update(cx, |form, cx| form.save(window, cx));