Fix cursor focus and selection in input box, add AWS env var warning box, and remove AWS Bedrock login banner
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use enclose::enclose;
|
||||
use itertools::Itertools as _;
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_core::ui::Icon;
|
||||
use galaxy_graphql::billing::AddonCreditsOption;
|
||||
@@ -20,6 +16,10 @@ use galaxyui::fonts::Weight;
|
||||
use galaxyui::ui_components::button::ButtonVariant;
|
||||
use galaxyui::ui_components::components::{Coords, UiComponent as _, UiComponentStyles};
|
||||
use galaxyui::{AppContext, Element, Entity, SingletonEntity as _, View, ViewContext, ViewHandle};
|
||||
use itertools::Itertools as _;
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
use crate::ai::request_usage_model::{
|
||||
AIRequestUsageModel, AIRequestUsageModelEvent, BuyCreditsBannerDisplayState,
|
||||
@@ -213,14 +213,14 @@ impl BuyCreditsBanner {
|
||||
ctx.notify();
|
||||
}
|
||||
}
|
||||
UserWorkspacesEvent::UpdateWorkspaceSettingsRejected(_) => {
|
||||
if self.banner_auto_reload_update_in_flight {
|
||||
self.banner_auto_reload_update_in_flight = false;
|
||||
ctx.emit(BuyCreditsBannerEvent::ShowAutoReloadError {
|
||||
error_message: "Failed to enable auto-reload for your team. Please try again in Settings > Billing and Usage.",
|
||||
});
|
||||
ctx.notify();
|
||||
}
|
||||
UserWorkspacesEvent::UpdateWorkspaceSettingsRejected(_)
|
||||
if self.banner_auto_reload_update_in_flight =>
|
||||
{
|
||||
self.banner_auto_reload_update_in_flight = false;
|
||||
ctx.emit(BuyCreditsBannerEvent::ShowAutoReloadError {
|
||||
error_message: "Failed to enable auto-reload for your team. Please try again in Settings > Billing and Usage.",
|
||||
});
|
||||
ctx.notify();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user