Personal calendar manager https://cal.maronato.dev
Go to file
DmytroHryshyn 48e7b616b8
chore: [app dir bootstrapping 10] adds ab tests middleware (#12045)
## What does this PR do?
 - Adds AB tests middleware that redirects users to the app-dir pages with probability that is defined by env var
 
<!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. -->

Fixes # (issue)

<!-- Please provide a loom video for visual changes to speed up reviews
 Loom Video: https://www.loom.com/
-->

## Requirement/Documentation

<!-- Please provide all documents that are important to understand the reason of that PR. -->

This PR requires new env variables:
`APP_ROUTER_EVENT_TYPES_ENABLED`  - boolean that defines if app dir event-types page redirect is enabled
`AB_TEST_BUCKET_PROBABILITY` - number [0, 100] that defines the percentage of users getting redirected to the app dir pages

## Type of change

<!-- Please delete bullets that are not relevant. -->

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] Chore (refactoring code, technical debt, workflow improvements)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

## How should this be tested?

<!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. Write details that help to start the tests -->
Does not requires testing, implements middleware as a dead code

## Mandatory Tasks

- [x] Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.
2023-11-15 11:06:18 -07:00
__checks__ fix: Support embedding org profile page (#12116) 2023-10-30 17:49:13 +05:30
.changeset Add changesets/cli to release embed (#8126) 2023-05-13 08:22:31 +00:00
.github chore: delete welcome workflow (#12279) 2023-11-08 09:39:56 +00:00
.husky chore: cleanup `.husky` directory (#11583) 2023-09-28 19:13:05 +01:00
.snaplet Upgaded Snaplet CLI 2022-11-11 10:32:35 -07:00
.vscode chore: add inlang ide extension for i18n (#9599) 2023-06-19 10:15:45 -07:00
.yarn chore: [app dir bootstrapping 6] server-side translations (#11995) 2023-10-25 14:43:48 -07:00
apps chore: [app dir bootstrapping 10] adds ab tests middleware (#12045) 2023-11-15 11:06:18 -07:00
deploy fixes codespace login msg spelling (#6288) 2023-01-06 12:37:03 -07:00
infra fix: add translations to api dockerfile (#12349) 2023-11-14 09:59:32 +00:00
packages chore: [app dir bootstrapping 10] adds ab tests middleware (#12045) 2023-11-15 11:06:18 -07:00
scripts Clarifies new db vs old db 2022-08-11 18:43:59 -06:00
tests/libs/__mocks__ fix: Fix 'Book a new time' link in request-reschedule for Team Event (#12261) 2023-11-14 13:23:44 -07:00
.editorconfig Added .editorconfig file as suggested in #270 2021-07-03 17:02:26 +00:00
.env.appStore.example feat: Zoho Calendar (#10429) 2023-09-25 14:04:37 +05:30
.env.example feat: configure availability time picker interval by env variable (#12174) 2023-11-09 09:50:42 -05:00
.eslintignore Upgrades yarn v1 to v3. Improves CI times by 2x (#7738) 2023-03-15 15:01:04 -07:00
.eslintrc.js Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
.gitignore Updates git init scripts 2023-05-23 13:18:27 -07:00
.gitpod.yml fix: change localhost:3000 to Gitpod workspace URL (#10470) 2023-09-27 15:54:45 +00:00
.kodiak.toml Allows auto approvals for crowdin 2022-07-11 18:49:40 -06:00
.npmrc chore: add some dx configs (#650) 2021-09-29 09:41:38 +00:00
.nvmrc chore: bump node version to v18 (#7310) 2023-03-15 20:15:16 +00:00
.prettierignore chore: Enable prettier on vitest files without causing test failures (#11190) 2023-09-14 08:58:08 +02:00
.prettierrc.js Linting (#2083) 2022-03-09 17:52:48 +00:00
.yarnrc.yml Add changesets/cli to release embed (#8126) 2023-05-13 08:22:31 +00:00
app.json feat: configure availability time picker interval by env variable (#12174) 2023-11-09 09:50:42 -05:00
checkly.config.ts fix: Support embedding org profile page (#12116) 2023-10-30 17:49:13 +05:30
CODE_OF_CONDUCT.md Runs format script 2022-06-24 07:37:56 -06:00
CONTRIBUTING.md docs: needs approval label (#12177) 2023-11-01 11:52:11 -03:00
crowdin.yml chore: prettier 2023-08-15 11:59:16 -07:00
gh.env Solves Github actions caching issues (#7431) 2023-02-28 10:41:55 +00:00
git-init.sh Updates git init scripts 2023-05-23 13:18:27 -07:00
git-setup.sh Updates git init scripts 2023-05-23 13:18:27 -07:00
i18n-unused.config.js chore: enable i18n-unused GH action in `website` (#10296) 2023-07-25 18:30:18 +01:00
LICENSE chore: added commercial API to LICENSE (#9635) 2023-06-20 09:33:43 +00:00
package.json chore: init infra folder with dockerized api (#12243) 2023-11-07 09:47:06 +02:00
playwright.config.ts fix: inconsistent timezones in e2e tests (#11841) 2023-10-17 08:23:54 +05:30
Procfile fix: deployment setup to Heroku (#1834) 2022-02-14 16:29:48 +00:00
project.inlang.json fix: update inlang project settings file (#11442) 2023-10-09 18:39:04 +01:00
README.md docs(README): remove unpaired symbol (#12133) 2023-11-02 09:36:47 +00:00
SECURITY.md Fix markdownlint issues (#9497) 2023-06-28 19:06:00 +02:00
setupVitest.ts test: Integration tests for handleNewBooking (#11044) 2023-09-06 12:23:53 -07:00
turbo.json chore: [app dir bootstrapping 10] adds ab tests middleware (#12045) 2023-11-15 11:06:18 -07:00
vitest.config.ts fix: request reschedule link in email for an Org event (#12125) 2023-10-30 16:25:12 +05:30
vitest.workspace.ts fix: [app dir bootstrapping 8] `useParamsWithFallback` hook and add tests (#12041) 2023-11-07 13:48:02 +00:00
yarn.lock feat: Stripe paid apps flow (#12103) 2023-11-15 09:29:41 -03:00