Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #1

Merged
merged 493 commits into from
Jun 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
493 commits
Select commit Hold shift + click to select a range
d8b14a7
Refs #140518 - Left align mlt.
GhitaB Nov 9, 2021
272acc5
Refs #140518 - Move Clear icon near the facet title.
GhitaB Nov 9, 2021
111a159
Refs #140518 - Move Clear icon near the facet title.
GhitaB Nov 9, 2021
3112b58
Refs #141282 - Add logo in search box.
GhitaB Nov 9, 2021
36d75bc
Refs #141282 - Add logo in search box - clean unused.
GhitaB Nov 9, 2021
cdfc2ed
Refs #141282 - Logo styles.
GhitaB Nov 9, 2021
18ae3f8
Refs #141282 - Logo styles.
GhitaB Nov 9, 2021
a27b541
Refs #141282 - Fix clear btn on small screen issue.
GhitaB Nov 9, 2021
2406da5
Refs #141282 - Fix clear btn on small screen issue.
GhitaB Nov 9, 2021
88a432f
Refs #141282 - Search box - improve responsivity.
GhitaB Nov 9, 2021
d1d6901
Refs #141282 - Improve clear btn.
GhitaB Nov 9, 2021
e10f295
Refs #141282 - Larger labels.
GhitaB Nov 10, 2021
74e7c50
Refs #141282 - Simplify header.
GhitaB Nov 10, 2021
6920741
Refs #141282 - Get rid of bottom border.
GhitaB Nov 10, 2021
504bcdf
Refs #140518 - Left align items on small screen, too.
GhitaB Nov 10, 2021
6bd6dcc
Refs #140518 - Landing page on small screens.
GhitaB Nov 10, 2021
fe55887
Refs #140518 - Landing page on small screens.
GhitaB Nov 10, 2021
4244353
Refs #140518 - Display as - make entire label clickable.
GhitaB Nov 10, 2021
99ab521
Refs #140518 - Multiterm facet - fix responsivity.
GhitaB Nov 10, 2021
7c90fd4
Add highlighting
tiberiuichim Nov 10, 2021
872f9a1
Styles for answer list
tiberiuichim Nov 10, 2021
347af18
Improve styling of answer
tiberiuichim Nov 10, 2021
8c5280e
Refs #140518 - Improve styles for Display as.
GhitaB Nov 11, 2021
a23e699
Refs #140518 - Fix spacing near icon.
GhitaB Nov 11, 2021
77fcaf7
Refs #140518 - Icon styles in search input.
GhitaB Nov 11, 2021
0fb9dba
Refs #140518 - mlt button styles.
GhitaB Nov 11, 2021
2afd44e
Refs #140518 - mlt card - fix issue on small screen.
GhitaB Nov 11, 2021
0df87c6
Refs #140518 - move mlt button.
GhitaB Nov 11, 2021
2b3a013
Refs #140518 - Fix labels text.
GhitaB Nov 11, 2021
d3300ab
Refs #140518 - Improve styles for answer.
GhitaB Nov 11, 2021
fea43d0
Allow downloading results; needs to start server with RAZZLE_PROXY_ES…
tiberiuichim Nov 11, 2021
9d235dd
Set scrolling content max height
tiberiuichim Nov 11, 2021
f74b3e7
Small adjustment
tiberiuichim Nov 12, 2021
703f683
Refs #140518 - Fix left align in answers section.
GhitaB Nov 12, 2021
2f43f9a
Refs #140518 - Fix spacing.
GhitaB Nov 12, 2021
62cb405
Refs #140518 - Improve answers section.
GhitaB Nov 12, 2021
fe0243d
Refs #140518 - Improve labels, get rid of ellipsis.
GhitaB Nov 12, 2021
ead4b5d
Refs #140518 - Improve labels, get rid of ellipsis.
GhitaB Nov 12, 2021
b6d8f5a
Refs #140518 - Sort and display - same style.
GhitaB Nov 12, 2021
10dac88
Refs #140518 - Fix archived item label.
GhitaB Nov 12, 2021
2c97630
Refs #140518 - Dark gray for answer.
GhitaB Nov 15, 2021
45125f4
Refs #140518 - Dark gray icon in answer title.
GhitaB Nov 15, 2021
b6b4fc0
Refs #140518 - Improve Sort by.
GhitaB Nov 15, 2021
423998a
Refs #140518 - Improve Display as.
GhitaB Nov 15, 2021
fa4c452
Refs #140518 - Expand full width page for search, but keep search res…
GhitaB Nov 15, 2021
67b80d2
Refs #140518 - Expand search header, too. This solves vertical align …
GhitaB Nov 15, 2021
9a15bf6
Refs #140518 - Fix answer box left align.
GhitaB Nov 15, 2021
e736334
Refs #140518 - Better answer box width.
GhitaB Nov 16, 2021
94d12cf
Refs #140518 - Add a max width for card items.
GhitaB Nov 16, 2021
b123b01
Refs #140518 - Improve layout for landing page.
GhitaB Nov 16, 2021
96094a7
Refs #140518 - Improve footer.
GhitaB Nov 16, 2021
0a094ac
Refs #140518 - MLT filter - width 100%.
GhitaB Nov 17, 2021
380b417
Refs #140518 - MLT filter - image width 100%.
GhitaB Nov 17, 2021
7f228c0
Refs #140518 - Improve footer responsivity.
GhitaB Nov 17, 2021
3fef3d3
Refs #140518 - Improve footer responsivity. Add download btn styles.
GhitaB Nov 17, 2021
8d4fc7d
Refs #140518 - Move Include Archived facet.
GhitaB Nov 18, 2021
78d36d8
Refs #140518 - Improve sorting dropdown.
GhitaB Nov 18, 2021
b0e6138
Refs #140518 - Improve breadcrumbs.
GhitaB Nov 18, 2021
2d5e703
Refs #140518 - Fix cards width on small screen.
GhitaB Nov 19, 2021
01dd6b8
Refs #140518 - Fix cards width on small screen.
GhitaB Nov 19, 2021
2babdf9
Refs #140518 - Add some space between tabs menu and controls.
GhitaB Nov 19, 2021
87dacb9
Refs #140518 - Card meta improve spacing.
GhitaB Nov 19, 2021
64a6d81
Refs #140518 - Show filters btn fix.
GhitaB Nov 19, 2021
cfae251
Refs #140518 - Clean code - search-terms.
GhitaB Nov 19, 2021
d33e2fe
Refs #140518 - Search input - fix close button spacing.
GhitaB Nov 19, 2021
b5a88f6
Refs #140518 - Improve header on small screens.
GhitaB Nov 19, 2021
ad860ff
Refs #140518 - Fix page width for logged in users.
GhitaB Nov 22, 2021
ceea5fd
Refs #140518 - Fix page width for logged in users.
GhitaB Nov 22, 2021
d001ec7
Refs #140518 - Improve card items layout.
GhitaB Nov 22, 2021
94eb1e4
Refs #140518 - Clear button.
GhitaB Nov 22, 2021
4f5d453
Refs #133599 - Add configurable demo question field.
GhitaB Nov 23, 2021
f4c1059
Refs #133599 - Demo question - styles.
GhitaB Nov 23, 2021
ff7b7b6
Refs #133599 - Hide breadcrumbs.
GhitaB Nov 23, 2021
3f8ea6f
Refs #133599 - Hide breadcrumbs.
GhitaB Nov 23, 2021
59677bf
Refs #142010 - Optimize Volto-addons gitflow pipelines
Nov 23, 2021
aecbcaf
Refs #133599 - Better spacing under search block.
GhitaB Nov 24, 2021
4da1510
Change schema to include promptQueries
tiberiuichim Nov 25, 2021
b22f0ab
Add animation
tiberiuichim Nov 25, 2021
d7ebad9
Refs #133599 - Improve styles.
GhitaB Nov 25, 2021
5a10f45
Refs #133599 - Fix header fullwidth size (by using a selector with a …
GhitaB Nov 25, 2021
4d1b10a
Refs #133599 - Fix Clear btn on small screens, in facet modal.
GhitaB Nov 26, 2021
b20c306
Update styling
tiberiuichim Nov 26, 2021
b3343b0
Refs #133599 - Right align filters btn.
GhitaB Nov 26, 2021
ff4d50a
Merge branch 'develop' of https://github.com/eea/volto-searchlib into…
GhitaB Nov 26, 2021
afdea2d
Refs #133599 - Improve header spacing for small screens.
GhitaB Nov 29, 2021
3b25537
Refs #133599 - Improve card item max-width.
GhitaB Nov 29, 2021
5d363af
Adjust cards; add answer bullet styles
tiberiuichim Nov 29, 2021
df16eb6
Only show bullets if more cards
tiberiuichim Nov 29, 2021
e2aa874
Adjust bullets
tiberiuichim Nov 30, 2021
c8cbbb7
Add hover to buttons
tiberiuichim Dec 1, 2021
314952d
Refs #141511 - Improve above-results section to use flex.
GhitaB Dec 2, 2021
ad92e2e
Move less files
tiberiuichim Dec 2, 2021
7ceb4c7
Move variables to less file
tiberiuichim Dec 2, 2021
cf6b5d2
Remove margin from answerbox loader
tiberiuichim Dec 2, 2021
c0f3c3a
Fix styling of buttons
tiberiuichim Dec 2, 2021
0c2bdcc
Refs #141511 - In horizontal cards mode keep - fix multiple columns o…
GhitaB Dec 2, 2021
b723d6c
Refs #141511 - Fix colors in pagination.
GhitaB Dec 2, 2021
4667e60
Refs #141511 - Fix font size in card view.
GhitaB Dec 2, 2021
3184ee0
Refs #141511 - Fix cards layout - equal width for cards on the same row.
GhitaB Dec 2, 2021
1c0952a
Refs #141511 - Results layout based on selected view.
GhitaB Dec 3, 2021
54e3571
Hide overflow in answers
tiberiuichim Dec 3, 2021
030f038
Refs #141511 - Improve answer styles.
GhitaB Dec 3, 2021
fa66222
Merge branch 'develop' of https://github.com/eea/volto-searchlib into…
GhitaB Dec 3, 2021
23df7b8
Refs #141511 - Fix breadcrumbs in answer box for small screens.
GhitaB Dec 3, 2021
f472644
Refs #142573 - Normalize search input width.
GhitaB Dec 3, 2021
421e01d
Refs #142573 - Normalize search input width.
GhitaB Dec 3, 2021
944013d
[JENKINS] Refs #142010 - Optimize Volto-addons gitflow pipelines
Dec 3, 2021
da1f6dc
Refs #141511 - Cards - use display grid for equal widths on all rows.
GhitaB Dec 6, 2021
4d32777
Refs #141511 - Fix filters btn right align.
GhitaB Dec 6, 2021
0fe8694
Refs #142559 - style the query prompt in blue.
GhitaB Dec 7, 2021
aea3b2e
Refs #142559 - use 16px for query prompt.
GhitaB Dec 7, 2021
cf00720
Refs #142559 - try searching for is 14px.
GhitaB Dec 7, 2021
7702743
Refs #142559 - icon style.
GhitaB Dec 7, 2021
d19dc58
Refs #142573 - Fix header on smaller screens.
GhitaB Dec 8, 2021
88e58a7
Refs #142573 - Fix scroll bar when image is missing in search result.
GhitaB Dec 8, 2021
2b2285a
Refs #142573 - Fix scroll bar when image is missing in search result …
GhitaB Dec 8, 2021
fbfd92a
Refs #142573 - facet icons style.
GhitaB Dec 8, 2021
2fbf785
Refs #142573 - facet icons style.
GhitaB Dec 8, 2021
5a2698d
Refs #142953 - Tags style in horizontal card
GhitaB Dec 9, 2021
1d4566f
Refs #142953 - Horizontal card - breadcrumbs.
GhitaB Dec 9, 2021
2aba8f3
Refs #142953 - Horizontal card - breadcrumbs.
GhitaB Dec 10, 2021
85d1e63
Adjust MLT card style
tiberiuichim Dec 10, 2021
4850313
Refs #142953 - Website icons.
GhitaB Dec 10, 2021
0a723ae
Merge branch 'develop' of https://github.com/eea/volto-searchlib into…
GhitaB Dec 10, 2021
56acc5c
Refs #142953 - Make section tabs scrollable.
GhitaB Dec 13, 2021
949ad19
Refs #142953 - Display grid cards in landing page.
GhitaB Dec 13, 2021
af95932
Add styles for filter list entry
tiberiuichim Dec 13, 2021
35067a3
Fixes to filter value
tiberiuichim Dec 13, 2021
2c195ef
Tweak color of icon in section tab
tiberiuichim Dec 13, 2021
632d07b
[JENKINS] Refs #142010 - Optimize Volto-addons gitflow pipelines
Dec 13, 2021
10bea11
Refs #142953 - Improve landing page cards size on large screens.
GhitaB Dec 14, 2021
59e18e3
Refs #142953 - Fix too large card for languages in landing page.
GhitaB Dec 14, 2021
7ed860e
Refs #142953 - Styles for logos in Sources - landing page.
GhitaB Dec 14, 2021
92b027f
Refs #142953 - Style for tiles info msg.
GhitaB Dec 16, 2021
3529497
Refs #142953 - Dimmer - add styles.
GhitaB Dec 16, 2021
a894827
[JENKINS] Refs #142742 - Add release documentation
Dec 16, 2021
73a4bed
Refs #142953 - Dimmer - fix show filters btn position.
GhitaB Dec 17, 2021
985ac30
Refs #142953 - Fix facet selected option width to fit the content, no…
GhitaB Dec 17, 2021
98c75c4
Refs #140518 - Fix page document padding on small screen.
GhitaB Dec 20, 2021
16552e2
Refs #140518 - Fix page document padding on small screen. Also header.
GhitaB Dec 20, 2021
f0a998e
Refs #140518 - Fix header align with content on small screen.
GhitaB Dec 20, 2021
1ca76e0
Refs #140518 - Improve section tabs spacing on smaller screens.
GhitaB Dec 20, 2021
2e2318a
Refs #140518 - Fix header columns spacing on small screens.
GhitaB Dec 20, 2021
25659c1
Refs #140518 - More styles for facet dimmer.
GhitaB Dec 20, 2021
a7800d8
Refs #140518 - Improve horizontal card.
GhitaB Dec 21, 2021
07a999e
Refs #140518 - Improve dimmer styles.
GhitaB Dec 21, 2021
53ed94e
Refs #140518 - Improve dimmer styles.
GhitaB Dec 21, 2021
275c652
Refs #140518 - Dimmer - scroll content when many filters selected.
GhitaB Dec 21, 2021
d650f93
Refs #140518 - Do not display thumb image on small screen in horizont…
GhitaB Dec 21, 2021
df8b8d1
Refs #140518 - Dimmer content - improve size.
GhitaB Dec 22, 2021
ec73059
Refs #140518 - Fix autocomplete size.
GhitaB Dec 22, 2021
7fd1af3
Refs #140518 - Fix autocomplete size.
GhitaB Dec 22, 2021
7073e75
Refs #140518 - Fix top menu z-index.
GhitaB Dec 22, 2021
99a0a5a
[JENKINS] Refs #142010 - Do not save successfull test videos
Dec 29, 2021
507ade4
Refs #136090 - Simplify the answer box colors.
GhitaB Jan 4, 2022
6bb3000
Refs #136090 - Improve paging buttons styles.
GhitaB Jan 5, 2022
d5602da
Refs #136090 - Improve search result spacing and styles.
GhitaB Jan 5, 2022
1247bd2
Refs #136090 - Improve tags list in horizontal card.
GhitaB Jan 5, 2022
b6f619e
Refs #136090 - Improve tags list in horizontal card.
GhitaB Jan 5, 2022
2a8c381
Refs #136090 - Better border card.
GhitaB Jan 5, 2022
556348b
Refs #136090 - Results per page selector - styles.
GhitaB Jan 6, 2022
286d7db
Refs #136090 - Answer box.
GhitaB Jan 6, 2022
802b326
Refs #136090 - Full width col in case of no image - horizontal card.
GhitaB Jan 6, 2022
bca737d
Display score inline
tiberiuichim Jan 6, 2022
b2ff98b
Revert "Display score inline"
tiberiuichim Jan 7, 2022
a416c03
Refs #143873 - Fix link color for source in horizontal card.
GhitaB Jan 7, 2022
a75969c
Refs #143873 - Improve logos in Sources - landing page.
GhitaB Jan 7, 2022
d9fcf09
Refs #143873 - Larger logos in Sources facet.
GhitaB Jan 7, 2022
1f4b61b
Refs #143873 - Larger icons in Content types facet.
GhitaB Jan 7, 2022
c377ccd
Refs #143873 - MLT button as dropdown in small screens.
GhitaB Jan 7, 2022
fba1e2b
Refs #143873 - Larger icons in Content types facet.
GhitaB Jan 7, 2022
2796c31
WIP on adding filters
tiberiuichim Jan 7, 2022
5abe0b9
Refs #143873 - Fix breadcrumb color in horizontal card.
GhitaB Jan 10, 2022
e0cb93c
Refs #143873 - Fix logos size.
GhitaB Jan 10, 2022
191b45a
Refs #143873 - Mlt dropdown styles.
GhitaB Jan 10, 2022
4cddd91
Refs #143873 - Limit the width of facets column on large screens.
GhitaB Jan 10, 2022
774eae9
Refs #143873 - Fluid font size in facet modal title.
GhitaB Jan 10, 2022
0c7775c
Refs #143873 - Fluid font size in facet modal title.
GhitaB Jan 10, 2022
8c0d33a
Refs #136090 - WIP improve selectors on smaller screen.
GhitaB Jan 11, 2022
fb69314
Refs #136090 - WIP improve selectors on smaller screen.
GhitaB Jan 11, 2022
ec1b9c9
Refs #136090 - Fix cards in landing page for small screen.
GhitaB Jan 12, 2022
8ef7cb7
Refs #136090 - Styles for dropdown menu.
GhitaB Jan 12, 2022
8928f94
Refs #136090 - Styles for dropdown menu.
GhitaB Jan 12, 2022
f19093a
Refs #136090 - Fix menu position on small screen.
GhitaB Jan 12, 2022
4ff4e87
Fix crash when creating a new block
tiberiuichim Jan 13, 2022
0a67b2e
More fixes
tiberiuichim Jan 13, 2022
8dc8a3e
Code cleanup
tiberiuichim Jan 13, 2022
81a2766
Multiple clusters in card view.
GhitaB Jan 17, 2022
1d7dbbd
Change tags list style.
GhitaB Jan 17, 2022
e6a6a7a
Enable scroll bar for section tabs.
GhitaB Jan 17, 2022
dbd5b21
Upgrade elastic libs
tiberiuichim Jan 19, 2022
9da49bf
Improve animation
tiberiuichim Jan 20, 2022
b4b50ca
Break facetlist into separate file
tiberiuichim Jan 28, 2022
1de1e12
Split searchresult to separate file; change color of source span
tiberiuichim Jan 28, 2022
7687265
Add styling for PDF icon
tiberiuichim Jan 28, 2022
5f13d15
Use maxResponseSize for json body limit
tiberiuichim Jan 31, 2022
dcfe08c
Small styling fix
tiberiuichim Feb 2, 2022
f33badc
Add overlay in edit mode
tiberiuichim Feb 2, 2022
27ee3f0
Rename to customConfig
tiberiuichim Feb 2, 2022
71e3c22
WIP in answerbox notification; fix custom schema-based config modifiers
tiberiuichim Feb 4, 2022
5b4c277
Use strong to separate site in source
tiberiuichim Feb 10, 2022
b8ce9c5
Add styles for searchbox in separate file
tiberiuichim Feb 10, 2022
f322463
Adjust style for padding
tiberiuichim Feb 10, 2022
c2ebe76
Add three dots loader to be used in answer box
tiberiuichim Feb 14, 2022
243148e
Tweak loading indicator
tiberiuichim Feb 14, 2022
2620c03
Make button in sample query prompt easier to grab on mobile
tiberiuichim Feb 14, 2022
55c9176
Fix search input
tiberiuichim Feb 15, 2022
4499c7b
Adjust style of button
tiberiuichim Feb 15, 2022
2fc776e
Improve breadcrumb display
tiberiuichim Feb 15, 2022
9599f9f
Don't use transparency in colors; remove padding and background color…
tiberiuichim Feb 16, 2022
51bf3e4
Adjust style of facet
tiberiuichim Feb 16, 2022
016521c
Tweak tags styling
tiberiuichim Feb 16, 2022
cd832be
updated style of 'explore more queries' button
zotya Feb 17, 2022
d2be9b3
Remove background from active facets
tiberiuichim Feb 17, 2022
c64f8e2
Upgrade jotai
tiberiuichim Feb 18, 2022
4e07ce6
updated style for highlights in search results
zotya Feb 22, 2022
39f798b
Add dependencies
tiberiuichim Feb 22, 2022
e997a1e
Refs #144708 - Grayscale logos in sources.
GhitaB Feb 25, 2022
7cbc183
updated style for no results view
zotya Feb 25, 2022
043d73b
Refs #144708 - Use white background for logos in Sources.
GhitaB Feb 28, 2022
f545ad5
Refs #144718 - Fix logos is Sources for small screen.
GhitaB Mar 4, 2022
3284d60
Refs #144718 - Solve dimmer content width issue for long Sources item…
GhitaB Mar 8, 2022
437e813
Refs #144718 - Fix Show filters button spacing in dimmer.
GhitaB Mar 9, 2022
8e36413
Integrate datahub
tiberiuichim Mar 30, 2022
12b7dd0
[JENKINS] Use NodeJS 16 for sonarqube - Refs #111286
Apr 12, 2022
c4281f4
Send an error
tiberiuichim Apr 28, 2022
e411ab9
Don't load datahub
tiberiuichim Apr 28, 2022
6046446
Temp code change
tiberiuichim Apr 29, 2022
033704b
Bring back code
tiberiuichim Apr 29, 2022
3e6722b
Also send error on search
tiberiuichim May 3, 2022
7b2b1a0
Also send error on search
tiberiuichim May 3, 2022
e586013
Add elasticsearch as dependency
tiberiuichim May 12, 2022
e1b249b
Allow multiple env vars for DSNs
tiberiuichim May 12, 2022
4ad3b7f
Prettier & CSS fixes
kreafox May 19, 2022
d6886ea
No longer need these
tiberiuichim May 20, 2022
29a270f
Improve CSS, cleanup & split CSS to components
kreafox May 23, 2022
74bd106
Merge branch 'develop' of https://github.com/eea/volto-searchlib into…
kreafox May 23, 2022
bf97935
update razzle.extend
kreafox May 24, 2022
9955eed
Don't need search-less
tiberiuichim May 25, 2022
d343fdf
No need for search-less
tiberiuichim May 25, 2022
21b88f3
Merge pull request #2 from eea/no-search-less
tiberiuichim May 25, 2022
711d25b
added @eeacms/search as dependency
zotya May 31, 2022
00eaaf6
Merge branch 'develop' of https://github.com/eea/volto-searchlib into…
zotya May 31, 2022
35bedb0
added dependencies, updating razzle.extend.js
zotya Jun 3, 2022
6356c14
updated @eeacms/search version
zotya Jun 3, 2022
217fd54
Merge pull request #3 from eea/rf
zotya Jun 3, 2022
1545a8c
removed debug info
zotya Jun 3, 2022
d92e2fe
Use it for searchlib in dev mode
tiberiuichim Jun 6, 2022
86fb790
updated dependencies
zotya Jun 7, 2022
4156833
Automated release 0.1.0
Jun 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
729 changes: 726 additions & 3 deletions CHANGELOG.md

Large diffs are not rendered by default.

82 changes: 57 additions & 25 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,37 @@ pipeline {
environment {
GIT_NAME = "volto-searchlib"
NAMESPACE = "@eeacms"
SONARQUBE_TAGS = "volto.eea.europa.eu"
SONARQUBE_TAGS = "volto.eea.europa.eu,clms.land.copernicus.eu"
DEPENDENCIES = ""
}

stages {

stage('Release') {
when {
allOf {
environment name: 'CHANGE_ID', value: ''
branch 'master'
}
}
steps {
node(label: 'docker') {
withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN'),string(credentialsId: 'eea-jenkins-npm-token', variable: 'NPM_TOKEN')]) {
sh '''docker pull eeacms/gitflow'''
sh '''docker run -i --rm --name="$BUILD_TAG-gitflow-master" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_NAME="$GIT_NAME" -e GIT_TOKEN="$GITHUB_TOKEN" -e NPM_TOKEN="$NPM_TOKEN" -e LANGUAGE=javascript eeacms/gitflow'''
}
}
}
}

stage('Code') {
when {
allOf {
environment name: 'CHANGE_ID', value: ''
not { changelog '.*^Automated release [0-9\\.]+$' }
not { branch 'master' }
}
}
steps {
parallel(

Expand All @@ -36,6 +60,15 @@ pipeline {
}

stage('Tests') {
when {
allOf {
environment name: 'CHANGE_ID', value: ''
anyOf {
not { changelog '.*^Automated release [0-9\\.]+$' }
branch 'master'
}
}
}
steps {
parallel(

Expand Down Expand Up @@ -75,14 +108,23 @@ pipeline {
}

stage('Integration tests') {
when {
allOf {
environment name: 'CHANGE_ID', value: ''
anyOf {
not { changelog '.*^Automated release [0-9\\.]+$' }
branch 'master'
}
}
}
steps {
parallel(

"Cypress": {
node(label: 'docker') {
script {
try {
sh '''docker pull plone; docker run -d --name="$BUILD_TAG-plone" -e SITE="Plone" -e PROFILES="profile-plone.restapi:blocks" plone fg'''
sh '''docker pull plone; docker run -d --rm --name="$BUILD_TAG-plone" -e SITE="Plone" -e PROFILES="profile-plone.restapi:blocks" plone fg'''
sh '''docker pull plone/volto-addon-ci; docker run -i --name="$BUILD_TAG-cypress" --link $BUILD_TAG-plone:plone -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e DEPENDENCIES="$DEPENDENCIES" plone/volto-addon-ci cypress'''
} finally {
try {
Expand All @@ -100,7 +142,8 @@ pipeline {
reportName: 'CypressCoverage',
reportTitles: 'Integration Tests Code Coverage'])
}
archiveArtifacts artifacts: 'cypress-reports/videos/*.mp4', fingerprint: true
sh '''touch empty_file; for ok_test in $(grep -E 'file=.*failures="0"' $(grep 'testsuites .*failures="0"' $(find cypress-results -name *.xml) empty_file | awk -F: '{print $1}') empty_file | sed 's/.* file="\\(.*\\)" time.*/\\1/' | sed 's#^cypress/integration/##g' | sed 's#^../../../node_modules/@eeacms/##g'); do rm -f cypress-reports/videos/$ok_test.mp4; rm -f cypress-reports/$ok_test.mp4; done'''
archiveArtifacts artifacts: 'cypress-reports/**/*.mp4', fingerprint: true, allowEmptyArchive: true
stash name: "cypress-coverage", includes: "cypress-coverage/**", allowEmpty: true
}
finally {
Expand All @@ -122,10 +165,16 @@ pipeline {
}

stage('Report to SonarQube') {
// Exclude Pull-Requests
when {
allOf {
environment name: 'CHANGE_ID', value: ''
anyOf {
branch 'master'
allOf {
branch 'develop'
not { changelog '.*^Automated release [0-9\\.]+$' }
}
}
}
}
steps {
Expand All @@ -135,10 +184,10 @@ pipeline {
unstash "xunit-reports"
unstash "cypress-coverage"
def scannerHome = tool 'SonarQubeScanner';
def nodeJS = tool 'NodeJS11';
def nodeJS = tool 'NodeJS';
withSonarQubeEnv('Sonarqube') {
sh '''sed -i "s#/opt/frontend/my-volto-project/src/addons/${GIT_NAME}/##g" xunit-reports/coverage/lcov.info'''
sh "export PATH=$PATH:${scannerHome}/bin:${nodeJS}/bin; sonar-scanner -Dsonar.javascript.lcov.reportPaths=./xunit-reports/coverage/lcov.info,./cypress-coverage/coverage/lcov.info -Dsonar.sources=./src -Dsonar.projectKey=$GIT_NAME-$BRANCH_NAME -Dsonar.projectVersion=$BRANCH_NAME-$BUILD_NUMBER"
sh "export PATH=${scannerHome}/bin:${nodeJS}/bin:$PATH; sonar-scanner -Dsonar.javascript.lcov.reportPaths=./xunit-reports/coverage/lcov.info,./cypress-coverage/coverage/lcov.info -Dsonar.sources=./src -Dsonar.projectKey=$GIT_NAME-$BRANCH_NAME -Dsonar.projectVersion=$BRANCH_NAME-$BUILD_NUMBER"
sh '''try=2; while [ \$try -gt 0 ]; do curl -s -XPOST -u "${SONAR_AUTH_TOKEN}:" "${SONAR_HOST_URL}api/project_tags/set?project=${GIT_NAME}-${BRANCH_NAME}&tags=${SONARQUBE_TAGS},${BRANCH_NAME}" > set_tags_result; if [ \$(grep -ic error set_tags_result ) -eq 0 ]; then try=0; else cat set_tags_result; echo "... Will retry"; sleep 60; try=\$(( \$try - 1 )); fi; done'''
}
}
Expand All @@ -156,8 +205,8 @@ pipeline {
steps {
node(label: 'docker') {
script {
if ( env.CHANGE_BRANCH != "develop" && !( env.CHANGE_BRANCH.startsWith("hotfix")) ) {
error "Pipeline aborted due to PR not made from develop or hotfix branch"
if ( env.CHANGE_BRANCH != "develop" ) {
error "Pipeline aborted due to PR not made from develop branch"
}
withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN')]) {
sh '''docker pull eeacms/gitflow'''
Expand All @@ -168,23 +217,6 @@ pipeline {
}
}

stage('Release') {
when {
allOf {
environment name: 'CHANGE_ID', value: ''
branch 'master'
}
}
steps {
node(label: 'docker') {
withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN'),string(credentialsId: 'eea-jenkins-npm-token', variable: 'NPM_TOKEN')]) {
sh '''docker pull eeacms/gitflow'''
sh '''docker run -i --rm --name="$BUILD_TAG-gitflow-master" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_NAME="$GIT_NAME" -e GIT_TOKEN="$GITHUB_TOKEN" -e NPM_TOKEN="$NPM_TOKEN" -e LANGUAGE=javascript eeacms/gitflow'''
}
}
}
}

}

post {
Expand Down
101 changes: 101 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,33 @@
# volto-searchlib

### Elasticsearch and NLPService middleware

You can configure the proxied Elasticsearch with the env var:

`RAZZLE_PROXY_ES_DSN_${appName}`, so for example `RAZZLE_PROXY_ES_DSN_datahub`.

If you use only one ES server, you can simply set `RAZZLE_PROXY_ES_DSN`.

You can configure the proxied NLPServer with the env var:

`RAZZLE_PROXY_QA_DSN_${appName}`, for example:
`RAZZLE_PROXY_QA_DSN_globalsearch`. You you use only one NLP service, you can
simply set `RAZZLE_PROXY_QA_DSN`. Notice, in principle the NLPService can use
different Elasticsearch indexes.

[![Releases](https://img.shields.io/github/v/release/eea/volto-searchlib)](https://github.com/eea/volto-searchlib/releases)

[![Pipeline](https://ci.eionet.europa.eu/buildStatus/icon?job=volto-addons%2Fvolto-searchlib%2Fmaster&subject=master)](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-searchlib/job/master/display/redirect)
[![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-searchlib-master&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-searchlib-master)
[![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-searchlib-master&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-searchlib-master)
[![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-searchlib-master&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-searchlib-master)
[![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-searchlib-master&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-searchlib-master)

[![Pipeline](https://ci.eionet.europa.eu/buildStatus/icon?job=volto-addons%2Fvolto-searchlib%2Fdevelop&subject=develop)](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-searchlib/job/develop/display/redirect)
[![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-searchlib-develop&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-searchlib-develop)
[![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-searchlib-develop&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-searchlib-develop)
[![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-searchlib-develop&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-searchlib-develop)
[![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-searchlib-develop&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-searchlib-develop)

[Volto](https://github.com/plone/volto) add-on

Expand Down Expand Up @@ -70,6 +96,81 @@ Demo GIF

1. Happy editing!

## Release

### Automatic release using Jenkins

* The automatic release is started by creating a [Pull Request](../../compare/master...develop) from `develop` to `master`. The pull request status checks correlated to the branch and PR Jenkins jobs need to be processed successfully. 1 review from a github user with rights is mandatory.
* It runs on every commit on `master` branch, which is protected from direct commits, only allowing pull request merge commits.
* The automatic release is done by [Jenkins](https://ci.eionet.europa.eu). The status of the release job can be seen both in the Readme.md badges and the green check/red cross/yellow circle near the last commit information. If you click on the icon, you will have the list of checks that were run. The `continuous-integration/jenkins/branch` link goes to the Jenkins job execution webpage.
* Automated release scripts are located in the `eeacms/gitflow` docker image, specifically [js-release.sh](https://github.com/eea/eea.docker.gitflow/blob/master/src/js-release.sh) script. It uses the `release-it` tool.
* As long as a PR request is open from develop to master, the PR Jenkins job will automatically re-create the CHANGELOG.md and package.json files to be production-ready.
* The version format must be MAJOR.MINOR.PATCH. By default, next release is set to next minor version (with patch 0).
* You can manually change the version in `package.json`. The new version must not be already present in the tags/releases of the repository, otherwise it will be automatically increased by the script. Any changes to the version will trigger a `CHANGELOG.md` re-generation.
* Automated commits and commits with [JENKINS] or [YARN] in the commit log are excluded from `CHANGELOG.md` file.

### Manual release from the develop branch ( beta release )

#### Installation and configuration of release-it

You need to first install the [release-it](https://github.com/release-it/release-it) client.

```
npm install -g release-it
```

Release-it uses the configuration written in the [`.release-it.json`](./.release-it.json) file located in the root of the repository.

Release-it is a tool that automates 4 important steps in the release process:

1. Version increase in `package.json` ( increased from the current version in `package.json`)
2. `CHANGELOG.md` automatic generation from commit messages ( grouped by releases )
3. GitHub release on the commit with the changelog and package.json modification on the develop branch
4. NPM release ( by default it's disabled, but can be enabled in the configuration file )

To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)

```
export GITHUB_TOKEN=XXX-XXXXXXXXXXXXXXXXXXXXXX
```

To configure npm, you can use the `npm login` command or use a configuration file with a TOKEN :

```
echo "//registry.npmjs.org/:_authToken=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" > .npmrc
```

#### Using release-it tool

There are 3 yarn scripts that can be run to do the release

##### yarn release-beta

Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).

```
? Select increment (next version):
❯ prepatch (0.1.1-beta.0)
preminor (0.2.0-beta.0)
premajor (1.0.0-beta.0)
Other, please specify...
```

##### yarn release-major-beta

Same as `yarn release-beta`, but with premajor version pre-selected.

##### yarn release

Generic command, does not automatically add the `beta` to version, but you can still manually write it if you choose Other.

#### Important notes

> 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.

> 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).


## How to contribute

See [DEVELOP.md](https://github.com/eea/volto-searchlib/blob/master/DEVELOP.md).
Expand Down
29 changes: 26 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,44 @@
"plone",
"react"
],
"addons": [
"@eeacms/volto-eea-design-system"
],
"repository": {
"type": "git",
"url": "git@github.com:eea/volto-searchlib.git"
},
"dependencies": {
"@elastic/react-search-ui": "1.9.0",
"@elastic/react-search-ui-views": "1.9.0",
"@elastic/search-ui": "1.9.0",
"@visx/group": "2.1.0",
"@visx/responsive": "2.1.1",
"@visx/scale": "2.1.0",
"@visx/shape": "2.1.1",
"@visx/tooltip": "2.1.0",
"csv-stringify": "5.6.5",
"elasticsearch": "16.7.3",
"jotai": "1.6.0",
"lodash.clonedeep": "4.5.0",
"lodash.isfunction": "3.0.9",
"lodash.uniq": "4.5.0",
"re-resizable": "6.9.1",
"react-compound-slider": "3.3.1",
"react-masonry-component": "6.3.0",
"react-motion": "0.5.2",
"react-speech-recognition": "3.8.2",
"@eeacms/volto-eea-design-system": "0.3.1",
"@eeacms/search": "0.2.5"
},
"devDependencies": {
"@cypress/code-coverage": "^3.9.5",
"babel-plugin-transform-class-properties": "^6.24.1"
},
"scripts": {
"release": "release-it",
"release-major-beta": "release-it major --preRelease=beta",
"release-beta": "release-it --preRelease=beta",
"bootstrap": "npm install -g ejs; npm link ejs; node bootstrap",
"test": "make test",
"test:fix": "make test-update",
Expand All @@ -40,6 +66,3 @@
"cypress:open": "if [ -d ./project ]; then ./project/node_modules/cypress/bin/cypress open; else ../../../node_modules/cypress/bin/cypress open; fi"
}
}
ess open; fi"
}
}
36 changes: 36 additions & 0 deletions razzle.extend.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
const path = require('path');
const makeLoaderFinder = require('razzle-dev-utils/makeLoaderFinder');

const pkgs = ['@eeacms/search'];

// const nodeExternals = require('webpack-node-externals');
// , '@eeacms/globalsearch'

const modify = (config, { target, dev }, webpack) => {
const projectRootPath = path.resolve('.');

const jsConfig = require(`${projectRootPath}/jsconfig.json`);
const searchlibConf = jsConfig.compilerOptions.paths.searchlib;

if (!searchlibConf) return config;

// because we load @eeacms/search "through the back door" (via webpack
// aliases and jsconfig.json), we need to instruct babel to include this
// package as well
const babelLoaderFinder = makeLoaderFinder('babel-loader');
const babelLoader = config.module.rules.find(babelLoaderFinder);
const { include } = babelLoader;

pkgs.forEach((name) => {
// const incl = path.dirname(require.resolve(name));
const incl = config.resolve.alias[name];
include.push(incl);
});

return config;
};

module.exports = {
plugins: (plugs) => plugs,
modify,
};
36 changes: 36 additions & 0 deletions src/SearchBlock/SearchBlockEdit.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import React from 'react';
import { SearchBlockSchema } from './schema';
import { BlockDataForm, SidebarPortal } from '@plone/volto/components';
import SearchBlockView from './SearchBlockView';
import config from '@plone/volto/registry';

const SearchBlockEdit = (props) => {
const schema = SearchBlockSchema({ formData: props.data || {} });
const conf = config.settings.searchlib.searchui;
schema.properties.appName.choices = Object.keys(conf).map((k) => [
k,
k,
// conf[k].title || k,
]);

return (
<div>
<SearchBlockView {...props} mode="edit" />
<SidebarPortal selected={props.selected}>
<BlockDataForm
schema={schema}
title={schema.title}
onChangeField={(id, value) => {
props.onChangeBlock(props.block, {
...props.data,
[id]: value,
});
}}
formData={props.data}
/>
</SidebarPortal>
</div>
);
};

export default SearchBlockEdit;
Loading