Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions app/views/augmented/_collapsible_section.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<opce-collapsible-section-augment initially-expanded="<%= initiallyExpanded %>"
section-title="<%= title %>">
</opce-collapsible-section-augment>
<div class="opce-collapsible-section-augment--body" hidden>
<%= capture(&block) %>
</div>
<%=
render(Primer::OpenProject::CollapsibleSection.new(collapsed: !initiallyExpanded, display: :block, mb: 3)) do |section|
section.with_title { title }
section.with_collapsible_content do
capture(&block)
end
end
%>
4 changes: 1 addition & 3 deletions app/views/enterprises/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<%= labelled_tabular_form_for @token,
url: { action: :create },
html: { class: 'token-form form -vertical' },
method: :post do |f|%>

<div class="form--space"></div>
method: :post do |f| %>

<%= f.text_area :encoded_token,
value: nil,
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,6 @@ import { NoResultsComponent } from 'core-app/shared/components/no-results/no-res
import {
OpNonWorkingDaysListComponent,
} from 'core-app/shared/components/op-non-working-days-list/op-non-working-days-list.component';
import {
CollapsibleSectionComponent,
} from 'core-app/shared/components/collapsible-section/collapsible-section.component';
import { CopyToClipboardComponent } from 'core-app/shared/components/copy-to-clipboard/copy-to-clipboard.component';
import { GlobalSearchTitleComponent } from 'core-app/core/global_search/title/global-search-title.component';
import { ContentTabsComponent } from 'core-app/shared/components/tabs/content-tabs/content-tabs.component';
Expand Down Expand Up @@ -457,7 +454,6 @@ export class OpenProjectModule implements DoBootstrap {
registerCustomElement('opce-enterprise-base', EnterpriseBaseComponent, { injector });
registerCustomElement('opce-no-results', NoResultsComponent, { injector });
registerCustomElement('opce-non-working-days-list', OpNonWorkingDaysListComponent, { injector });
registerCustomElement('opce-collapsible-section-augment', CollapsibleSectionComponent, { injector });
registerCustomElement('opce-main-menu-toggle', MainMenuToggleComponent, { injector });
registerCustomElement('opce-main-menu-resizer', MainMenuResizerComponent, { injector });
registerCustomElement('opce-copy-to-clipboard', CopyToClipboardComponent, { injector });
Expand Down

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ import { ToastComponent } from './components/toaster/toast.component';
import { ToastsContainerComponent } from './components/toaster/toasts-container.component';
import { UploadProgressComponent } from './components/toaster/upload-progress.component';
import { ResizerComponent } from './components/resizer/resizer.component';
import { CollapsibleSectionComponent } from './components/collapsible-section/collapsible-section.component';
import { NoResultsComponent } from './components/no-results/no-results.component';
import { EditableToolbarTitleComponent } from './components/editable-toolbar-title/editable-toolbar-title.component';
import { PersistentToggleComponent } from './components/persistent-toggle/persistent-toggle.component';
Expand Down Expand Up @@ -200,7 +199,6 @@ export function bootstrapModule(injector:Injector):void {

// Add functionality to rails rendered templates
CopyToClipboardComponent,
CollapsibleSectionComponent,

ResizerComponent,

Expand Down
31 changes: 0 additions & 31 deletions frontend/src/global_styles/content/_collapsible_section.sass

This file was deleted.

1 change: 0 additions & 1 deletion frontend/src/global_styles/content/_index.sass
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
@import forms
@import forms_mobile
@import comments
@import collapsible_section
@import copy_to_clipboard
@import custom_logo
@import toast
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/global_styles/content/modules/_documents.sass
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ dt.document:before
.sidebar--document-sort label:last-of-type
margin-bottom: 2rem

.document-category--inner-section
padding-top: 20px

.document-category-elements
display: inline

Expand All @@ -37,4 +34,3 @@ dt.document:before

.document-category-elements .wiki
margin-bottom: 2rem

This file was deleted.

2 changes: 1 addition & 1 deletion modules/documents/app/views/documents/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>

<% @grouped.keys.sort.each do |group| %>
<%= augmented_collapsible_section title: group do %>
<%= augmented_collapsible_section(title: group.name) do %>
<div class="document-category--inner-section">
<div class="form--field document-category-elements">
<%= render partial: "documents/document", collection: @grouped[group] %>
Expand Down
2 changes: 1 addition & 1 deletion spec/features/admin/enterprise/enterprise_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
expect(EnterpriseToken.current.encoded_token).to eq("foobar")

expect(page).to have_text("Successful update")
click_on "Replace your current support token"
find("h2", text: "Replace your current support token").click
fill_in "enterprise_token_encoded_token", with: "blabla"
submit_button.click

Expand Down
30 changes: 17 additions & 13 deletions spec/features/workflows/edit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,28 @@
it "allows adding another workflow" do
click_button "Edit"

check "status_#{statuses[1].id}_#{statuses[2].id}_"
within "#workflow_form_always" do
check "status_#{statuses[1].id}_#{statuses[2].id}_"
end

click_button "Save"

expect_flash(message: "Successful update.")

expect(page)
.to have_field "status_#{statuses[0].id}_#{statuses[1].id}_", checked: true
expect(page)
.to have_field "status_#{statuses[1].id}_#{statuses[2].id}_", checked: true
within "#workflow_form_always" do
expect(page)
.to have_field "status_#{statuses[0].id}_#{statuses[1].id}_", checked: true
expect(page)
.to have_field "status_#{statuses[1].id}_#{statuses[2].id}_", checked: true

expect(page)
.to have_field "status_#{statuses[0].id}_#{statuses[2].id}_", checked: false
expect(page)
.to have_field "status_#{statuses[1].id}_#{statuses[0].id}_", checked: false
expect(page)
.to have_field "status_#{statuses[2].id}_#{statuses[0].id}_", checked: false
expect(page)
.to have_field "status_#{statuses[2].id}_#{statuses[1].id}_", checked: false
expect(page)
.to have_field "status_#{statuses[0].id}_#{statuses[2].id}_", checked: false
expect(page)
.to have_field "status_#{statuses[1].id}_#{statuses[0].id}_", checked: false
expect(page)
.to have_field "status_#{statuses[2].id}_#{statuses[0].id}_", checked: false
expect(page)
.to have_field "status_#{statuses[2].id}_#{statuses[1].id}_", checked: false
end
end
end
Loading