03468ad82406830df7100b27adc3b153b06095b7
Fix: refactor booking flow search params * wip: apply codemod and upgrade swc plugin * wip: design-system to react 19, fix issues from async (search)params * Prepare new parse function for booking flow search params * Prepare serialize function for booking flow search params * Improve handling of comma separated arrays * Slightly refactor for readability * Next abstracts URLSearchParams so handle the abstraction instead * Refactor booking widget to use new search params parsing * Rename search param functions * Refactor select-hotel to use new search param parser * Use new search params parser in select-rate and details * Fix hotelId type * Avoid passing down search params into BookingWidget components * More updates to use new types instead of SearchParams<T> * Remove types SelectHotelSearchParams and AlternativeSelectHotelSearchParams * Fix parseBookingWidgetSearchParams return type * Add error handling to booking search param parsers * Fix modifyRateIndex handling in details page * Clean up * Refactor booking widget search param serializing to util function * Move start page booking widget search param parsing to page * Use new search param serializer in HandleErrorCallback * Delete convertSearchParamsToObj & convertObjToSearchParams Approved-by: Michael Zetterberg
Scandic Monorepo
This is the monorepo for Scandic's web projects.
What's inside?
This repo includes the following packages/apps:
Apps and Packages
scandic-web: Next.js app for our public websitedesign-system: a shared library of styles
Getting Started
To get started, clone this repository and run yarn install in the root directory.
Running scandic-web locally
To run the scandic-web app locally see its README.
Material Symbols
We download the font file from Google Fonts service and host it ourselves.
Configuration
We use the following configuration:
- FILL axis: 0..1
- wght axis: 400
- GRAD axis: 0
- opsz axis: 24
More info at https://developers.google.com/fonts/docs/material_symbols#optimize_the_icon_font
Optimization
We optimize the font size by only including the icons we use in the repository.
Read more at: https://developers.google.com/fonts/docs/material_symbols#use_in_web
Modifying icons
- Update the list of icons to include in
scripts/material-symbols-update.mjs. - Run
yarn run icons:updatein monorepo root.
Description
Languages
TypeScript
90.3%
CSS
7.6%
JavaScript
1.9%