Skip to content

Commit

Permalink
chore: merge develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ALEXANDRU MEDESAN committed Aug 2, 2023
2 parents 4067a3e + 6c69617 commit 1dea385
Show file tree
Hide file tree
Showing 55 changed files with 8,922 additions and 4,937 deletions.
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,47 @@

<!-- towncrier release notes start -->

## 17.0.0-alpha.23 (2023-07-28)

### Bugfix

- Fix regression from v17a22: It was not possible to select a block in a grid
column unless the grid was already selected. @davisagli

Fix regression from v17a22: Block outline was blocking clicks in some cases.
@davisagli [#5039](https://github.com/plone/volto/issues/5039)


## 17.0.0-alpha.22 (2023-07-28)

### Feature

- Refactor Delete -@Tishasoumya [#4890](https://github.com/plone/volto/issues/4890)
- Refactor workflow -@Tishasoumya-02 [#4902](https://github.com/plone/volto/issues/4902)
- Refactor Request Reset Password-@Tishasoumya-02 [#4938](https://github.com/plone/volto/issues/4938)
- Refactor Actions-@Tishasoumya-02 [#4939](https://github.com/plone/volto/issues/4939)
- Refactor Blocks/Maps/Edit component -@Tishasoumya-02 [#4958](https://github.com/plone/volto/issues/4958)
- Updated Italian translations @sabrina-bongiovanni [#4987](https://github.com/plone/volto/issues/4987)
- Made selectedView and className props available in the SearchBlockView.jsx to improve styling development. @danalvrz [#4997](https://github.com/plone/volto/issues/4997)

### Bugfix

- Fix Volto contents - set properties Exclude from navigation - bad request, set exclude_from_nav to boolean [#4855](https://github.com/plone/volto/issues/4855)
- Add XSendfile headers to files and images middleware @instification [#4984](https://github.com/plone/volto/issues/4984)
- search-block: translate some missing strings to german and fix a typo. @pbauer [#4996](https://github.com/plone/volto/issues/4996)
- Add image block className support (Style wrapper). @sneridagh [#5018](https://github.com/plone/volto/issues/5018)
- Fix for 'no value' entry in table of content field. @satyam4p [#5022](https://github.com/plone/volto/issues/5022)
- Fix updating roles when username contains a period (.). @nileshgulia1 [#5025](https://github.com/plone/volto/issues/5025)
- Fix hover and focused border for block child. @claudiaifrim [#5028](https://github.com/plone/volto/issues/5028)
- Enhance display and repairing of broken relations. @ksuess [#5033](https://github.com/plone/volto/issues/5033)
- Fix selecting grid block when a sub-block is selected. @davisagli [#5036](https://github.com/plone/volto/issues/5036)
- Update versions of semver and release-it. @davisagli [#5053](https://github.com/plone/volto/issues/5053)

### Documentation

- Add short comment for easier finding registered components. @ksuess [#5017](https://github.com/plone/volto/issues/5017)


## 17.0.0-alpha.21 (2023-07-23)

### Breaking
Expand Down
57 changes: 57 additions & 0 deletions cypress/tests/core/basic/actions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
describe('actions Tests', () => {
beforeEach(() => {
cy.autologin();
cy.createContent({
contentType: 'Document',
contentId: 'my-page-1',
contentTitle: 'My Page-1',
allow_discussion: true,
}
);
cy.visit('/contents');
});
it('copy', function () {
cy.get('tr[aria-label="/my-page-1"]').within(() => {
cy.get('svg[class="icon dropdown-popup-trigger"]').click();
});
cy.get('a[class="item right-dropdown icon-align"]').eq(2).click();
cy.get('button[class="ui button icon item"]').click();
cy.visit('/contents');
cy.get('tr[aria-label="/copy_of_my-page-1"]').within(()=>{
cy.get('a[class="icon-align-name"]').should('have.attr', 'href', '/copy_of_my-page-1/contents');
})
});
it('delete', function () {
cy.get('tr[aria-label="/my-page-1"]').within(() => {
cy.get('button[class="ui basic icon button"]').click({ multiple: true });
});
cy.get('button[class="ui button icon item"]').eq(6).click();
cy.get('button[class="ui primary button"]').findByText('Delete').click();
cy.visit('/contents');
cy.get('tr').should('not.contain','/my-page-1');

});
it('cut', function () {
cy.get('tr[aria-label="/my-page-1"]').within(() => {
cy.get('svg[class="icon dropdown-popup-trigger"]').click();
});
cy.get('a[class="item right-dropdown icon-align"]').eq(1).click();
cy.get('button[class="ui button icon item"]').click();
cy.visit('/contents');
cy.get('tr[aria-label="/my-page-1"]').within(()=>{
cy.get('a[class="icon-align-name"]').should('have.attr', 'href', '/my-page-1/contents');
})
});
it('rename', function () {
cy.get('tr[aria-label="/my-page-1"]').within(() => {
cy.get('button[class="ui basic icon button"]').click({ multiple: true });
});
cy.get('button[class="ui button icon item"]').eq(0).click();
cy.get('#field-0_title').clear().type('my-page-rename');
cy.get('#field-0_id').clear().type('my-page-rename');
cy.get('button[class="ui basic circular primary right floated button"]').click();
cy.get('tr[aria-label="/my-page-rename"]').within(()=>{
cy.get('a[class="icon-align-name"]').should('have.attr', 'href', '/my-page-rename/contents');
})
})
});
21 changes: 21 additions & 0 deletions cypress/tests/core/basic/delete.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
describe('delete Tests', () => {
beforeEach(() => {
cy.autologin();
cy.createContent({
contentType: 'Document',
contentId: 'my-page',
contentTitle: 'My Page',
allow_discussion: true,
}
);
cy.visit('/contents');
});
it('delete', function () {
cy.get('tr[aria-label="/my-page"]').within(() => {
cy.get('button[class="ui basic icon button"]').click({ multiple: true });
});
cy.get('button[class="ui button icon item"]').eq(6).click();
cy.get('button[class="ui primary button"]').findByText('Delete').click();
cy.get('tr').should('not.contain','/my-page');
});
});
25 changes: 25 additions & 0 deletions cypress/tests/core/basic/workflow.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
describe('workflow Tests', () => {
beforeEach(() => {
cy.autologin();
cy.createContent({
contentType: 'Document',
contentId: 'my-page',
contentTitle: 'My Page',
allow_discussion: true,
}
);
cy.visit('/contents');
});
it('change workflow state recursively', function () {
cy.get('tr[aria-label="/my-page"]').within(() => {
cy.get('button[class="ui basic icon button"]').click({ multiple: true });
})
cy.get('button[class="ui button icon item"]').eq(1).click();
cy.findByText('Select…').click();
cy.findByText('Publish').click();
cy.findByTitle('Save').click();
cy.get('tr[aria-label="/my-page"]').within(() => {
cy.get('td > div').should('contain','Published');
})
});
});
4 changes: 2 additions & 2 deletions cypress/tests/coresandbox/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ context('Special fields Acceptance Tests', () => {

cy.navigate('/document/edit');
cy.wait('@schema');

cy.findAllByText('Test Block Edit').click();
//just for testing
cy.get('.block-editor-testBlock').click();

cy.get('#field-firstWithDefault').should(
'have.value',
Expand Down
18 changes: 14 additions & 4 deletions locales/ca/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2248,7 +2248,6 @@ msgid "News item view"
msgstr "Notícia"

#: components/manage/Contents/ContentsItem
#: components/manage/Contents/ContentsPropertiesModal
#: components/manage/Controlpanels/ContentTypes
# defaultMessage: No
msgid "No"
Expand Down Expand Up @@ -2573,8 +2572,8 @@ msgid "Please upgrade to plone.restapi >= 8.24.0."
msgstr ""

#: components/manage/Controlpanels/Relations/Relations
# defaultMessage: Please upgrade to plone.restapi >= 8.35.3.
msgid "Please upgrade to plone.restapi >= 8.35.3."
# defaultMessage: Please upgrade to plone.restapi >= 8.39.0.
msgid "Please upgrade to plone.restapi >= 8.39.0."
msgstr ""

#: components/theme/Footer/Footer
Expand Down Expand Up @@ -3340,6 +3339,7 @@ msgid "Sorted"
msgstr ""

#: components/manage/Blocks/HTML/Edit
#: components/manage/Controlpanels/Relations/BrokenRelations
#: components/manage/Controlpanels/Relations/RelationsMatrix
# defaultMessage: Source
msgid "Source"
Expand Down Expand Up @@ -3484,6 +3484,7 @@ msgstr "Etiquetes per eliminar"

#: components/manage/Blocks/Teaser/schema
#: components/manage/Controlpanels/Aliases
#: components/manage/Controlpanels/Relations/BrokenRelations
#: components/manage/Controlpanels/Relations/RelationsMatrix
# defaultMessage: Target
msgid "Target"
Expand Down Expand Up @@ -4190,7 +4191,6 @@ msgid "Yearly"
msgstr "Anualment"

#: components/manage/Contents/ContentsItem
#: components/manage/Contents/ContentsPropertiesModal
#: components/manage/Controlpanels/ContentTypes
# defaultMessage: Yes
msgid "Yes"
Expand Down Expand Up @@ -4322,6 +4322,11 @@ msgstr "Comú"
msgid "compare_to"
msgstr "Compara amb la llengua"

#: components/manage/Controlpanels/Relations/BrokenRelations
# defaultMessage: {countofrelation} broken {countofrelation, plural, one {relation} other {relations}} of type {typeofrelation}
msgid "countBrokenRelations"
msgstr ""

#: config/Blocks
# defaultMessage: Date Range
msgid "daterangeFacet"
Expand Down Expand Up @@ -4412,6 +4417,11 @@ msgstr ""
msgid "flush intIds and rebuild relations"
msgstr ""

#: helpers/MessageLabels/MessageLabels
# defaultMessage: <ul><li>Regenerate intIds (tokens of relations in relation catalog)</li><li>Rebuild relations</li></ul><p>Check the log for details!</p><p><b>Warning</b>: If you have add-ons relying on intIds, you should not flush them.</p>
msgid "flushAndRebuildRelationsHints"
msgstr ""

#: components/manage/Blocks/Teaser/schema
# defaultMessage: Head title
msgid "head_title"
Expand Down
Loading

0 comments on commit 1dea385

Please sign in to comment.