Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#47025] Replace Storages cells by ViewComponent

Dombi Attila5b7e7eda9072
diff --git a/modules/storages/app/components/storages/admin/table_component.rb b/modules/storages/app/components/storages/admin/table_component.rb
index 36d29579b99..c4eb1085884 100644
--- a/modules/storages/app/components/storages/admin/table_component.rb
+++ b/modules/storages/app/components/storages/admin/table_component.rb
@@ -37,7 +37,7 @@ module Storages::Admin
# Defines the list of columns in the table using symbols.
# These symbols are used below to define header (top of the table)
- # and contents of the cells
+ # and contents of the components
columns :name, :provider_type, :host, :creator, :created_at
# Default sort order (overwritten by user)
diff --git a/modules/storages/app/components/storages/projects_storages/row_component.rb b/modules/storages/app/components/storages/projects_storages/row_component.rb
index b184786ea28..8603e97657f 100644
--- a/modules/storages/app/components/storages/projects_storages/row_component.rb
+++ b/modules/storages/app/components/storages/projects_storages/row_component.rb
@@ -26,7 +26,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-# Purpose: Defines how to format the cells within a table row of ProjectStorages
+# Purpose: Defines how to format the components within a table row of ProjectStorages
# associated with a project
module Storages::ProjectsStorages
class RowComponent < ::RowComponent
diff --git a/modules/storages/app/controllers/storages/admin/projects_storages_controller.rb b/modules/storages/app/controllers/storages/admin/projects_storages_controller.rb
index d2004070d04..fef7e61e736 100644
--- a/modules/storages/app/controllers/storages/admin/projects_storages_controller.rb
+++ b/modules/storages/app/controllers/storages/admin/projects_storages_controller.rb
@@ -54,7 +54,7 @@ class Storages::Admin::ProjectsStoragesController < Projects::SettingsController
def index
# Just get the list of ProjectStorages associated with the project
@projects_storages = Storages::ProjectStorage.where(project: @project).includes(:storage)
- # Render the list storages using Ruby "cells" in the /app/cell folder which defines
+ # Render the list storages using ViewComponents in the /app/components folder which defines
# the ways rows are rendered in a table layout.
render '/storages/project_settings/index'
end