Commit Graph

84 Commits

Author SHA1 Message Date
Anton Gunnarsson
f9c719ff4b Merged in feat/sw-2866-move-partners-router-to-trpc-package (pull request #2414)
feat(sw-2866): Move partners router to trpc package

* Add eslint to trpc package

* Apply lint rules

* Use direct imports from trpc package

* Add lint-staged config to trpc

* Move lang enum to common

* Restructure trpc package folder structure

* WIP first step

* update internal imports in trpc

* Fix most errors in scandic-web

Just 100 left...

* Move Props type out of trpc

* Fix CategorizedFilters types

* Move more schemas in hotel router

* Fix deps

* fix getNonContentstackUrls

* Fix import error

* Fix entry error handling

* Fix generateMetadata metrics

* Fix alertType enum

* Fix duplicated types

* lint:fix

* Merge branch 'master' into feat/sw-2863-move-contentstack-router-to-trpc-package

* Fix broken imports

* Move booking router to trpc package

* Move partners router to trpc package

* Merge branch 'master' into feat/sw-2866-move-partners-router-to-trpc-package


Approved-by: Linus Flood
2025-06-26 09:44:13 +00:00
Anton Gunnarsson
002d093af4 Merged in feat/sw-2863-move-contentstack-router-to-trpc-package (pull request #2389)
feat(SW-2863): Move contentstack router to trpc package

* Add exports to packages and lint rule to prevent relative imports

* Add env to trpc package

* Add eslint to trpc package

* Apply lint rules

* Use direct imports from trpc package

* Add lint-staged config to trpc

* Move lang enum to common

* Restructure trpc package folder structure

* WIP first step

* update internal imports in trpc

* Fix most errors in scandic-web

Just 100 left...

* Move Props type out of trpc

* Fix CategorizedFilters types

* Move more schemas in hotel router

* Fix deps

* fix getNonContentstackUrls

* Fix import error

* Fix entry error handling

* Fix generateMetadata metrics

* Fix alertType enum

* Fix duplicated types

* lint:fix

* Merge branch 'master' into feat/sw-2863-move-contentstack-router-to-trpc-package

* Fix broken imports

* Merge branch 'master' into feat/sw-2863-move-contentstack-router-to-trpc-package


Approved-by: Linus Flood
2025-06-26 07:53:01 +00:00
Joakim Jäderberg
105c4d9cf3 Merged in feature/redis-queue-deletes (pull request #2397)
Feature/redis queue deletes

* feat: add queuing for deletes

* merge

* .

* .

* .


Approved-by: Linus Flood
2025-06-19 09:20:38 +00:00
Anton Gunnarsson
846fd904a6 Merged in feat/sw-2859-set-up-shared-trpc-package (pull request #2319)
feat(SW-2859): Create trpc package

* Add isEdge, safeTry and dataCache to new common package

* Add eslint and move prettier config

* Clean up tests

* Create trpc package and move initialization

* Move errors and a few procedures

* Move telemetry to common package

* Move tokenManager to common package

* Add Sentry to procedures

* Clean up procedures

* Fix self-referencing imports

* Add exports to packages and lint rule to prevent relative imports

* Add env to trpc package

* Add eslint to trpc package

* Apply lint rules

* Use direct imports from trpc package

* Add lint-staged config to trpc

* Move lang enum to common

* Restructure trpc package folder structure

* Fix lang imports


Approved-by: Linus Flood
2025-06-18 12:14:20 +00:00
Erik Tiekstra
d492b5ad6a feat(SW-2719): Added Dialogshift chat widget to certain hotel pages
Approved-by: Matilda Landström
2025-06-16 12:33:38 +00:00
Anton Gunnarsson
0788a57adc Merged in feat/add-no-relative-packages-rule (pull request #2356)
Add eslint rule no-relative-packages

* Add eslint rule no-relative-packages


Approved-by: Christian Andolf
2025-06-13 10:36:11 +00:00
Michael Zetterberg
c52da4bec6 feat: add redirect processing script 2025-06-12 07:03:07 +00:00
Anton Gunnarsson
048a477e52 Merged in feat/common-package (pull request #2333)
feat: Add common package

* Add isEdge, safeTry and dataCache to new common package

* Add eslint and move prettier config

* Fix yarn lock

* Clean up tests

* Add lint-staged config to common

* Add missing dependencies


Approved-by: Joakim Jäderberg
2025-06-11 13:08:39 +00:00
Linus Flood
93b76d405a Merged in feat/SW-2960-update-plugin (pull request #2283)
feat(#SW-2960): Update netlify/plugin-nextjs to latest

* feat(#SW-2960): Update netlify/plugin-nextjs to latest

* added lock file


Approved-by: Joakim Jäderberg
2025-06-04 06:26:32 +00:00
Linus Flood
8b57c72a7c Merged in chore/nextjs-15.3.3 (pull request #2284)
chore(next) - update Nextjs to 15.3.3 to fix rsc payload getting cached

* chore(next) - update Nextjs to 15.3.3 to fix rsc payload getting cached


Approved-by: Joakim Jäderberg
2025-06-04 06:18:50 +00:00
Anton Gunnarsson
dd4ef527df Merged in chore/eslint9 (pull request #2029)
chore: Update to ESLint 9

* wip: apply codemod and upgrade swc plugin

* Update eslint to 9 in scandic-web

apply code mod to config
fix existing lint issues

* Remove uneccessary fixupConfigRules

* Update eslint to 9 in design-system

* Add lint turbo dependency

* Move redis-api to eslint and prettier instead of biome

* Simplify eslint configs

* Clean up

* Apply linting


Approved-by: Linus Flood
2025-06-03 14:26:44 +00:00
Anton Gunnarsson
91278feb40 Merged in fix/popover-with-design-system-trigger-not-showing (pull request #2276)
Fix popovers using triggers from design-system not working

* Fix peer dependency in design-system package


Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
2025-06-03 12:53:33 +00:00
Anton Gunnarsson
cbf9e7b7c2 Merged in chore/next15 (pull request #1999)
chore (SW-834): Upgrade to Next 15

* wip: apply codemod and upgrade swc plugin

* wip: design-system to react 19, fix issues from async (search)params

* wip: fix remaining issues from codemod

serverClient is now async because context use headers()
getLang is now async because it uses headers()

* Minor cleanup

* Inline react-material-symbols package

Package is seemingly not maintained any more and doesn't support
React 19. This copies the package source into `design-system`,
makes the necessary changes for 19 and export it for others to use.

* Fix missing awaits

* Disable modal exit animations

Enabling modal exit animations via isExiting prop is causing
modals to be rendered in "hidden" state and never unmount.
Seems to be an issue with react-aria-components,
see https://github.com/adobe/react-spectrum/issues/7563.
Can probably be fixed by rewriting to a solution similar to
https://react-spectrum.adobe.com/react-aria/examples/framer-modal-sheet.html

* Remove unstable cache implementation and use in memory cache locally

* Fix ref type in SelectFilter

* Use cloneElement to add key prop to element


Approved-by: Linus Flood
2025-06-02 11:11:50 +00:00
Anton Gunnarsson
48b6774675 Update framer-motion 2025-05-22 14:00:39 +02:00
Anton Gunnarsson
7e098d291c Remove material-symbols from design-system 2025-05-22 14:00:39 +02:00
Anton Gunnarsson
4f9c69628b Update minor versions in design-system 2025-05-22 14:00:39 +02:00
Anton Gunnarsson
a2e43844df Update patch versions in design-system 2025-05-22 14:00:39 +02:00
Anton Gunnarsson
ec08f83153 Update patch versions 2025-05-22 14:00:39 +02:00
Anton Gunnarsson
01355078a0 Update intl packages 2025-05-22 14:00:39 +02:00
Anton Gunnarsson
7378b18885 Update @internationalized/date 2025-05-22 14:00:39 +02:00
Anton Gunnarsson
ef90e878cf Update @contentstack/live-preview-utils 2025-05-22 14:00:39 +02:00
Anton Gunnarsson
d76b507ef4 Remove unused material-symbols package 2025-05-22 14:00:39 +02:00
Anton Gunnarsson
d1927fff09 Update graphql-request 2025-05-22 14:00:39 +02:00
Anton Gunnarsson
f46bc8f920 Update @hookform/resolvers
In v5 the zod resolver will automatically infer the type for `useForm`.
It's not recommended to manually specify types.
See https://github.com/react-hook-form/resolvers/releases/tag/v5.0.0
2025-05-22 14:00:39 +02:00
Anton Gunnarsson
83646d4d02 Update sonner 2025-05-22 14:00:39 +02:00
Anton Gunnarsson
11c1810249 Update @vercel/otel 2025-05-22 14:00:39 +02:00
Anton Gunnarsson
0a06d6d38c Update @vis.gl/react-google-maps 2025-05-22 14:00:39 +02:00
Anton Gunnarsson
e049c29d82 Update react-hook-form 2025-05-22 14:00:39 +02:00
Anton Gunnarsson
a6cd4d807e Update uuid 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
31afb60627 Remove unused radix packages 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
06de3edfe3 Update class-variance-authority 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
10e3907c87 Update @t3-oss/env-nextjs 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
0381ad07b7 Update cypress 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
9af93fecda Update framer-motion 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
c3205d9561 Update eslint plugins 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
e4ad0d3466 Update typescript 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
102c3b6df6 Update @typescript-eslint/* 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
a74eafe9bf Update contentstack 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
37c9e97405 Update dotenv 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
dab4990748 Remove unused package @preact/signals-core 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
41aa4f26ad Update libphonenumber-js 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
3110f9aec2 Update lint-staged 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
229147ecb9 Update nanoid 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
275cd73b26 Update prettier 2025-05-22 14:00:38 +02:00
Anton Gunnarsson
50664d4bef Remove unused package ioredis 2025-05-22 14:00:37 +02:00
Anton Gunnarsson
6ed9f9382e Update graphql 2025-05-22 14:00:37 +02:00
Anton Gunnarsson
d1383796a9 Update react-day-picker 2025-05-22 14:00:37 +02:00
Anton Gunnarsson
069cdb7aa0 Update react-aria-components 2025-05-22 14:00:37 +02:00
Anton Gunnarsson
1fc5dd3c88 Update react-international-phone 2025-05-22 14:00:37 +02:00
Anton Gunnarsson
88b7ede54b Update react-to-print 2025-05-22 14:00:37 +02:00