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
fix(SW-3078): change to string instead of Date in Zod schema
* fix(SW-3078): change to string instead of Date in Zod schema
Approved-by: Michael Zetterberg
Approved-by: Linus Flood
Feat/SW-1719 strikethrough rates
* feat(SW-1719): Strikethrough rate if logged in on regular rate cards
* feat(SW-1719): Strikethrough rate if logged in on rate summary
* feat(SW-1719): Strikethrough rate if logged in on mobile rate summary
* feat(SW-1719): Strikethrough rate if logged in on enter details
* feat(SW-1719): Strikethrough rate support for multiple rooms
* feat(SW-1719): booking receipt fixes on confirmation page
* feat(SW-1719): improve initial total price calculation
* feat: harmonize enter details total price to use one and the same function
Approved-by: Michael Zetterberg
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
Feat/SW-2407 mystay tc to modal
* feat: SW-2407 Moved terms in modal view for my stay
* feat: SW-2407 Updated modal to show terms for reward nights and corporate cheque stay
* feat: SW-2407 Optimised code
* feat: SW-2407 Optimised code
Approved-by: Niclas Edenvin
fix: check if breakfast and refill modal with correct confirmation if cancelled/error payment
* fix: check if breakfast and refill modal with correct confirmation if cancelled/error payment
* fix: only include packages with quantity
Approved-by: Linus Flood
Approved-by: Matilda Landström
fix(SW-2738): add quantity to title for mobile and desktop
* fix(SW-2738): add quantity to title for mobile and desktop
Approved-by: Niclas Edenvin
Approved-by: Joakim Jäderberg
Approved-by: Matilda Landström
feat: SW-2612 Display value of breakfast multiplied with adults and children
* feat: SW-2612 Display value of breakfast multiplied with adults and children
Approved-by: Niclas Edenvin
fix(SW-2608): add per night for children breakfast
* fix(SW-2608): add per night for children breakfast
* fix(SW-2608): capitalized according to figma
Approved-by: Michael Zetterberg
fix(SW-2042): hide guarantee late arrival on my stay for rewardNight
* fix(SW-2042): hide guarantee late arrival on my stay for rewardNight
Approved-by: Niclas Edenvin
We were missing the language param on some endpoints. We are still
missing it on some, but I left those without when we don't need it, e.g.
when only caring about the IDs in the response.