Skip to content

Commit

Permalink
Merge branch 'master' into fixheaderlevelinlisting
Browse files Browse the repository at this point in the history
* master:
  Release 17.0.0-alpha.14
  Linked headlines (#3540)
  Release notes for 16.20.8 16.21.0 16.21.1 (#4910)
  Spanish translation (#4896)
  Refactor Anontools (#4845)
  Update to plone-backend 6.0.5 (#4897)
  Release 17.0.0-alpha.13
  Enforce max upload size (#4868)
  Fix and improve the `addStyling` helper (#4880)
  Release 17.0.0-alpha.12
  Fix regression in horizontal scroll in contents view, add it back (#4872)
  Configurable Container component from registry for some key route views. (#4871)
  Allow to deselect color in ColorPickerWidget. (#4839)
  Release 17.0.0-alpha.11
  Pagination with router params (#4698)
  Release 17.0.0-alpha.10
  feat(slate): Add css identifier to slate style menu options (#4847)
  Update Brazilian Portuguese translations (Fixes #4853)
  Convert header class to function (#4767)
  • Loading branch information
sneridagh committed Jun 25, 2023
2 parents daf86ab + e9ca699 commit beb2587
Show file tree
Hide file tree
Showing 84 changed files with 1,837 additions and 394 deletions.
98 changes: 98 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,65 @@

<!-- towncrier release notes start -->

## 17.0.0-alpha.14 (2023-06-23)

### Feature

- Added slug-based linked headings in `volto-slate`. @tiberiuichim, @nileshgulia1 [#4287](https://github.com/plone/volto/issues/4287)
- Refactored Anontools components. @Tishasoumya-02 [#4845](https://github.com/plone/volto/issues/4845)

### Bugfix

- Update to version 6.0.5 of Plone backend. @davisagli [#4897](https://github.com/plone/volto/issues/4897)


## 17.0.0-alpha.13 (2023-06-15)

### Feature

- Add and enforce a new config setting, `maxFileUploadSize`. @davisagli [#4868](https://github.com/plone/volto/issues/4868)

### Bugfix

- Fix and improve the `addStyling` helper @sneridagh [#4880](https://github.com/plone/volto/issues/4880)


## 17.0.0-alpha.12 (2023-06-14)

### Feature

- Allow to deselect color in ColorPickerWidget. @ksuess [#4838](https://github.com/plone/volto/issues/4838)
- Configurable Container component from registry for some key route views. @sneridagh [#4871](https://github.com/plone/volto/issues/4871)

### Bugfix

- Fix regression in horizontal scroll in contents view, add it back @sneridagh [#4872](https://github.com/plone/volto/issues/4872)


## 17.0.0-alpha.11 (2023-06-09)

### Bugfix

- Added current page parameter to route in listing and search block pagination - Fix: #3868 @bipoza [#4159](https://github.com/plone/volto/issues/4159)


## 17.0.0-alpha.10 (2023-06-09)

### Feature

- Search Block: Add support for advanced facets that are only displayed on demand.
[pbauer, razvanMiu, claudiaifrim] [#4783](https://github.com/plone/volto/issues/4783)
- Display PAS validation errors. [tschorr] [#4801](https://github.com/plone/volto/issues/4801)
- Added a CSS identifier to the Slate style menu options. @razvanMiu [#4846](https://github.com/plone/volto/issues/4846)
- Use a Container from the registry in the Form component and fallback to the Semantic UI one. @sneridagh [#4849](https://github.com/plone/volto/issues/4849)
- Update Brazilian Portuguese translations @ericof [#4853](https://github.com/plone/volto/issues/4853)

### Bugfix

- Convert header class to function. @gomez [#4767](https://github.com/plone/volto/issues/4767)
- Do not break validation on required number field with value 0 @cekk [#4841](https://github.com/plone/volto/issues/4841)


## 17.0.0-alpha.9 (2023-06-01)

### Bugfix
Expand Down Expand Up @@ -238,6 +297,44 @@
- Use a universal static path for both documentation and volto repos. @stevepiercy [#4376](https://github.com/plone/volto/issues/4376)


## 16.21.1 (2023-06-23)

### Bugfix

- Added current page parameter to route in listing and search block pagination - Fix: #3868 @bipoza [#4159](https://github.com/plone/volto/issues/4159)


## 16.21.0 (2023-06-16)

### Feature

- Display PAS validation errors. [tschorr] [#4801](https://github.com/plone/volto/issues/4801)
- Allow to deselect color in ColorPickerWidget. @ksuess [#4838](https://github.com/plone/volto/issues/4838)
- Added a CSS identifier to the Slate style menu options. @razvanMiu [#4846](https://github.com/plone/volto/issues/4846)
- Use a Container from the registry in the Form component and fallback to the Semantic UI one. @sneridagh [#4849](https://github.com/plone/volto/issues/4849)
- Add and enforce a new config setting, `maxFileUploadSize`. @davisagli [#4868](https://github.com/plone/volto/issues/4868)
- Configurable Container component from registry for some key route views. @sneridagh [#4871](https://github.com/plone/volto/issues/4871)

### Bugfix

- Do not break validation on required number field with value 0 @cekk [#4841](https://github.com/plone/volto/issues/4841)
- Fix regression in horizontal scroll in contents view, add it back @sneridagh [#4872](https://github.com/plone/volto/issues/4872)
- Fix and improve the `addStyling` helper @sneridagh [#4880](https://github.com/plone/volto/issues/4880)


## 16.20.8 (2023-06-01)

### Bugfix

- Fix special characters in request urls @pnicolli @mamico @luca-bellenghi @cekk [#4826](https://github.com/plone/volto/issues/4826)
- Fix block is undefined in StyleWrapper helper when building classnames @sneridagh [#4827](https://github.com/plone/volto/issues/4827)
- Fix navigation sections in 404 pages @sneridagh [#4836](https://github.com/plone/volto/issues/4836)

### Documentation

- Fix glossary warning due to lack of empty line before a term. @stevepiercy [#4820](https://github.com/plone/volto/issues/4820)


## 16.20.7 (2023-05-24)

### Bugfix
Expand Down Expand Up @@ -1209,6 +1306,7 @@ See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information
- Add support for loading core add-ons from the `packages` folder defined in Volto's `package.json` @sneridagh
- Implement the Upgrade Control Panel @ericof
- Allow addons to customize modules from the project root, via the `@root` namespace and folder @tiberiuichim
- Updated Spanish translation @macagua

### Bugfix

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ MAKEFLAGS+=--no-builtin-rules
# Project settings

INSTANCE_PORT=8080
DOCKER_IMAGE=plone/server-dev:6.0.4
DOCKER_IMAGE_ACCEPTANCE=plone/server-acceptance:6.0.4
DOCKER_IMAGE=plone/server-dev:6.0.5
DOCKER_IMAGE_ACCEPTANCE=plone/server-acceptance:6.0.5
KGS=
NODEBIN = ./node_modules/.bin
SCRIPTSPACKAGE = ./packages/scripts
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ cd myvoltoproject
You can bootstrap a ready Docker Plone container with all the dependencies and ready for Volto use. We recommend to use the Plone docker builds based in `pip` [plone/plone-backend](https://github.com/plone/plone-backend) image:

```shell
docker run -it --rm --name=plone -p 8080:8080 -e SITE=Plone -e PROFILES="plone.volto:default-homepage" plone/plone-backend:6.0.1
docker run -it --rm --name=plone -p 8080:8080 -e SITE=Plone -e PROFILES="plone.volto:default-homepage" plone/plone-backend:6.0.5
```

or as an alternative if you have experience with Plone and you have all the
Expand Down Expand Up @@ -266,7 +266,7 @@ yarn
Either using a Docker command:

```shell
docker run -it --rm --name=plone -p 8080:8080 -e SITE=Plone -e PROFILES="plone.volto:default-homepage" plone/plone-backend:6.0.1
docker run -it --rm --name=plone -p 8080:8080 -e SITE=Plone -e PROFILES="plone.volto:default-homepage" plone/plone-backend:6.0.5
```

or using the convenience makefile command:
Expand Down
2 changes: 1 addition & 1 deletion api/buildout.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[buildout]
index = https://pypi.org/simple/
extends =
http://dist.plone.org/release/6.0.4/versions.cfg
http://dist.plone.org/release/6.0.5/versions.cfg
version-constraints.cfg
versions.cfg
parts = instance plonesite site-packages test robot-server
Expand Down
20 changes: 20 additions & 0 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -849,3 +849,23 @@ Cypress.Commands.add('getTableSlate', (header = false) => {
);
return slate;
});

Cypress.Commands.add('configureListingWith', (contentType) => {
cy.get('.sidebar-container .tabs-wrapper .menu .item')
.contains('Block')
.click();
cy.get('.querystring-widget .fields').contains('Add criteria').click();
cy.get(
'.querystring-widget .fields:first-of-type .field:first-of-type .react-select__menu .react-select__option',
)
.contains('Type')
.click();

//insert Page
cy.get('.querystring-widget .fields:first-of-type > .field').click();
cy.get(
'.querystring-widget .fields:first-of-type > .field .react-select__menu .react-select__option',
)
.contains(contentType)
.click();
});
71 changes: 71 additions & 0 deletions cypress/tests/core/blocks/block-anchors.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import { slateBeforeEach } from '../../../support/volto-slate';

describe('Block Tests: Anchors', () => {
beforeEach(slateBeforeEach);

it('Add Block: Links', () => {
// Change page title
cy.clearSlateTitle();
cy.getSlateTitle().type('Slate Heading Anchors');
cy.getSlate().click();

// Add TOC block
cy.get('.ui.basic.icon.button.block-add-button').first().click();
cy.get(".blocks-chooser .ui.form .field.searchbox input[type='text']").type(
'table of contents',
);
cy.get('.button.toc').click();

// Save page
cy.get('#toolbar-save').click();
cy.url().should('eq', Cypress.config().baseUrl + '/my-page');
cy.get('h1.documentFirstHeading')
.trigger('mouseover', { eventConstructor: 'MouseEvent' })
.children()
.should('have.length', 1);
});

it('Add Block: add content to TOC', () => {
// Change page title
cy.clearSlateTitle();
cy.getSlateTitle().type('Slate Heading Anchors');
cy.getSlate().click();

// Add TOC block
cy.get('.ui.basic.icon.button.block-add-button').first().click();
cy.get(".blocks-chooser .ui.form .field.searchbox input[type='text']").type(
'table of contents',
);
cy.get('.button.toc').click();

// Add headings
cy.get('.ui.drag.block.inner.slate').click().type('Title 1').click();
cy.get('.ui.drag.block.inner.slate span span span').setSelection('Title 1');
cy.get('.slate-inline-toolbar .button-wrapper a[title="Title"]').click({
force: true,
});
cy.get('.ui.drag.block.inner.slate').click().type('{enter}');

cy.get('.ui.drag.block.inner.slate').eq(1).click().type('Title 2').click();
cy.get('.ui.drag.block.inner.slate span span span')
.eq(1)
.setSelection('Title 2');
cy.get('.slate-inline-toolbar .button-wrapper a[title="Title"]').click({
force: true,
});
cy.get('.ui.drag.block.inner.slate').eq(1).click().type('{enter}');

// Save page
cy.get('#toolbar-save').click();
cy.url().should('eq', Cypress.config().baseUrl + '/my-page');

// Check if the page contains the TOC and scrolls to each entry on click
cy.contains('Slate Heading Anchors');
cy.get('h2[id="title-1"]').contains('Title 1');
cy.get('h2[id="title-2"]').contains('Title 2');
cy.get('a[href="#title-1"]').click();
cy.get('h2[id="title-1"]').scrollIntoView().should('be.visible');
cy.get('a[href="#title-2"]').click();
cy.get('h2[id="title-2"]').scrollIntoView().should('be.visible');
});
});
Loading

0 comments on commit beb2587

Please sign in to comment.