Commit Graph

89 Commits

Author SHA1 Message Date
Christian Andolf
372fcccbf1 Merged in feat/LOY-276-sas-hero-image (pull request #2411)
feat(LOY-276): add hero image to account page

Approved-by: Erik Tiekstra
2025-06-25 09:40:47 +00:00
Erik Tiekstra
eb77241a4e feat(SW-2958): Removed filter to remove self-referring hreflang tag
Approved-by: Matilda Landström
2025-06-24 13:38:08 +00:00
Christian Andolf
3f6127b861 feat(LOY-276): add hero image to account page 2025-06-24 14:54:54 +02:00
Erik Tiekstra
11201e238d feat(SW-2975): Added top campaign to campaign overview page
Approved-by: Matilda Landström
2025-06-24 10:22:07 +00:00
Erik Tiekstra
bfaa3d4b65 fix(SW-2265): Removed campaign identifier from campaign page
Approved-by: Matilda Landström
2025-06-24 07:31:05 +00:00
Erik Tiekstra
891108791c feat(SW-2264): Added campaign overview page
Approved-by: Matilda Landström
2025-06-19 15:19:56 +00:00
Erik Tiekstra
af92f7183c feat(SW-2278): Added hotel listing to campaign page
Approved-by: Matilda Landström
2025-06-19 09:36:28 +00:00
Matilda Landström
61317e0c94 Merged in feat/SW-2266-campaign-hero (pull request #2344)
Feat/SW-2266 campaign hero

Approved-by: Erik Tiekstra
2025-06-18 13:35: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
c783f3a764 feat(SW-3015): Added pagelinks for campaign page on all connections
Approved-by: Matilda Landström
2025-06-18 12:06:48 +00:00
Erik Tiekstra
2342fd1bfc Feat/SW-2273 campaign page accordion block
Approved-by: Matilda Landström
2025-06-12 09:24:18 +00:00
Erik Tiekstra
e2a4fa6c07 Feat/SW-2272 campaign cards block
Approved-by: Matilda Landström
2025-06-12 06:01:23 +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
Erik Tiekstra
b4a05dae0b feat(SW-2285): Added campaign essentials block on campaign page
Approved-by: Christian Andolf
Approved-by: Matilda Landström
2025-06-11 08:14:00 +00:00
Erik Tiekstra
ace5519869 feat(SW-2265): Added campaign-page
Approved-by: Matilda Landström
2025-06-10 06:35:43 +00:00
Erik Tiekstra
ac953ccd97 feat(SW-1818): Refactored sysAsset handling to support PDF links
Approved-by: Matilda Landström
2025-06-09 09:28:17 +00:00
Matilda Landström
d63e13aff5 Merged in feat/SW-2939-update-destination-list (pull request #2295)
fix(SW-2939): update destination overview lists with Stuttgart

* fix(SW-2939): update lists


Approved-by: Erik Tiekstra
2025-06-05 07:19:49 +00:00
Michael Zetterberg
17f1a59e97 fix: sync English labels 2025-06-03 12:02:49 +02:00
Erik Tiekstra
be98c2faf6 feat(SW-1409): Synced tabnavigation headings and section headings on hotel pages
* feat(SW-2409): Added same headings to relevant sidepeeks


Approved-by: Christian Andolf
Approved-by: Matilda Landström
2025-06-03 09:22:28 +00:00
Joakim Jäderberg
a95ef65d02 Merged in feat/use-hash-for-graphql-cache (pull request #2251)
Feature: Use hash of query+variables for graphql cache instead of gitsha

* feature: use a hash of query+variables as part of the cache key instead of gitsha

* .

* Merge branch 'master' of bitbucket.org:scandic-swap/web into feat/use-hash-for-graphql-cache

* use correct json stringify

* merge

* remove edgeRequest in favor of request

* add more indicative logging


Approved-by: Linus Flood
2025-06-03 06:39:04 +00:00
Erik Tiekstra
9a868e6fe5 feat(SW-2466): Sorting destinations by country depending on language
Approved-by: Christian Andolf
Approved-by: Matilda Landström
2025-06-02 09:38:20 +00:00
Erik Tiekstra
09879d2f4a feat(SW-2134): Added support for images inside accordions
Approved-by: Matilda Landström
2025-06-02 09:37:20 +00:00
Anton Gunnarsson
7e97b74c18 Merged in chore/remove-unused-code (pull request #2229)
Remove unused code

* Remove unused scandic-web files

* Remove unused exports


Approved-by: Joakim Jäderberg
2025-05-30 12:41:18 +00:00
Joakim Jäderberg
26b005d72a Merged in fix/cache-graphql-data (pull request #2248)
fix: add missing cache for cms data

* fix: cache cms data


Approved-by: Linus Flood
2025-05-28 08:28:21 +00:00
Erik Tiekstra
8b85235f1d feat(SW-2408): Improved meta titles for Hotel subpages
Approved-by: Matilda Landström
2025-05-27 05:32:50 +00:00
Anton Gunnarsson
e4ad0d3466 Update typescript 2025-05-22 14:00:38 +02:00
Joakim Jäderberg
31d75ffa74 Merged in fix/default-page-settings (pull request #2076)
fix: default page settings when invalid or missing

* fix: default page settings when invalid or missing since most pages don't have pageSettings


Approved-by: Anton Gunnarsson
2025-05-15 10:41:16 +00:00
Joakim Jäderberg
aceb88cb1a Merged in fix/seo-whitelist-scandic-friends (pull request #2071)
fix: SEO whitelist /scandic-friends

* fix: SEO whitelist /scandic-friends

* fix: SEO whitelist /scandic-friends


Approved-by: Linus Flood
2025-05-13 09:35:28 +00:00
Chuma Mcphoy (We Ahead)
81e4150cb3 Merged in fix/nullish-check-on-dynamic-content-headers (pull request #2069)
fix: Allow component to be nullish in dynamic content schemas

* fix: Allow component to be nullish in dynamic content schemas


Approved-by: Erik Tiekstra
2025-05-13 08:41:25 +00:00
Chuma Mcphoy (We Ahead)
8530c2cc93 Merged in fix/nullable-dynamic-content-in-static-page-header (pull request #2058)
fix: update header  dynamic_content schema to allow null values

* fix: update header  dynamic_content schema to allow null values

* fix: update to use nullish


Approved-by: Erik Tiekstra
2025-05-12 12:57:40 +00:00
Matilda Landström
b696c670c8 Merged in fix/SW-2689-Danish-urls (pull request #2033)
Fix/SW-2689 Danish urls

* fix(SW-2689): update destinations lists


Approved-by: Christian Andolf
Approved-by: Erik Tiekstra
2025-05-09 13:09:21 +00:00
Bianca Widstam
e38b2931d3 Merged in fix/default-nullish-value-to-array (pull request #2024)
fix: null does not default to empty array causing sanitize error

* fix: null does not default to empty array causing sanitize error


Approved-by: Michael Zetterberg
Approved-by: Anton Gunnarsson
2025-05-09 10:59:05 +00:00
Chuma Mcphoy (We Ahead)
7af4d3be1e Merged in LOY-188-employee-benefit-call-to-actions (pull request #1954)
feat(LOY-188): dynamic content support in content pages headers & use in DTMC employee benefits page

* feat(LOY-188): add dynamic content handling for DTMC employee benefits page header

* fix(LOY-188): change section to div in EmployeeBenefitsCallToActions component

* refactor(LOY-188): switch to ButtonLink

* refactor(LOY-188): replace enum with as const objects in DynamicContentEnum

* chore(LOY-188): change ComponentValue type exports to internal scope in DynamicContentEnum

* fix(EmployeeBenefitsCallToActions): replace div with fragment

* chore(LOY-188): update translations


Approved-by: Christian Andolf
2025-05-08 15:24:22 +00:00
Matilda Landström
15a899f48b Merged in fix/startpage-cards (pull request #1994)
fix: display carousel cards without filtering

* fix: display carousel cards without filtering


Approved-by: Erik Tiekstra
2025-05-08 08:49:23 +00:00
Matilda Landström
ef2d4a3846 Merged in fix/explore-all-hotels (pull request #1998)
Fix/explore all hotels

* fix: update lists

* fix: adds Scandic Nuremberg after api fix

* fix: add sorting based on city name


Approved-by: Erik Tiekstra
2025-05-07 14:19:01 +00:00
Matilda Landström
78cef80de0 Merged in fix/explore-countrypages (pull request #1989)
Fix(SW-2513): Explore all hotels - country page links not showing

* fix: fix issue with country page urls


Approved-by: Michael Zetterberg
Approved-by: Erik Tiekstra
2025-05-07 10:25:50 +00:00
Matilda Landström
e38fceb237 feat(SW-2547): filter out nonActive and nonPublished hotels and cities 2025-05-06 13:12:18 +00:00
Joakim Jäderberg
5784822a1e Merged in feature/SW-2320-languagebased-hide-for-next-release (pull request #1937)
Language based alternative to HIDE_FOR_NEXT_RELEASE

Approved-by: Anton Gunnarsson
2025-05-05 10:53:28 +00:00
Erik Tiekstra
bbec6a659a feat(SW-2492): Hiding meta hreflang tags when HIDE_FOR_NEXT_RELEASE flag is true
Approved-by: Linus Flood
2025-04-30 06:29:13 +00:00
Erik Tiekstra
4ae5da8a04 Feat/SW-2152 seo descriptions
* feat(SW-2152): Added improved meta descriptions for hotel pages
* feat(SW-2152): Added improved meta descriptions for destination pages
* feat(SW-2152): Refactoring metadata description functionality
* feat(SW-2152): Improved truncate function and added cities check to country page description

Approved-by: Michael Zetterberg
Approved-by: Matilda Landström
2025-04-29 06:52:04 +00:00
Matilda Landström
1f8594e5c8 Merged in feat/SW-2220-destination-list (pull request #1851)
Feat/SW-2220 destination list

* fix(SW-2220): remove old hotels

* fix(SW-2220): add filtering of cities without urls

* fix(SW-2220): destinations English

* fix(SW-2220): update all country files

* refactor(SW-2220): cleanup


Approved-by: Michael Zetterberg
Approved-by: Erik Tiekstra
2025-04-25 13:14:23 +00:00
Christian Andolf
f17c8005d4 fix: remove useless check since cmsreward is always defined 2025-04-24 10:14:52 +02:00
Michael Zetterberg
5323a8e46e feat: harmonize log and metrics 2025-04-23 22:40:46 +00:00
Christian Andolf
55b255d36b fix: dont request cms rewards if we have no reward ids
fixes a cache issue since we have no keys to cache on
2025-04-22 10:55:04 +02:00
Michael Zetterberg
440e1f92df feat(SW-706): make eslint rule 'formatjs/no-literal-string-in-jsx' pass 2025-04-14 11:30:06 +00:00
Christian Andolf
80a738af7b fix: set redeem description nullable in order to handle the transition from string to RTE 2025-04-14 08:57:56 +02:00
Simon Emanuelsson
afb37d0cc5 feat: bedtypes is selectable again 2025-04-12 08:32:42 +00:00
Erik Tiekstra
3f510e9aae fix: properties inside hotel_navigation could be null or undefined
Approved-by: Michael Zetterberg
2025-04-08 12:33:06 +00:00
Linus Flood
d30cc7e2be Merged in fix/site-config-revalidate (pull request #1751)
fix: site-config - use correct cache keys and invalidate them

* fix: site-config - use correct cache keys and invalidate them


Approved-by: Joakim Jäderberg
2025-04-08 10:27:26 +00:00
Michael Zetterberg
4aeb5b071d fix(SW-1446): use existing functions for url data 2025-04-08 05:52:10 +00:00