1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-28 19:06:12 +01:00
unleash.unleash/frontend
renovate[bot] da889ac004
chore(deps): update dependency orval to v6.29.1 (#7277)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [orval](https://togithub.com/anymaniax/orval) | [`6.27.1` ->
`6.29.1`](https://renovatebot.com/diffs/npm/orval/6.27.1/6.29.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/orval/6.29.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/orval/6.29.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/orval/6.27.1/6.29.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/orval/6.27.1/6.29.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>anymaniax/orval (orval)</summary>

###
[`v6.29.1`](https://togithub.com/anymaniax/orval/releases/tag/v6.29.1):
Release 6.29.1

[Compare
Source](https://togithub.com/anymaniax/orval/compare/v6.29.0...v6.29.1)

##### Bug Fixes

- **hono:** correctly check response validator application/json
([43766c8](43766c8016))

###
[`v6.29.0`](https://togithub.com/anymaniax/orval/releases/tag/v6.29.0):
Release 6.29.0

[Compare
Source](https://togithub.com/anymaniax/orval/compare/v6.28.2...v6.29.0)

##### Bug Fixes

- allow making second axios, etc., param `required` instead of
`optional`
([#&#8203;1357](https://togithub.com/anymaniax/orval/issues/1357))
([b13dbb3](b13dbb3f86))
- allow to override only root mock
([#&#8203;1338](https://togithub.com/anymaniax/orval/issues/1338))
([dc18a87](dc18a87bae))
- correct import for anyof enums
([#&#8203;1371](https://togithub.com/anymaniax/orval/issues/1371))
([d3ddbdd](d3ddbddd94))
- fix type of filters.tags, add regexp to docs
([#&#8203;1369](https://togithub.com/anymaniax/orval/issues/1369))
([50a7ad7](50a7ad76ea))
- format to index of `hono`
([#&#8203;1368](https://togithub.com/anymaniax/orval/issues/1368))
([5581edf](5581edf730))
- handle OpenAPI 3.1 nullability for mocks
([#&#8203;1381](https://togithub.com/anymaniax/orval/issues/1381))
([efc4c35](efc4c35bd5))
- **hono:** remove handler fix
([692f749](692f749c0d))
- **hono:** validator return parsed value
([#&#8203;1339](https://togithub.com/anymaniax/orval/issues/1339))
([6d41605](6d41605a23))
- **msw:** make delay optional
([#&#8203;1360](https://togithub.com/anymaniax/orval/issues/1360))
([393a6d8](393a6d8eb5))
- **msw:** make sure to early out when detecting loop in
additionalproperties
([#&#8203;1362](https://togithub.com/anymaniax/orval/issues/1362))
([4536f34](4536f34d19))
- path to file url
([#&#8203;1372](https://togithub.com/anymaniax/orval/issues/1372))
([a61d26a](a61d26aba4))
- unstable reference (Issue 1359)
([#&#8203;1374](https://togithub.com/anymaniax/orval/issues/1374))
([f7db4ca](f7db4ca4e2))
- valid syntax when anyOf is present on querystring
([#&#8203;1341](https://togithub.com/anymaniax/orval/issues/1341))
([41f6612](41f6612059))

##### Features

- 'suppressReadonlyModifier' override option introduced
([#&#8203;1354](https://togithub.com/anymaniax/orval/issues/1354))
([86f2cf1](86f2cf10ec))
- allow override for mock handlers to be a function
([#&#8203;1375](https://togithub.com/anymaniax/orval/issues/1375))
([bc3d277](bc3d277469))
- **hono:** add async to handler
([db7de2f](db7de2f9a6))
- **hono:** add validator option
([770295f](770295f5c6))

##### Reverts

- Revert "fix(core): improve NonReadonly type
([#&#8203;1237](https://togithub.com/anymaniax/orval/issues/1237))"
([#&#8203;1352](https://togithub.com/anymaniax/orval/issues/1352))
([0008100](0008100312)),
closes [#&#8203;1237](https://togithub.com/anymaniax/orval/issues/1237)
[#&#8203;1352](https://togithub.com/anymaniax/orval/issues/1352)
[#&#8203;1348](https://togithub.com/anymaniax/orval/issues/1348)

###
[`v6.28.2`](https://togithub.com/anymaniax/orval/releases/tag/v6.28.2):
Release 6.28.2

[Compare
Source](https://togithub.com/anymaniax/orval/compare/v6.28.1...v6.28.2)

##### Bug Fixes

- **zod:** remove double strict
([b311298](b311298a9c))
- **zod:** response and body parser array compatibility
([0a03004](0a03004c11))

###
[`v6.28.1`](https://togithub.com/anymaniax/orval/releases/tag/v6.28.1):
Release 6.28.1

[Compare
Source](https://togithub.com/anymaniax/orval/compare/v6.28.0...v6.28.1)

##### Bug Fixes

- **zod:** missing zod prefix
([8df6df7](8df6df73c9))

###
[`v6.28.0`](https://togithub.com/anymaniax/orval/releases/tag/v6.28.0):
Release 6.28.0

[Compare
Source](https://togithub.com/anymaniax/orval/compare/v6.27.1...v6.28.0)

##### Bug Fixes

- accumulate discriminator mapping keys
([#&#8203;1305](https://togithub.com/anymaniax/orval/issues/1305))
([1cc9e01](1cc9e01007))
- **core:** discriminator nullable property
([7294c32](7294c32fea))
- **hono:** context add out type
([39a1884](39a18848ee))
- **hono:** handle correctly response validation empty
([48436f2](48436f2d93))
- **mock/msw:** override response if it's false as well
([#&#8203;1313](https://togithub.com/anymaniax/orval/issues/1313))
([b13df01](b13df0126a))
- **msw:** correctly mock nested objects
([#&#8203;1325](https://togithub.com/anymaniax/orval/issues/1325))
([d7fa66d](d7fa66d7b2))
- **MSW:** fixed so that `Function` can be accepted with `mock` option
([#&#8203;1328](https://togithub.com/anymaniax/orval/issues/1328))
([25a5e39](25a5e39473))
- **swr:** strongly type args in swr mutation fetchers
([#&#8203;1324](https://togithub.com/anymaniax/orval/issues/1324))
([7feae35](7feae3530a))
- **zod:** handle schema type array correctly
([#&#8203;1311](https://togithub.com/anymaniax/orval/issues/1311))
([b1d66dc](b1d66dc8a5))

##### Features

- added `output.fileExtension` option to possible specifying the
extension for the generated file.
([#&#8203;1320](https://togithub.com/anymaniax/orval/issues/1320))
([913ac00](913ac00036))
- **core:** add option to apply `biome` to generated files
([#&#8203;1321](https://togithub.com/anymaniax/orval/issues/1321))
([5f5dc17](5f5dc17b4a))
- **zod:** add option coerce
([#&#8203;1310](https://togithub.com/anymaniax/orval/issues/1310))
([25267ae](25267ae5a5))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, 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://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zODguMSIsInVwZGF0ZWRJblZlciI6IjM3LjM4OC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-04 19:27:57 +00:00
..
cypress chore: rename roles toggles to flag (#7123) 2024-05-23 12:01:04 +03:00
public
scripts feat: Generate new OAS types, tags component upgrade (#3269) 2023-03-15 11:35:24 +02:00
src task: upgraded semver dependency (and biome) (#7272) 2024-06-04 15:01:43 +02:00
.editorconfig
.gitignore
.nvmrc chore: bump to @types/node 20 as well as updating frontend .nvmrc (#7137) 2024-05-24 07:40:20 +00:00
check-imports.rc
cypress.config.ts
cypress.d.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
index.html
index.js
orval.config.js
package.json chore(deps): update dependency vite to v5.2.12 (#7276) 2024-06-04 19:27:45 +00:00
README.md
tsconfig.json
tsconfig.node.json
vercel.json
vite.config.mts fix: fix assets not showing up (#5757) 2024-01-04 12:11:42 +02:00
yarn.lock chore(deps): update dependency orval to v6.29.1 (#7277) 2024-06-04 19:27:57 +00:00

frontend

This directory contains the Unleash Admin UI frontend app.

Run with a local instance of the unleash-api

Refer to the Contributing to Unleash guide for instructions. The frontend dev server runs (in port 3000) simultaneously with the backend dev server (in port 4242):

yarn install
yarn dev

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:

For now we only use generated types (src/openapi/models). We will use methods (src/openapi/apis) for new features soon.

yarn gen:api
rm -rf src/openapi/apis

clean up src/openapi/index.ts imports, only keep first line export * from './models';

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