1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/frontend
renovate[bot] d6264a3d26
chore(deps): update dependency sass to v1.71.1 (#6576)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>sass/dart-sass (sass)</summary>

###
[`v1.71.1`](https://togithub.com/sass/dart-sass/blob/HEAD/CHANGELOG.md#1711)

[Compare
Source](https://togithub.com/sass/dart-sass/compare/1.71.0...1.71.1)

##### Command-Line Interface

-   Ship the musl Linux release with the proper Dart executable.

##### JavaScript API

-   Export the `NodePackageImporter` class in ESM mode.

- Allow `NodePackageImporter` to locate a default directory even when
the
    entrypoint is an ESM module.

##### Dart API

- Make passing a null argument to `NodePackageImporter()` a static error
rather
    than just a runtime error.

##### Embedded Sass

- In the JS Embedded Host, properly install the musl Linux embedded
compiler
    when running on musl Linux.

###
[`v1.71.0`](https://togithub.com/sass/dart-sass/blob/HEAD/CHANGELOG.md#1710)

[Compare
Source](https://togithub.com/sass/dart-sass/compare/1.70.0...1.71.0)

For more information about `pkg:` importers, see [the
announcement][pkg-importers] on the Sass blog.

[pkg-importers]: https://sass-lang.com/blog/announcing-pkg-importers

##### Command-Line Interface

- Add a `--pkg-importer` flag to enable built-in `pkg:` importers.
Currently
    this only supports the Node.js package resolution algorithm, via
    `--pkg-importer=node`. For example, `@use "pkg:bootstrap"` will load
    `node_modules/bootstrap/scss/bootstrap.scss`.

##### JavaScript API

- Add a `NodePackageImporter` importer that can be passed to the
`importers`
option. This loads files using the `pkg:` URL scheme according to the
Node.js
package resolution algorithm. For example, `@use "pkg:bootstrap"` will
load
`node_modules/bootstrap/scss/bootstrap.scss`. The constructor takes a
single
optional argument, which indicates the base directory to use when
locating
    `node_modules` directories. It defaults to
    `path.dirname(require.main.filename)`.

##### Dart API

- Add a `NodePackageImporter` importer that can be passed to the
`importers`
option. This loads files using the `pkg:` URL scheme according to the
Node.js
package resolution algorithm. For example, `@use "pkg:bootstrap"` will
load
`node_modules/bootstrap/scss/bootstrap.scss`. The constructor takes a
single
    argument, which indicates the base directory to use when locating
    `node_modules` directories.

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 22:12:57 +00:00
..
cypress chore: remove featureSearchFrontend flag (#6066) 2024-01-31 09:22:26 +02:00
public
scripts feat: Generate new OAS types, tags component upgrade (#3269) 2023-03-15 11:35:24 +02:00
src chore: drop action definition required (#6567) 2024-03-14 16:32:14 +00:00
.editorconfig add editorconfig 2016-12-05 23:08:32 +01:00
.gitignore
.nvmrc chore: update to node 18 (#3527) 2023-04-18 10:35:32 +02:00
check-imports.rc chore: add a script that validates that we don't use prohibited mui material-icons import (#6516) 2024-03-12 13:29:52 +01:00
cypress.config.ts chore: upgrading vite to newer version (#5703) 2023-12-20 14:48:18 +01:00
cypress.d.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
index.html feat: dynamic icons by adding material symbols font (#5008) 2023-10-12 11:22:23 +01:00
index.js feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
orval.config.js feat: features list pagination (#5496) 2023-12-01 14:53:05 +00:00
package.json chore(deps): update dependency sass to v1.71.1 (#6576) 2024-03-14 22:12:57 +00:00
README.md
tsconfig.json
tsconfig.node.json chore: upgrading vite to newer version (#5703) 2023-12-20 14:48:18 +01:00
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 sass to v1.71.1 (#6576) 2024-03-14 22:12: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