Skip to content

Commit

Permalink
Merge branch '17.x.x' into volto_17_toolbar_handler_color_for_homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni authored Sep 17, 2024
2 parents 305a546 + 8818fb3 commit b17aba9
Show file tree
Hide file tree
Showing 14 changed files with 133 additions and 102 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down Expand Up @@ -93,13 +93,13 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down Expand Up @@ -145,13 +145,13 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down Expand Up @@ -197,13 +197,13 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down Expand Up @@ -249,13 +249,13 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down Expand Up @@ -301,13 +301,13 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down Expand Up @@ -352,13 +352,13 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down Expand Up @@ -403,13 +403,13 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down Expand Up @@ -456,13 +456,13 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:8081 http://127.0.0.1:3000'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down Expand Up @@ -508,13 +508,13 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down Expand Up @@ -585,13 +585,13 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down Expand Up @@ -686,14 +686,14 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots

# Upload Cypress videos
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down Expand Up @@ -746,13 +746,13 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000 http://localhost'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down Expand Up @@ -800,13 +800,13 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000 http://localhost'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ start-frontend-docker:

.PHONY: start-backend-docker-guillotina
start-backend-docker-guillotina:
docker-compose -f g-api/docker-compose.yml up -d
docker compose -f g-api/docker-compose.yml up -d

##### Acceptance tests (Cypress)

Expand All @@ -217,7 +217,7 @@ start-test-backend: ## Start Test Plone Backend (api folder)

.PHONY: stop-backend-docker-guillotina
stop-backend-docker-guillotina:
docker-compose -f g-api/docker-compose.yml down
docker compose -f g-api/docker-compose.yml down


.PHONY: test-acceptance-server-old
Expand Down Expand Up @@ -264,7 +264,7 @@ test-acceptance-seamless: ## Start Seamless Cypress Acceptance Tests

.PHONY: start-test-acceptance-webserver-seamless
start-test-acceptance-webserver-seamless: ## Start the seamless webserver
cd cypress/docker && docker-compose -f seamless.yml up
cd cypress/docker && docker compose -f seamless.yml up

.PHONY: full-test-acceptance-seamless
full-test-acceptance-seamless: ## Runs Seamless Core Full Acceptance Testing in headless mode
Expand Down Expand Up @@ -374,7 +374,7 @@ full-test-acceptance-workingcopy: ## Runs WorkingCopy Full Acceptance Testing in

.PHONY: start-test-acceptance-server-guillotina
start-test-acceptance-server-guillotina: ## Start Guillotina Test Acceptance Server (docker container)
docker-compose -f g-api/docker-compose.yml up > /dev/null
docker compose -f g-api/docker-compose.yml up > /dev/null

.PHONY: start-test-acceptance-frontend-guillotina
start-test-acceptance-frontend-guillotina: ## Start the Guillotina Acceptance Frontend Fixture
Expand Down
18 changes: 3 additions & 15 deletions cypress/tests/core/blocks/listing/blocks-listing-templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ describe('Folder Contents Tests', () => {

cy.visit('/my-folder/my-document');
cy.get('.edit').click();
cy.getSlate().click();
cy.get('button.block-add-button').click();
cy.get(
'[style="transition: opacity 500ms ease 0ms;"] > :nth-child(2) > .ui',
).click();
cy.addNewBlock('listing');
cy.get('#field-variation').click().type('summary{enter}');
cy.get('#toolbar-save').click();
cy.wait('@content');
Expand Down Expand Up @@ -74,11 +70,7 @@ describe('Folder Contents Tests', () => {

cy.visit('/my-folder/my-document');
cy.get('.edit').click();
cy.getSlate().click();
cy.get('button.block-add-button').click();
cy.get(
'[style="transition: opacity 500ms ease 0ms;"] > :nth-child(2) > .ui',
).click();
cy.addNewBlock('listing');
cy.get('#field-variation').click().type('summary{enter}');
cy.get('#toolbar-save').click();
cy.wait('@content');
Expand Down Expand Up @@ -116,11 +108,7 @@ describe('Folder Contents Tests', () => {

cy.visit('/my-folder/my-document');
cy.get('.edit').click();
cy.getSlate().click();
cy.get('button.block-add-button').click();
cy.get(
'[style="transition: opacity 500ms ease 0ms;"] > :nth-child(2) > .ui',
).click();
cy.addNewBlock('listing');
cy.get('#field-variation').click().type('imageGallery{enter}');
cy.get('#toolbar-save').click();
cy.wait('@content');
Expand Down
2 changes: 1 addition & 1 deletion g-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Configuration demonstrating how to run Volto with Guillotina as a backend.
_Disclaimer:_ Guillotina doesn't support the full API/features that Plone provides. Contributors are welcome.

```shell
docker-compose -f g-api/docker-compose.yml up -d
docker compose -f g-api/docker-compose.yml up -d
```

or using the convenience makefile command:
Expand Down
2 changes: 2 additions & 0 deletions news/6248.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The schema for the `ContentsPropertiesModal` can be enhanced using the `contentPropertiesSchemaEnhancer` setting.
Also, the properties form is now prepopulated with values if all selected items share the same value. @davisagli
1 change: 1 addition & 0 deletions news/6250.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disable save button when loading POST query @sabrina-bongiovanni
1 change: 1 addition & 0 deletions news/6253.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump actions/upload-artifact to v4 and replace `docker-compose` with `docker compose`. @stevepiercy, @davisagli
1 change: 1 addition & 0 deletions news/6273.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix error in `SortOn` component when no sort is selected. @davisagli
2 changes: 1 addition & 1 deletion packages/generator-volto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ test-acceptance-server:

.PHONY: test-acceptance-guillotina
test-acceptance-guillotina:
docker-compose -f g-api/docker-compose.yml up > /dev/null
docker compose -f g-api/docker-compose.yml up > /dev/null
1 change: 1 addition & 0 deletions src/components/manage/Add/Add.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ class Add extends Component {
aria-label={this.props.intl.formatMessage(messages.save)}
onClick={() => this.form.current.onSubmit()}
loading={this.props.createRequest.loading}
disabled={this.props.createRequest.loading}
>
<Icon
name={saveSVG}
Expand Down
2 changes: 1 addition & 1 deletion src/components/manage/Blocks/Search/components/SortOn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const SortOn = (props) => {

const showSelectField = sortOnOptions.length > 1;
if (!showSelectField && !activeSortOn) {
return;
return null;
}
const value = {
value: activeSortOn || intl.formatMessage(messages.noSelection),
Expand Down
3 changes: 3 additions & 0 deletions src/components/manage/Contents/Contents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,9 @@ class Contents extends Component {
onCancel={this.onPropertiesCancel}
onOk={this.onPropertiesOk}
items={this.state.selected}
values={map(this.state.selected, (id) =>
find(this.state.items, { '@id': id }),
).filter((item) => item)}
/>
{this.state.showWorkflow && (
<ContentsWorkflowModal
Expand Down
Loading

0 comments on commit b17aba9

Please sign in to comment.