design-comuni-plone-theme 8.7.9 → 8.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/main.yml +18 -9
- package/.github/workflows/{develop.yml → release.yml} +10 -19
- package/CHANGELOG.md +31 -0
- package/RELEASE.md +14 -8
- package/package.json +1 -1
- package/publiccode.yml +2 -2
- package/src/components/ItaliaTheme/View/EventoView/EventoCosE.jsx +9 -2
- package/src/components/ItaliaTheme/View/EventoView/EventoUlterioriInformazioni.jsx +3 -3
- package/src/components/ReleaseLog/ReleaseLog.jsx +3 -3
- package/src/config/italiaConfig.js +1 -3
- package/src/helpers/FormValidation/DataGridFormValidationHelpers.js +1 -1
- /package/.github/workflows/{publiccode.yml → check_publiccode.yml} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
name: Docker build for latest main version
|
|
2
2
|
on:
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
push:
|
|
4
|
+
branches: [main]
|
|
5
5
|
|
|
6
6
|
jobs:
|
|
7
|
-
|
|
7
|
+
build_develop:
|
|
8
8
|
runs-on: ubuntu-latest
|
|
9
9
|
steps:
|
|
10
10
|
- uses: actions/checkout@v3
|
|
@@ -18,21 +18,30 @@ jobs:
|
|
|
18
18
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
19
19
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
20
20
|
|
|
21
|
-
- name: Get the version
|
|
22
|
-
id: get_version
|
|
23
|
-
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_OUTPUT"
|
|
24
|
-
|
|
25
21
|
- name: Build and push Docker images
|
|
26
22
|
uses: docker/build-push-action@v4
|
|
27
23
|
with:
|
|
28
24
|
context: .
|
|
29
25
|
file: ./dockerfiles/Dockerfile
|
|
30
|
-
tags: redturtletech/io-comune-base
|
|
26
|
+
tags: redturtletech/io-comune-base:main
|
|
31
27
|
pull: true
|
|
32
28
|
push: true
|
|
33
|
-
cache-from: type=registry,ref=redturtletech/io-comune-base
|
|
29
|
+
cache-from: type=registry,ref=redturtletech/io-comune-base:main
|
|
34
30
|
cache-to: type=inline
|
|
35
31
|
build-args: |
|
|
36
32
|
ADDON_NAME=design-comuni-plone-theme
|
|
37
33
|
ADDON_PATH=design-comuni-plone-theme
|
|
38
34
|
VOLTO_VERSION=17.0.0-alpha.19
|
|
35
|
+
|
|
36
|
+
- name: Deploy to rancher
|
|
37
|
+
uses: redturtle/rancher-deploy-action@v0.2.0
|
|
38
|
+
with:
|
|
39
|
+
host: ${{ secrets.RANCHER_HOST }}
|
|
40
|
+
api-username: ${{ secrets.RANCHER_API_USERNAME }}
|
|
41
|
+
api-password: ${{ secrets.RANCHER_API_PASSWORD }}
|
|
42
|
+
cluster-id: ${{ secrets.RANCHER_CLUSTER_ID }}
|
|
43
|
+
project-id: ${{ secrets.RANCHER_PROJECT_ID }}
|
|
44
|
+
namespace: ${{ secrets.RANCHER_NAMESPACE_DEVELOP }}
|
|
45
|
+
workload: ${{ secrets.RANCHER_WORKLOAD_DEVELOP }}
|
|
46
|
+
image: redturtletech/io-comune-base:main
|
|
47
|
+
slack-hook-url: ${{ secrets.RANCHER_SLACK_HOOK_URL }}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
name: Docker build for latest
|
|
1
|
+
name: Docker build for latest released version
|
|
2
2
|
on:
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
release:
|
|
4
|
+
types: [released]
|
|
5
5
|
|
|
6
6
|
jobs:
|
|
7
|
-
|
|
7
|
+
build_main:
|
|
8
8
|
runs-on: ubuntu-latest
|
|
9
9
|
steps:
|
|
10
10
|
- uses: actions/checkout@v3
|
|
@@ -18,30 +18,21 @@ jobs:
|
|
|
18
18
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
19
19
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
20
20
|
|
|
21
|
+
- name: Get the version
|
|
22
|
+
id: get_version
|
|
23
|
+
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_OUTPUT"
|
|
24
|
+
|
|
21
25
|
- name: Build and push Docker images
|
|
22
26
|
uses: docker/build-push-action@v4
|
|
23
27
|
with:
|
|
24
28
|
context: .
|
|
25
29
|
file: ./dockerfiles/Dockerfile
|
|
26
|
-
tags: redturtletech/io-comune-base
|
|
30
|
+
tags: redturtletech/io-comune-base:${{ steps.get_version.outputs.VERSION }}
|
|
27
31
|
pull: true
|
|
28
32
|
push: true
|
|
29
|
-
cache-from: type=registry,ref=redturtletech/io-comune-base
|
|
33
|
+
cache-from: type=registry,ref=redturtletech/io-comune-base:${{ steps.get_version.outputs.VERSION }}
|
|
30
34
|
cache-to: type=inline
|
|
31
35
|
build-args: |
|
|
32
36
|
ADDON_NAME=design-comuni-plone-theme
|
|
33
37
|
ADDON_PATH=design-comuni-plone-theme
|
|
34
38
|
VOLTO_VERSION=17.0.0-alpha.19
|
|
35
|
-
|
|
36
|
-
- name: Deploy to rancher
|
|
37
|
-
uses: redturtle/rancher-deploy-action@v0.2.0
|
|
38
|
-
with:
|
|
39
|
-
host: ${{ secrets.RANCHER_HOST }}
|
|
40
|
-
api-username: ${{ secrets.RANCHER_API_USERNAME }}
|
|
41
|
-
api-password: ${{ secrets.RANCHER_API_PASSWORD }}
|
|
42
|
-
cluster-id: ${{ secrets.RANCHER_CLUSTER_ID }}
|
|
43
|
-
project-id: ${{ secrets.RANCHER_PROJECT_ID }}
|
|
44
|
-
namespace: ${{ secrets.RANCHER_NAMESPACE_DEVELOP }}
|
|
45
|
-
workload: ${{ secrets.RANCHER_WORKLOAD_DEVELOP }}
|
|
46
|
-
image: redturtletech/io-comune-base:develop
|
|
47
|
-
slack-hook-url: ${{ secrets.RANCHER_SLACK_HOOK_URL }}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [8.7.11](https://github.com/redturtle/design-comuni-plone-theme/compare/v8.7.10...v8.7.11) (2023-10-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* fixed requiredBlocks config with spread and added controls in EventView props ([#374](https://github.com/redturtle/design-comuni-plone-theme/issues/374)) ([f4ec297](https://github.com/redturtle/design-comuni-plone-theme/commit/f4ec297e3e5a5b2ec7cfc60b96fa73565c202de7))
|
|
9
|
+
* tabnav label in Release log ([#373](https://github.com/redturtle/design-comuni-plone-theme/issues/373)) ([c4abcd9](https://github.com/redturtle/design-comuni-plone-theme/commit/c4abcd95d40ecc3af56baeb8aa7a06d442b9154d))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Maintenance
|
|
13
|
+
|
|
14
|
+
* preparing release 8.7.11 ([fbf6386](https://github.com/redturtle/design-comuni-plone-theme/commit/fbf638682c30de694134bcf2686714204837d5cd))
|
|
15
|
+
|
|
16
|
+
## [8.7.10](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.7.9...v8.7.10) (2023-10-19)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* timeline_tempi_scadenze validation ([#370](https://github.com/RedTurtle/design-comuni-plone-theme/issues/370)) ([c97e325](https://github.com/RedTurtle/design-comuni-plone-theme/commit/c97e3252b21c409dbe575d43448ee4cf9a58ffba))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Maintenance
|
|
25
|
+
|
|
26
|
+
* updated github workflows ([0445653](https://github.com/RedTurtle/design-comuni-plone-theme/commit/04456532b38742877b5879e12492a6a2d0fdcabc))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Documentation
|
|
30
|
+
|
|
31
|
+
* updated publiccode and release log ([59ea5b7](https://github.com/RedTurtle/design-comuni-plone-theme/commit/59ea5b73e43bb5e937e34d67ef6bdad3da35e2ee))
|
|
32
|
+
* updated release log ([80bdcd1](https://github.com/RedTurtle/design-comuni-plone-theme/commit/80bdcd1e63bf6d405fcc692e860bc6fee138d58c))
|
|
33
|
+
|
|
3
34
|
## [8.7.9](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.7.8...v8.7.9) (2023-10-18)
|
|
4
35
|
|
|
5
36
|
|
package/RELEASE.md
CHANGED
|
@@ -41,22 +41,28 @@
|
|
|
41
41
|
- ...
|
|
42
42
|
-->
|
|
43
43
|
|
|
44
|
+
## Versione 8.7.10 (19/10/2023)
|
|
45
|
+
|
|
46
|
+
## Fix
|
|
47
|
+
|
|
48
|
+
- Sistemata validazione del campo Timeline tempi e scadenze
|
|
49
|
+
|
|
44
50
|
## Versione 8.7.9 (18/10/2023)
|
|
45
51
|
|
|
46
52
|
### Migliorie
|
|
47
53
|
|
|
48
|
-
- Migliorato il comportamento
|
|
54
|
+
- Migliorato il comportamento per la selezione/deselezione degli elementi multipli nel menù laterale a scomparsa
|
|
49
55
|
|
|
50
56
|
### Fix
|
|
51
57
|
|
|
52
58
|
- Eliminata la sovrapposizione tra immagine e testo nel tipo documento Pagina quando l'immagine è verticale
|
|
53
59
|
- Cambiato il colore del bordo dell'icona Ricerca nell'header dei sottositi per garantire il contrasto per accessibilità
|
|
54
|
-
-
|
|
60
|
+
- Nascosta la fascia colorata del footer di un sottosito quando questo non è compilato
|
|
55
61
|
- Risolto un bug nel selettore dei link nel menù laterale a scomparsa, che permetteva di selezionare più elementi di quelli consentiti
|
|
56
62
|
- Alcune icone mancanti nel widget di selezione delle icone di fontawesome sono state rese nuovamente visibili
|
|
57
63
|
- Sistemate inconsistenze nella visualizzazione di alcuni tipi di elementi della lista degli allegati in Cartella Modulistica
|
|
58
|
-
- Visualizzazione sidebar in edit del blocco Numeri:
|
|
59
|
-
- Sistemate le dimensioni dei risultati del blocco search con colonne laterali, rimosso overflow
|
|
64
|
+
- Visualizzazione sidebar in edit del blocco Numeri: sistemata la visualizzazione del testo di aiuto
|
|
65
|
+
- Sistemate le dimensioni dei risultati del blocco search con colonne laterali, rimosso overflow sopra ad altri elementi della pagina
|
|
60
66
|
|
|
61
67
|
## Versione 8.7.8 (12/10/2023)
|
|
62
68
|
|
|
@@ -80,14 +86,14 @@
|
|
|
80
86
|
|
|
81
87
|
### Fix
|
|
82
88
|
|
|
83
|
-
- Sistemato margine del blocco Alert quando allineato a sinistra
|
|
84
|
-
- Sistemato il template degli Rss Card con immagine per mostrare la data corretta
|
|
89
|
+
- Sistemato margine del blocco Alert quando è allineato a sinistra.
|
|
90
|
+
- Sistemato il template degli Rss Card con immagine per mostrare la data corretta di pubblicazione della notizia
|
|
85
91
|
|
|
86
92
|
## Versione 8.7.0 (20/09/2023)
|
|
87
93
|
|
|
88
94
|
### Migliorie
|
|
89
95
|
|
|
90
|
-
- Nel template Blocco link solo immagini con link esterni, icona
|
|
96
|
+
- Nel template Blocco link solo immagini con link esterni, l'icona per i link esterni (richiesta dall'accessibilità) ora è disattivabile attraverso opzione del template
|
|
91
97
|
- Migliorata l'accessibilità e il supporto Screen Reader per il menu a tendina "Ordina Per" nella pagina di ricerca
|
|
92
98
|
- Migliorata la navigazione da tastiera quando si è in modifica dei blocchi Alert, Card Semplice, Card con Immagine, Accordion
|
|
93
99
|
|
|
@@ -96,4 +102,4 @@
|
|
|
96
102
|
- sistemati gli oggetti link che puntano a file nella Cartella Modulistica
|
|
97
103
|
- Sistemato l'allineamento degli elementi nel blocco Contatti: se ci sono meno di tre elementi l'allineamento è centrato, se ce ne sono più di 3 l'allineamento è a sinistra.
|
|
98
104
|
- Migliorata accessibilità del calendario nel blocco ricerca Eventi e ricerca Bandi
|
|
99
|
-
- Fissato il layout del template Blocco link solo immagini con link esterni, posizionata l'icona di accessibilità per link esterni in overlay se presente
|
|
105
|
+
- Fissato il layout del template Blocco link solo immagini con link esterni, posizionata l'icona di accessibilità per link esterni in overlay (se presente)
|
package/package.json
CHANGED
package/publiccode.yml
CHANGED
|
@@ -227,9 +227,9 @@ maintenance:
|
|
|
227
227
|
name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
|
|
228
228
|
platforms:
|
|
229
229
|
- web
|
|
230
|
-
releaseDate: '2023-10-
|
|
230
|
+
releaseDate: '2023-10-23'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 8.7.
|
|
232
|
+
softwareVersion: 8.7.11
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
richTextHasContent,
|
|
13
13
|
Gallery,
|
|
14
14
|
} from 'design-comuni-plone-theme/components/ItaliaTheme/View';
|
|
15
|
+
import { contentFolderHasItems } from 'design-comuni-plone-theme/helpers';
|
|
15
16
|
|
|
16
17
|
const messages = defineMessages({
|
|
17
18
|
cos_e: {
|
|
@@ -36,7 +37,11 @@ const messages = defineMessages({
|
|
|
36
37
|
const EventoCosE = ({ content }) => {
|
|
37
38
|
const intl = useIntl();
|
|
38
39
|
|
|
39
|
-
return (
|
|
40
|
+
return richTextHasContent(content?.descrizione_estesa) ||
|
|
41
|
+
contentFolderHasItems(content, 'immagini') ||
|
|
42
|
+
contentFolderHasItems(content, 'video') ||
|
|
43
|
+
content?.persone_amministrazione?.length > 0 ||
|
|
44
|
+
richTextHasContent(content?.descrizione_destinatari) ? (
|
|
40
45
|
<RichTextSection
|
|
41
46
|
tag_id={'text-body'}
|
|
42
47
|
title={intl.formatMessage(messages.cos_e)}
|
|
@@ -48,7 +53,7 @@ const EventoCosE = ({ content }) => {
|
|
|
48
53
|
<h5 className="parteciperanno-section">
|
|
49
54
|
{intl.formatMessage(messages.parteciperanno)}
|
|
50
55
|
</h5>
|
|
51
|
-
{content
|
|
56
|
+
{content?.persone_amministrazione?.map((item, i) => (
|
|
52
57
|
<UniversalLink
|
|
53
58
|
href={flattenToAppURL(item['@id'])}
|
|
54
59
|
key={item['@id']}
|
|
@@ -85,6 +90,8 @@ const EventoCosE = ({ content }) => {
|
|
|
85
90
|
</div>
|
|
86
91
|
)}
|
|
87
92
|
</RichTextSection>
|
|
93
|
+
) : (
|
|
94
|
+
<></>
|
|
88
95
|
);
|
|
89
96
|
};
|
|
90
97
|
|
|
@@ -34,7 +34,7 @@ const EventoUlterioriInformazioni = ({ content }) => {
|
|
|
34
34
|
richTextHasContent(content?.ulteriori_informazioni) ||
|
|
35
35
|
content?.event_url ||
|
|
36
36
|
richTextHasContent(content?.patrocinato_da) ||
|
|
37
|
-
content?.strutture_politiche
|
|
37
|
+
content?.strutture_politiche?.length > 0,
|
|
38
38
|
[content],
|
|
39
39
|
);
|
|
40
40
|
|
|
@@ -64,11 +64,11 @@ const EventoUlterioriInformazioni = ({ content }) => {
|
|
|
64
64
|
)}
|
|
65
65
|
</div>
|
|
66
66
|
)}
|
|
67
|
-
{content?.strutture_politiche
|
|
67
|
+
{content?.strutture_politiche?.length > 0 && (
|
|
68
68
|
<div className="mt-4">
|
|
69
69
|
<h5>{intl.formatMessage(messages.strutture_politiche)}</h5>
|
|
70
70
|
<div className="card-wrapper card-teaser-wrapper card-teaser-wrapper-equal">
|
|
71
|
-
{content
|
|
71
|
+
{content?.strutture_politiche?.map((item, i) => (
|
|
72
72
|
<GenericCard
|
|
73
73
|
key={i}
|
|
74
74
|
index={item['@id']}
|
|
@@ -39,12 +39,12 @@ const ReleaseLog = () => {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
const LOGS_TO_VIEW = [
|
|
42
|
-
{ name: 'io-
|
|
42
|
+
{ name: 'io-Comune', file: ReleaseDCPT },
|
|
43
43
|
{
|
|
44
|
-
name: 'io-
|
|
44
|
+
name: 'io-Cittadino',
|
|
45
45
|
file: ReleaseIoCittadino,
|
|
46
46
|
},
|
|
47
|
-
{ name: 'io-
|
|
47
|
+
{ name: 'io-Prenoto', file: ReleaseIoPrenoto },
|
|
48
48
|
];
|
|
49
49
|
|
|
50
50
|
const [activeTab, toggleTab] = useState(LOGS_TO_VIEW[0].name);
|
|
@@ -438,9 +438,7 @@ export default function applyConfig(voltoConfig) {
|
|
|
438
438
|
blocksConfig: { ...config.blocks.blocksConfig, ...customBlocks },
|
|
439
439
|
groupBlocksOrder: config.blocks.groupBlocksOrder.concat(customBlocksOrder),
|
|
440
440
|
initialBlocks: { ...config.blocks.initialBlocks, ...customInitialBlocks },
|
|
441
|
-
requiredBlocks:
|
|
442
|
-
...config.blocks.requiredBlocks.concat(...customRequiredBlocks),
|
|
443
|
-
},
|
|
441
|
+
requiredBlocks: [...config.blocks.requiredBlocks, ...customRequiredBlocks],
|
|
444
442
|
showEditBlocksInBabelView: true,
|
|
445
443
|
};
|
|
446
444
|
|
|
@@ -11,7 +11,7 @@ const dgfieldValidationMessages = defineMessages({
|
|
|
11
11
|
export const CUSTOM_DGFIELD_VALIDATION = {
|
|
12
12
|
timeline_tempi_scadenze: {
|
|
13
13
|
isValid: (value, itemObj, intlFunc) => {
|
|
14
|
-
const isValid = value.every((val, i) => val.
|
|
14
|
+
const isValid = value.every((val, i) => val.milestone);
|
|
15
15
|
return !isValid
|
|
16
16
|
? intlFunc(
|
|
17
17
|
dgfieldValidationMessages.timeline_tempi_scadenze_validation_error,
|
|
File without changes
|