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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
chore(View Components): Rename base class to `ApplicationComponent`
Kabiru Mwenjad11800427cc4
diff --git a/app/components/rails_component.rb b/app/components/application_component.rbsimilarity index 97%rename from app/components/rails_component.rbrename to app/components/application_component.rbindex fe49cecf32e..74c860c1266 100644--- a/app/components/rails_component.rb+++ b/app/components/application_component.rb@@ -28,7 +28,7 @@# See COPYRIGHT and LICENSE files for more details.#++-class RailsComponent < ViewComponent::Base+class ApplicationComponent < ViewComponent::Baseattr_reader :model, :optionsdef initialize(model = nil, **options)diff --git a/app/components/components/on_off_status_component.rb b/app/components/components/on_off_status_component.rbindex 5b6fd051afa..20b56fac14b 100644--- a/app/components/components/on_off_status_component.rb+++ b/app/components/components/on_off_status_component.rb@@ -31,7 +31,7 @@module Components### A language switch and text area for updating a localized text setting.- class OnOffStatusComponent < ::RailsComponent+ class OnOffStatusComponent < ::ApplicationComponentoptions :on_textoptions :on_descriptionoptions :off_textdiff --git a/app/components/individual_principal_base_filter_component.rb b/app/components/individual_principal_base_filter_component.rbindex 559e8e3c029..c8b80f07256 100644--- a/app/components/individual_principal_base_filter_component.rb+++ b/app/components/individual_principal_base_filter_component.rb@@ -28,7 +28,7 @@# See COPYRIGHT and LICENSE files for more details.#++-class IndividualPrincipalBaseFilterComponent < RailsComponent+class IndividualPrincipalBaseFilterComponent < ApplicationComponentclass << selfdef query(params)q = base_query.newdiff --git a/app/components/members/role_form_component.rb b/app/components/members/role_form_component.rbindex 81d63245359..c0c7a15666f 100644--- a/app/components/members/role_form_component.rb+++ b/app/components/members/role_form_component.rb@@ -29,7 +29,7 @@#++module Members- class RoleFormComponent < ::RailsComponent+ class RoleFormComponent < ::ApplicationComponentoptions :row, :params, :rolesdef memberdiff --git a/app/components/row_component.rb b/app/components/row_component.rbindex af30516b38d..d5578daa524 100644--- a/app/components/row_component.rb+++ b/app/components/row_component.rb@@ -30,7 +30,7 @@### Abstract view component. Subclass this for a concrete table row.-class RowComponent < RailsComponent+class RowComponent < ApplicationComponentattr_reader :tabledef initialize(row:, table:, **options)diff --git a/app/components/settings/numeric_setting_component.rb b/app/components/settings/numeric_setting_component.rbindex 4658e00012f..09ba3da0a4f 100644--- a/app/components/settings/numeric_setting_component.rb+++ b/app/components/settings/numeric_setting_component.rb@@ -31,7 +31,7 @@module Settings### A text field to enter numeric values.- class NumericSettingComponent < ::RailsComponent+ class NumericSettingComponent < ::ApplicationComponentoptions :unit, :titleoptions size: 3diff --git a/app/components/settings/text_setting_component.rb b/app/components/settings/text_setting_component.rbindex a49c3723b4e..05efe5c2f0f 100644--- a/app/components/settings/text_setting_component.rb+++ b/app/components/settings/text_setting_component.rb@@ -31,7 +31,7 @@module Settings### A language switch and text area for updating a localized text setting.- class TextSettingComponent < ::RailsComponent+ class TextSettingComponent < ::ApplicationComponentinclude OpenProject::FormTagHelperoptions :name # name of setting and tag to differentiate between different language selectsdiff --git a/app/components/settings/time_zone_setting_component.rb b/app/components/settings/time_zone_setting_component.rbindex c38027834c9..fe052d702bf 100644--- a/app/components/settings/time_zone_setting_component.rb+++ b/app/components/settings/time_zone_setting_component.rb@@ -31,7 +31,7 @@module Settings### A text field to enter numeric values.- class TimeZoneSettingComponent < ::RailsComponent+ class TimeZoneSettingComponent < ::ApplicationComponentoptions :form, :titleoptions container_class: "-wide"options include_blank: truediff --git a/app/components/table_component.rb b/app/components/table_component.rbindex 3f0cc4392cb..b1052e5775d 100644--- a/app/components/table_component.rb+++ b/app/components/table_component.rb@@ -30,7 +30,7 @@### Abstract view component. Subclass this for a concrete table.-class TableComponent < RailsComponent+class TableComponent < ApplicationComponentdef initialize(rows: [], **options)super(rows, **options)enddiff --git a/modules/webhooks/app/components/webhooks/outgoing/deliveries/response_component.rb b/modules/webhooks/app/components/webhooks/outgoing/deliveries/response_component.rbindex ed12c33b4f4..36b3b2259a1 100644--- a/modules/webhooks/app/components/webhooks/outgoing/deliveries/response_component.rb+++ b/modules/webhooks/app/components/webhooks/outgoing/deliveries/response_component.rb@@ -1,7 +1,7 @@module ::Webhooksmodule Outgoingmodule Deliveries- class ResponseComponent < RailsComponent+ class ResponseComponent < ApplicationComponentproperty :idproperty :response_headersproperty :response_body