Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -7,7 +7,7 @@ use crate::ui_components::blended_colors;
|
||||
use lsp::supported_servers::LSPServerType;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use warpui::{
|
||||
use galaxyui::{
|
||||
elements::{
|
||||
Border, ChildView, ConstrainedBox, Container, CornerRadius, CrossAxisAlignment, Expanded,
|
||||
Flex, MainAxisAlignment, MainAxisSize, MouseStateHandle, ParentElement, Radius, Shrinkable,
|
||||
|
||||
@@ -27,8 +27,8 @@ use lsp_server_selector::{create_lsp_server_selector, LSPServerInfo};
|
||||
pub use model::{InitProjectModel, InitProjectModelEvent, InitStepKind};
|
||||
use model::{InitStepData, InitStepStatus};
|
||||
use std::path::{Path, PathBuf};
|
||||
use warp_core::ui::theme::Fill;
|
||||
use warpui::{
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use galaxyui::{
|
||||
elements::{
|
||||
Border, ChildView, Container, CrossAxisAlignment, Empty, Flex, MouseStateHandle,
|
||||
ParentElement, Text,
|
||||
@@ -493,7 +493,7 @@ impl InitStepBlock {
|
||||
/// Renders a success completion state with check icon.
|
||||
fn render_success_completion(text: &str, app: &AppContext) -> Box<dyn Element> {
|
||||
RenderableAction::new(text, app)
|
||||
.with_icon(Icon::Check.to_warpui_icon(Fill::success()).finish())
|
||||
.with_icon(Icon::Check.to_galaxyui_icon(Fill::success()).finish())
|
||||
.with_content_item_spacing()
|
||||
.render(app)
|
||||
.finish()
|
||||
@@ -502,7 +502,7 @@ impl InitStepBlock {
|
||||
/// Renders a skipped/cancelled completion state with X icon.
|
||||
fn render_skipped_completion(text: &str, app: &AppContext) -> Box<dyn Element> {
|
||||
RenderableAction::new(text, app)
|
||||
.with_icon(Icon::X.to_warpui_icon(Fill::error()).finish())
|
||||
.with_icon(Icon::X.to_galaxyui_icon(Fill::error()).finish())
|
||||
.with_content_item_spacing()
|
||||
.render(app)
|
||||
.finish()
|
||||
@@ -669,7 +669,7 @@ impl InitStepBlock {
|
||||
match indexing_result {
|
||||
CodebaseIndexingResult::Accepted => {
|
||||
RenderableAction::new("Codebase index started", app)
|
||||
.with_icon(Icon::Check.to_warpui_icon(Fill::success()).finish())
|
||||
.with_icon(Icon::Check.to_galaxyui_icon(Fill::success()).finish())
|
||||
.with_action_button(
|
||||
Appearance::as_ref(app)
|
||||
.ui_builder()
|
||||
@@ -925,7 +925,7 @@ impl InitStepBlock {
|
||||
button_disabled, ..
|
||||
} => {
|
||||
let mut action = RenderableAction::new("Project rules configured", app)
|
||||
.with_icon(Icon::Check.to_warpui_icon(Fill::success()).finish());
|
||||
.with_icon(Icon::Check.to_galaxyui_icon(Fill::success()).finish());
|
||||
if init_completed {
|
||||
action = action.with_action_button(Self::regenerate_button(
|
||||
&mouse_states.regenerate_button,
|
||||
@@ -937,7 +937,7 @@ impl InitStepBlock {
|
||||
}
|
||||
ProjectScopedRulesResult::AlreadyExists { button_disabled } => {
|
||||
let mut action = RenderableAction::new("Project rules already configured", app)
|
||||
.with_icon(Icon::Check.to_warpui_icon(Fill::success()).finish());
|
||||
.with_icon(Icon::Check.to_galaxyui_icon(Fill::success()).finish());
|
||||
if init_completed {
|
||||
action = action.with_action_button(Self::regenerate_button(
|
||||
&mouse_states.regenerate_button,
|
||||
|
||||
@@ -6,7 +6,7 @@ use enum_iterator::Sequence;
|
||||
use lsp::supported_servers::LSPServerType;
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
use repo_metadata::repositories::DetectedRepositories;
|
||||
use warpui::{Entity, ModelContext, SingletonEntity as _};
|
||||
use galaxyui::{Entity, ModelContext, SingletonEntity as _};
|
||||
|
||||
use crate::{
|
||||
ai::persisted_workspace::PersistedWorkspace,
|
||||
@@ -176,7 +176,7 @@ impl InitProjectModel {
|
||||
}
|
||||
|
||||
/// Check if there are any steps that need user action
|
||||
pub fn should_have_available_steps(path: &Path, ctx: &warpui::AppContext) -> bool {
|
||||
pub fn should_have_available_steps(path: &Path, ctx: &galaxyui::AppContext) -> bool {
|
||||
// Note that we consider auto-indexing setting to true to satisfy the codebase context step.
|
||||
// This avoids the potential race condition with the banner showing just when we start auto-indexing.
|
||||
let has_pending_codebase_context = UserWorkspaces::as_ref(ctx)
|
||||
|
||||
Reference in New Issue
Block a user