From 9e84da45bc93352ff5ffdf11a5fa8cf09d20ddf5 Mon Sep 17 00:00:00 2001 From: Michael Zetterberg Date: Wed, 19 Mar 2025 06:56:38 +0100 Subject: [PATCH] feat(SW-1446): add Jump to functionality to Destination Overview Page --- apps/scandic-web/app/[lang]/(live)/layout.tsx | 47 +- apps/scandic-web/app/globals.css | 17 + .../ClientInline/clientInline.module.css | 114 + .../JumpTo/Client/ClientInline/index.tsx | 161 ++ .../Client/ClientModal/clientModal.module.css | 187 ++ .../JumpTo/Client/ClientModal/index.tsx | 189 ++ .../JumpTo/Client/Results/ResultHistory.tsx | 104 + .../JumpTo/Client/Results/ResultMatches.tsx | 79 + .../JumpTo/Client/Results/ResultSkeleton.tsx | 77 + .../JumpTo/Client/Results/results.module.css | 64 + .../JumpTo/Client/client.module.css | 13 + .../JumpTo/Client/index.tsx | 181 ++ .../JumpTo/Resolver/index.tsx | 47 + .../DestinationOverviewPage/JumpTo/index.tsx | 9 + .../destinationOverviewPage.module.css | 12 + .../DestinationOverviewPage/index.tsx | 9 + .../components/RACRouterProvider/index.tsx | 22 + .../components/SkeletonShimmer/index.tsx | 11 +- .../SkeletonShimmer/skeleton.module.css | 3 + apps/scandic-web/i18n/dictionaries/da.json | 3 + apps/scandic-web/i18n/dictionaries/de.json | 3 + apps/scandic-web/i18n/dictionaries/en.json | 3 + apps/scandic-web/i18n/dictionaries/fi.json | 3 + apps/scandic-web/i18n/dictionaries/no.json | 3 + apps/scandic-web/i18n/dictionaries/sv.json | 3 + .../graphql/Query/Locations/Locations.graphql | 21 + .../lib/trpc/memoizedRequests/index.ts | 78 + apps/scandic-web/package.json | 2 +- .../server/routers/hotels/input.ts | 4 + .../server/routers/hotels/query.ts | 86 + .../routers/hotels/schemas/location/urls.ts | 68 + .../server/routers/hotels/telemetry.ts | 10 + apps/scandic-web/server/utils.ts | 4 + apps/scandic-web/tsconfig.json | 2 +- .../destinationsList/destinationsData.ts | 4 - .../destinationOverviewPage/jumpTo/client.ts | 9 + .../destinationOverviewPage/jumpTo/index.ts | 44 + .../jumpTo/resolver.ts | 5 + .../destinationOverviewPage/jumpTo/results.ts | 9 + .../lib/components/Button/Button.stories.tsx | 58 + .../lib/components/Button/button.module.css | 18 + .../lib/components/Button/variants.ts | 1 + packages/design-system/package.json | 4 +- yarn.lock | 2575 +++++++++-------- 44 files changed, 3069 insertions(+), 1297 deletions(-) create mode 100644 apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/ClientInline/clientInline.module.css create mode 100644 apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/ClientInline/index.tsx create mode 100644 apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/ClientModal/clientModal.module.css create mode 100644 apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/ClientModal/index.tsx create mode 100644 apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/Results/ResultHistory.tsx create mode 100644 apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/Results/ResultMatches.tsx create mode 100644 apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/Results/ResultSkeleton.tsx create mode 100644 apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/Results/results.module.css create mode 100644 apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/client.module.css create mode 100644 apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Client/index.tsx create mode 100644 apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/Resolver/index.tsx create mode 100644 apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/JumpTo/index.tsx create mode 100644 apps/scandic-web/components/RACRouterProvider/index.tsx create mode 100644 apps/scandic-web/lib/graphql/Query/Locations/Locations.graphql create mode 100644 apps/scandic-web/server/routers/hotels/schemas/location/urls.ts create mode 100644 apps/scandic-web/types/components/destinationOverviewPage/jumpTo/client.ts create mode 100644 apps/scandic-web/types/components/destinationOverviewPage/jumpTo/index.ts create mode 100644 apps/scandic-web/types/components/destinationOverviewPage/jumpTo/resolver.ts create mode 100644 apps/scandic-web/types/components/destinationOverviewPage/jumpTo/results.ts diff --git a/apps/scandic-web/app/[lang]/(live)/layout.tsx b/apps/scandic-web/app/[lang]/(live)/layout.tsx index 0049c8c09..1b54179f2 100644 --- a/apps/scandic-web/app/[lang]/(live)/layout.tsx +++ b/apps/scandic-web/app/[lang]/(live)/layout.tsx @@ -15,6 +15,7 @@ import CookieBotConsent from "@/components/CookieBot" import Footer from "@/components/Footer" import Header from "@/components/Header" import StorageCleaner from "@/components/HotelReservation/EnterDetails/StorageCleaner" +import { RACRouterProvider } from "@/components/RACRouterProvider" import SitewideAlert from "@/components/SitewideAlert" import { ToastHandler } from "@/components/TempDesignSystem/Toasts" import AdobeSDKScript from "@/components/TrackingSDK/AdobeSDKScript" @@ -56,27 +57,31 @@ export default async function RootLayout({ `} - - - - - -
- {bookingwidget} - {children} -