feat: rename Application Solutions to Agentic Apps in docs, UI, and codebase

This commit is contained in:
mik-tf
2025-09-08 11:43:53 -04:00
parent 2ddd538941
commit bfc24070d7
14 changed files with 46 additions and 46 deletions

View File

@@ -79,8 +79,8 @@ impl DashboardController {
Some(user)
}
/// Helper function to count deployments across all users for a specific app provider
fn count_cross_user_deployments(app_provider_email: &str) -> std::collections::HashMap<String, i32> {
/// Helper function to count deployments across all users for a specific application provider
fn count_cross_user_deployments(application_provider_email: &str) -> std::collections::HashMap<String, i32> {
use std::collections::HashMap;
let mut deployment_counts: HashMap<String, i32> = HashMap::new();
@@ -108,8 +108,8 @@ impl DashboardController {
// Count deployments for this app provider's apps
for deployment in &user_data.application_deployments {
// Check if this deployment belongs to an app from our app provider
// We need to get the app provider's apps to match
let provider_apps = UserPersistence::get_user_apps(app_provider_email);
// We need to get the application provider's apps to match
let provider_apps = UserPersistence::get_user_apps(application_provider_email);
for provider_app in &provider_apps {
if deployment.app_id == provider_app.id && deployment.status == "Active" {
@@ -517,7 +517,7 @@ impl DashboardController {
let mut ctx = crate::models::builders::ContextBuilder::new()
.active_page("dashboard")
.build();
ctx.insert("active_section", "app_provider");
ctx.insert("active_section", "application_provider");
let config = get_app_config();
ctx.insert("gitea_enabled", &config.is_gitea_enabled());
@@ -607,7 +607,7 @@ impl DashboardController {
})
.collect();
let app_provider_data = crate::models::user::AppProviderData {
let application_provider_data = crate::models::user::AppProviderData {
published_apps: fresh_apps.len() as i32,
total_deployments: fresh_apps.iter().map(|a| a.deployments).sum::<i32>(),
active_deployments,
@@ -618,7 +618,7 @@ impl DashboardController {
revenue_history: Vec::new(),
};
ctx.insert("app_provider_data", &app_provider_data);
ctx.insert("application_provider_data", &application_provider_data);
} else {
// Ensure template always has a defined structure even without a logged-in user
let empty: crate::models::user::AppProviderData = crate::models::user::AppProviderData {
@@ -631,10 +631,10 @@ impl DashboardController {
deployment_stats: Vec::new(),
revenue_history: Vec::new(),
};
ctx.insert("app_provider_data", &empty);
ctx.insert("application_provider_data", &empty);
}
render_template(&tmpl, "dashboard/app_provider.html", &ctx)
render_template(&tmpl, "dashboard/application_provider.html", &ctx)
}
/// Renders the service provider section of the dashboard
@@ -2936,7 +2936,7 @@ impl DashboardController {
}
}).collect();
let app_provider_data = crate::models::user::AppProviderData {
let application_provider_data = crate::models::user::AppProviderData {
apps: fresh_apps.clone(),
published_apps: fresh_apps.len() as i32,
total_deployments,
@@ -2947,7 +2947,7 @@ impl DashboardController {
revenue_history: Vec::new(),
};
return Ok(ResponseBuilder::ok().json(app_provider_data).build());
return Ok(ResponseBuilder::ok().json(application_provider_data).build());
} else {
}