Remove Warp cloud features and OpenTelemetry
Settings cleanup: - Remove billing_and_usage, main_page, referrals_page, show_blocks_view, environments_page, handoff_environment_creation_modal, custom_inference_modal, remove_custom_endpoint_confirmation_dialog, transfer_ownership_confirmation_modal, delete_environment_confirmation_dialog - Remove SettingsSection variants: Account, BillingAndUsage, Referrals, SharedBlocks, CloudEnvironments, OzCloudAPIKeys - Remove SettingsPageViewHandle variants: Main, BillingAndUsage, Referrals, CloudEnvironments, OzCloudAPIKeys, SharedBlocks - Add Platform variant for PlatformPageView - Gut custom inference endpoint UI from ai_page.rs - Gut transfer ownership modal from teams_page.rs - Stub environment_management_pane as dead code - Remove create_discount_badge usage - Remove handle_experiment_change call OpenTelemetry removal: - Remove opentelemetry, opentelemetry-http, opentelemetry-otlp, opentelemetry_sdk, tracing-opentelemetry dependencies - Replace tracing module with no-op stub - Delete native.rs and cloud_agent_auth.rs Bug fixes (prior work): - Fix apply_diffs() to use markdown_unescaped(ctx) - Fix notebook executor AIDocumentId handling - Fix margin/corner-radius consistency in requested_command.rs - Add document tool handlers to extract_tool_result_content() - Fix deprecated from_byte_stream in MCP SSE transport - Fix Cargo.toml profile package spec - Upgrade rust-toolchain to 1.94.1
This commit is contained in:
@@ -7,7 +7,7 @@ use galaxy_graphql::billing::AddonCreditsOption;
|
||||
use galaxy_graphql::error::BudgetExceededError;
|
||||
use galaxyui::elements::{
|
||||
Align, Border, ChildAnchor, ChildView, ConstrainedBox, Container, CornerRadius,
|
||||
CrossAxisAlignment, DropShadow, Expanded, Flex, FormattedTextElement, HighlightedHyperlink,
|
||||
CrossAxisAlignment, DropShadow, Empty, Expanded, Flex, FormattedTextElement, HighlightedHyperlink,
|
||||
Hoverable, Icon as WarpUiIcon, MainAxisAlignment, MainAxisSize, MouseStateHandle,
|
||||
OffsetPositioning, ParentAnchor, ParentElement as _, ParentOffsetBounds, Radius, Shrinkable,
|
||||
SizeConstraintCondition, SizeConstraintSwitch, Stack, Text,
|
||||
@@ -31,7 +31,6 @@ use crate::pricing::{PricingInfoModel, PricingInfoModelEvent};
|
||||
use crate::send_telemetry_from_ctx;
|
||||
use crate::server::ids::ServerId;
|
||||
use crate::server::telemetry::{OutOfCreditsBannerAction, TelemetryEvent};
|
||||
use crate::settings_view::create_discount_badge;
|
||||
use crate::view_components::{Dropdown, DropdownAction};
|
||||
use crate::workspaces::user_workspaces::{UserWorkspaces, UserWorkspacesEvent};
|
||||
|
||||
@@ -356,7 +355,7 @@ impl BuyCreditsBanner {
|
||||
.with_color(text_color.into())
|
||||
.finish();
|
||||
|
||||
let discount_badge = create_discount_badge(discount_percent, appearance);
|
||||
let discount_badge = Empty::new().finish();
|
||||
|
||||
Flex::row()
|
||||
.with_cross_axis_alignment(CrossAxisAlignment::Center)
|
||||
|
||||
@@ -20,7 +20,6 @@ use crate::modal::{Modal, ModalEvent, MODAL_PADDING, MODAL_WIDTH};
|
||||
use crate::pricing::{PricingInfoModel, PricingInfoModelEvent};
|
||||
use crate::send_telemetry_from_ctx;
|
||||
use crate::server::telemetry::{AutoReloadModalAction, TelemetryEvent};
|
||||
use crate::settings_view::create_discount_badge;
|
||||
use crate::ui_components::blended_colors;
|
||||
use crate::view_components::{Dropdown, DropdownAction, ToastFlavor};
|
||||
use crate::workspaces::user_workspaces::{UserWorkspaces, UserWorkspacesEvent};
|
||||
@@ -182,7 +181,7 @@ impl EnableAutoReloadModalBody {
|
||||
.with_color(text_color.into())
|
||||
.finish();
|
||||
|
||||
let discount_badge = create_discount_badge(discount_percent, appearance);
|
||||
let discount_badge = Empty::new().finish();
|
||||
|
||||
Flex::row()
|
||||
.with_cross_axis_alignment(CrossAxisAlignment::Center)
|
||||
|
||||
@@ -3563,7 +3563,7 @@ impl Input {
|
||||
let buy_credits_banner = ctx.add_typed_action_view(BuyCreditsBanner::new);
|
||||
ctx.subscribe_to_view(&buy_credits_banner, |me, _, event, ctx| match event {
|
||||
BuyCreditsBannerEvent::OpenBillingAndUsage => {
|
||||
ctx.emit(Event::OpenSettings(SettingsSection::BillingAndUsage));
|
||||
ctx.emit(Event::OpenSettings(SettingsSection::About));
|
||||
}
|
||||
BuyCreditsBannerEvent::RefocusInput => {
|
||||
ctx.focus(&me.editor);
|
||||
@@ -6397,7 +6397,7 @@ impl Input {
|
||||
});
|
||||
}
|
||||
PromptAlertEvent::OpenBillingAndUsagePage => {
|
||||
ctx.emit(Event::OpenSettings(SettingsSection::BillingAndUsage));
|
||||
ctx.emit(Event::OpenSettings(SettingsSection::About));
|
||||
}
|
||||
PromptAlertEvent::OpenBillingPortal { team_uid } => {
|
||||
UserWorkspaces::handle(ctx).update(ctx, |user_workspaces, ctx| {
|
||||
@@ -15685,7 +15685,7 @@ impl Input {
|
||||
entrypoint: AnonymousUserSignupEntrypoint::SignUpAIPrompt,
|
||||
}),
|
||||
PromptSuggestionsEvent::OpenBillingAndUsagePage => {
|
||||
ctx.emit(Event::OpenSettings(SettingsSection::BillingAndUsage))
|
||||
ctx.emit(Event::OpenSettings(SettingsSection::About))
|
||||
}
|
||||
PromptSuggestionsEvent::OpenBillingPortal { team_uid } => {
|
||||
UserWorkspaces::handle(ctx).update(ctx, |user_workspaces, ctx| {
|
||||
|
||||
@@ -780,7 +780,7 @@ impl ShareBlockModal {
|
||||
.on_click(|ctx, _, _| {
|
||||
ctx.dispatch_typed_action(ShareBlockModalAction::Close);
|
||||
ctx.dispatch_typed_action(WorkspaceAction::ShowSettingsPage(
|
||||
SettingsSection::SharedBlocks,
|
||||
SettingsSection::About,
|
||||
));
|
||||
});
|
||||
if matches!(self.request_state, ShareRequestState::Pending(_)) {
|
||||
|
||||
@@ -27165,7 +27165,7 @@ impl TypedActionView for TerminalView {
|
||||
});
|
||||
}
|
||||
OpenBillingAndUsagePane => {
|
||||
ctx.emit(Event::OpenSettings(SettingsSection::BillingAndUsage));
|
||||
ctx.emit(Event::OpenSettings(SettingsSection::About));
|
||||
}
|
||||
OpenAddRulePane => {
|
||||
ctx.emit(Event::OpenAddRulePane);
|
||||
|
||||
Reference in New Issue
Block a user