1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-28 19:06:12 +01:00
unleash.unleash/frontend
renovate[bot] 063d9e81d1
chore(deps): update dependency @biomejs/biome to v1.8.3 (#7562)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@biomejs/biome](https://biomejs.dev)
([source](https://togithub.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome))
| [`1.8.2` ->
`1.8.3`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/1.8.2/1.8.3)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@biomejs%2fbiome/1.8.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@biomejs%2fbiome/1.8.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@biomejs%2fbiome/1.8.2/1.8.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@biomejs%2fbiome/1.8.2/1.8.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>biomejs/biome (@&#8203;biomejs/biome)</summary>

###
[`v1.8.3`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#v183-2022-06-27)

[Compare
Source](54b4c9a390...c28d5978c1)

##### CLI

##### Bug fixes

- Fix [#&#8203;3104](https://togithub.com/biomejs/biome/issues/3104) by
suppressing node warnings when using `biome migrate`. Contributed by
[@&#8203;SuperchupuDev](https://togithub.com/SuperchupuDev)

- Force colors to be off when using the GitHub reporter to properly
create annotations in GitHub actions
([#&#8203;3148](https://togithub.com/biomejs/biome/issues/3148)).
Contributed by [@&#8203;Sec-ant](https://togithub.com/Sec-ant)

##### Parser

##### Bug fixes

- Implement [CSS unicode
range](https://togithub.com/biomejs/biome/pull/3251). Contributed by
[@&#8203;denbezrukov](https://togithub.com/denbezrukov)

##### Formatter

##### Bug fixes

- Fix [#&#8203;3184](https://togithub.com/biomejs/biome/issues/3184) CSS
formatter converts custom identifiers to lowercase. Contributed by
[@&#8203;denbezrukov](https://togithub.com/denbezrukov)
- Fix [#&#8203;3256](https://togithub.com/biomejs/biome/issues/3256)
constant crashes when editing css files
[#&#8203;3256](https://togithub.com/biomejs/biome/issues/3256).
Contributed by [@&#8203;denbezrukov](https://togithub.com/denbezrukov)

##### Linter

##### New features

- Add `nursery/useDeprecatedReason` rule. Contributed by
[@&#8203;vohoanglong0107](https://togithub.com/vohoanglong0107).
- Add
[nursery/noExportedImports](https://biomejs.dev/linter/rules/no-exported-imports/).
Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

##### Bug fixes

- `useConsistentArrayType` and `useShorthandArrayType` now ignore
`Array` in the `extends` and `implements` clauses. Fix
[#&#8203;3247](https://togithub.com/biomejs/biome/issues/3247).
Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)
- Fixes [#&#8203;3066](https://togithub.com/biomejs/biome/issues/3066)
by taking into account the dependencies declared in the `package.json`.
Contributed by [@&#8203;ematipico](https://togithub.com/ematipico)
- The code action of the `useArrowFunction` rule now preserves a
trailing comma when there is only a single type parameter in the arrow
function and JSX is enabled. Fixes
[#&#8203;3292](https://togithub.com/biomejs/biome/issues/3292).
Contributed by [@&#8203;Sec-ant](https://togithub.com/Sec-ant)

##### Enhancements

- Enhance tailwind sorting lint rule
[#&#8203;1274](https://togithub.com/biomejs/biome/issues/1274) with
variant support.

Every preconfigured variant is assigned a `weight` that concurs on
establishing the output sorting order.
Since nesting variants on the same utility class is possible, the
resulting `weight` is the Bitwise XOR of all the variants weight for
that class.
Dynamic variants (e.g. `has-[.custom-class]`, `group-[:checked]`) are
also supported and they take the `weight` of their base variant name the
custom value attached (e.g. `has-[.custom-class]` takes `has` weight).
Arbitrary variants (e.g. `[&nth-child(2)]`) don't have a weight assigned
and they are placed after every known variant.
Classes with the same amount of arbitrary variants follow
lexicographical order. The class that has the highest number of nested
arbitrary variants is placed last.
Screen variants (e.g. `sm:`, `max-md:`, `min-lg:`) are not supported
yet.

    Contributed by [@&#8203;lutaok](https://togithub.com/lutaok)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-09 18:25:17 +00:00
..
.yarn/releases task: Yarn v4 (#7457) 2024-06-27 12:52:43 +02:00
cypress chore: wait to input the name of the segment when checking for error messages (#7377) 2024-06-12 14:06:44 +02:00
public feat: Project owners UI (#6949) 2024-04-29 11:51:44 +02:00
scripts
src feat: Disallow repeating last 5 passwords. (#7552) 2024-07-09 16:18:35 +02:00
.editorconfig
.gitignore chore: add gitignores to frontend and website subdirectories (#7336) 2024-06-10 14:39:14 +02:00
.npmignore task: Yarn v4 (#7457) 2024-06-27 12:52:43 +02:00
.nvmrc chore: bump to @types/node 20 as well as updating frontend .nvmrc (#7137) 2024-05-24 07:40:20 +00:00
.yarnrc.yml task: Yarn v4 (#7457) 2024-06-27 12:52:43 +02:00
check-imports.rc task: Yarn v4 (#7457) 2024-06-27 12:52:43 +02:00
cypress.config.ts
cypress.d.ts
index.html
index.js
orval.config.js
package.json chore(deps): update dependency @biomejs/biome to v1.8.3 (#7562) 2024-07-09 18:25:17 +00:00
README.md
tsconfig.json
tsconfig.node.json
vercel.json
vite.config.mts
yarn.lock chore(deps): update dependency @biomejs/biome to v1.8.3 (#7562) 2024-07-09 18:25:17 +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