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
[#51229] Remove feature flags for storage_primer_design and storage_one_drive_integration
Pavel Balashou217605f76a05
diff --git a/modules/storages/app/controllers/storages/admin/oauth_clients_controller.rb b/modules/storages/app/controllers/storages/admin/oauth_clients_controller.rbindex 9dd1a2088f7..de67ad1a96d 100644--- a/modules/storages/app/controllers/storages/admin/oauth_clients_controller.rb+++ b/modules/storages/app/controllers/storages/admin/oauth_clients_controller.rb@@ -70,28 +70,17 @@ class Storages::Admin::OAuthClientsController < ApplicationControllerendservice_result.on_success do- if OpenProject::FeatureDecisions.storage_primer_design_active?- if @storage.provider_type_nextcloud?- prepare_storage_for_automatic_management_form-- respond_to do |format|- format.turbo_stream { render :create }- end- elsif @storage.provider_type_one_drive?- flash[:notice] = I18n.t(:'storages.notice_successful_storage_connection')- redirect_to admin_settings_storages_path- else- raise "Unsupported provider type: #{@storage.short_provider_type}"- end- else- flash[:notice] = I18n.t(:notice_successful_create)+ if @storage.provider_type_nextcloud?+ prepare_storage_for_automatic_management_form- if @storage.provider_type_nextcloud? && @storage.automatic_management_unspecified?- prepare_storage_for_automatic_management_form- redirect_to new_admin_settings_storage_automatically_managed_project_folders_path(@storage)- else- redirect_to edit_admin_settings_storage_path(@storage)+ respond_to do |format|+ format.turbo_stream { render :create }end+ elsif @storage.provider_type_one_drive?+ flash[:notice] = I18n.t(:'storages.notice_successful_storage_connection')+ redirect_to admin_settings_storages_path+ else+ raise "Unsupported provider type: #{@storage.short_provider_type}"endendenddiff --git a/modules/storages/app/controllers/storages/admin/storages_controller.rb b/modules/storages/app/controllers/storages/admin/storages_controller.rbindex 7127d497115..d762eee0860 100644--- a/modules/storages/app/controllers/storages/admin/storages_controller.rb+++ b/modules/storages/app/controllers/storages/admin/storages_controller.rb@@ -65,10 +65,9 @@ class Storages::Admin::StoragesController < ApplicationController# Set default parameters using a "service".# See also: storages/services/storages/storages/set_attributes_services.rb# That service inherits from ::BaseServices::SetAttributes- model_class = OpenProject::FeatureDecisions.storage_primer_design_active? ? Storages::Storage : Storages::NextcloudStorage@storage = ::Storages::Storages::SetAttributesService.new(user: current_user,- model: model_class.new,+ model: Storages::Storage.new,contract_class: EmptyContract).call.result@@ -105,32 +104,13 @@ class Storages::Admin::StoragesController < ApplicationController@oauth_application = oauth_application(service_result)service_result.on_failure do- if OpenProject::FeatureDecisions.storage_primer_design_active?- respond_to do |format|- format.turbo_stream { render :select_provider }- end- else- render :new+ respond_to do |format|+ format.turbo_stream { render :select_provider }endendservice_result.on_success do- if OpenProject::FeatureDecisions.storage_primer_design_active?- respond_to { |format| format.turbo_stream }- else- case @storage.provider_type- when ::Storages::Storage::PROVIDER_TYPE_ONE_DRIVE- flash.now[:notice] = I18n.t(:notice_successful_create)- render '/storages/admin/storages/one_drive/edit'- when ::Storages::Storage::PROVIDER_TYPE_NEXTCLOUD- if @oauth_application.present?- flash.now[:notice] = I18n.t(:notice_successful_create)- render :show_oauth_application- end- else- raise "Unknown provider type: #{storage_params['provider_type']}"- end- end+ respond_to { |format| format.turbo_stream }endenddiff --git a/modules/storages/app/views/storages/admin/storages/automatically_managed_project_folders/edit.html.erb b/modules/storages/app/views/storages/admin/storages/automatically_managed_project_folders/edit.html.erbindex a2d761da78b..d63129b204f 100644--- a/modules/storages/app/views/storages/admin/storages/automatically_managed_project_folders/edit.html.erb+++ b/modules/storages/app/views/storages/admin/storages/automatically_managed_project_folders/edit.html.erb@@ -29,85 +29,4 @@ See COPYRIGHT and LICENSE files for more details.<% html_title t(:label_administration), t("project_module_storages"), @storage.name, t("storages.page_titles.managed_project_folders.title") %>-<% if OpenProject::FeatureDecisions.storage_primer_design_active? %>- <%=- render(Storages::Admin::StorageViewComponent.new(@storage, automatically_managed_project_folders_section_open: true))- %>-<% else %>- <% local_assigns[:additional_breadcrumb] = [- link_to(@storage.name, edit_admin_settings_storage_path(@storage)),- t("storages.label_managed_project_folders_breadcrumb")- ] %>- <%= toolbar title: t("storages.page_titles.managed_project_folders.title"),- subtitle: t("storages.page_titles.managed_project_folders.subtitle")- %>-- <%= error_messages_for @storage %>-- <%= labelled_tabular_form_for @storage, url: admin_settings_storage_automatically_managed_project_folders_path(@storage),- method: :patch,- data: {- controller: "storages--automatically-managed-project-folders-form",- 'application-target': "dynamic",- 'storages--automatically-managed-project-folders-form-is-automatically-managed-value': @storage.automatically_managed?,- } do |f| -%>- <div class="form--field -required">- <%= styled_label_tag :automatically_managed, class: "-bold -flex" do %>- <%= t(:"storages.label_managed_project_folders.automatically_managed_folders") %>- <% end %>-- <div class="form--field-container -horizontal">- <label class="form--field-inline-buttons-container">- <%= angular_component_tag 'spot-switch',- inputs: {- id: "storages_#{@storage.short_provider_type}_storage_automatically_managed",- name: "storages_#{@storage.short_provider_type}_storage[automatically_managed]",- checked: @storage.automatically_managed?,- },- data: {- action: 'change->storages--automatically-managed-project-folders-form#updateDisplay',- }- %>- </label>- </div>- </div>-- <div class="form--field -required"- data-storages--automatically-managed-project-folders-form-target="applicationPasswordInput">- <label class="form--label -bold"> <%= t(:"storages.label_managed_project_folders.application_password") %> </label>- <div class="form--field-container -horizontal">- <%= f.text_field :password,- container_class: "-middle",- no_label: true,- value: nil, # IMPORTANT: We don't want to show the password in the form- placeholder: @storage.password.present? ? "●●●●●●●●●●●●●●●●" : nil- %>- </div>- <p class="form--field-instructions -xwide">- <%= t(:"storages.instructions.managed_project_folders_application_password") %>- <a- href="<%= Storages::Peripherals::StorageInteraction::Nextcloud::Util- .join_uri_path(@storage.oauth_application.integration.host, 'settings/admin/openproject') %>"- target="_blank"- class="spot-link"- >- <span><%= t("storages.instructions.#{@storage.short_provider_type}.integration") %></span>- </a>- </p>- </div>-- <div class="form--field">- <% case action_name %>- <% when 'new' %>- <%= styled_button_tag t("storages.buttons.done_complete_setup"), class: "-highlight -with-icon icon-checkmark" %>- <% else %>- <%= styled_button_tag t("storages.buttons.save"), class: "-highlight -with-icon icon-checkmark" %>- <% end %>-- <%= link_to edit_admin_settings_storage_path(@storage), class: 'button' do %>- <%= spot_icon('cancel') %>- <%= content_tag :span, t(:button_cancel) %>- <% end %>- </div>- <% end %>-<% end %>+<%= render(Storages::Admin::StorageViewComponent.new(@storage, automatically_managed_project_folders_section_open: true)) %>diff --git a/modules/storages/app/views/storages/admin/storages/edit.html.erb b/modules/storages/app/views/storages/admin/storages/edit.html.erbindex 9bb96fa0c71..3b2937f996d 100644--- a/modules/storages/app/views/storages/admin/storages/edit.html.erb+++ b/modules/storages/app/views/storages/admin/storages/edit.html.erb@@ -30,98 +30,42 @@ See COPYRIGHT and LICENSE files for more details.<% html_title t(:label_administration), t("project_module_storages"), t('label_edit_x', x: @storage.name) %><% local_assigns[:additional_breadcrumb] = @storage.name %>-<% if OpenProject::FeatureDecisions.storage_primer_design_active? %>- <%= render(Primer::OpenProject::PageHeader.new) do |header| %>- <% header.with_title(test_selector: 'storage-name-title') do %>- <%= render OpTurbo::FrameComponent.new(@storage, context: :edit_storage_header) do %>- <%= @storage.name %>- <% end %>- <% end %>-- <% header.with_back_button(href: admin_settings_storages_path, 'aria-label': I18n.t("button_back")) %>-- <% header.with_parent_link(href: admin_settings_storages_path, 'aria-label': I18n.t("button_back")) do %>- <%= t(:project_module_storages) %>- <% end %>-- <% header.with_actions do %>- <%=- primer_form_with(- model: @storage,- url: admin_settings_storage_path(@storage),- method: :delete- ) do |_form|- render(- Primer::Beta::Button.new(- scheme: :danger,- size: :medium,- type: :submit,- aria: { label: I18n.t("storages.label_delete_storage") },- data: { confirm: I18n.t('storages.delete_warning.storage') },- test_selector: 'storage-delete-button'- )- ) do |button|- button.with_leading_visual_icon(icon: :trash)- I18n.t('button_delete')- end- end- %>+<%= render(Primer::OpenProject::PageHeader.new) do |header| %>+ <% header.with_title(test_selector: 'storage-name-title') do %>+ <%= render OpTurbo::FrameComponent.new(@storage, context: :edit_storage_header) do %>+ <%= @storage.name %><% end %><% end %>- <%= render(::Storages::Admin::StorageViewComponent.new(@storage)) %>-<% else %>- <%= toolbar title: t('label_edit_x', x: @storage.name) %>+ <% header.with_back_button(href: admin_settings_storages_path, 'aria-label': I18n.t("button_back")) %>- <%= render(::Storages::Admin::ConfigurationChecksComponent.new(storage: @storage)) %>-- <%= labelled_tabular_form_for @storage, url: admin_settings_storage_path(@storage), as: :storages_storage do |f| -%>- <%= render partial: "storages/admin/storages/#{@storage.short_provider_type}/edit", locals: { f: f } %>- <%= styled_button_tag t(:button_save), class: "-highlight -with-icon icon-checkmark" %>+ <% header.with_parent_link(href: admin_settings_storages_path, 'aria-label': I18n.t("button_back")) do %>+ <%= t(:project_module_storages) %><% end %>- <% if @storage.oauth_application %>- <%= render(AttributeGroups::AttributeGroupComponent.new) do |component| %>- <% component.with_header(title: "OpenProject #{t(:'storages.label_oauth_application_details')}") %>-- <% component.with_attributes([- { key: "OpenProject #{Storages::Admin::LABEL_OAUTH_CLIENT_ID}", value: @storage.oauth_application.uid },- { key: "OpenProject #{Storages::Admin::LABEL_OAUTH_CLIENT_SECRET}", value: "●●●●●●●●●●●●●●●●" },- ]) %>-- <%= link_to(t("storages.buttons.replace_openproject_oauth"),- replace_oauth_application_admin_settings_storage_path(@storage),- method: :delete,- data: { confirm: t(:'storages.confirm_replace_oauth_application') },- class: 'button -with-icon icon-reload') %>- <% end %>- <% end %>-- <%= render partial: "storages/admin/storages/#{@storage.short_provider_type}/oauth_client_section" %>-- <% if @storage.provider_type_nextcloud? %>- <%= render(AttributeGroups::AttributeGroupComponent.new) do |component| %>- <% component.with_header(title: t("storages.page_titles.managed_project_folders.title")) %>-- <% if @storage.automatic_management_unspecified? %>- <%= link_to(t("storages.buttons.configure"), new_admin_settings_storage_automatically_managed_project_folders_path(@storage), class: 'button -with-icon icon-add') %>- <% else %>- <% component.with_attribute(- key: t(:"storages.label_managed_project_folders.automatically_managed_folders"),- value: @storage.automatically_managed? ? t(:"storages.label_active") : t(:"storages.label_inactive")- ) %>-- <% if @storage.automatically_managed? %>- <% component.with_attribute(- key: t(:"storages.label_managed_project_folders.application_password"),- value: "●●●●●●●●●●●●●●●●"- ) %>- <% end %>-- <%= link_to(t("storages.buttons.edit_automatically_managed_project_folders"),- edit_admin_settings_storage_automatically_managed_project_folders_path(@storage),- class: 'button -with-icon icon-edit') %>- <% end %>- <% end %>+ <% header.with_actions do %>+ <%=+ primer_form_with(+ model: @storage,+ url: admin_settings_storage_path(@storage),+ method: :delete+ ) do |_form|+ render(+ Primer::Beta::Button.new(+ scheme: :danger,+ size: :medium,+ type: :submit,+ aria: { label: I18n.t("storages.label_delete_storage") },+ data: { confirm: I18n.t('storages.delete_warning.storage') },+ test_selector: 'storage-delete-button'+ )+ ) do |button|+ button.with_leading_visual_icon(icon: :trash)+ I18n.t('button_delete')+ end+ end+ %><% end %><% end %>++<%= render(::Storages::Admin::StorageViewComponent.new(@storage)) %>diff --git a/modules/storages/app/views/storages/admin/storages/index.html.erb b/modules/storages/app/views/storages/admin/storages/index.html.erbindex eb97aad3343..c435a0ba87e 100644--- a/modules/storages/app/views/storages/admin/storages/index.html.erb+++ b/modules/storages/app/views/storages/admin/storages/index.html.erb@@ -1,50 +1,18 @@<!-- Standard Ruby view, please see the controller for comments --><% html_title t(:label_administration), t("project_module_storages") %>-<% if OpenProject::FeatureDecisions.storage_primer_design_active? %>- <%= render(Primer::OpenProject::PageHeader.new) do |header| %>- <% header.with_title do %>- <%= t("project_module_storages") %>- <% end %>-- <% header.with_description do %>- <%= t("storages.page_titles.file_storages.subtitle") %>- <% end %>-- <% header.with_actions do %>- <%= render(Storages::Admin::NewStorageButtonComponent.new) %>- <% end %>+<%= render(Primer::OpenProject::PageHeader.new) do |header| %>+ <% header.with_title do %>+ <%= t("project_module_storages") %><% end %>- <%= render(::Storages::Admin::StorageListComponent.new(@storages)) %>--<% else %>- <%= toolbar title: t("project_module_storages") do %>- <li class="toolbar-item">- <%= link_to new_admin_settings_storage_path,- { class: 'button -alt-highlight',- aria: { label: t('storages.label_new_storage') },- title: t('storages.label_new_storage') } do %>- <%= op_icon('button--icon icon-add') %>- <span class="button--text"><%= ::Storages::Storage.model_name.human %></span>- <% end %>- </li>+ <% header.with_description do %>+ <%= t("storages.page_titles.file_storages.subtitle") %><% end %>- <div class="op-toast -info -with-bottom-spacing">- <div class="op-toast--content">- <p>- <%= t('repositories.storage.setup_documentation_details') %>- <a- href="<%= ::OpenProject::Static::Links[:storage_docs][:setup][:href] %>"- target="_blank"- class="spot-link"- >- <%= t('repositories.storage.setup_documentation_details_link_text') %>- </a>- </p>- </div>- </div>-- <%= render(::Storages::Admin::TableComponent.new(rows: @storages)) %>+ <% header.with_actions do %>+ <%= render(Storages::Admin::NewStorageButtonComponent.new) %>+ <% end %><% end %>++<%= render(::Storages::Admin::StorageListComponent.new(@storages)) %>diff --git a/modules/storages/app/views/storages/admin/storages/new.html.erb b/modules/storages/app/views/storages/admin/storages/new.html.erbindex a103094a3ff..a99699aad2b 100644--- a/modules/storages/app/views/storages/admin/storages/new.html.erb+++ b/modules/storages/app/views/storages/admin/storages/new.html.erb@@ -1,44 +1,27 @@-<!-- Standard Ruby view, please see the controller for comments -->-<% if OpenProject::FeatureDecisions.storage_primer_design_active? %>- <% html_title t(:label_administration), t("project_module_storages"), t('storages.label_new_file_storage') %>- <% local_assigns[:additional_breadcrumb] = t('storages.label_new_file_storage') %>+<% html_title t(:label_administration), t("project_module_storages"), t('storages.label_new_file_storage') %>+<% local_assigns[:additional_breadcrumb] = t('storages.label_new_file_storage') %>- <%= render(Primer::OpenProject::PageHeader.new) do |header| %>- <% header.with_title(test_selector: 'storage-name-title') do %>- <%= t("storages.label_new_file_storage") %>- <% end %>-- <% header.with_back_button(href: admin_settings_storages_path, 'aria-label': I18n.t("button_back")) %>-- <% header.with_parent_link(href: admin_settings_storages_path, 'aria-label': I18n.t("button_back")) do %>- <%= t(:project_module_storages) %>- <% end %>+<%= render(Primer::OpenProject::PageHeader.new) do |header| %>+ <% header.with_title(test_selector: 'storage-name-title') do %>+ <%= t("storages.label_new_file_storage") %>+ <% end %>- <% header.with_description do %>- <%=- t("storages.instructions.new_storage",- new_storage_link_text: render(- Primer::Beta::Link.new(href: ::OpenProject::Static::Links[:storage_docs][:setup][:href], target: '_blank')- ) { t("storages.instructions.new_storage_link_text") }- ).html_safe- %>- <% end %>+ <% header.with_back_button(href: admin_settings_storages_path, 'aria-label': I18n.t("button_back")) %>+ <% header.with_parent_link(href: admin_settings_storages_path, 'aria-label': I18n.t("button_back")) do %>+ <%= t(:project_module_storages) %><% end %>- <%= render(::Storages::Admin::SelectStorageProviderComponent.new(@storage)) %>-<% else %>- <% html_title t(:label_administration), t("project_module_storages"), t('storages.label_new_storage') %>- <% local_assigns[:additional_breadcrumb] = t('storages.label_new_storage') %>- <%= toolbar title: t("storages.label_new_storage") %>-- <%= labelled_tabular_form_for @storage, url: admin_settings_storages_path(@storage), as: :storages_storage do |f| -%>- <%= render partial: 'new', locals: { f: f } %>- <% if @storage.oauth_client %>- <%= styled_button_tag t(:button_save), class: "-highlight -with-icon icon-checkmark" %>- <% else %>- <%= styled_button_tag t("storages.buttons.save_and_continue_setup"), class: "-highlight -with-icon icon-checkmark" %>- <% end %>- <%= link_to t(:button_cancel), admin_settings_storages_path, class: 'button -with-icon icon-close' %>+ <% header.with_description do %>+ <%=+ t("storages.instructions.new_storage",+ new_storage_link_text: render(+ Primer::Beta::Link.new(href: ::OpenProject::Static::Links[:storage_docs][:setup][:href], target: '_blank')+ ) { t("storages.instructions.new_storage_link_text") }+ ).html_safe+ %><% end %>+<% end %>++<%= render(::Storages::Admin::SelectStorageProviderComponent.new(@storage)) %>diff --git a/modules/storages/app/views/storages/admin/storages/new_oauth_client.html.erb b/modules/storages/app/views/storages/admin/storages/new_oauth_client.html.erbindex 2d2513fabe9..13d13af21f8 100644--- a/modules/storages/app/views/storages/admin/storages/new_oauth_client.html.erb+++ b/modules/storages/app/views/storages/admin/storages/new_oauth_client.html.erb@@ -29,19 +29,8 @@ See COPYRIGHT and LICENSE files for more details.<% html_title t(:label_administration), t("project_module_storages"), @storage.name, "#{t("storages.provider_types.#{@storage.short_provider_type}.name")} #{t("storages.label_oauth_client_details")}" %>-<% if OpenProject::FeatureDecisions.storage_primer_design_active? %>- <%=- render(OpTurbo::FrameComponent.new(id: :storage_oauth_client_section)) do- render(Storages::Admin::Forms::OAuthClientFormComponent.new(oauth_client: @oauth_client, storage: @storage))- end- %>-<% else %>- <% local_assigns[:additional_breadcrumb] = [- link_to(@storage.name, edit_admin_settings_storage_path(@storage)),- t("storages.label_oauth_breadcrumb.#{@storage.short_provider_type}")- ] %>- <%= toolbar title: "#{t("storages.provider_types.#{@storage.short_provider_type}.name")} #{t("storages.label_oauth_client_details")}" %>- <%= labelled_tabular_form_for @oauth_client, url: admin_settings_storage_oauth_client_path do |f| -%>- <%= render partial: "storages/admin/storages/#{@storage.short_provider_type}/oauth_client", locals: { f: f } %>- <% end %>-<% end %>+<%=+ render(OpTurbo::FrameComponent.new(id: :storage_oauth_client_section)) do+ render(Storages::Admin::Forms::OAuthClientFormComponent.new(oauth_client: @oauth_client, storage: @storage))+ end+%>diff --git a/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb b/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erbindex 1d12b121b1a..64026630602 100644--- a/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb+++ b/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb@@ -1,90 +1,3 @@-<% if OpenProject::FeatureDecisions.storage_primer_design_active? %>- <%= render(OpTurbo::FrameComponent.new(id: :storage_openproject_oauth_section)) do %>- <%= render(Storages::Admin::OAuthApplicationInfoCopyComponent.new(oauth_application: @oauth_application, storage: @storage)) %>- <% end %>-<% else %>- <% html_title t(:label_administration), t("project_module_storages"), @storage.name, "#{t("storages.provider_types.#{@storage.short_provider_type}.name")} #{t("storages.label_oauth_application_details")}" %>- <% local_assigns[:additional_breadcrumb] = [- link_to(@storage.name, edit_admin_settings_storage_path(@storage)),- t("storages.label_oauth_breadcrumb.openproject")- ] %>- <%= toolbar title: "OpenProject #{t("storages.label_oauth_application_details")}" %>- <div class="op-toast -warning">- <div class="op-toast--content">- <p class="-with-inline-links">- <%= t('repositories.storage.oauth_application_details') %>- <a- href="<%= File.join(@oauth_application.integration.host, 'settings/admin/openproject') %>"- target="_blank"- class="spot-link"- >- <span class="spot-icon spot-icon_arrow-right3"></span>- <span><%= t('repositories.storage.oauth_application_details_link_text') %></span>- </a>- </p>- </div>- </div>- <%= labelled_tabular_form_for @oauth_application, url: '/' do |f| -%>- <fieldset class="form--fieldset">- <div class="form--field">- <label class="form--label"><%= Storages::Admin::LABEL_OAUTH_CLIENT_ID %></label>- <div class="form--field-container">- <div class="form--text-field-container -wide">- <%= text_field_tag(- :uid,- @oauth_application.uid,- {- size: 40,- readonly: true,- id: 'client_id'- }- ) %>- </div>- <div class="form--field-affix">- <% csp_onclick('this.focus(); this.select();', '#client_id') %>- <copy-to-clipboard click-target=".client-id-copy-button"- clipboard-target="#client_id">- </copy-to-clipboard>- <button class="client-id-copy-button button -without-button-styling"- title="<%= t(:button_copy_to_clipboard) %>">- <%= op_icon('icon-copy') %>- <span class="hidden-for-sighted"><%= t(:button_copy_to_clipboard) %></span>- </button>- </div>- </div>- </div>- <div class="form--field">- <label class="form--label"><%= Storages::Admin::LABEL_OAUTH_CLIENT_SECRET %></label>- <div class="form--field-container">- <div class="form--text-field-container -wide">- <%= text_field_tag(- :plaintext_secret,- @oauth_application.plaintext_secret,- {- size: 40,- readonly: true,- id: 'secret'- }- ) %>- </div>- <div class="form--field-affix">- <% csp_onclick('this.focus(); this.select();', '#secret') %>- <copy-to-clipboard click-target=".secret-copy-button"- clipboard-target="#secret">- </copy-to-clipboard>- <button class="secret-copy-button button -without-button-styling"- title="<%= t(:button_copy_to_clipboard) %>">- <%= op_icon('icon-copy') %>- <span class="hidden-for-sighted"><%= t(:button_copy_to_clipboard) %></span>- </button>- </div>- </div>- </div>- </fieldset>- <% if @storage.oauth_client %>- <%= link_to t("storages.buttons.done_continue_setup"), edit_admin_settings_storage_path(@storage), class: "-highlight -with-icon icon-checkmark button" %>- <% else %>- <%= link_to t("storages.buttons.done_continue_setup"), new_admin_settings_storage_oauth_client_path(@storage), class: "-highlight -with-icon icon-checkmark button" %>- <% end %>- <% end %>+<%= render(OpTurbo::FrameComponent.new(id: :storage_openproject_oauth_section)) do %>+ <%= render(Storages::Admin::OAuthApplicationInfoCopyComponent.new(oauth_application: @oauth_application, storage: @storage)) %><% end %>diff --git a/modules/storages/lib/open_project/storages/engine.rb b/modules/storages/lib/open_project/storages/engine.rbindex 4d197986ef4..ce3cbecd90b 100644--- a/modules/storages/lib/open_project/storages/engine.rb+++ b/modules/storages/lib/open_project/storages/engine.rb@@ -46,8 +46,6 @@ module OpenProject::Storagesinitializer 'openproject_storages.feature_decisions' doOpenProject::FeatureDecisions.add :storage_file_picking_select_all- OpenProject::FeatureDecisions.add :storage_one_drive_integration- OpenProject::FeatureDecisions.add :storage_primer_designendinitializer 'openproject_storages.event_subscriptions' dodiff --git a/modules/storages/spec/features/admin_storages_spec.rb b/modules/storages/spec/features/admin_storages_spec.rbindex d9545aaf3a2..6a28c767276 100644--- a/modules/storages/spec/features/admin_storages_spec.rb+++ b/modules/storages/spec/features/admin_storages_spec.rb@@ -38,7 +38,7 @@ RSpec.describe 'Admin storages',before { login_as admin }- describe 'File storages list', with_flag: { storage_primer_design: true } do+ describe 'File storages list' docontext 'with storages' dolet(:complete_storage) { create(:nextcloud_storage_with_local_connection) }let(:incomplete_storage) { create(:nextcloud_storage) }@@ -89,7 +89,7 @@ RSpec.describe 'Admin storages',endend- describe 'New file storage', with_flag: { storage_primer_design: true } do+ describe 'New file storage' docontext 'with Nextcloud Storage' dolet(:secret) { 'awesome_secret' }@@ -290,7 +290,7 @@ RSpec.describe 'Admin storages',endend- describe 'File storage edit view', with_flag: { storage_primer_design: true } do+ describe 'File storage edit view' doit 'renders a delete button' dostorage = create(:nextcloud_storage, name: "Foo Nextcloud")visit edit_admin_settings_storage_path(storage)