1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
Commit Graph

2570 Commits

Author SHA1 Message Date
Nuno Góis
1bd95d44e5
fix: use instance status too many reqs (#2651)
Same as https://github.com/Unleash/unleash/pull/2650 but for
`useInstanceStatus`, since it followed a similar pattern.
2022-12-09 11:53:31 +01:00
Nuno Góis
bc77342380
fix: too many reqs to feature toggle endpoint (#2650)
Fixes an issue where the feature toggle endpoint gets request too many
times repeatedly.
2022-12-09 10:37:09 +00:00
andreas-unleash
58622bbf99
Fix/change request search (#2647)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
Fixes bug in Project Change Requests Tab Search
## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2022-12-09 11:34:26 +02:00
Mateusz Kwasniewski
a87145b5ef
Fix strategy screen 404 (#2638) 2022-12-09 09:29:44 +01:00
renovate[bot]
f91bc136bb
chore(deps): update dependency sass to v1.56.2 (#2644)
[![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.56.1` ->
`1.56.2`](https://renovatebot.com/diffs/npm/sass/1.56.1/1.56.2) |
[![age](https://badges.renovateapi.com/packages/npm/sass/1.56.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/sass/1.56.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/sass/1.56.2/compatibility-slim/1.56.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/sass/1.56.2/confidence-slim/1.56.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v1.56.2`](https://togithub.com/sass/dart-sass/blob/HEAD/CHANGELOG.md#&#8203;1562)

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

##### Embedded Sass

-   The embedded compiler now supports version 1.2.0 of [the embedded
    protocol](https://togithub.com/sass/embedded-protocol).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-09 00:03:09 +00:00
renovate[bot]
ae107ee230
chore(deps): update react-router monorepo to v6.4.5 (#2643)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [react-router](https://togithub.com/remix-run/react-router) | [`6.4.3`
-> `6.4.5`](https://renovatebot.com/diffs/npm/react-router/6.4.3/6.4.5)
|
[![age](https://badges.renovateapi.com/packages/npm/react-router/6.4.5/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/react-router/6.4.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/react-router/6.4.5/compatibility-slim/6.4.3)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/react-router/6.4.5/confidence-slim/6.4.3)](https://docs.renovatebot.com/merge-confidence/)
|
| [react-router-dom](https://togithub.com/remix-run/react-router) |
[`6.4.3` ->
`6.4.5`](https://renovatebot.com/diffs/npm/react-router-dom/6.4.3/6.4.5)
|
[![age](https://badges.renovateapi.com/packages/npm/react-router-dom/6.4.5/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/react-router-dom/6.4.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/react-router-dom/6.4.5/compatibility-slim/6.4.3)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/react-router-dom/6.4.5/confidence-slim/6.4.3)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>remix-run/react-router (react-router)</summary>

###
[`v6.4.5`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#&#8203;645)

[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router@6.4.4...react-router@6.4.5)

##### Patch Changes

-   Updated dependencies:
    -   `@remix-run/router@1.0.5`

###
[`v6.4.4`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#&#8203;644)

[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router@6.4.3...react-router@6.4.4)

##### Patch Changes

-   Updated dependencies:
    -   `@remix-run/router@1.0.4`

</details>

<details>
<summary>remix-run/react-router (react-router-dom)</summary>

###
[`v6.4.5`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#&#8203;645)

[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router-dom@6.4.4...react-router-dom@6.4.5)

##### Patch Changes

-   Updated dependencies:
    -   `@remix-run/router@1.0.5`
    -   `react-router@6.4.5`

###
[`v6.4.4`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#&#8203;644)

[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router-dom@6.4.3...react-router-dom@6.4.4)

##### Patch Changes

- Fix issues with encoded characters in `NavLink` and descendant
`<Routes>`
([#&#8203;9589](https://togithub.com/remix-run/react-router/pull/9589),
[#&#8203;9647](https://togithub.com/remix-run/react-router/pull/9647))
- Properly serialize/deserialize `ErrorResponse` instances when using
built-in hydration
([#&#8203;9593](https://togithub.com/remix-run/react-router/pull/9593))
- Support `basename` in static data routers
([#&#8203;9591](https://togithub.com/remix-run/react-router/pull/9591))
-   Updated dependencies:
    -   `@remix-run/router@1.0.4`
    -   `react-router@6.4.4`

</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 these
updates 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:eyJjcmVhdGVkSW5WZXIiOiIzNC41MS4wIiwidXBkYXRlZEluVmVyIjoiMzQuNTEuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-08 23:52:35 +00:00
renovate[bot]
cdf386deb4
chore(deps): update dependency vitest to v0.25.6 (#2633)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>vitest-dev/vitest</summary>

###
[`v0.25.6`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.25.6)

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.25.5...v0.25.6)

#####    🐞 Bug Fixes

- Expected reversed with actual  -  by
[@&#8203;poyoho](https://togithub.com/poyoho) in
[https://github.com/vitest-dev/vitest/issues/2460](https://togithub.com/vitest-dev/vitest/issues/2460)
[<samp>(f02c9)</samp>](https://togithub.com/vitest-dev/vitest/commit/f02c9828)
- Try to resolve id, if relative path is provided  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2461](https://togithub.com/vitest-dev/vitest/issues/2461)
[<samp>(e9cb4)</samp>](https://togithub.com/vitest-dev/vitest/commit/e9cb4136)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.25.5...v0.25.6)

###
[`v0.25.5`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.25.5)

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.25.4...v0.25.5)

#####    🚀 Features

- **ui**: Show diff in report panel  -  by
[@&#8203;scarf005](https://togithub.com/scarf005) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2406](https://togithub.com/vitest-dev/vitest/issues/2406)
and
[https://github.com/vitest-dev/vitest/issues/2423](https://togithub.com/vitest-dev/vitest/issues/2423)
[<samp>(8595c)</samp>](https://togithub.com/vitest-dev/vitest/commit/8595c0e5)

#####    🐞 Bug Fixes

- Correctly resolve filename, when running code  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2439](https://togithub.com/vitest-dev/vitest/issues/2439)
[<samp>(2e789)</samp>](https://togithub.com/vitest-dev/vitest/commit/2e7892cb)
- Move sourcemapping source out of the sourcemap  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2443](https://togithub.com/vitest-dev/vitest/issues/2443)
[<samp>(cc13c)</samp>](https://togithub.com/vitest-dev/vitest/commit/cc13c28c)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.25.4...v0.25.5)

###
[`v0.25.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.25.4)

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.25.3...v0.25.4)

#####    🚀 Features

- Slow test threshold  -  by
[@&#8203;poyoho](https://togithub.com/poyoho) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2396](https://togithub.com/vitest-dev/vitest/issues/2396)
[<samp>(98974)</samp>](https://togithub.com/vitest-dev/vitest/commit/98974ba4)
- Format test tablename  -  by
[@&#8203;poyoho](https://togithub.com/poyoho) in
[https://github.com/vitest-dev/vitest/issues/2405](https://togithub.com/vitest-dev/vitest/issues/2405)
[<samp>(45c5c)</samp>](https://togithub.com/vitest-dev/vitest/commit/45c5c45a)
- Suspend process  -  by [@&#8203;poyoho](https://togithub.com/poyoho)
in
[https://github.com/vitest-dev/vitest/issues/2422](https://togithub.com/vitest-dev/vitest/issues/2422)
[<samp>(b8ee8)</samp>](https://togithub.com/vitest-dev/vitest/commit/b8ee821c)
- Format test objects in `each` title  -  by
[@&#8203;scarf005](https://togithub.com/scarf005) in
[https://github.com/vitest-dev/vitest/issues/2420](https://togithub.com/vitest-dev/vitest/issues/2420)
and
[https://github.com/vitest-dev/vitest/issues/2421](https://togithub.com/vitest-dev/vitest/issues/2421)
[<samp>(1868f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1868f1c4)

#####    🐞 Bug Fixes

- Exit with code 1, when type tests fail  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2378](https://togithub.com/vitest-dev/vitest/issues/2378)
[<samp>(98141)</samp>](https://togithub.com/vitest-dev/vitest/commit/9814124e)
- Tab affect vi.mock  -  by
[@&#8203;poyoho](https://togithub.com/poyoho) in
[https://github.com/vitest-dev/vitest/issues/2402](https://togithub.com/vitest-dev/vitest/issues/2402)
[<samp>(5a3de)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a3deba5)
- Don't escape "\\" in diff view  -  by
[@&#8203;poyoho](https://togithub.com/poyoho) in
[https://github.com/vitest-dev/vitest/issues/2430](https://togithub.com/vitest-dev/vitest/issues/2430)
[<samp>(7d4e3)</samp>](https://togithub.com/vitest-dev/vitest/commit/7d4e3ed0)
- Correct test files status in json reporter  -  by
[@&#8203;brzezinskimarcin](https://togithub.com/brzezinskimarcin) in
[https://github.com/vitest-dev/vitest/issues/2417](https://togithub.com/vitest-dev/vitest/issues/2417)
and
[https://github.com/vitest-dev/vitest/issues/2419](https://togithub.com/vitest-dev/vitest/issues/2419)
[<samp>(ce931)</samp>](https://togithub.com/vitest-dev/vitest/commit/ce931956)
- Export all named CJS exports, if default export is a function  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2435](https://togithub.com/vitest-dev/vitest/issues/2435)
[<samp>(d43f3)</samp>](https://togithub.com/vitest-dev/vitest/commit/d43f3f5c)
- Add test attributes to "testsuites" in junit reporter  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2362](https://togithub.com/vitest-dev/vitest/issues/2362)
[<samp>(d0506)</samp>](https://togithub.com/vitest-dev/vitest/commit/d050604f)
- DynamicImportSettled also waits for nested imports  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2389](https://togithub.com/vitest-dev/vitest/issues/2389)
[<samp>(5098b)</samp>](https://togithub.com/vitest-dev/vitest/commit/5098b217)
- Always apply vite ssr source maps  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2433](https://togithub.com/vitest-dev/vitest/issues/2433)
[<samp>(cbf91)</samp>](https://togithub.com/vitest-dev/vitest/commit/cbf91ba7)
- Copy-pasting from module graph browser  -  by
[@&#8203;g4rry420](https://togithub.com/g4rry420) in
[https://github.com/vitest-dev/vitest/issues/2321](https://togithub.com/vitest-dev/vitest/issues/2321)
[<samp>(8920a)</samp>](https://togithub.com/vitest-dev/vitest/commit/8920aa45)
- **deps**: Update dependency strip-literal to v1  -  by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[https://github.com/vitest-dev/vitest/issues/2387](https://togithub.com/vitest-dev/vitest/issues/2387)7
[<samp>(824e1)</samp>](https://togithub.com/vitest-dev/vitest/commit/824e18c3)
- **mocker**: Set cache before mocking to allow circular dependencies
 -  by [@&#8203;danez](https://togithub.com/danez) in
[https://github.com/vitest-dev/vitest/issues/2391](https://togithub.com/vitest-dev/vitest/issues/2391)
[<samp>(fd829)</samp>](https://togithub.com/vitest-dev/vitest/commit/fd8292ac)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.25.3...v0.25.4)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-08 20:13:00 +00:00
Mateusz Kwasniewski
098755a9b4
Conditional swr (#2637) 2022-12-08 14:59:32 +01:00
andreas-unleash
6bccffef97
Fix/favorites UI improvements (#2636)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
Favorite UI improvements
## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2022-12-08 14:41:51 +02:00
Mateusz Kwasniewski
2107834768
hide discard for nonauthors (#2634) 2022-12-08 13:24:15 +01:00
Nuno Góis
1be2483e6a
Refactor premium feature (#2627)
https://linear.app/unleash/issue/2-491/improve-premiumfeature-component-and-how-its-implemented


![image](https://user-images.githubusercontent.com/14320932/206237837-6032c3c0-1e42-4be2-8b6f-223e0204e1b5.png)

Refactors `PremiumFeature` to be a bit more straightforward and match
new designs, both in standalone and tooltip modes.
This also fixes the fact that the change requests tab did not display
the premium feature info, along with other smaller fixes.

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2022-12-08 11:42:54 +00:00
Mateusz Kwasniewski
fb2c30244c
adding missing enterprise check (#2635) 2022-12-08 12:37:20 +01:00
Nuno Góis
9b10b26ba4
fix: tags endpoint returning 404 when featureId is not set (#2621)
Leverages the new `useConditionalSWR` hook to fix the underlying issue
in the `useTags` hook, preventing edge cases where we try to fetch when
featureId is not correctly set.
2022-12-08 11:16:53 +00:00
Mateusz Kwasniewski
353f50237d
Change request UI improvements pt2 (#2624) 2022-12-08 10:59:37 +01:00
renovate[bot]
1e0602c134
chore(deps): update dependency vite to v3.2.5 (#2632)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vite](https://togithub.com/vitejs/vite/tree/main/#readme)
([source](https://togithub.com/vitejs/vite)) | [`3.2.4` ->
`3.2.5`](https://renovatebot.com/diffs/npm/vite/3.2.4/3.2.5) |
[![age](https://badges.renovateapi.com/packages/npm/vite/3.2.5/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/vite/3.2.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/vite/3.2.5/compatibility-slim/3.2.4)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/vite/3.2.5/confidence-slim/3.2.4)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vitejs/vite</summary>

###
[`v3.2.5`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small325-2022-12-05-small)

[Compare
Source](https://togithub.com/vitejs/vite/compare/v3.2.4...v3.2.5)

- chore: cherry pick more v4 bug fixes to v3
([#&#8203;11189](https://togithub.com/vitejs/vite/issues/11189))
([eba9b42](https://togithub.com/vitejs/vite/commit/eba9b42)), closes
[#&#8203;11189](https://togithub.com/vitejs/vite/issues/11189)
[#&#8203;10949](https://togithub.com/vitejs/vite/issues/10949)
[#&#8203;11056](https://togithub.com/vitejs/vite/issues/11056)
[#&#8203;8663](https://togithub.com/vitejs/vite/issues/8663)
[#&#8203;10958](https://togithub.com/vitejs/vite/issues/10958)
[#&#8203;11120](https://togithub.com/vitejs/vite/issues/11120)
[#&#8203;11122](https://togithub.com/vitejs/vite/issues/11122)
[#&#8203;11123](https://togithub.com/vitejs/vite/issues/11123)
[#&#8203;11132](https://togithub.com/vitejs/vite/issues/11132)
- chore: cherry pick v4 bug fix to v3
([#&#8203;11110](https://togithub.com/vitejs/vite/issues/11110))
([c93a526](https://togithub.com/vitejs/vite/commit/c93a526)), closes
[#&#8203;11110](https://togithub.com/vitejs/vite/issues/11110)
[#&#8203;10941](https://togithub.com/vitejs/vite/issues/10941)
[#&#8203;10987](https://togithub.com/vitejs/vite/issues/10987)
[#&#8203;10985](https://togithub.com/vitejs/vite/issues/10985)
[#&#8203;11067](https://togithub.com/vitejs/vite/issues/11067)
- fix: relocated logger to respect config.
([#&#8203;10787](https://togithub.com/vitejs/vite/issues/10787))
([#&#8203;10967](https://togithub.com/vitejs/vite/issues/10967))
([bc3b5a9](https://togithub.com/vitejs/vite/commit/bc3b5a9)), closes
[#&#8203;10787](https://togithub.com/vitejs/vite/issues/10787)
[#&#8203;10967](https://togithub.com/vitejs/vite/issues/10967)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-08 07:22:55 +00:00
renovate[bot]
7aa2ac4803
chore(deps): update dependency @types/jest to v29.2.4 (#2626)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/jest](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) |
[`29.2.3` ->
`29.2.4`](https://renovatebot.com/diffs/npm/@types%2fjest/29.2.3/29.2.4)
|
[![age](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.2.4/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.2.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.2.4/compatibility-slim/29.2.3)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.2.4/confidence-slim/29.2.3)](https://docs.renovatebot.com/merge-confidence/)
|

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzNC40OS4wIiwidXBkYXRlZEluVmVyIjoiMzQuNDkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-07 20:34:54 +00:00
renovate[bot]
cec7edd370
chore(deps): update dependency @types/deep-diff to v1.0.2 (#2615)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/deep-diff](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-diff)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) |
[`1.0.1` ->
`1.0.2`](https://renovatebot.com/diffs/npm/@types%2fdeep-diff/1.0.1/1.0.2)
|
[![age](https://badges.renovateapi.com/packages/npm/@types%2fdeep-diff/1.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@types%2fdeep-diff/1.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@types%2fdeep-diff/1.0.2/compatibility-slim/1.0.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@types%2fdeep-diff/1.0.2/confidence-slim/1.0.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzNC40OS4wIiwidXBkYXRlZEluVmVyIjoiMzQuNDkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-07 16:22:03 +00:00
Fredrik Strand Oseberg
928b3515dc
fix: update package json and remove empty exports (#2625)
* Removes exports statements in e2e tests
* Updates package.json to optionally use heroku url for e2e tests when
running locally
2022-12-07 14:08:59 +01:00
andreas-unleash
d69ca0a508
ui flags replaced in index.html (#2617)
Signed-off-by: andreas-unleash <andreas@getunleash.ai>

<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
This PR puts the ui flags in the index.html in a meta tag. This makes
them accessible without logging in and allows us to track user signups
with invite links
## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2022-12-07 14:31:27 +02:00
Fredrik Strand Oseberg
8fed007fe1
fix: update vercel proxy paths (#2623)
* Updates vercel proxy paths to match new deployment
2022-12-07 13:00:51 +01:00
Mateusz Kwasniewski
fee95475bd
UI adjustments change requests (#2622) 2022-12-07 12:52:17 +01:00
Nuno Góis
990b708632
fix: isPro check on change request configuration (#2610)
https://linear.app/unleash/issue/2-487/bug-change-request-badge-is-not-working-on-pro
Using the new `isPro()` from `useUiConfig()` seems to fix this in Pro,
correctly showing the premium feature info:


![image](https://user-images.githubusercontent.com/14320932/205958034-f412471a-c732-425a-bb14-64b62ea1e665.png)

The errors described in the issue should be fixed by the new
`useEnterpriseSWR`. See:
https://unleash-internal.slack.com/archives/C046LV6HH6W/p1670337216187539?thread_ts=1670331887.521059&cid=C046LV6HH6W
2022-12-07 10:23:19 +00:00
Nuno Góis
9accbcfa8b
Fix pro project role descriptions (#2612)
https://linear.app/unleash/issue/2-485/bug-pro-access-page-the-tooltip-on-the-roles-is-not-working

Fixes an issue where we would not show anything for project role
permissions since we're not serving that specific endpoint below
Enterprise level. This way we fallback to the access role descriptions,
which are also nice and informative:


![image](https://user-images.githubusercontent.com/14320932/205987327-def46ef2-4010-47dd-ba7d-5a264f0b547d.png)


PR also adds support for SWR options in ConditionalSWR and
EnterpriseSWR.
2022-12-07 10:22:42 +00:00
Mateusz Kwasniewski
c66daa0ba2
fix sort type (#2616) 2022-12-07 09:00:57 +01:00
Mateusz Kwasniewski
95937a4538
adjusting mobile styles (#2604) 2022-12-06 17:01:14 +01:00
Mateusz Kwasniewski
c4f3ada0eb
POC: integration tests (#2422) 2022-12-06 15:28:33 +01:00
Nuno Góis
b976fee44b
feat: add plan checks to uiconfig (#2600)
Hopefully a cleaner and DRY way of checking for the current Unleash plan
level, which may help in cases like
https://github.com/Unleash/unleash/pull/2585#discussion_r1038138963
2022-12-06 13:19:19 +00:00
Tymoteusz Czech
3ee2e5ae9b
fix: favorites column visibility (#2605)
Co-authored-by: sjaanus <sellinjaanus@gmail.com>
2022-12-06 10:03:43 +00:00
Thomas Heartman
8c42fbf34b
Docs(fix): add more (missing) redirects, fix links (#2592)
## What

This PR fixes some broken links we had in the application. It also adds
redirects for those links so that they should work in the future.

## Why

Because it's important to have links that work 💁
2022-12-06 09:32:42 +01:00
andreas-unleash
7af155fe64
Feat/add enterprise badge to change req settings (#2585)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
Disable change requests for Pro and oss
## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
Co-authored-by: Nuno Góis <github@nunogois.com>
2022-12-06 10:05:49 +02:00
Nuno Góis
d8fa693849
fix: allow import @server (#2601)
I noticed we had a Vite error when trying to run the front-end locally
bound to `unleash-cloud` due to the new `@server` import. This fixes it
by allowing serving fs from one level up.

Docs: https://vitejs.dev/config/server-options.html#server-fs-allow
2022-12-05 16:21:59 +00:00
Mateusz Kwasniewski
e059b755c9
skip change request (#2598) 2022-12-05 15:38:17 +01:00
Simon Hornby
447bd44c99
Remove clone env and sync sso group flags (#2596)
Removes feature flags for syncing sso groups and clone environment.
These features are being made generally available for all who have
access to environments and sso groups
2022-12-05 12:07:15 +02:00
Mateusz Kwasniewski
055c2acddd
removing sort order from diff in change requests (#2587) 2022-12-02 10:39:20 +01:00
Mateusz Kwasniewski
0a9fdfc3df
fix flickering toggle (#2584) 2022-12-02 08:54:37 +01:00
Tymoteusz Czech
79e96fdb98
feat: favorite feature and project (#2582)
## About the changes
Add an ability to star a toggle from it's overiew.

Co-authored-by: sjaanus <sellinjaanus@gmail.com>
2022-12-02 09:16:03 +02:00
Mateusz Kwasniewski
c7fe4a5a01
visual changes representation (#2583) 2022-12-01 14:44:33 +01:00
Tymoteusz Czech
ef6ec4a83b
Favorite features on project (#2580) 2022-12-01 13:10:42 +01:00
sjaanus
0a3823e188
Add plausible events for favorite features (#2579) 2022-12-01 13:25:18 +02:00
renovate[bot]
af15742e3f
chore(deps): update dependency msw to v0.49.1 (#2553)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [msw](https://mswjs.io/) ([source](https://togithub.com/mswjs/msw)) |
[`0.49.0` ->
`0.49.1`](https://renovatebot.com/diffs/npm/msw/0.49.0/0.49.1) |
[![age](https://badges.renovateapi.com/packages/npm/msw/0.49.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/msw/0.49.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/msw/0.49.1/compatibility-slim/0.49.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/msw/0.49.1/confidence-slim/0.49.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mswjs/msw</summary>

### [`v0.49.1`](https://togithub.com/mswjs/msw/releases/tag/v0.49.1)

[Compare
Source](https://togithub.com/mswjs/msw/compare/v0.49.0...v0.49.1)

#### v0.49.1 (2022-11-28)

##### Bug Fixes

- **setupWorker:** resolve the TS4094 error
([#&#8203;1477](https://togithub.com/mswjs/msw/issues/1477))
([`c268796`](c268796eb7))
[@&#8203;gduliscouet-ubitransport](https://togithub.com/gduliscouet-ubitransport)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-30 20:01:29 +00:00
Fredrik Strand Oseberg
4bc2c747b1
fix: cr permission actions (#2574)
Fixes an issue where `PermissionSwitch` would not update because we
passed in environmentId and the UPDATE_PROJECT permission is only
project specific. Also fixes an issue where hasAccess didn't take in
projectId for UPDATE_PROJECT which is a project specific permission.
2022-11-30 14:45:23 +01:00
Tymoteusz Czech
5f88269744
feat: favorite feature table icons (#2525) 2022-11-30 12:44:38 +00:00
Mateusz Kwasniewski
88bdef62b3
change request overview warning colors (#2565)
* Changes the colors of the status component in the change request overview page
2022-11-30 12:51:58 +01:00
Mateusz Kwasniewski
fab6fbb756
Change request event tracking (#2570) 2022-11-30 12:04:29 +01:00
Mateusz Kwasniewski
d1c565735a
linter fixes (#2561) 2022-11-30 10:52:13 +01:00
Fredrik Strand Oseberg
d20dff60a7
fix: add dialog for cancel (#2568)
* This PR adds a dialog for cancelling changes, and explains what
happens once you move a change request into the cancelled state.
2022-11-30 10:47:13 +01:00
Mateusz Kwasniewski
6ae2c9a165
uniquitous language cleanup (#2564) 2022-11-30 08:55:40 +01:00
Nuno Góis
4d8817698a
feat: add last seen column to token table (#2520)
https://linear.app/unleash/issue/2-449/add-table-column-to-api-tokens-table-ui
2022-11-30 08:07:13 +02:00
Nuno Góis
348bbfeda3
feat: add last seen column to PAT table (#2519)
https://linear.app/unleash/issue/2-452/add-table-column-to-pats-table-ui
2022-11-29 20:15:34 +00:00
sjaanus
b32d3d0fee
Favorite features (#2550) 2022-11-29 16:06:08 +01:00