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

Waku integration #287

Draft
wants to merge 134 commits into
base: release
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
0e645c6
refactor: update to rsc-compatible packages
pmelab Jun 27, 2024
9bf7d78
fix: allow anonymous users to access website settings
pmelab Jun 27, 2024
bfadd73
refactor: load translatable strings directly from drupal
pmelab Jun 27, 2024
1fe1145
refactor: expose page listing from drupal api
pmelab Jun 27, 2024
f8dbde4
refactor: replace gatsby with waku
pmelab Jun 27, 2024
d88d5a1
ci: lagoon test environment for waku
pmelab Jun 27, 2024
6eba226
chore: add react-server-dom-webpack as a dependency
pmelab Jun 27, 2024
cf84240
chore: update schema tests
pmelab Jun 27, 2024
eddb6c6
test: disable broken tests for now
pmelab Jun 27, 2024
222d801
chore: lockfile update
pmelab Jun 27, 2024
bb72b96
WIP
pmelab Jun 27, 2024
499791d
Merge branch 'release' into lagoon-waku
pmelab Jul 3, 2024
027594a
chore: lockfile update
pmelab Jul 3, 2024
dcad444
test: skip decap integration tests
pmelab Jul 3, 2024
0120920
fix: scope tests to website dependencies
pmelab Jul 15, 2024
38f1cde
test: re-enable decap tests
pmelab Jul 15, 2024
9c5c7a8
Merge branch 'release' into lagoon-waku
pmelab Jul 16, 2024
0c67e91
chore(SLB-436): metatags
chindris Jul 4, 2024
61e8b60
chore(SLB-436): prettier fix
chindris Jul 15, 2024
49914a7
chore(SLB-436): enable partially the metatags tests
chindris Jul 16, 2024
444bb40
chore(SLB-436): set the html lang attribute in the useEffect hook
chindris Jul 16, 2024
5260398
chore(SLB-436): add the x-forwarded-* heders and rename the NETLIFY_U…
chindris Jul 17, 2024
d9769bc
chore(SLB-435): redirects
chindris Jul 4, 2024
d3faf86
chore(SLB-435): update the graphql_directives module
chindris Jul 4, 2024
3e45fd5
chore(SLB-435): eslint fixes
chindris Jul 4, 2024
cb99364
chore(SLB-435): redirects command rename
chindris Jul 15, 2024
523ebf6
chore(SLB-435): enable redirects related tests
chindris Jul 17, 2024
4bc1a34
chore(SLB-435): prettier fix
chindris Jul 17, 2024
abb104f
chore(SLB-435): out the redirects to _redirects instead of netlify.toml
chindris Jul 17, 2024
a31ab41
Merge branch 'lagoon-waku' of github.com:AmazeeLabs/silverback-templa…
chindris Jul 18, 2024
90b8f79
chore: move tsx from dev dependencies to dependencies
chindris Jul 18, 2024
71399de
Merge branch 'release' into lagoon-waku
pmelab Jul 25, 2024
2bc4dbd
fix: dumb merge error
pmelab Jul 27, 2024
91448ff
test(SLB-437): re-enable tests
pmelab Jul 27, 2024
0680041
chore: upgrade graphql directives
pmelab Jul 27, 2024
57d575a
Merge branch 'release' into lagoon-waku
pmelab Jul 30, 2024
0a70661
chore: upgrade bridge-storybook to allow custom handlers
pmelab Jul 31, 2024
c412446
chore: remove gatsby directive autoloader
pmelab Jul 31, 2024
188c03a
chore: remove directives only used by gatsby
pmelab Jul 31, 2024
5dcc164
chore: upgrade schema dependencies
pmelab Jul 31, 2024
a78828f
refactor: remove Decap/Drupal separation in schema
pmelab Jul 31, 2024
bc7faa3
feat: add resolver type generation
pmelab Jul 31, 2024
e6222de
refactor: add in-memory graphql api to decap
pmelab Jul 31, 2024
8fb87b8
feat: expose operation executor from cms package
pmelab Jul 31, 2024
f7d36ab
refactor: adjust preview to use executor exposed by the cms package
pmelab Jul 31, 2024
c686b54
fix: use symlink to load assets into waku
pmelab Jul 31, 2024
7023203
refactor: use executors exposed by cms and decap packages
pmelab Jul 31, 2024
15def92
refactor: load pages from all sources
pmelab Jul 31, 2024
a883764
refactor: load translations from all sources
pmelab Jul 31, 2024
aa8245c
chore: lockfile update
pmelab Jul 31, 2024
93a4377
chore(SLB-436): enable the open graph metatag module
chindris Aug 5, 2024
2023179
chore: handle the 404 page on local dev environments
chindris Aug 5, 2024
e7bb6ce
chore: update the 404 path in the strangler function
chindris Aug 5, 2024
faa5343
chore: update the included files for the strangler function in netlif…
chindris Aug 7, 2024
1e1d255
test: check if decap admin available
Leksat Aug 13, 2024
dd5e106
fix(SLB-445): link decap admin into waku
pmelab Aug 14, 2024
55fca99
fix: ignore decap build in eslint
pmelab Aug 14, 2024
d31d93f
refactor(SLB-445): typing nitpick
pmelab Aug 14, 2024
7e9b34e
refactor(SLB-445): rename GRAPHQL_ENDPOINT to DRUPAL_URL in preview
pmelab Aug 14, 2024
b496212
refactor(SLB-445): improve error handling in drupal executor
pmelab Aug 14, 2024
d68f010
refactor(SLB-445): more elegant typing
pmelab Aug 14, 2024
b42b992
chore: safer global var injection
Leksat Aug 15, 2024
cc87404
chore: safer error handling
Leksat Aug 15, 2024
85a4082
refactor(SLB-445): remove leftover files
pmelab Aug 16, 2024
2687ea5
refactor(SLB-445): improve decap preview error handling
pmelab Aug 16, 2024
5de3d47
Merge pull request #296 from AmazeeLabs/SLB-445-waku-decap
pmelab Sep 3, 2024
596f77e
Merge branch 'release' into lagoon-waku
pmelab Sep 3, 2024
8fcf1d7
fix: use resolver types in decap page resolvers to avoid typing issue
pmelab Sep 4, 2024
7f80686
fix: regression in conditional block integration test
pmelab Sep 4, 2024
c5b9737
fix: missing og-attributes in schema tests
pmelab Sep 4, 2024
d6b5404
fix: more specific targeting of title form
pmelab Sep 4, 2024
1ecb761
feat(SLB-354): change the image "source" field to a simple "url"
pmelab Sep 5, 2024
a504360
refactor(SLB-354): change story data to use url's instead of source f…
pmelab Sep 5, 2024
eb9b7eb
feat(SLB-354): add @amazeelabs/image as a dependency
pmelab Sep 5, 2024
0078752
feat(SLB-354): make all components use the new image component
pmelab Sep 5, 2024
9022b63
feat(SLB-354): allow frameworks to alter image urls while rendering
pmelab Sep 5, 2024
b0e5624
fix(SLB-354): ensure images are loaded from backend url on build and …
pmelab Sep 5, 2024
924e1f8
fix(SLB-354): do not bundle sharp and image-dimensions
pmelab Sep 5, 2024
d4a75f6
perf(SLB-354): render page displays on the server and verify images a…
pmelab Sep 5, 2024
c8a13c6
chore(SLB-354): upgrade @amazeelabs/image
pmelab Sep 5, 2024
fcb29fc
chore(SLB-354): upgrade @amazeelabs/image package
pmelab Sep 6, 2024
548effe
fix: load fonts in waku
pmelab Sep 8, 2024
f5271a9
fix: prep preview for cms
pmelab Sep 8, 2024
e9e003c
fix: always prep all packages
pmelab Sep 8, 2024
bd7f3ea
fix: don't attempt to bundle fs in waku
pmelab Sep 8, 2024
98bca43
fix: alias "fs" to "node:fs" to make vite not break
pmelab Sep 10, 2024
bf447b1
fix: prettier
pmelab Sep 10, 2024
1678420
fix: raw-import schema and operations
pmelab Sep 10, 2024
6139e95
fix: build preview before integration tests
pmelab Sep 10, 2024
be36141
test: move gitkeep into public folder
pmelab Sep 10, 2024
e771555
fix: use direct symlinks for static
pmelab Sep 10, 2024
7e491a0
Merge branch 'lagoon-waku' into SLB-354-rsc-images
pmelab Sep 11, 2024
5d9ee44
chore(SLB-354): upgrade @amazeelabs/image
pmelab Sep 11, 2024
58cbb3a
fix(SLB-354): content hub image aspect ratio
pmelab Sep 11, 2024
5500d30
chore(SLB-354): upgrade @amazeelabs/image
pmelab Sep 11, 2024
c328bbf
refactor(SLB-354): pass all image settings
pmelab Sep 11, 2024
01bb0a0
Merge pull request #335 from AmazeeLabs/SLB-354-rsc-images
pmelab Sep 11, 2024
b018812
fix: always use frontend url for graphql requests
pmelab Sep 12, 2024
2241312
feat: add static image directory and favicon
pmelab Sep 12, 2024
570b086
Merge branch 'release' into lagoon-waku
pmelab Sep 12, 2024
2f8a451
chore: upgrade to the latest version of waku and react
pmelab Sep 12, 2024
ad7a009
chore: upgrade waku bridge for compatibility to 0.21.1
pmelab Sep 12, 2024
7d80600
Merge pull request #340 from AmazeeLabs/waku-0.21.1-react-rc-upgrade
pmelab Sep 12, 2024
f0b2fe5
Merge branch 'release' into lagoon-waku
pmelab Sep 12, 2024
f58eb34
test: disabled failing test
pmelab Sep 13, 2024
a4f77ca
Merge branch 'release' into lagoon-waku
pmelab Sep 16, 2024
3dc8015
feat(SLB-385): simple local focalpoint
pmelab Sep 17, 2024
abd1dd3
chore: upgrade @amazeelabs/image for simple focalpoint typing
pmelab Sep 17, 2024
90810f7
feat(SLB-385): pass focalpoint into hero image
pmelab Sep 17, 2024
fccf7c0
fix(SLB-285): integration test case should expect 2 hero images now
pmelab Sep 17, 2024
3342876
Merge pull request #344 from AmazeeLabs/SLB-385-focalpoint-waku
pmelab Sep 17, 2024
07c4eb6
fix: allow empty focal point return values
pmelab Sep 17, 2024
c97739c
fix: check if crop is installed
pmelab Sep 17, 2024
15ad34e
fix(SLB-385): correctly show/hide hero images
pmelab Sep 17, 2024
298c345
Merge branch 'release' into lagoon-waku
pmelab Oct 3, 2024
a5bab57
fix: missing string translation in schema test
pmelab Oct 3, 2024
fecf356
fix: missing dependency to start-server-and-test
pmelab Oct 3, 2024
081b032
fix: make ContentEditLink a client component
pmelab Oct 3, 2024
e7de6c2
fix: prettier!
pmelab Oct 3, 2024
bcb009c
fix: merge regression
pmelab Oct 3, 2024
1431c32
feat(SLB-469): create redirect entries for RSC files
pmelab Oct 3, 2024
7e7ee6c
feat(SLB-469): handle RSC requests in strangler
pmelab Oct 3, 2024
8763635
chore: upgrade strangler package
pmelab Oct 3, 2024
fd3d20a
fix: make home links respect the current language
pmelab Oct 3, 2024
08e79d5
fix: display home icon in breadcrumbs for all languages
pmelab Oct 4, 2024
23349ff
docs: inline explanations
pmelab Oct 4, 2024
5abb49f
fix: set "true" as a build command to stop netlify from guessing one
pmelab Oct 25, 2024
d2dab4f
Merge branch 'lagoon-waku' into SLB-469-redirects
pmelab Oct 25, 2024
874667e
test: await networkidle after changing languages
pmelab Oct 25, 2024
44409ac
Merge branch 'release' into lagoon-waku
pmelab Oct 26, 2024
29bd1e2
Merge branch 'lagoon-waku' into SLB-469-redirects
pmelab Oct 26, 2024
37c3f59
Merge pull request #354 from AmazeeLabs/SLB-469-redirects
pmelab Oct 26, 2024
4422a08
Merge branch 'release' into lagoon-waku
pmelab Dec 6, 2024
eb3af2e
Merge pull request #384 from AmazeeLabs/waku-starter-upgrade-2024-06-12
pmelab Dec 6, 2024
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
16 changes: 16 additions & 0 deletions .lagoon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,19 @@ environments:
schedule: '30 * * * *'
command: drush silverback-gatsby:build main
service: cli
lagoon-waku:
routes:
- nginx:
- waku.cms.amazeelabs.dev
- build:
- waku.build.amazeelabs.dev
- preview:
- waku.preview.amazeelabs.dev
cronjobs:
- name: drush cron
schedule: '*/15 * * * *'
command: drush cron
- name: Frontend a frontend build
schedule: '30 * * * *'
command: drush silverback-gatsby:build main
service: cli
28 changes: 28 additions & 0 deletions .pnpmfile.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
function readPackage(pkg) {
const versions = {
react: '19.0.0-rc-7771d3a7-20240827',
'react-dom': '19.0.0-rc-7771d3a7-20240827',
'@types/react': '18.3.3',
'@types/react-dom': '18.3.0',
'react-server-dom-webpack': '19.0.0-rc-7771d3a7-20240827',
typescript: '5.4.5',
graphql: '16.8.1',
waku: '0.21.1',
sharp: '0.33.1',
'vite-imagetools': '6.2.9',
};
for (const type of ['dependencies', 'devDependencies', 'peerDependencies']) {
for (const [name, version] of Object.entries(versions)) {
if (pkg[type] && Object.keys(pkg[type]).includes(name)) {
pkg[type][name] = version;
}
}
}
return pkg;
}

module.exports = {
hooks: {
readPackage,
},
};
3 changes: 3 additions & 0 deletions apps/cms/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ autoload.json

# A workaround to avoid turbo caching locally.
turbo-seed.txt

# Executor typescript build
dist
7 changes: 7 additions & 0 deletions apps/cms/.lagoon.env.lagoon-waku
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PROJECT_NAME=example
PUBLISHER_URL="https://waku.build.amazeelabs.dev"
NETLIFY_URL="https://waku.amazeelabs.dev"
PREVIEW_URL="https://waku.preview.amazeelabs.dev"

# Used to set the original client secret.
PUBLISHER_OAUTH2_CLIENT_SECRET=REPLACE_ME
1 change: 1 addition & 0 deletions apps/cms/config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ module:
menu_link_content: 0
menu_ui: 0
metatag: 0
metatag_open_graph: 0
mysql: 0
node: 0
options: 0
Expand Down
14 changes: 7 additions & 7 deletions apps/cms/config/sync/language/de/views.view.redirect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ display:
label: Statuscode
group_items:
1:
title: '300 Mehrere Auswahlmöglichkeiten'
title: '300 Multiple Choices'
2:
title: '301 Dauerhaft verschoben'
title: '301 Moved Permanently'
3:
title: '302 Gefunden'
title: '302 Found'
4:
title: '303 Siehe andere'
title: '303 See Other'
5:
title: '304 Nicht modifiziert'
title: '304 Not Modified'
6:
title: '305 Proxy verwenden'
title: '305 Use Proxy'
7:
title: '307 Temporäre Weiterleitung'
title: '307 Temporary Redirect'
language:
expose:
label: Originalsprache
Expand Down
6 changes: 4 additions & 2 deletions apps/cms/config/sync/metatag.metatag_defaults.node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ _core:
id: node
label: Content
tags:
title: '[node:title] | [site:name]'
description: '[node:summary]'
canonical_url: '[node:url]'
description: '[node:summary]'
og_description: '[node:summary]'
og_title: '[node:title] | [site:name]'
title: '[node:title] | [site:name]'
2 changes: 2 additions & 0 deletions apps/cms/config/sync/user.role.anonymous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
module:
- config_pages
- graphql
- media
- system
Expand All @@ -16,3 +17,4 @@ permissions:
- 'access content'
- 'execute main persisted graphql requests'
- 'view media'
- 'view website_settings config page entity'
2 changes: 2 additions & 0 deletions apps/cms/config/sync/user.role.authenticated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies:
config:
- filter.format.webform_default
module:
- config_pages
- file
- filter
- graphql
Expand All @@ -28,3 +29,4 @@ permissions:
- userprotect.mail.edit
- userprotect.pass.edit
- 'view media'
- 'view website_settings config page entity'
69 changes: 69 additions & 0 deletions apps/cms/config/sync/views.view.campaign_urls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,75 @@ display:
- url.query_args
- user.permissions
tags: { }
frontend_redirects:
id: frontend_redirects
display_title: 'Frontend redirects'
display_plugin: embed
position: 3
display_options:
title: 'Frontend redirects'
pager:
type: full
options:
offset: 0
items_per_page: 2
total_pages: null
id: 0
tags:
next: ››
previous: ‹‹
first: '« First'
last: 'Last »'
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
quantity: 9
access:
type: perm
options:
perm: 'access content'
cache:
type: none
options: { }
filters: { }
filter_groups:
operator: AND
groups: { }
style:
type: default
options:
grouping: { }
row_class: ''
default_row_class: true
row:
type: 'entity:campaign_url'
options:
relationship: none
view_mode: default
defaults:
access: false
cache: false
title: false
pager: false
style: false
row: false
filters: false
filter_groups: false
display_description: ''
display_extenders: { }
cache_metadata:
max-age: 0
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url.query_args
- user.permissions
tags: { }
page_campaign_urls:
id: page_campaign_urls
display_title: Page
Expand Down
Loading
Loading