1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend
renovate[bot] 773469d715
chore(deps): update dependency immer to v9.0.21 (#3444)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [immer](https://togithub.com/immerjs/immer) | [`9.0.19` ->
`9.0.21`](https://renovatebot.com/diffs/npm/immer/9.0.19/9.0.21) |
[![age](https://badges.renovateapi.com/packages/npm/immer/9.0.21/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/immer/9.0.21/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/immer/9.0.21/compatibility-slim/9.0.19)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/immer/9.0.21/confidence-slim/9.0.19)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>immerjs/immer</summary>

### [`v9.0.21`](https://togithub.com/immerjs/immer/releases/tag/v9.0.21)

[Compare
Source](https://togithub.com/immerjs/immer/compare/v9.0.20...v9.0.21)

##### Bug Fixes

- ensure type exports is first in package.json export declaration
([#&#8203;1018](https://togithub.com/immerjs/immer/issues/1018))
([b6ccd0f](b6ccd0f534))

### [`v9.0.20`](https://togithub.com/immerjs/immer/releases/tag/v9.0.20)

[Compare
Source](https://togithub.com/immerjs/immer/compare/v9.0.19...v9.0.20)

##### Bug Fixes

- patching maps failed when using number keys
([#&#8203;1025](https://togithub.com/immerjs/immer/issues/1025))
([dd83e2e](dd83e2e2db))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4zMS40IiwidXBkYXRlZEluVmVyIjoiMzUuMzEuNCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-03 15:42:06 +00:00
..
cypress E2E test - batch updates (#3392) 2023-03-29 14:47:12 +03:00
public refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00
scripts feat: Generate new OAS types, tags component upgrade (#3269) 2023-03-15 11:35:24 +02:00
src fix: proper check for billing seats on user creation (#3432) 2023-03-31 13:37:33 +03:00
.editorconfig add editorconfig 2016-12-05 23:08:32 +01:00
.gitignore
.nvmrc
.prettierignore Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
.prettierrc refactor: format files (#719) 2022-02-18 09:51:10 +01:00
cypress.json
index.html ui flags replaced in index.html (#2617) 2022-12-07 14:31:27 +02:00
index.js
orval.config.js don't add version header to generated api schema 2023-03-15 13:29:18 +01:00
package.json chore(deps): update dependency immer to v9.0.21 (#3444) 2023-04-03 15:42:06 +00:00
README.md chore: avoid building frontend when possible (#3278) 2023-03-15 13:17:32 +01:00
tsconfig.json Add multiple tags (#3032) 2023-02-03 12:28:06 +02:00
tsconfig.node.json Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
vercel.json fix: update vercel proxy paths (#2623) 2022-12-07 13:00:51 +01:00
vite.config.ts fix: preload error (#2980) 2023-01-24 20:40:03 +01:00
yarn.lock chore(deps): update dependency immer to v9.0.21 (#3444) 2023-04-03 15:42:06 +00:00

frontend

This directory contains the Unleash Admin UI frontend app.

Run with a local instance of the unleash-api

First, start the unleash-api backend on port 4242. Then, start the frontend dev server:

cd ./frontend
yarn install
yarn run start

Run with a sandbox instance of the Unleash API

Alternatively, instead of running unleash-api on localhost, you can use a remote instance:

cd ./frontend
yarn install
yarn run start:sandbox

Running end-to-end tests

We have a set of Cypress tests that run on the build before a PR can be merged so it's important that you check these yourself before submitting a PR. On the server the tests will run against the deployed Heroku app so this is what you probably want to test against:

yarn run start:sandbox

In a different shell, you can run the tests themselves:

yarn run e2e:heroku

If you need to test against patches against a local server instance, you'll need to run that, and then run the end to end tests using:

yarn run e2e

You may also need to test that a feature works against the enterprise version of unleash. Assuming the Heroku instance is still running, this can be done by:

yarn run start:enterprise
yarn run e2e

Generating the OpenAPI client

The frontend uses an OpenAPI client generated from the backend's OpenAPI spec. Whenever there are changes to the backend API, the client should be regenerated:

./scripts/generate-openapi.sh

This script assumes that you have a running instance of the enterprise backend at http://localhost:4242. The new OpenAPI client will be generated from the runtime schema of this instance. The target URL can be changed by setting the UNLEASH_OPENAPI_URL env var.

Analyzing bundle size

npx vite-bundle-visualizer in the root of the frontend directory