Skip to content

Commit

Permalink
Merge branch 'main' into us_61189_exception_dates_recurrence_descript…
Browse files Browse the repository at this point in the history
…ion_event_ct
  • Loading branch information
pnicolli authored Dec 19, 2024
2 parents 25edd91 + f558351 commit 9694a7e
Show file tree
Hide file tree
Showing 16 changed files with 152 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
build-args: |
ADDON_NAME=design-comuni-plone-theme
ADDON_PATH=design-comuni-plone-theme
VOLTO_VERSION=17.19.0
VOLTO_VERSION=17.20.3
# - name: Deploy to rancher
# uses: redturtle/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
build-args: |
ADDON_NAME=design-comuni-plone-theme
ADDON_PATH=design-comuni-plone-theme
VOLTO_VERSION=17.19.0
VOLTO_VERSION=17.20.3
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
build-args: |
ADDON_NAME=design-comuni-plone-theme
ADDON_PATH=design-comuni-plone-theme
VOLTO_VERSION=17.19.0
VOLTO_VERSION=17.20.3
2 changes: 1 addition & 1 deletion .github/workflows/withnewsletter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
build-args: |
ADDON_NAME=design-comuni-plone-theme
ADDON_PATH=design-comuni-plone-theme
VOLTO_VERSION=17.19.0
VOLTO_VERSION=17.20.3
- name: Deploy to rancher
uses: redturtle/[email protected]
Expand Down
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# Changelog

## [12.0.0-alpha.32](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.0.0-alpha.31...v12.0.0-alpha.32) (2024-12-16)


### Bug Fixes

* enable ImageWithErrors to return null value ([#841](https://github.com/RedTurtle/design-comuni-plone-theme/issues/841)) ([556158c](https://github.com/RedTurtle/design-comuni-plone-theme/commit/556158c86aceda40f2b6494067f67390088ab72a))


### Maintenance

* upgrade to volto 17.20.3 ([57589e3](https://github.com/RedTurtle/design-comuni-plone-theme/commit/57589e316665d360e43772000e8c104c60171d41))


### Documentation

* updated publiccode ([1830541](https://github.com/RedTurtle/design-comuni-plone-theme/commit/1830541fb10ea74e976dc2b7d3cd435d3f803500))

## [12.0.0-alpha.31](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.0.0-alpha.30...v12.0.0-alpha.31) (2024-12-12)


### Bug Fixes

* translations ([20e5ef8](https://github.com/RedTurtle/design-comuni-plone-theme/commit/20e5ef87c76776385581ac478cce1096301ba05e))


### Documentation

* updated publiccode and release log ([0e2f1ff](https://github.com/RedTurtle/design-comuni-plone-theme/commit/0e2f1ff427e5fe36f13843dd484c2e154602951d))

## [12.0.0-alpha.30](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.0.0-alpha.29...v12.0.0-alpha.30) (2024-11-28)


### Bug Fixes

* added conditional chaining to images for uo in argomento view ([#824](https://github.com/RedTurtle/design-comuni-plone-theme/issues/824)) ([eda8b07](https://github.com/RedTurtle/design-comuni-plone-theme/commit/eda8b07647be24519c97b4d29b2eb30a71997df4))


### Documentation

* updated publiccode ([0af8039](https://github.com/RedTurtle/design-comuni-plone-theme/commit/0af8039f55c19023b39464d479dc98f0fce5d304))

## [12.0.0-alpha.29](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.0.0-alpha.28...v12.0.0-alpha.29) (2024-11-28)


Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ CURRENT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
# ADDON ?= "design-comuni-plone-theme"

PLONE_VERSION=6
VOLTO_VERSION=17.19.0
VOLTO_VERSION=17.20.3

ADDON_NAME='design-comuni-plone-theme'
ADDON_PATH='design-comuni-plone-theme'
Expand Down
19 changes: 12 additions & 7 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@

### Fix

- ...
- Rimossa l'opzione non selezionabile "nessun valore" dal widget ricorrenza.

## Versione 11.25.3 (12/12/2024)

### Migliorie

- Aggiornate diverse traduzioni italiane.

## Versione 11.25.1 (28/11/2024)

Expand All @@ -68,7 +74,6 @@
- Rimossa dal CT Evento la data di scadenza del CT per evitare confusione con le date effettive dell'evento
- Durante la ricerca nel sito dalla popup che compare cliccando sul bottone 'Cerca' nella testa del sito, viene mostrato un loader in overlay durante il caricamento della pagina dei risultati perchè questo potrebbe richiedere un po' di tempo. Prima di questa modifica non era chiaro se la ricerca fosse iniziata.
- Nel CT Evento per una rassegna, se gli eventi figli hanno una ricorrenza o un periodo di date impostato, il range di date verrà mostrato nella card all'interno dell'evento padre.
- uniformato il colore dei link tra modalità di edit e view in alcuni blocchi
- Se l'url di una immagine è rotto, viene mostrato un avviso al posto dell'immagine rotta.

### Novità
Expand Down Expand Up @@ -143,7 +148,7 @@

### Fix

- Rimosso il campo "ID lighthouse" dal blocco elenco con variazione Card con Testo Animato perchè entra in contrasto con asseveratore.
- Rimosso il campo "ID lighthouse" dal blocco elenco con variazione Card con Testo Animato perchè entra in contrasto con asseveratore

## Versione 11.22.0 (05/09/2024)

Expand Down Expand Up @@ -258,16 +263,16 @@

## Versione 11.12.6 (30/05/2024)

### Novità

- Per ragioni di conformità alle linee guida Agid, inibito l'inserimento di CT File nella cartella modulistica.

### Fix

- Il layout delle card con immagini rimane corretto anche selezionando l'opzione "Non alterare le dimensioni naturali dell'immagine".

## Versione 11.12.5 (30/05/2024)

### Novità

- Per ragioni di conformità alle linee guida Agid, inibito l'inserimento di CT File nella cartella modulistica.

### Fix

- Sistemato il layout "Card con immagine" dei blocchi elenco quando gli elementi non hanno immagine.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "design-comuni-plone-theme",
"description": "Volto Theme for Italia design guidelines",
"license": "GPL-v3",
"version": "12.0.0-alpha.29",
"version": "12.0.0-alpha.32",
"main": "src/index.js",
"repository": {
"type": "git",
Expand Down Expand Up @@ -202,7 +202,7 @@
"stylelint-prettier": "4.0.2"
},
"peerDependencies": {
"@plone/volto": "17.19.0"
"@plone/volto": "17.20.3"
},
"packageManager": "[email protected]"
}
4 changes: 2 additions & 2 deletions publiccode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ maintenance:
name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
platforms:
- web
releaseDate: '2024-11-28'
releaseDate: '2024-12-16'
softwareType: standalone/web
softwareVersion: 11.25.1
softwareVersion: 11.25.4
url: 'https://github.com/italia/design-comuni-plone-theme'
usedBy:
- ASP Comuni Modenesi Area Nord
Expand Down
22 changes: 11 additions & 11 deletions src/components/ImageWithErrors/ImageWithErrors.jsx

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ const PaginaArgomentoView = ({ content }) => {
</CardText>
</CardBody>
{uo_object &&
(uo_object.image_scales.image.length > 0 ||
uo_object.image_scales.preview_image.length >
(uo_object.image_scales?.image?.length > 0 ||
uo_object.image_scales?.preview_image?.length >
0) && (
<div className="image-container me-3">
<Image
Expand Down
2 changes: 1 addition & 1 deletion src/config/italiaConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default function applyConfig(voltoConfig) {
...(config.settings.controlpanels ?? []),
{
'@id': '/release-log',
group: 'Generali',
group: 'General',
title: 'Novità ultimi rilasci',
id: 'release-log',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,7 @@ class RecurrenceWidget extends Component {
)}
value={formValues.freq}
onChange={this.onChangeRule}
noValueOption={false}
/>
{OPTIONS.frequences[formValues.freq].interval && (
<IntervalField
Expand Down
62 changes: 62 additions & 0 deletions src/theme/_cms-ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,48 @@ body.cms-ui {
.block.text {
line-height: 1.555;
}

&.table {
@import 'bootstrap/scss/reboot';
@import 'bootstrap/scss/tables';
@import 'bootstrap-italia/src/scss/custom/tables';
@import 'extras/tables';

.ui.table {
&.inverted {
th,
td {
border-color: inherit !important;
}
}
thead th {
font-weight: bold;
text-transform: unset;
color: var(--bs-table-color);
}

&.very.basic {
&:not(.sortable):not(.striped) {
th:first-child,
td:first-child {
padding-left: 0.5rem;
}
thead tr:first-child th {
padding-top: 0.5rem;
}
td:last-child {
padding-right: 0.5rem;
}
}
}

&.striped {
tbody tr:nth-child(2n) {
background-color: rgba(0, 0, 50, 0.02) !important;
}
}
}
}
}

&.contenttype-document,
Expand Down Expand Up @@ -458,6 +500,14 @@ body.cms-ui {
}

&.section-controlpanel {
.grid > .row {
// HIDE TAXONOMIES CONTROLPANEL UNTIL #62343 IS DONE
> .column:has([href='/controlpanel/taxonomies']),
> .column:has([href='/controlpanel/volto-settings']) {
display: none;
}
}

a {
text-decoration: none;

Expand All @@ -471,6 +521,18 @@ body.cms-ui {
display: none;
}
}
// Hide the help text in the configuration widgets
// TODO this is a temporary fix, a release needs to be made on every add-on to fix this
.footer-configuration-widget .stretched.twelve.wide.column:has(p.help),
.slimheader-configuration-widget
.wrapper:has(label[for='menu-configuration']),
.subfooter-configuration-widget
.wrapper:has(label[for='menu-configuration']),
.secondary-menu-configuration-widget
.wrapper:has(label[for='menu-configuration']),
.menu-configuration-widget .wrapper:has(label[for='menu-configuration']) {
display: none !important;
}
}

[data-rbd-draggable-context-id] {
Expand Down
25 changes: 12 additions & 13 deletions src/theme/extras/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,30 @@
&.very.basic {
border: none;

tbody > tr {
th,
td {
&:first-of-type {
th,
td {
border-top: none;
}
border-left: none;
}

&:last-of-type {
border-right: none;
}
}

tbody > tr {
&:first-of-type {
th,
td {
border-bottom: none;
border-top: none;
}
}

th,
td {
&:first-of-type {
border-left: none;
}

&:last-of-type {
border-right: none;
}
border-bottom: none;
}
border-width: 0;
}
}

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8267,7 +8267,7 @@ __metadata:
volto-venue: 4.1.0
webpack-image-resize-loader: ^5.0.0
peerDependencies:
"@plone/volto": 17.19.0
"@plone/volto": 17.20.3
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 9694a7e

Please sign in to comment.