Skip to content

Commit

Permalink
Merge branch 'main' into issue-30148-raw-cube-endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jcastro-dotcms authored Oct 1, 2024
2 parents cd41ea3 + 324de85 commit 210d4e7
Show file tree
Hide file tree
Showing 75 changed files with 5,620 additions and 748 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/cicd_2-merge-queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ jobs:
postman: ${{ needs.initialize.outputs.backend == 'true' }}
frontend: ${{ needs.initialize.outputs.frontend == 'true' }}
cli: ${{ needs.initialize.outputs.cli == 'true' }}
# This will probably need to be re-evaluated, that is if it makes sense to tun E2E tests at the merge queue
# e2e: ${{ needs.initialize.outputs.build }}
e2e: ${{ needs.initialize.outputs.build == 'true' }}
secrets:
DOTCMS_LICENSE: ${{ secrets.DOTCMS_LICENSE }}
finalize:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cicd_comp_test-phase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ jobs:
fail-fast: false
matrix:
suites:
- { name: "JVM E2E Suite", pathName: "jvme2etestsuite", maven_args: '-Dit.test=E2eTestSuite -Dci=true -pl :dotcms-e2e-java' }
- { name: "Node.js E2E Suite", pathName: "nodee2etestsuite", maven_args: '-De2e.test.env=ci -pl :dotcms-e2e-node' }
- { name: "JVM E2E Suite", pathName: "jvme2etestsuite", maven_args: '-Dci=true -Dit.test=E2eTestSuite -De2e.test.forkCount=1 -pl :dotcms-e2e-java' }
- { name: "Node E2E Suite", pathName: "nodee2etestsuite", maven_args: '-De2e.test.env=ci -pl :dotcms-e2e-node' }
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
4 changes: 3 additions & 1 deletion core-web/libs/block-editor/src/lib/block-editor.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import {
DotMessageService,
DotPropertiesService,
DotUploadFileService,
DotAiService
DotAiService,
DotWorkflowActionsFireService
} from '@dotcms/data-access';
import { LoggerService, StringUtils } from '@dotcms/dotcms-js';
import {
Expand Down Expand Up @@ -90,6 +91,7 @@ const initTranslations = (dotMessageService: DotMessageService) => {
DotPropertiesService,
DotContentSearchService,
DotLanguagesService,
DotWorkflowActionsFireService,
{
provide: APP_INITIALIZER,
useFactory: initTranslations,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ $tabview-item-color: $color-palette-gray-700;
$tabview-item-selected-color: $color-palette-secondary;
$tabview-item-padding: $spacing-3 $spacing-4 10px; // To match the 48px height
$tabview-item-border: 3px solid $white;
$tabview-item-border-height: 4px;
$tabview-item-border-height: 2px;
$tabview-item-selected-border: 5px solid $color-palette-secondary-500;
$tabview-item-disabled-color: $color-palette-black-op-20;
$tabview-nav-height: 48px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,41 @@
<aside class="content-aside">
<div class="content-aside__toolbar">
<div class="tabs"></div>
<p-tabView>
<p-tabPanel [header]="'Info' | dm">
<section class="content-aside__section">
<div class="content-aside__header">
<h2>{{ 'Information' | dm }}</h2>
</div>
<dot-content-aside-information
[contentlet]="$contentlet()"
[contentType]="$contentType()"
[loading]="$loading()"
data-testId="information" />
</section>

<section class="content-aside__section">
<div class="content-aside__header">
<h2>{{ 'Workflow' | dm }}</h2>
<div class="content-aside__icon">
<i class="pi pi-history" aria-hidden="true"></i>
<span>{{ 'show-all' | dm }}</span>
</div>
</div>
<dot-content-aside-workflow
[inode]="$contentlet()?.inode"
[contentType]="$contentType()"
data-testId="workflow" />
</section>
</p-tabPanel>
<!-- <p-tabPanel [header]="'History' | dm" >-->

<!-- </p-tabPanel>-->
<!-- <p-tabPanel [header]="'Settings' | dm">-->

<!-- </p-tabPanel>-->
</p-tabView>
<div class="content-aside__close">
<button
class="p-button p-button-sm p-button-text p-button-rounded p-button-icon-only content-aside__closeBtn"
class="p-button p-button-sm p-button-text p-button-rounded p-button-icon-only"
(click)="$toggle.emit(!$collapsed())"
data-testId="toggle-button">
<svg
Expand Down Expand Up @@ -35,29 +68,4 @@
</svg>
</button>
</div>

<section class="content-aside__section">
<div class="content-aside__header">
<h2>{{ 'Information' | dm }}</h2>
</div>
<dot-content-aside-information
[contentlet]="$contentlet()"
[contentType]="$contentType()"
[loading]="$loading()"
data-testId="information" />
</section>

<section class="content-aside__section">
<div class="content-aside__header">
<h2>{{ 'Workflow' | dm }}</h2>
<div class="content-aside__icon">
<i class="pi pi-history" aria-hidden="true"></i>
<span>{{ 'show-all' | dm }}</span>
</div>
</div>
<dot-content-aside-workflow
[inode]="$contentlet()?.inode"
[contentType]="$contentType()"
data-testId="workflow" />
</section>
</aside>
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,48 @@
border-left: 1px solid $color-palette-gray-400;
background: $color-palette-gray-100;
box-shadow: $shadow-m;
position: relative;

::ng-deep {
.p-tabview-nav-container {
border-bottom: 1px solid $color-palette-black-op-10;
}

.p-tabview {
.p-tabview-nav {
border: none;
}

.p-tabview-nav li .p-tabview-nav-link {
padding: 1.2rem $spacing-4 1.3rem;
}
}
.p-tabview-nav-content {
flex-grow: 1;
max-width: calc(100% - 4rem);
}
}
}

.content-aside {
overflow: auto;
}

.p-button.content-aside__closeBtn {
rect {
stroke: $color-palette-primary;
}
.content-aside__close {
position: absolute;
padding: $spacing-2;
top: 0;
right: 0;
border-left: 1px solid $color-palette-black-op-10;

path {
fill: $color-palette-primary;
button {
rect {
stroke: $color-palette-primary;
}

path {
fill: $color-palette-primary;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { DotContentAsideInformationComponent } from './components/dot-content-as
import { DotContentAsideWorkflowComponent } from './components/dot-content-aside-workflow/dot-content-aside-workflow.component';
import { DotEditContentAsideComponent } from './dot-edit-content-aside.component';

import { CONTENT_FORM_DATA_MOCK } from '../../utils/mocks';
import { CONTENT_FORM_DATA_MOCK, MockResizeObserver } from '../../utils/mocks';

describe('DotEditContentAsideComponent', () => {
let spectator: Spectator<DotEditContentAsideComponent>;
Expand All @@ -36,6 +36,9 @@ describe('DotEditContentAsideComponent', () => {
}
]
});
beforeAll(() => {
window.ResizeObserver = MockResizeObserver;
});

beforeEach(() => {
spectator = createComponent({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';

import { TabViewModule } from 'primeng/tabview';

import { DotCMSContentType, DotCMSContentlet } from '@dotcms/dotcms-models';
import { DotMessagePipe } from '@dotcms/ui';

Expand All @@ -12,7 +14,12 @@ import { DotContentAsideWorkflowComponent } from './components/dot-content-aside
templateUrl: './dot-edit-content-aside.component.html',
styleUrls: ['./dot-edit-content-aside.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [DotMessagePipe, DotContentAsideInformationComponent, DotContentAsideWorkflowComponent]
imports: [
DotMessagePipe,
DotContentAsideInformationComponent,
DotContentAsideWorkflowComponent,
TabViewModule
]
})
export class DotEditContentAsideComponent {
/**
Expand Down
Loading

0 comments on commit 210d4e7

Please sign in to comment.