@eeacms/volto-cca-policy 0.1.46 → 0.1.47

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/CHANGELOG.md CHANGED
@@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [0.1.47](https://github.com/eea/volto-cca-policy/compare/0.1.46...0.1.47) - 13 October 2023
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: listing style [kreafox - [`dac5e2f`](https://github.com/eea/volto-cca-policy/commit/dac5e2f394db365844eebf763a89fba82c1efed6)]
12
+
13
+ #### :house: Internal changes
14
+
15
+ - chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`0e00baa`](https://github.com/eea/volto-cca-policy/commit/0e00baa1ec41955a44e0f9c8820862419803c75c)]
16
+ - style: update listing syle for summary view [kreafox - [`b7d67d9`](https://github.com/eea/volto-cca-policy/commit/b7d67d9b3ced965201abc5e5a178e35a5b8de5b3)]
17
+
18
+ #### :hammer_and_wrench: Others
19
+
20
+ - Refs #161509 - Fix adaptation option view when no ipcc category selected. [GhitaB - [`2a3ee62`](https://github.com/eea/volto-cca-policy/commit/2a3ee62fb6caeedee0d6a9268fa41e419f0045bd)]
7
21
  ### [0.1.46](https://github.com/eea/volto-cca-policy/compare/0.1.45...0.1.46) - 6 October 2023
8
22
 
9
23
  #### :rocket: New Features
@@ -196,6 +210,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
196
210
 
197
211
  #### :house: Internal changes
198
212
 
213
+ - chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
199
214
 
200
215
  #### :hammer_and_wrench: Others
201
216
 
@@ -676,6 +691,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
676
691
  #### :hammer_and_wrench: Others
677
692
 
678
693
  - Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
694
+ - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
679
695
  ### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
680
696
 
681
697
  #### :hammer_and_wrench: Others
package/DEVELOP.md CHANGED
@@ -16,12 +16,14 @@
16
16
 
17
17
  1. Go to http://localhost:3000
18
18
 
19
- 1. Happy hacking!
19
+ 1. Initialize git hooks
20
20
 
21
21
  ```Bash
22
- cd src/addons/volto-cca-policy/
22
+ yarn prepare
23
23
  ```
24
24
 
25
+ 1. Happy hacking!
26
+
25
27
  ### Or add @eeacms/volto-cca-policy to your Volto project
26
28
 
27
29
  Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)
@@ -48,18 +50,15 @@ Before starting make sure your development environment is properly set. See [Vol
48
50
 
49
51
  1. Install
50
52
 
51
- yarn develop
53
+ make develop
52
54
  yarn
53
55
 
54
56
  1. Start backend
55
57
 
56
- docker pull plone
57
- docker run -d --name plone -p 8080:8080 -e SITE=Plone -e PROFILES="profile-plone.restapi:blocks" plone
58
+ docker run --pull always -it --rm --name plone -p 8080:8080 -e SITE=Plone plone/plone-backend
58
59
 
59
60
  ...wait for backend to setup and start - `Ready to handle requests`:
60
61
 
61
- docker logs -f plone
62
-
63
62
  ...you can also check http://localhost:8080/Plone
64
63
 
65
64
  1. Start frontend
package/RELEASE.md CHANGED
@@ -20,9 +20,9 @@ You need to first install the [release-it](https://github.com/release-it/release
20
20
  ```
21
21
  npm install -g release-it
22
22
  ```
23
-
23
+
24
24
  Release-it uses the configuration written in the [`.release-it.json`](./.release-it.json) file located in the root of the repository.
25
-
25
+
26
26
  Release-it is a tool that automates 4 important steps in the release process:
27
27
 
28
28
  1. Version increase in `package.json` ( increased from the current version in `package.json`)
@@ -30,45 +30,45 @@ Release-it is a tool that automates 4 important steps in the release process:
30
30
  3. GitHub release on the commit with the changelog and package.json modification on the develop branch
31
31
  4. NPM release ( by default it's disabled, but can be enabled in the configuration file )
32
32
 
33
- To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
33
+ To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
34
34
 
35
35
  ```
36
36
  export GITHUB_TOKEN=XXX-XXXXXXXXXXXXXXXXXXXXXX
37
37
  ```
38
-
38
+
39
39
  To configure npm, you can use the `npm login` command or use a configuration file with a TOKEN :
40
-
40
+
41
41
  ```
42
42
  echo "//registry.npmjs.org/:_authToken=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" > .npmrc
43
43
  ```
44
44
 
45
45
  #### Using release-it tool
46
-
46
+
47
47
  There are 3 yarn scripts that can be run to do the release
48
48
 
49
49
  ##### yarn release-beta
50
50
 
51
- Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
51
+ Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
52
52
 
53
53
  ```
54
- ? Select increment (next version):
55
- ❯ prepatch (0.1.1-beta.0)
56
- preminor (0.2.0-beta.0)
57
- premajor (1.0.0-beta.0)
58
- Other, please specify...
54
+ ? Select increment (next version):
55
+ ❯ prepatch (0.1.1-beta.0)
56
+ preminor (0.2.0-beta.0)
57
+ premajor (1.0.0-beta.0)
58
+ Other, please specify...
59
59
  ```
60
60
 
61
61
  ##### yarn release-major-beta
62
62
 
63
63
  Same as `yarn release-beta`, but with premajor version pre-selected.
64
-
64
+
65
65
  ##### yarn release
66
66
 
67
67
  Generic command, does not automatically add the `beta` to version, but you can still manually write it if you choose Other.
68
68
 
69
69
  #### Important notes
70
70
 
71
- > Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
71
+ > Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
72
72
 
73
73
  > Do not keep Pull Requests from develop to master branches open when you are doing beta releases from the develop branch. As long as a PR to master is open, an automatic script will run on every commit and will update both the version and the changelog to a production-ready state - ( MAJOR.MINOR.PATCH mandatory format for version).
74
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -136,31 +136,35 @@ function AdaptationOptionView(props) {
136
136
 
137
137
  <SectionsMenu sections={usedSections} />
138
138
 
139
- <h4>Adaptation Details</h4>
140
-
141
- <div id={sectionID('IPCC categories')} className="section">
142
- <h5 className="section-title">IPCC categories</h5>
143
- {content.ipcc_category
144
- .map((item) => item.title)
145
- .sort()
146
- .join(', ')}
147
- {usedSections.length > 0 && (
148
- <>
149
- {usedSections.map((data, index) => (
150
- <Fragment key={index}>
151
- <div id={sectionID(data.title)} className="section">
152
- <h5 className="section-title">{data.title}</h5>
153
- <HTMLField
154
- value={content[data.field]}
155
- className="long_description"
156
- />
157
- </div>
158
- </Fragment>
159
- ))}
160
- </>
161
- )}
162
- </div>
163
- <hr />
139
+ {content?.ipcc_category?.length > 0 && (
140
+ <Fragment>
141
+ <h4>Adaptation Details</h4>
142
+
143
+ <div id={sectionID('IPCC categories')} className="section">
144
+ <h5 className="section-title">IPCC categories</h5>
145
+ {content.ipcc_category
146
+ .map((item) => item.title)
147
+ .sort()
148
+ .join(', ')}
149
+ {usedSections.length > 0 && (
150
+ <>
151
+ {usedSections.map((data, index) => (
152
+ <Fragment key={index}>
153
+ <div id={sectionID(data.title)} className="section">
154
+ <h5 className="section-title">{data.title}</h5>
155
+ <HTMLField
156
+ value={content[data.field]}
157
+ className="long_description"
158
+ />
159
+ </div>
160
+ </Fragment>
161
+ ))}
162
+ </>
163
+ )}
164
+ </div>
165
+ <hr />
166
+ </Fragment>
167
+ )}
164
168
 
165
169
  <h4>Reference information</h4>
166
170
 
@@ -292,12 +292,10 @@ body.view-viewview.has-toolbar:not(.has-sidebar):not(.has-sidebar-collapsed) {
292
292
  /* Mission: Latest news updates, Latest events */
293
293
  body.subsite-root.section-mission {
294
294
  div.columns-view {
295
- div.block.listing.default,
296
- div.block.listing.summary {
295
+ div.block.listing.default {
297
296
  div.items {
298
297
  div.listing-item {
299
298
  border: none;
300
- margin-bottom: 0px !important;
301
299
  }
302
300
 
303
301
  .listing-body {
@@ -314,13 +312,22 @@ body.subsite-root.section-mission {
314
312
  font-size: 1.5em;
315
313
  }
316
314
  }
317
- margin-top: 1.5em;
318
315
  }
319
316
  }
320
317
 
321
318
  div.block.listing.summary {
322
319
  .u-item {
323
- padding: 0 0 0.8em 0;
320
+ padding-top: 0;
321
+ padding-bottom: 20px;
322
+ border: none;
323
+ }
324
+
325
+ .listing-header {
326
+ font-size: @h4;
327
+ }
328
+
329
+ .listing-body.has-icon i.icon {
330
+ margin-top: 1px;
324
331
  }
325
332
  }
326
333
 
@@ -336,6 +343,10 @@ body.subsite-root.section-mission {
336
343
  }
337
344
  }
338
345
 
346
+ .listing-body-dates:empty {
347
+ margin-bottom: 0;
348
+ }
349
+
339
350
  body.subsite {
340
351
  .eea.header {
341
352
  .logo-wrapper {