feat: rename app provider to application provider across codebase and update terminology
This commit is contained in:
@@ -106,7 +106,7 @@ impl DashboardController {
|
||||
if let Ok(content) = std::fs::read_to_string(&file_path) {
|
||||
if let Ok(user_data) = serde_json::from_str::<crate::services::user_persistence::UserPersistentData>(&content) {
|
||||
// Count deployments for this app provider's apps
|
||||
for deployment in &user_data.app_deployments {
|
||||
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);
|
||||
@@ -512,8 +512,8 @@ impl DashboardController {
|
||||
render_template(&tmpl, "dashboard/resource_provider.html", &ctx)
|
||||
}
|
||||
|
||||
/// Renders the app provider section of the dashboard
|
||||
pub async fn app_provider_section(tmpl: web::Data<Tera>, session: Session) -> Result<impl Responder> {
|
||||
/// Renders the application provider section of the dashboard
|
||||
pub async fn application_provider_section(tmpl: web::Data<Tera>, session: Session) -> Result<impl Responder> {
|
||||
let mut ctx = crate::models::builders::ContextBuilder::new()
|
||||
.active_page("dashboard")
|
||||
.build();
|
||||
@@ -547,7 +547,7 @@ impl DashboardController {
|
||||
}
|
||||
|
||||
// Load fresh persistent deployments
|
||||
let fresh_deployments = crate::services::user_persistence::UserPersistence::get_user_app_deployments(&email);
|
||||
let fresh_deployments = crate::services::user_persistence::UserPersistence::get_user_application_deployments(&email);
|
||||
|
||||
// Only count deployments for apps published by this user
|
||||
let user_published_app_ids: std::collections::HashSet<String> = fresh_apps.iter().map(|a| a.id.clone()).collect();
|
||||
@@ -2854,8 +2854,8 @@ impl DashboardController {
|
||||
|
||||
|
||||
|
||||
/// API endpoint to return app provider dashboard data as JSON
|
||||
pub async fn app_provider_data_api(session: Session) -> Result<impl Responder> {
|
||||
/// API endpoint to return application provider dashboard data as JSON
|
||||
pub async fn application_provider_data_api(session: Session) -> Result<impl Responder> {
|
||||
|
||||
// Get user email for debugging
|
||||
let user_email = session.get::<String>("user_email")
|
||||
@@ -2875,7 +2875,7 @@ impl DashboardController {
|
||||
}
|
||||
}
|
||||
|
||||
let fresh_deployments = UserPersistence::get_user_app_deployments(&user_email);
|
||||
let fresh_deployments = UserPersistence::get_user_application_deployments(&user_email);
|
||||
|
||||
// Load user persistent data
|
||||
if let Some(user) = Self::load_user_with_persistent_data(&session) {
|
||||
@@ -5311,7 +5311,7 @@ impl DashboardController {
|
||||
};
|
||||
|
||||
// Load user's app deployments
|
||||
let deployments = UserPersistence::get_user_app_deployments(&user_email);
|
||||
let deployments = UserPersistence::get_user_application_deployments(&user_email);
|
||||
|
||||
// Find the specific deployment
|
||||
if let Some(deployment) = deployments.iter().find(|d| d.id == deployment_id) {
|
||||
|
Reference in New Issue
Block a user