1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
Commit Graph

12402 Commits

Author SHA1 Message Date
renovate[bot]
0a815e734a
chore(deps): update dependency fetch-mock to v11.1.5 (#8490)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [fetch-mock](http://www.wheresrhys.co.uk/fetch-mock)
([source](https://redirect.github.com/wheresrhys/fetch-mock/tree/HEAD/packages/fetch-mock))
| [`11.1.3` ->
`11.1.5`](https://renovatebot.com/diffs/npm/fetch-mock/11.1.3/11.1.5) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/fetch-mock/11.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/fetch-mock/11.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/fetch-mock/11.1.3/11.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/fetch-mock/11.1.3/11.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>wheresrhys/fetch-mock (fetch-mock)</summary>

###
[`v11.1.5`](https://redirect.github.com/wheresrhys/fetch-mock/blob/HEAD/packages/fetch-mock/CHANGELOG.md#1115-2024-09-25)

[Compare
Source](https://redirect.github.com/wheresrhys/fetch-mock/compare/fetch-mock-v11.1.4...fetch-mock-v11.1.5)

##### Bug Fixes

- change export order so default is last
([bc9c41d](bc9c41d046))

###
[`v11.1.4`](https://redirect.github.com/wheresrhys/fetch-mock/blob/HEAD/packages/fetch-mock/CHANGELOG.md#1114-2024-09-19)

[Compare
Source](https://redirect.github.com/wheresrhys/fetch-mock/compare/fetch-mock-v11.1.3...fetch-mock-v11.1.4)

##### Documentation Changes

- another occurrence of the cheatsheet ref
([875e4f6](875e4f6bd7))
- fix link to cheatsheet
([33e75b1](33e75b1cd2))

</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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-21 01:56:46 +00:00
renovate[bot]
a050060741
chore(deps): update dependency @vitejs/plugin-react to v4.3.2 (#8489)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@vitejs/plugin-react](https://redirect.github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#readme)
([source](https://redirect.github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react))
| [`4.3.1` ->
`4.3.2`](https://renovatebot.com/diffs/npm/@vitejs%2fplugin-react/4.3.1/4.3.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@vitejs%2fplugin-react/4.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vitejs%2fplugin-react/4.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vitejs%2fplugin-react/4.3.1/4.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vitejs%2fplugin-react/4.3.1/4.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vitejs/vite-plugin-react
(@&#8203;vitejs/plugin-react)</summary>

###
[`v4.3.2`](https://redirect.github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#432-2024-09-29)

[Compare
Source](https://redirect.github.com/vitejs/vite-plugin-react/compare/v4.3.1...v4.3.2)

Ignore directive sourcemap error
[#&#8203;369](https://redirect.github.com/vitejs/vite-plugin-react/issues/369)

</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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-21 01:56:19 +00:00
renovate[bot]
4cc5a30ac5
chore(deps): update dependency @uiw/react-codemirror to v4.23.5 (#8487)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@uiw/react-codemirror](https://uiwjs.github.io/react-codemirror)
([source](https://redirect.github.com/uiwjs/react-codemirror)) |
[`4.23.2` ->
`4.23.5`](https://renovatebot.com/diffs/npm/@uiw%2freact-codemirror/4.23.2/4.23.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@uiw%2freact-codemirror/4.23.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@uiw%2freact-codemirror/4.23.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@uiw%2freact-codemirror/4.23.2/4.23.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@uiw%2freact-codemirror/4.23.2/4.23.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>uiwjs/react-codemirror (@&#8203;uiw/react-codemirror)</summary>

###
[`v4.23.5`](https://redirect.github.com/uiwjs/react-codemirror/releases/tag/v4.23.5)

[Compare
Source](https://redirect.github.com/uiwjs/react-codemirror/compare/v4.23.4...v4.23.5)

[![Buy me a
coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@&#8203;uiw/react-codemirror@4.23.5/file/README.md)

Documentation v4.23.5:
https://raw.githack.com/uiwjs/react-codemirror/2dc5095/index.html\
Comparing Changes:
https://github.com/uiwjs/react-codemirror/compare/v4.23.4...v4.23.5

```shell
npm i @&#8203;uiw/react-codemirror@4.23.5
```

- 🎨 style(vscode): fix default value issue for light mode.
[#&#8203;688](https://redirect.github.com/uiwjs/react-codemirror/issues/688)
[`661bfc9`](https://redirect.github.com/uiwjs/react-codemirror/commit/661bfc9)
[@&#8203;jaywcjlove](https://redirect.github.com/jaywcjlove)

###
[`v4.23.4`](https://redirect.github.com/uiwjs/react-codemirror/releases/tag/v4.23.4)

[Compare
Source](https://redirect.github.com/uiwjs/react-codemirror/compare/v4.23.3...v4.23.4)

[![Buy me a
coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@&#8203;uiw/react-codemirror@4.23.4/file/README.md)

Documentation v4.23.4:
https://raw.githack.com/uiwjs/react-codemirror/b4d4e77/index.html\
Comparing Changes:
https://github.com/uiwjs/react-codemirror/compare/v4.23.3...v4.23.4

```shell
npm i @&#8203;uiw/react-codemirror@4.23.4
```

- 🐞 fix(hyper-link): Move toString out of while loop to prevent memory
leak
([#&#8203;687](https://redirect.github.com/uiwjs/react-codemirror/issues/687))
[`e10f426`](https://redirect.github.com/uiwjs/react-codemirror/commit/e10f426)
[@&#8203;danielericlee](https://redirect.github.com/danielericlee)

###
[`v4.23.3`](https://redirect.github.com/uiwjs/react-codemirror/releases/tag/v4.23.3)

[Compare
Source](https://redirect.github.com/uiwjs/react-codemirror/compare/v4.23.2...v4.23.3)

[![Buy me a
coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@&#8203;uiw/react-codemirror@4.23.3/file/README.md)

Documentation v4.23.3:
https://raw.githack.com/uiwjs/react-codemirror/d199b9e/index.html\
Comparing Changes:
https://github.com/uiwjs/react-codemirror/compare/v4.23.2...v4.23.3

```shell
npm i @&#8203;uiw/react-codemirror@4.23.3
```

- 🎨 style(theme): Vscode Light - lineHighlight.
([#&#8203;686](https://redirect.github.com/uiwjs/react-codemirror/issues/686))
[`4af6677`](https://redirect.github.com/uiwjs/react-codemirror/commit/4af6677)
[@&#8203;luiz2f](https://redirect.github.com/luiz2f)

</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 is behind base branch, 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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-18 23:31:23 +00:00
renovate[bot]
9c47543a74
chore(deps): update dependency @uiw/codemirror-theme-duotone to v4.23.5 (#8486)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@uiw/codemirror-theme-duotone](https://uiwjs.github.io/react-codemirror/#/theme/data/duotone/light)
([source](https://redirect.github.com/uiwjs/react-codemirror)) |
[`4.23.2` ->
`4.23.5`](https://renovatebot.com/diffs/npm/@uiw%2fcodemirror-theme-duotone/4.23.2/4.23.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@uiw%2fcodemirror-theme-duotone/4.23.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@uiw%2fcodemirror-theme-duotone/4.23.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@uiw%2fcodemirror-theme-duotone/4.23.2/4.23.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@uiw%2fcodemirror-theme-duotone/4.23.2/4.23.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>uiwjs/react-codemirror
(@&#8203;uiw/codemirror-theme-duotone)</summary>

###
[`v4.23.5`](https://redirect.github.com/uiwjs/react-codemirror/releases/tag/v4.23.5)

[Compare
Source](https://redirect.github.com/uiwjs/react-codemirror/compare/v4.23.4...v4.23.5)

[![Buy me a
coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@&#8203;uiw/react-codemirror@4.23.5/file/README.md)

Documentation v4.23.5:
https://raw.githack.com/uiwjs/react-codemirror/2dc5095/index.html\
Comparing Changes:
https://github.com/uiwjs/react-codemirror/compare/v4.23.4...v4.23.5

```shell
npm i @&#8203;uiw/react-codemirror@4.23.5
```

- 🎨 style(vscode): fix default value issue for light mode.
[#&#8203;688](https://redirect.github.com/uiwjs/react-codemirror/issues/688)
[`661bfc9`](https://redirect.github.com/uiwjs/react-codemirror/commit/661bfc9)
[@&#8203;jaywcjlove](https://redirect.github.com/jaywcjlove)

###
[`v4.23.4`](https://redirect.github.com/uiwjs/react-codemirror/releases/tag/v4.23.4)

[Compare
Source](https://redirect.github.com/uiwjs/react-codemirror/compare/v4.23.3...v4.23.4)

[![Buy me a
coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@&#8203;uiw/react-codemirror@4.23.4/file/README.md)

Documentation v4.23.4:
https://raw.githack.com/uiwjs/react-codemirror/b4d4e77/index.html\
Comparing Changes:
https://github.com/uiwjs/react-codemirror/compare/v4.23.3...v4.23.4

```shell
npm i @&#8203;uiw/react-codemirror@4.23.4
```

- 🐞 fix(hyper-link): Move toString out of while loop to prevent memory
leak
([#&#8203;687](https://redirect.github.com/uiwjs/react-codemirror/issues/687))
[`e10f426`](https://redirect.github.com/uiwjs/react-codemirror/commit/e10f426)
[@&#8203;danielericlee](https://redirect.github.com/danielericlee)

###
[`v4.23.3`](https://redirect.github.com/uiwjs/react-codemirror/releases/tag/v4.23.3)

[Compare
Source](https://redirect.github.com/uiwjs/react-codemirror/compare/v4.23.2...v4.23.3)

[![Buy me a
coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@&#8203;uiw/react-codemirror@4.23.3/file/README.md)

Documentation v4.23.3:
https://raw.githack.com/uiwjs/react-codemirror/d199b9e/index.html\
Comparing Changes:
https://github.com/uiwjs/react-codemirror/compare/v4.23.2...v4.23.3

```shell
npm i @&#8203;uiw/react-codemirror@4.23.3
```

- 🎨 style(theme): Vscode Light - lineHighlight.
([#&#8203;686](https://redirect.github.com/uiwjs/react-codemirror/issues/686))
[`4af6677`](https://redirect.github.com/uiwjs/react-codemirror/commit/4af6677)
[@&#8203;luiz2f](https://redirect.github.com/luiz2f)

</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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-18 18:24:33 +00:00
Melinda Fekete
43edac7cd4
Fix markdown 3 error for placeholder text (#8483) 2024-10-18 18:48:17 +02:00
Nuno Góis
5b1e875131
chore: add an initial disclaimer to Unleash AI (#8482)
https://linear.app/unleash/issue/2-2853/add-a-disclaimer-to-the-unleash-ai-chat-window

Adds a small, initial disclaimer to Unleash AI chat.


![image](https://github.com/user-attachments/assets/0097bb92-9724-4cef-922e-4c97770fe8e1)
2024-10-18 14:48:49 +01:00
Nuno Góis
ffcfe85575
chore: scroll-related UX adjustments in the Unleash AI chat (#8478)
https://linear.app/unleash/issue/2-2857/make-some-scroll-related-ux-adjustments-to-the-unleash-ai-chat

Introduces scroll-related UX enhancements to the Unleash AI chat,
providing a smoother and more refined user experience.
2024-10-18 14:38:46 +01:00
Alvin Bryan
1c29f70edc
AI Tutorial (#8297)
How to use feature flags to control AI models

**[Preview
link](https://unleash-docs-git-alvin-ai-tutorial-unleash-team.vercel.app/feature-flag-tutorials/use-cases/ai)**

---------

Co-authored-by: Melinda Fekete <melinda.fekete@getunleash.io>
Co-authored-by: Nuno Góis <github@nunogois.com>
2024-10-18 13:57:24 +01:00
Mateusz Kwasniewski
9b3529d7cb
fix: missing page titles (#8477) 2024-10-18 13:12:58 +02:00
Gastón Fournier
a9f9be1efa
chore: add a class to handle aggreggation queries (#8446)
## About the changes
We have many aggregation queries that run on a schedule:
f63496d47f/src/lib/metrics.ts (L714-L719)

These staticCounters are usually doing db query aggregations that
traverse tables and we run all of them in parallel:
f63496d47f/src/lib/metrics.ts (L410-L412)

This can add strain to the db. This PR suggests a way of handling these
queries in a more structured way, allowing us to run them sequentially
(therefore spreading the load):
f02fe87835/src/lib/metrics-gauge.ts (L38-L40)

As an additional benefit, we get both the gauge definition and the
queries in a single place:
f02fe87835/src/lib/metrics.ts (L131-L141)

This PR only tackles 1 metric, and it only focuses on gauges to gather
initial feedback. The plan is to migrate these metrics and eventually
incorporate more types (e.g. counters)

---------

Co-authored-by: Nuno Góis <github@nunogois.com>
2024-10-18 11:11:22 +02:00
Thomas Heartman
88f396f6b6
fix: allow you to add spaces to role descriptions (#8475)
This fixes a bug where we didn't allow spaces in role descriptions.
The bug came about because we wanted to disallow empty descriptions,
but that means we need to trim them before validating, not necessarily
before setting it.

However, that does mean that you can have descriptions with leading
and trailing spaces now, but that's probably fine.

To fix this, we'd have to do the trimming of the description only at
submission time, I think.
2024-10-18 11:07:06 +02:00
Thomas Heartman
9f0c438f36
fix: add the dashboard icon to the iconrenderer (#8474)
This makes the icon show up correctly in the command menu.


![image](https://github.com/user-attachments/assets/0178c9a7-3509-4f36-9a33-fe12e5a42707)
2024-10-18 09:03:29 +02:00
David Leek
d9646edcfc
feat: release plans nav menu item and icon suggestion (#8469) 2024-10-18 08:23:52 +02:00
renovate[bot]
54a6b036db
chore(deps): update dependency @swc/core to v1.7.35 (#8473)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@swc/core](https://swc.rs)
([source](https://redirect.github.com/swc-project/swc)) | [`1.7.26` ->
`1.7.35`](https://renovatebot.com/diffs/npm/@swc%2fcore/1.7.26/1.7.35) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/@swc%2fcore/1.7.35?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@swc%2fcore/1.7.35?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@swc%2fcore/1.7.26/1.7.35?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@swc%2fcore/1.7.26/1.7.35?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>swc-project/swc (@&#8203;swc/core)</summary>

###
[`v1.7.35`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1735---2024-10-10)

[Compare
Source](https://redirect.github.com/swc-project/swc/compare/v1.7.28...v1.7.35)

##### Bug Fixes

- **(ci)** Fix target triples
([#&#8203;9622](https://redirect.github.com/swc-project/swc/issues/9622))
([f625035](f625035f8a))

- **(es/codegen)** Fix source map so it works with Sentry
([#&#8203;9627](https://redirect.github.com/swc-project/swc/issues/9627))
([9c90a73](9c90a73369))

- **(es/minifier)** Compress consecutive return statements properly
([#&#8203;9620](https://redirect.github.com/swc-project/swc/issues/9620))
([8263da1](8263da1766))

- **(es/module)** Allow TypeScript nodes for `Rewriter`
([#&#8203;9606](https://redirect.github.com/swc-project/swc/issues/9606))
([4ee45ac](4ee45ac1fd))

- **(es/testing)** Revert
[#&#8203;9264](https://redirect.github.com/swc-project/swc/issues/9264)
([#&#8203;9621](https://redirect.github.com/swc-project/swc/issues/9621))
([85f5e5b](85f5e5b955))

- **(html/minifier)** Fix HTML minifier TS types
([#&#8203;9615](https://redirect.github.com/swc-project/swc/issues/9615))
([7b98bb5](7b98bb5e93))

##### Features

- **(bindings/html)** Accept `Buffer|string` instead of `Buffer`
([#&#8203;9625](https://redirect.github.com/swc-project/swc/issues/9625))
([62edb36](62edb3628b))

- **(es/preset-env)** Update preset-env data
([#&#8203;9573](https://redirect.github.com/swc-project/swc/issues/9573))
([9a11d34](9a11d34ee5))

- **(es/testing)** Parse test code as a `Program` instead of a `Module`
([#&#8203;9264](https://redirect.github.com/swc-project/swc/issues/9264))
([166b858](166b8581c2))

- **(es/testing)** Parse test code as a `Program` instead of a `Module`
([#&#8203;9623](https://redirect.github.com/swc-project/swc/issues/9623))
([bfea322](bfea322351))

##### Miscellaneous Tasks

- **(atoms)** Update `hstr`
([#&#8203;9612](https://redirect.github.com/swc-project/swc/issues/9612))
([e2e9a9c](e2e9a9ccfc))

##### Performance

- **(es)** Avoid needless string comparisons
([#&#8203;9613](https://redirect.github.com/swc-project/swc/issues/9613))
([ec0a62c](ec0a62cbc5))

- **(es/codegen)** Reduce usage of `tracing::instrument`
([#&#8203;9604](https://redirect.github.com/swc-project/swc/issues/9604))
([2f06fc5](2f06fc559c))

- **(es/transforms)** Copy benchmarks from `oxc`
([#&#8203;9602](https://redirect.github.com/swc-project/swc/issues/9602))
([24c3a0c](24c3a0ce13))

- **(es/typescript)** Reduce unnecessary visits
([#&#8203;9605](https://redirect.github.com/swc-project/swc/issues/9605))
([866af6c](866af6c947))

##### Refactor

- **(es/typescript)** Simplifying enum and namespace transforms
([#&#8203;9558](https://redirect.github.com/swc-project/swc/issues/9558))
([2480bb0](2480bb00fc))

##### Build

- Update `rustc` to `nightly-2024-10-07`
([#&#8203;9624](https://redirect.github.com/swc-project/swc/issues/9624))
([6a3b0fc](6a3b0fc166))

###
[`v1.7.28`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1728---2024-09-24)

[Compare
Source](https://redirect.github.com/swc-project/swc/compare/v1.7.26...v1.7.28)

##### Bug Fixes

- **(ast)** Add `archive(check_bytes)` to all relevant AST types
([#&#8203;9574](https://redirect.github.com/swc-project/swc/issues/9574))
([185d6f5](185d6f55b3))

- **(cli)** Exclude non-files from get_files_list
([#&#8203;9560](https://redirect.github.com/swc-project/swc/issues/9560))
([85cc2bd](85cc2bd79c))

- **(es/codegen)** Fix wrong sourcemap when there are new lines in tpl
([#&#8203;9578](https://redirect.github.com/swc-project/swc/issues/9578))
([cf74382](cf74382ba0))

- **(es/compat)** Skip `getter` and `setter` as FlowHelper `function` do
([#&#8203;9580](https://redirect.github.com/swc-project/swc/issues/9580))
([14cfd70](14cfd70ee0))

- **(es/isolated-dts)** Preserve comments
([#&#8203;9572](https://redirect.github.com/swc-project/swc/issues/9572))
([6d15d9c](6d15d9c2eb))

- **(es/minifier)** Avoid decl name when mangle with eval
([#&#8203;9546](https://redirect.github.com/swc-project/swc/issues/9546))
([e2242c4](e2242c41c4))

- **(es/minifier)** Check variable type while optimizing `+=`
([#&#8203;9575](https://redirect.github.com/swc-project/swc/issues/9575))
([04016e9](04016e9687))

- **(es/module)** Rewrite import specifier in type declaration
([#&#8203;9577](https://redirect.github.com/swc-project/swc/issues/9577))
([fc0ba2a](fc0ba2a084))

- **(plugin)** Don't panic when ast byte not match
([#&#8203;9562](https://redirect.github.com/swc-project/swc/issues/9562))
([c36871a](c36871a848))

##### Miscellaneous Tasks

- **(es)** Update `wasmer` to `v4.3.7`
([#&#8203;9557](https://redirect.github.com/swc-project/swc/issues/9557))
([190d6f0](190d6f06d9))

##### Testing

- **(es)** Add tests for arm64 windows
([#&#8203;9547](https://redirect.github.com/swc-project/swc/issues/9547))
([9dd8f6f](9dd8f6facf))

</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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-18 00:27:52 +00:00
renovate[bot]
8bf64939f0
chore(deps): update dependency @types/node to v20.16.11 (#8472)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/node](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node)
([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node))
| [`20.16.5` ->
`20.16.11`](https://renovatebot.com/diffs/npm/@types%2fnode/20.16.5/20.16.11)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.16.11?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.16.11?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.16.5/20.16.11?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.16.5/20.16.11?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### 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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-17 22:33:05 +00:00
renovate[bot]
b99018ed3a
chore(deps): update dependency @babel/core to v7.25.8 (#8471)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@babel/core](https://babel.dev/docs/en/next/babel-core)
([source](https://redirect.github.com/babel/babel/tree/HEAD/packages/babel-core))
| [`7.25.2` ->
`7.25.8`](https://renovatebot.com/diffs/npm/@babel%2fcore/7.25.2/7.25.8)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fcore/7.25.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fcore/7.25.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fcore/7.25.2/7.25.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fcore/7.25.2/7.25.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>babel/babel (@&#8203;babel/core)</summary>

###
[`v7.25.8`](https://redirect.github.com/babel/babel/blob/HEAD/CHANGELOG.md#v7258-2024-10-10)

[Compare
Source](https://redirect.github.com/babel/babel/compare/v7.25.7...v7.25.8)

##### 🐛 Bug Fix

-   `babel-core`
- [#&#8203;16888](https://redirect.github.com/babel/babel/pull/16888)
Restore public API of `resolvePlugin`/`resolvePreset`
([@&#8203;nicolo-ribaudo](https://redirect.github.com/nicolo-ribaudo))

##### 🏠 Internal

- `babel-parser`, `babel-plugin-proposal-async-do-expressions`,
`babel-plugin-proposal-destructuring-private`,
`babel-plugin-proposal-do-expressions`,
`babel-plugin-proposal-explicit-resource-management`,
`babel-plugin-proposal-export-default-from`,
`babel-plugin-proposal-function-bind`,
`babel-plugin-proposal-function-sent`,
`babel-plugin-proposal-import-defer`,
`babel-plugin-proposal-partial-application`,
`babel-plugin-proposal-throw-expressions`,
`babel-plugin-transform-async-generator-functions`,
`babel-plugin-transform-class-static-block`,
`babel-plugin-transform-dynamic-import`,
`babel-plugin-transform-export-namespace-from`,
`babel-plugin-transform-json-strings`,
`babel-plugin-transform-logical-assignment-operators`,
`babel-plugin-transform-nullish-coalescing-operator`,
`babel-plugin-transform-numeric-separator`,
`babel-plugin-transform-object-rest-spread`,
`babel-plugin-transform-optional-catch-binding`,
`babel-plugin-transform-optional-chaining`,
`babel-plugin-transform-private-property-in-object`, `babel-preset-env`
- [#&#8203;16824](https://redirect.github.com/babel/babel/pull/16824)
Inline one-line syntax plugins
([@&#8203;nicolo-ribaudo](https://redirect.github.com/nicolo-ribaudo))

###
[`v7.25.7`](https://redirect.github.com/babel/babel/blob/HEAD/CHANGELOG.md#v7257-2024-10-02)

[Compare
Source](https://redirect.github.com/babel/babel/compare/v7.25.2...v7.25.7)

##### 🐛 Bug Fix

-   `babel-helper-validator-identifier`
- [#&#8203;16825](https://redirect.github.com/babel/babel/pull/16825)
fix: update identifier to unicode 16
([@&#8203;JLHwung](https://redirect.github.com/JLHwung))
-   `babel-traverse`
- [#&#8203;16814](https://redirect.github.com/babel/babel/pull/16814)
fix: issue with node path keys updated on unrelated paths
([@&#8203;DylanPiercey](https://redirect.github.com/DylanPiercey))
-   `babel-plugin-transform-classes`
- [#&#8203;16797](https://redirect.github.com/babel/babel/pull/16797)
Use an inclusion rather than exclusion list for `super()` check
([@&#8203;nicolo-ribaudo](https://redirect.github.com/nicolo-ribaudo))
-   `babel-generator`
- [#&#8203;16788](https://redirect.github.com/babel/babel/pull/16788)
Fix printing of TS `infer` in compact mode
([@&#8203;nicolo-ribaudo](https://redirect.github.com/nicolo-ribaudo))
- [#&#8203;16785](https://redirect.github.com/babel/babel/pull/16785)
Print TS type annotations for destructuring in assignment pattern
([@&#8203;nicolo-ribaudo](https://redirect.github.com/nicolo-ribaudo))
- [#&#8203;16778](https://redirect.github.com/babel/babel/pull/16778)
Respect `[no LineTerminator here]` after nodes
([@&#8203;nicolo-ribaudo](https://redirect.github.com/nicolo-ribaudo))

##### 💅 Polish

-   `babel-types`
- [#&#8203;16852](https://redirect.github.com/babel/babel/pull/16852)
Add deprecated JSDOC for fields
([@&#8203;liuxingbaoyu](https://redirect.github.com/liuxingbaoyu))

##### 🏠 Internal

-   `babel-core`
- [#&#8203;16820](https://redirect.github.com/babel/babel/pull/16820)
Allow sync loading of ESM when `--experimental-require-module`
([@&#8203;nicolo-ribaudo](https://redirect.github.com/nicolo-ribaudo))
- `babel-helper-compilation-targets`, `babel-helper-plugin-utils`,
`babel-preset-env`
- [#&#8203;16858](https://redirect.github.com/babel/babel/pull/16858)
Add browserslist config to external dependency
([@&#8203;JLHwung](https://redirect.github.com/JLHwung))
- `babel-plugin-proposal-destructuring-private`,
`babel-plugin-syntax-decimal`, `babel-plugin-syntax-import-reflection`,
`babel-standalone`
- [#&#8203;16809](https://redirect.github.com/babel/babel/pull/16809)
Archive syntax-import-reflection and syntax-decimal
([@&#8203;nicolo-ribaudo](https://redirect.github.com/nicolo-ribaudo))
-   `babel-generator`
- [#&#8203;16779](https://redirect.github.com/babel/babel/pull/16779)
Simplify logic for `[no LineTerminator here]` before nodes
([@&#8203;nicolo-ribaudo](https://redirect.github.com/nicolo-ribaudo))

##### 🏃‍♀️ Performance

-   `babel-plugin-transform-typescript`
- [#&#8203;16875](https://redirect.github.com/babel/babel/pull/16875)
perf: Avoid extra cloning of namespaces
([@&#8203;liuxingbaoyu](https://redirect.github.com/liuxingbaoyu))
-   `babel-types`
- [#&#8203;16842](https://redirect.github.com/babel/babel/pull/16842)
perf: Improve
[@&#8203;babel/types](https://redirect.github.com/babel/types) builders
([@&#8203;liuxingbaoyu](https://redirect.github.com/liuxingbaoyu))
- [#&#8203;16828](https://redirect.github.com/babel/babel/pull/16828)
Only access `BABEL_TYPES_8_BREAKING` at startup
([@&#8203;nicolo-ribaudo](https://redirect.github.com/nicolo-ribaudo))

</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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-17 17:40:10 +00:00
Thomas Heartman
bb22210e46
chore: silence remaining front end test warnings (#8465)
This silences front end test warnings, errors, and logs that we don't
care about. The
reason we don't care is that:
- we won't fix
- it's test-specific, doesn't appear to happen in real life

And it clogs the test logs.
2024-10-17 14:02:47 +02:00
Simon Hornby
d5ddbdd75f
chore: patch text when trying to add a root role group (#8470)
This changes the warning on adding group root roles to cover all roles
rather than just Editor or Admin. This got opened to Viewers in a 2K
line monster PR that was mostly refactor so I'm assuming this was an
accident but it's not a dangerous accident

## Discussion

Okay so why change the warning rather than change the code?

Two reasons.
1) This has been like this for a year and a half. It was changed before
the feature entered GA, so users are probably used to it by now. Seems
rude to take things away and it's harmless to keep it
2) It's consistent with everything else to have all 3 roles displayed
and removes an edge case in the code
2024-10-17 12:00:44 +02:00
Melinda Fekete
e81f606d33
Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00
Nuno Góis
f2256423d5
chore: adapt UI to server-side Unleash AI chat ownership (#8466)
https://linear.app/unleash/issue/2-2847/adapt-unleash-ai-chat-logic-to-new-server-side-chat-ownership-logic

Adapts the Unleash AI chat logic on the UI to the new server-side chat
ownership logic.
2024-10-17 09:50:27 +01:00
Tymoteusz Czech
793221524c
feat: prompt for feedback after second flag created (#8467) 2024-10-17 11:49:17 +03:00
Ivar Conradi Østhus
2ec575b85c
fix: traffic estimate should Math.floor price estimate to full million (#8468)
<!-- 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! ❤️ -->

## 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? -->
2024-10-17 09:45:45 +02:00
Nuno Góis
3f8d4c3538
chore: update schemas related to Unleash AI chat (#8463)
https://linear.app/unleash/issue/2-2779/store-conversations-in-the-database

Updates schemas related to Unleash AI chat and renames the `chat` column
to `messages` to ensure everything aligns nicely.
2024-10-16 14:44:37 +01:00
Thomas Heartman
131e608885
fix: fix two disabled tooltips (#8464)
Fix this warning:

> MUI: You are providing a disabled button child to the Tooltip
component.
> A disabled element does not fire events.
> Tooltip needs to listen to the child element’s events to display the
title.
> Add a simple wrapper element, such as a span.
2024-10-16 15:25:50 +02:00
Thomas Heartman
cb0a26941b
fix: wrap the UserAvatar component in forwardRef (#8461)
This fixes another one of the warnings we have in our tests and is
probably a sane change to make anyway.
2024-10-16 14:58:34 +02:00
Thomas Heartman
fe09ae214f
chore: fix "key" prop issues in front end tests (#8459)
Fixes all warnings about the "key" prop. The majority of the fixes fall
into one of the following categories:

- Extracting "key" props in tables (you're not allowed to just spread
them in)
- Adding "key" props to autocomplete options and chips
- fixing test data that didn't contain ids
2024-10-16 14:57:43 +02:00
Melinda Fekete
c580e762b3
Restructure features documentation (#8394) 2024-10-16 13:59:30 +02:00
David Leek
bb800e3537
fix: group and user has at least 1 project owner counter respects multirole project groups (#8453) 2024-10-16 12:47:00 +02:00
Nuno Góis
b9ea6641ff
chore: AI chats db migration (#8460)
https://linear.app/unleash/issue/2-2845/db-migration-ai-chats

Adds a new DB migration for creating a new `ai_chats` table, used on the
Unleash AI experiment.
2024-10-16 10:43:52 +01:00
Nuno Góis
9a98f86077
chore: make the Unleash AI chat resizable (#8456)
https://linear.app/unleash/issue/2-2840/make-the-unleash-ai-chat-window-resizable

This PR makes the Unleash AI chat resizable, providing users with a
flexible way to adjust the chat window's size.

Implements a reusable `Resizable` wrapper component that allows
configuration of:
 - Minimum, maximum, and default sizes.
- Customizable resize handlers for each edge and corner of the
container.
 - Optional resize event callbacks.

Double-clicking any resize handler maximizes the container along that
axis (or both, if it's a corner). If the container is already maximized,
double-clicking again will revert it to the default size.
2024-10-16 09:15:40 +01:00
gitar-bot[bot]
6d2b882eb8
[Gitar] Cleaning up stale flag: stripHeadersOnAPI with value true (#8457)
[![Gitar](https://raw.githubusercontent.com/gitarcode/.github/main/assets/gitar-banner.svg)](https://gitar.co)
  
  ---
This automated PR was generated by [Gitar](https://gitar.co). View
[docs](https://gitar.co/docs).

Co-authored-by: Gitar <noreply@gitar.co>
2024-10-16 09:30:32 +02:00
David Leek
2cac903068
chore: releasePlans feature flag (#8458)
Adds the releasePlans feature flag
2024-10-16 09:00:58 +02:00
Thomas Heartman
6ba87d1436
chore: fix invalid dom nesting (#8451)
This PR fixes all `invalidDomNesting` errors we're getting in our tests.
The culprit was the `Badge` icon we use, which wrapped its children in a
div. When that's used as a child of a `p` tag, that'd cause this to
trigger.

What I've done is to change the wrapping element to a span instead. The
Badge itself uses an `display: inline-flex`, so divs and spans should be
treated the same, meaning there's no visual change for this.
2024-10-16 08:33:47 +02:00
Nuno Góis
8d4e84d6eb
fix: unleash AI chat message code not breaking to new line (#8455)
https://linear.app/unleash/issue/2-2841/fix-a-bug-where-code-does-not-break-to-new-lines-in-messages

Fixes a bug where code in an Unleash AI chat message would not break to
new lines.

### Before

<img width="451" alt="image"
src="https://github.com/user-attachments/assets/43023206-f6e9-48ef-bd22-cc0c0fe04668">

### After

<img width="404" alt="image"
src="https://github.com/user-attachments/assets/2f0bad32-8d40-4edd-bdbb-df0eb9ffb977">
2024-10-15 14:43:01 +00:00
Gastón Fournier
7fb9308b3e
feat: ability to configure when users are considered inactive (#8454)
Give the ability to change when users are considered inactive via an
environment variable `USER_INACTIVITY_THRESHOLD_IN_DAYS` or
configuration option: `userInactivityThresholdInDays`. Default remains
180 days
2024-10-15 16:34:04 +02:00
Thomas Heartman
6b56f8ff89
chore: add descriptions to accordion headers (#8452)
This commits adds descriptions to the accordion headers in the
personal dashboard.


![image](https://github.com/user-attachments/assets/d7b7aeff-3a69-45f7-ab42-23228a49132b)
2024-10-15 13:14:18 +00:00
Thomas Heartman
abef5deaef
chore: remove all deprecated imports of act (#8398)
don't use `act` from `react-dom`. Instead, use act from `react`
directly, as advised by the deprecation notice.

This PR fixes all of the deprecated import warnings, updates some
testing libraries we use (and tests), and fixes one or two other
warnings.
2024-10-15 13:53:26 +02:00
Gastón Fournier
07469a427c
fix: same site api call with session cookie (#8435)
## About the changes
This fixes #8029. How to reproduce the issue is in the ticket.

The issue happens because when a web app is hosted in the same domain as
Unleash UI and the web app uses unleash SDK to make requests to Unleash,
the browser automatically includes the cookie in the request headers,
because:

- The request URL matches the cookie's Path attribute (which it does in
this case).
- The request is sent to the same domain (which it is, since both apps
are under the same domain).

And this is by design in the HTTP cookie specification:
https://datatracker.ietf.org/doc/html/rfc6265

This PR avoids overriding the API user with the session user if there's
already an API user in the request. It's an alternative to
https://github.com/Unleash/unleash/pull/8434

Closes #8029
2024-10-15 13:16:16 +02:00
Mateusz Kwasniewski
fc1f058cf4
chore: make onboarding concepts img more readable (#8448) 2024-10-15 12:02:55 +02:00
Tymoteusz Czech
258eb36afe
fix($env): fix environment order form state (#8449) 2024-10-15 09:44:40 +00:00
Gastón Fournier
e22f6a04ba
chore: wrapTimer function types (#8428)
This gives us better types for our wrapTimer function.

Maybe the type `(args: any) => any` could also be improved

---------

Co-authored-by: Nuno Góis <nuno@getunleash.io>
2024-10-15 11:18:22 +02:00
Thomas Heartman
e4cfb29adc
refactor: front end code pt II (#8444)
This PR continues the refactoring of the front end code for dashboards. 

The main points are:
- Extracts the `ActionBox` component that we used in a lot of places.
There were some minor differences between the various incarnations, so
this also better aligns them.
- Extract other components (`AskOwnerToAddYouToTheirProject`,
`YourAdmins`)
- Move the `NeutralCircleContainer` into `SharedComponents`
- Delete the separate no content grid (this is now handled in projects
instead)
- extract my projects grid contents into a single function so that it's
easier to understand what content you get for what states

Here's all the states side by side:

![image](https://github.com/user-attachments/assets/c5abc406-7374-41e4-8ff6-d48fe61cd7c8)
2024-10-15 09:14:24 +00:00
Tymoteusz Czech
f5a2a18ffc
Add environment types environment order (#8447) 2024-10-15 11:00:31 +02:00
Thomas Heartman
4167d772e9
chore: rename personal dashboard menu item to dashboard (#8437)
This change updates the title for the personal dashboard menu item to
be just "dashboard"

Before:

![image](https://github.com/user-attachments/assets/d04be63c-ad1f-471b-8ab1-5e781063716c)

After:

![image](https://github.com/user-attachments/assets/dc4a39b6-5b30-455d-b20a-6f04f84962d7)
2024-10-15 09:34:43 +02:00
Nuno Góis
d02443be95
chore: Unleash AI chat UI (#8445)
https://linear.app/unleash/issue/2-2792/create-the-aichat-component

Implements the Unleash AI chat UI.

This is essentially a polished version from the hackathon.

It will show up in the bottom right corner when the respective
prerequisites are met.

<img width="1508" alt="image"
src="https://github.com/user-attachments/assets/80da15a5-e638-4ccf-850b-508fcfd4991a">

<img width="1507" alt="image"
src="https://github.com/user-attachments/assets/8690cd42-1106-4f42-b459-41e574ab282f">

<img width="1506" alt="image"
src="https://github.com/user-attachments/assets/ea243828-ffcd-4243-b40c-6fa6357c3e70">
2024-10-15 08:14:04 +01:00
Nuno Góis
f63496d47f
chore: Unleash AI API hook (#8441)
https://linear.app/unleash/issue/2-2791/create-a-useaiapi-react-hook

Implements a basic Unleash AI API React hook that fits our initial needs
for interacting with this API through our frontend.

Also adds a new nice-to-have script to run the frontend set to the
`demo` base path, which matches our Cloud defaults. This way you can run
the latest local cloud with the latest local frontend in an easy way.
2024-10-14 13:29:29 +01:00
Thomas Heartman
9d49070cee
refactor: refactor personal dashboard front end code pt1 (#8440)
This is the first step in refactoring the front end code for personal
dashboards.

At this point:
- extract `useDashboardState` to its own file
- extract my flags to its own file
- Rename `Grid.tsx` to `SharedComponents.tsx` as it contains more than
just the grid.
2024-10-14 13:51:23 +02:00
Jaanus Sellin
39fb1b5db5
fix: archived flags without metrics do not count towards onboarding (#8443) 2024-10-14 14:09:57 +03:00
Jaanus Sellin
735e6f0b23
feat: now you can add env type to env order (#8442) 2024-10-14 13:26:38 +03:00
Thomas Heartman
a3dd51734e
fix: handle cases where the flag name causes API errors (or other errors occur) (#8439)
This commit fixes a bug where the frontend would crash if the flag
name was invalid (such as `..`).


![image](https://github.com/user-attachments/assets/6f41f0d3-4d5f-433d-ad53-899d22b02d89)
2024-10-14 11:48:22 +02:00