Commit Graph

693 Commits

Author SHA1 Message Date
Erik Tiekstra
ca2f60253f feat(SW-201): Refactoring how we fetch hotel page data 2024-11-26 14:48:28 +01:00
Tobias Johansson
70000afe1f Merged in feat/SW-755-price-change-non-happy (pull request #957)
Feat/SW-755 price change non happy

* fix(SW-755): dont show field error if checkbox has no children

* feat(SW-755): Price change route + dialog WIP

* fix(SW-755): minor refactoring

* fix(SW-755): added logging to price change route

* fix(SW-755): remove redundant search param logic

* fix(SW-755): moved enum cast to zod instead

* fix(SW-755): move prop type to types folder

* fix(SW-755): Added suspense to Payment and refactored payment options hook

* fix(SW-755): seperated terms and conditions copy from the checkbox label

* fix(SW-755): add currency format and fixed wrong translation

* fix(SW-755): change from undefined to null

* fix(SW-755): added extra type safety to payment options


Approved-by: Christian Andolf
Approved-by: Simon.Emanuelsson
2024-11-26 09:06:41 +00:00
Pontus Dreij
72090236c7 Merged in fix/SW-1014-city-not-found-on-map (pull request #973)
fix(SW-1014): Fixed issue where google didn't found city.

Approved-by: Niclas Edenvin
2024-11-25 15:05:34 +00:00
Pontus Dreij
0ef12d4a29 fix(SW-1014): Fixed issue where google didn't found city. 2024-11-25 15:38:08 +01:00
Christel Westerberg
317731c24d fix: handle no children 2024-11-25 15:08:12 +01:00
Hrishikesh Vaipurkar
21f9719050 fix: SW-981 Rounded to single decimal as current web 2024-11-25 11:52:43 +01:00
Hrishikesh Vaipurkar
bd6fd62d5c fix: SW-981 Fixed distance to center value 2024-11-25 11:52:43 +01:00
Erik Tiekstra
50f285776a feat(SW-200): Added noindex property to seo metadata in contentstack and added implementation 2024-11-25 08:00:13 +01:00
Erik Tiekstra
b22888db5f feat(SW-200): refactored breadcrumbs fetching and added json schema to layout 2024-11-25 08:00:13 +01:00
Erik Tiekstra
28738d7161 feat(SW-200): refactoring SEO metadata handling and added functionality for static pages 2024-11-25 08:00:12 +01:00
Joakim Jäderberg
0a35243d88 fix: remove test-data 2024-11-22 13:17:33 +01:00
Joakim Jäderberg
ed1f97f24e fix: tests failed due to timezone issues 2024-11-22 13:07:49 +01:00
Joakim Jäderberg
74b634021a Merge branch 'master' of bitbucket.org:scandic-swap/web into fix/loading-rooms-separately 2024-11-22 10:30:53 +01:00
Joakim Jäderberg
c8c0a41ed8 fix: move date logic to its own file with tests 2024-11-22 10:30:33 +01:00
Joakim Jäderberg
079ad45ded fix: move date logic to its own file with tests
fix: missing packages should not prevent render
fix: display nothing if roomavailability returns nothing
2024-11-22 10:29:59 +01:00
Pontus Dreij
43a44e31ad Merged in fix/SW-946-map-center (pull request #954)
fix(946) Center from town name instead of calculate center

Approved-by: Niclas Edenvin
2024-11-22 07:19:13 +00:00
Simon Emanuelsson
1aeed2e9ca fix: make sure session storage is cleaner whenever user is no longer in the booking flow 2024-11-21 14:54:08 +01:00
Pontus Dreij
08e71a8dc6 fix(946) Center from town name instead of calculate center 2024-11-21 14:15:51 +01:00
Joakim Jäderberg
10bd915217 merge 2024-11-21 12:43:25 +01:00
Christian Andolf
0824f7ce26 fix(SW-696): add unwrap to surprises
add animations to sliding cards

various minor fixes
2024-11-21 12:19:46 +01:00
Christel Westerberg
3a6cfcfe5c fix: avoid sending query params to planet 2024-11-21 10:18:36 +01:00
Tobias Johansson
7221e77fa0 Merged in fix/SW-933-incorrect-ratecode (pull request #947)
Fix/SW-933 incorrect ratecode when creating booking as a member

* fix(SW-933): Added check if member to select correct rate code in create booking

* fix(SW-933): set member price in summary when "join" is true

* fix(SW-933): change "price" -> "amount" and fix bool expression

* fix(SW-933): added check for membership number in summary


Approved-by: Christel Westerberg
2024-11-21 09:00:06 +00:00
Bianca Widstam
8b66c16e17 Merged in feat/SW-903-breadcrumbs-select-hotel (pull request #924)
Feat/SW-903 breadcrumbs select hotel

* feat(SW-903): break out breadcrumbs component and add on select-hotel page

* feat(903): updated paths

* feat(903): fix padding and remove translations

* feat(903): fix type

* feat(903): refactor padding

* feat(903): refactor padding again

* feat(903): refactor

* feat(903): fix comments

* feat(903): rename content breadcrumbs back


Approved-by: Pontus Dreij
Approved-by: Erik Tiekstra
2024-11-21 07:28:39 +00:00
Pontus Dreij
10d2e094e4 fix(SW-925) Fix default packages 2024-11-20 14:41:48 +01:00
Joakim Jäderberg
dbb08960a5 Merge branch 'master' of bitbucket.org:scandic-swap/web into fix/loading-rooms-separately 2024-11-20 14:33:05 +01:00
Joakim Jäderberg
3d2f9e4a7e fix: rename misnamed component 2024-11-20 13:09:37 +01:00
Joakim Jäderberg
90184b8662 Merge branch 'master' of bitbucket.org:scandic-swap/web into fix/syncblocking-parallel-routes 2024-11-20 12:43:41 +01:00
Joakim Jäderberg
847ee5521e fix: use suspense over loading.tsx 2024-11-20 12:14:56 +01:00
Joakim Jäderberg
dfdbdb7621 feat: break apart loading of room availability and hotel card
feat: add skeletons
2024-11-20 10:17:55 +01:00
Hrishikesh Vaipurkar
bc344e64cf feat: SW-601 Implement filters and sort in map view 2024-11-19 17:21:11 +01:00
Pontus Dreij
ccf332490f Merged in fix/SW-934-isAllUnavailable (pull request #939)
fix(SW-934): Change logic to isAllUnavailable instad of hotels.length

Approved-by: Bianca Widstam
Approved-by: Niclas Edenvin
2024-11-19 14:58:56 +00:00
Niclas Edenvin
c309619cdc Merged in feat/SW-863-remove-filters (pull request #935)
feat(SW-863): remove filters without a type

* feat(SW-863): remove filters without a type


Approved-by: Pontus Dreij
2024-11-19 14:39:25 +00:00
Pontus Dreij
ab9c8012c9 fix(SW-934): Change logic to isAllUnavailable instad of hotels.length 2024-11-19 15:36:20 +01:00
Bianca Widstam
ea3aff5dcd Merged in fix/translation-hotelpage-header (pull request #934)
Fix/SW-932-translation hotelpage header

* fix: add translation for hotel page header

* fix: add hotel translation

* fix: add translation where to when loading

* fix: update hotel(s) count if filtered

* fix(SW-932): update hotel(s) count


Approved-by: Pontus Dreij
Approved-by: Niclas Edenvin
2024-11-19 14:34:45 +00:00
Simon Emanuelsson
744af22b08 fix: make sure all searchparams are used in redirect 2024-11-19 11:19:44 +00:00
Joakim Jäderberg
e1a2532b3f fix: use suspense over loading.tsx 2024-11-19 10:57:52 +01:00
Joakim Jäderberg
3c8db6ae8b merge 2024-11-19 08:58:40 +01:00
Christel Westerberg
bd0720dc0f fix: break out css variables 2024-11-19 08:49:26 +01:00
Joakim Jäderberg
0103144815 fix: add missing loading.tsx 2024-11-19 08:48:11 +01:00
Arvid Norlin
c0751968b5 feat(SW-612): Add popover component 2024-11-19 08:48:11 +01:00
Joakim Jäderberg
4b6abb0a31 fix: load room availability separately 2024-11-19 08:34:25 +01:00
Joakim Jäderberg
275fdd8a78 fix: add loading.tsx to route group 2024-11-19 08:31:52 +01:00
Arvid Norlin
17df6d6c47 feat(SW-612): Add popover component 2024-11-19 08:08:08 +01:00
Joakim Jäderberg
7addf78740 fix: add missing loading.tsx and remove redundant ones 2024-11-19 08:05:14 +01:00
Joakim Jäderberg
d6e1e222cc fix: add missing loading.tsx and remove redundant ones 2024-11-19 08:05:14 +01:00
Simon Emanuelsson
c6fc500d9e feat: make steps of enter details flow dynamic depending on data 2024-11-19 08:05:14 +01:00
Bianca Widstam
d49e301634 fix/SW-902-update-response-city-availability (pull request #917)
Fix/SW-902 update response city availability

* fix(SW-902): update response for API changes

* fix(SW-902): add total row for pricePerStay

* fix(SW-902): fix optional requestedPrice

* fix(SW-902): fix bookingCode output

* feat(SW-903): fix sorting


Approved-by: Pontus Dreij
Approved-by: Niclas Edenvin
2024-11-19 08:05:14 +01:00
Tobias Johansson
293800f024 Merged in feat/SW-618-payment-non-happy-path (pull request #874)
Feat/SW-618 payment non happy path

* feat(SW-618): filter out expired saved cards

* feat(SW-618): Added payment error codes and way of showing messages based on code

* feat(SW-618): show error message if max retries has been reached and remove search param after showing toast

* fix(SW-618): move fallback error codes

* fix(SW-618): remove ref from stopping useEffect to run twice

* fix(SW-618): refactored logic for toast message and minor fixes

* fix(SW-618): remove error message enum due to static analysis problems


Approved-by: Christian Andolf
Approved-by: Arvid Norlin
2024-11-19 08:05:14 +01:00
Niclas Edenvin
5fb70866ea Merged in feat/SW-342-filtering-and-sorting-mobile (pull request #919)
Feat/SW-342 filtering and sorting mobile

* feat(SW-342): add sort and filter on mobile

* Use zustand for state management

* Add count and translations

* Clear filters

* Small fixes

* Fixes


Approved-by: Pontus Dreij
2024-11-19 08:05:14 +01:00
Christel Westerberg
d67affd677 fix: update booking service schemas 2024-11-19 08:05:13 +01:00