Fredrik Strand Oseberg
9dbb7ea9a9
feat: add initial setup for tabs ( #5586 )
...
This PR sets up the initial tab structure for the new strategy form
2023-12-11 13:39:21 +01:00
Tymoteusz Czech
d11aedc12f
Project Overview with react-table v8 ( #5571 )
2023-12-11 13:33:11 +01:00
Mateusz Kwasniewski
ba50d1ef69
feat: adjust styling for search filters ( #5587 )
2023-12-11 13:11:26 +01:00
Jaanus Sellin
9bae14a2cc
feat: add tags filter ( #5584 )
2023-12-11 14:10:03 +02:00
Fredrik Strand Oseberg
ec670450fd
feat: initial setup ( #5583 )
...
This PR sets up the feature flag for the new strategy configuration and
duplicates the components for the new setup
2023-12-11 12:23:18 +01:00
andreas-unleash
2322e1149a
feat: more info on staleness in health report ( #5582 )
...
Adds an info tooltip for potentially stale and a link to configure
feature toggle type lifetime
Closes
[UNL-215](https://linear.app/unleash/issue/UNL-215/improve-health-page-with-some-guidance-about-staleness )
<img width="1323" alt="Screenshot 2023-12-11 at 11 39 36"
src="https://github.com/Unleash/unleash/assets/104830839/386ec6e6-55df-42ca-b5e0-ef3e75448452 ">
<img width="1316" alt="Screenshot 2023-12-11 at 11 43 07"
src="https://github.com/Unleash/unleash/assets/104830839/5bf7df15-ff87-4ce0-be25-0c031c881d05 ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-12-11 13:11:28 +02:00
Jaanus Sellin
5d80f5fa4d
feat: test filter date item ( #5576 )
2023-12-11 12:22:00 +02:00
Thomas Heartman
879e4c98e5
feat: show potential schedule conflicts when you archive flags ( #5575 )
...
Show change requests that would be impacted by an archive operation
![image](https://github.com/Unleash/unleash/assets/17786332/7b2af89a-7292-4b90-b7a4-768df375e0fb )
2023-12-11 10:45:45 +01:00
Tymoteusz Czech
e5c865b716
fix: menu routes for new features page - mobile option ( #5566 )
...
Remove duplicated option in the menu.
2023-12-08 14:53:10 +02:00
Thomas Heartman
cd731cef03
refactor: update the API url for getting scheduled change requests with a strategy ( #5573 )
...
Relates to enterprise PR 889; update the API url
2023-12-08 12:29:54 +01:00
Jaanus Sellin
166432bcb0
feat: support localization in date filter ( #5572 )
2023-12-08 13:20:39 +02:00
Jaanus Sellin
1173b664da
feat: add created date filter component ( #5569 )
2023-12-08 10:07:57 +02:00
Simon Hornby
0e5861ac33
chore: use explicit images for inverted operator rather than a boolean not operator ( #5565 )
2023-12-07 13:03:19 +02:00
Jaanus Sellin
e89ebf358e
refactor: split filter configuration with filter visibility state ( #5563 )
...
This PR splits the filter configuration with filter visibility state.
This will simplify adding different filter types in future, for example
date filters.
2023-12-07 11:59:35 +02:00
Mateusz Kwasniewski
38d02e1a85
feat: segments operators ( #5562 )
2023-12-06 17:38:36 +02:00
Thomas Heartman
a228f54344
feat: show scheduled CRs using strategies when removing it ( #5560 )
...
Show a warning about how deleting a strategy might mess up scheduled
change requests.
If there are change requests, list them. If there are no conflicts, show
nothing. If we don't know (because of no successful response from the
API), say that it might cause issues.
![image](https://github.com/Unleash/unleash/assets/17786332/2c6a4257-69f5-458a-ab6f-9b2ea2f5d550 )
2023-12-06 15:39:17 +01:00
Mateusz Kwasniewski
87ebbb0fa2
feat: segments filter ( #5558 )
...
Co-authored-by: sjaanus <sellinjaanus@gmail.com>
2023-12-06 14:50:18 +02:00
Jaanus Sellin
eda4186a6c
fix: state now persist to filters ( #5559 )
...
When navigating to features list, now it will respect the query params.
2023-12-06 14:17:49 +02:00
Jaanus Sellin
d9648de08d
chore: rename is not any of to is none of ( #5544 )
2023-12-06 12:53:51 +02:00
Jaanus Sellin
eb43d37379
feat: segment cell and orval types ( #5543 )
2023-12-06 12:51:00 +02:00
Jaanus Sellin
b8fabbd726
feat: add new filter button with state ( #5556 )
...
[Screencast from 2023-12-05
16-59-28.webm](https://github.com/Unleash/unleash/assets/964450/793c771b-6246-4e28-8c13-920696a48bd5 )
---------
Co-authored-by: kwasniew <kwasniewski.mateusz@gmail.com>
2023-12-06 12:50:33 +02:00
Mateusz Kwasniewski
da1a9d4036
test: Filter item test ( #5557 )
2023-12-06 09:10:15 +01:00
Mateusz Kwasniewski
2dcf4af7b1
feat: filter persisted in url ( #5549 )
2023-12-05 17:31:23 +01:00
Nuno Góis
f348acb3b9
feat: improve role form validation ( #5548 )
...
https://linear.app/unleash/issue/2-1717/improve-the-ux-when-all-the-required-fields-are-not-filled-in
Improves role form validation behavior.
We may want to look into a form validation library, like
[react-hook-form](https://react-hook-form.com/ ), for future
implementations.
2023-12-05 12:39:30 +00:00
Saeed Akasteh
fa9d38fc22
fix(removeapitokenbutton.tsx): add environment name in delete token modal ( #5469 )
...
add environment name in delete token modal
2023-12-05 13:17:31 +01:00
Tymoteusz Czech
b5122a74e7
refactor: table state management in withTableState ( #5531 )
2023-12-05 12:16:58 +01:00
Tymoteusz Czech
795c67306c
fix: features sidebar scroll ( #5524 )
...
Feature toggle overview screen - the sidebar getting sticky was making it hard to see many environments
2023-12-05 09:08:02 +01:00
Jaanus Sellin
6b2b7a3388
chore: generate new models from openapi ( #5528 )
2023-12-04 21:49:49 +02:00
Tymoteusz Czech
ddca82213a
refactor: project overview table state ( #5530 )
...
Use new table state management on project overview and on
project/features
2023-12-04 17:04:28 +01:00
Mateusz Kwasniewski
5c889df9be
test: persistent table state ( #5529 )
2023-12-04 15:47:53 +01:00
Tymoteusz Czech
a506b92544
feat: Refactor Table State Persistence in Feature Toggle List ( #5527 )
...
new custom hook, `usePersistentTableState`
Co-authored-by: Mateusz Kwasniewski <kwasniewski.mateusz@gmail.com>
2023-12-04 13:21:03 +00:00
Thomas Heartman
a0a15416c4
feat: display potential conflicts in existing change requests ( #5521 )
...
This update displays schedule conflicts in active change requests (any
CR that isn't applied, canceled, or rejected).
![image](https://github.com/Unleash/unleash/assets/17786332/181c6c0a-f5de-4eed-9093-ac0109e1e8f3 )
2023-12-04 13:33:28 +01:00
Mateusz Kwasniewski
a9363efec1
fix: prevent search being stacked on top of the form dropdown ( #5523 )
2023-12-04 12:27:25 +01:00
Jaanus Sellin
a299885e22
feat: update project overview endpoint ( #5518 )
...
1. Created new hook for endpoint
2. Start removing useProject hook, when features not needed.
2023-12-01 20:00:35 +02:00
Tymoteusz Czech
755c22f3b9
feat: features list pagination ( #5496 )
...
New paginated table - tested on /features-new behind a flag
2023-12-01 14:53:05 +00:00
Tymoteusz Czech
fba80222de
Frontend OpenAPI types update ( #5520 )
2023-12-01 13:30:30 +00:00
andreas-unleash
02451baaf2
feat: hide change actions when change request is scheduled ( #5514 )
...
Added 'Scheduled' state to the check for non-pending change requests
Closes #
[1-1680](https://linear.app/unleash/issue/1-1680/remove-edit-change-ui-when-cr-is-scheduled )
<img width="868" alt="Screenshot 2023-11-30 at 11 54 44"
src="https://github.com/Unleash/unleash/assets/104830839/8e6afec5-1353-4030-b49b-4a8f3eaee5f6 ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-11-30 12:52:29 +02:00
Mateusz Kwasniewski
2b66ba41dc
fix: groups link ( #5511 )
2023-11-30 09:42:27 +01:00
Tymoteusz Czech
f690fe86da
feat: new search for feature toggle list table ( #5454 )
...
Filtering of feature toggles list with backend
2023-11-29 10:42:35 +01:00
Tymoteusz Czech
e476de5faa
feat: update feature search ( #5473 )
2023-11-29 08:45:30 +01:00
renovate[bot]
c7498dcac6
chore(deps): update dependency @biomejs/biome to v1.4.0 ( #5288 )
...
[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@biomejs/biome](https://biomejs.dev )
([source](https://togithub.com/biomejs/biome )) | [`1.3.3` ->
`1.4.0`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/1.3.3/1.4.0 )
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@biomejs%2fbiome/1.4.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@biomejs%2fbiome/1.4.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@biomejs%2fbiome/1.3.3/1.4.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@biomejs%2fbiome/1.3.3/1.4.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>biomejs/biome (@​biomejs/biome)</summary>
###
[`v1.4.0`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#140-2023-11-27 )
[Compare
Source](af24597c18...889593e3f9
)
##### CLI
- Remove the CLI options from the `lsp-proxy`, as they were never meant
to be passed to that command. Contributed by
[@​ematipico](https://togithub.com/ematipico )
- Add option `--config-path` to `lsp-proxy` and `start` commands. It's
now possible to tell the Daemon server to load `biome.json` from a
custom path. Contributed by
[@​ematipico](https://togithub.com/ematipico )
- Add new `--diagnostic-level` option to let users control the level of
diagnostics printed by the CLI. Possible values are: `"info"`, `"warn"`,
`"hint"`. Contributed by
[@​simonxabris](https://togithub.com/simonxabris )
- Add option `--line-feed` to the `format` command. Contributed by
[@​SuperchupuDev](https://togithub.com/SuperchupuDev )
- Add option `--bracket-same-line` to the `format` command. Contributed
by [@​faultyserve](https://togithub.com/faultyserve )
- Add option `--bracket-spacing` to the `format` command. Contributed by
[@​faultyserve](https://togithub.com/faultyserve )
##### Bug fixes
- Fix the command `format`, now it returns a non-zero exit code when if
there pending diffs. Contributed by
[@​ematipico](https://togithub.com/ematipico )
##### Configuration
- Add option `formatter.lineFeed`. Contributed by
[@​SuperchupuDev](https://togithub.com/SuperchupuDev )
- Add option `javascript.formatter.bracketSameLine`. Contributed by
[@​faultyserve](https://togithub.com/faultyserve )
- Add option `javascript.formatter.bracketSpacing`. Contributed by
[@​faultyserve](https://togithub.com/faultyserve )
##### Formatter
##### New features
- Add a new option
[`--line-ending`](https://biomejs.dev/reference/configuration/#formatterlineending ).
This option allows changing the type of line endings. Contributed by
[@​SuperchupuDev](https://togithub.com/SuperchupuDev )
- Added a new option called `--bracket-spacing` to the formatter. This
option allows you to control whether spaces are inserted around the
brackets of object literals.
[#​627](https://togithub.com/biomejs/biome/issues/627 ).
Contributed by [@​faultyserver](https://togithub.com/faultyserver )
- Added a new option called `--bracket-same-line` to the formatter. This
option allows you to control whether spaces are inserted around the
brackets of object literals.
[#​627](https://togithub.com/biomejs/biome/issues/627 ).
Contributed by [@​faultyserver](https://togithub.com/faultyserver )
##### Bug fixes
- Fix [#​832](https://togithub.com/biomejs/biome/issues/832 ), the
formatter no longer keeps an unnecessary trailing comma in type
parameter lists. Contributed by
[@​Conaclos](https://togithub.com/Conaclos )
- Fix [#​301](https://togithub.com/biomejs/biome/issues/301 ), the
formatter should not break before the `in` keyword. Contributed by
[@​ematipico](https://togithub.com/ematipico )
##### Linter
##### Promoted rules
-
[a11y/noInteractiveElementToNoninteractiveRole](https://biomejs.dev/linter/rules/no-interactive-element-to-noninteractive-role )
-
[complexity/noThisInStatic](https://biomejs.dev/linter/rules/no-this-in-static )
-
[complexity/useArrowFunction](https://biomejs.dev/linter/rules/use-arrow-function )
-
[correctness/noEmptyCharacterClassInRegex](https://biomejs.dev/linter/rules/no-empty-character-class-in-regex )
-
[correctness/noInvalidNewBuiltin](https://biomejs.dev/linter/rules/no-invalid-new-builtin )
-
[style/noUselessElse](https://biomejs.dev/linter/rules/no-useless-else )
-
[style/useAsConstAssertion](https://biomejs.dev/linter/rules/use-as-const-assertion )
-
[style/useShorthandAssign](https://biomejs.dev/linter/rules/use-shorthand-assign )
-
[suspicious/noApproximativeNumericConstant](https://biomejs.dev/linter/rules/no-approximative-numeric-constant )
-
[suspicious/noMisleadingInstantiator](https://biomejs.dev/linter/rules/no-misleading-instantiator )
-
[suspicious/noMisrefactoredShorthandAssign](https://biomejs.dev/linter/rules/no-misrefactored-shorthand-assign )
The following rules are now recommended:
- [a11y/noAccessKey](https://biomejs.dev/linter/rules/no-access-key )
-
[a11y/useHeadingContent](https://biomejs.dev/linter/rules/use-heading-content )
-
[complexity/useSimpleNumberKeys](https://biomejs.dev/linter/use-simple-number-keys )
The following rules are now deprecated:
-
[correctness/noNewSymbol](https://biomejs.dev/linter/rules/no-new-symbol )
The rule is replaced by
[correctness/noInvalidNewBuiltin](https://biomejs.dev/linter/rules/no-invalid-new-builtin )
##### New features
- Add
[noDefaultExport](https://biomejs.dev/linter/rules/no-default-export )
which disallows `export default`. Contributed by
[@​Conaclos](https://togithub.com/Conaclos )
- Add
[noAriaHiddenOnFocusable](https://biomejs.dev/linter/rules/no-aria-hidden-on-focusable )
which reports hidden and focusable elements. Contributed by
[@​vasucp1207](https://togithub.com/vasucp1207 )
- Add
[noImplicitAnyLet](https://biomejs.dev/linter/rules/no-implicit-any-let )
that reports variables declared with `let` and without initialization
and type annotation. Contributed by
[@​TaKO8Ki](https://togithub.com/TaKO8Ki ) and
[@​b4s36t4](https://togithub.com/b4s36t4 )
- Add [useAwait](https://biomejs.dev/linter/rules/use-await ) that
reports `async` functions that don't use an `await` expression.
- Add
[useValidAriaRole](https://biomejs.dev/linter/rules/use-valid-aria-role ).
Contributed by [@​vasucp1207](https://togithub.com/vasucp1207 )
- Add [useRegexLiterals](https://biomejs.dev/linter/use-regex-literals )
that suggests turning call to the regex constructor into regex literals.
COntributed by [@​Yuiki](https://togithub.com/Yuiki )
##### Enhancements
- Add an unsafe code fix for
[a11y/useAriaActivedescendantWithTabindex](https://biomejs.dev/linter/rules/use-aria-activedescendant-with-tabindex )
##### Bug fixes
- Fix [#​639](https://togithub.com/biomejs/biome/issues/639 ) by
ignoring unused TypeScript's mapped key. Contributed by
[@​Conaclos](https://togithub.com/Conaclos )
- Fix [#​565](https://togithub.com/biomejs/biome/issues/565 ) by
handling several `infer` with the same name in extends clauses of
TypeScript's conditional types. Contributed by
[@​Conaclos](https://togithub.com/Conaclos )
- Fix [#​653](https://togithub.com/biomejs/biome/issues/653 ).
[noUnusedImports](https://biomejs.dev/linter/rules/no-unused-imports )
now correctly removes the entire line where the unused `import` is.
Contributed by [@​Conaclos](https://togithub.com/Conaclos )
- Fix [#​607](https://togithub.com/biomejs/biome/issues/609 )
`useExhaustiveDependencies`, ignore optional chaining, Contributed by
[@​msdlisper](https://togithub.com/msdlisper )
- Fix [#​676](https://togithub.com/biomejs/biome/issues/676 ), by
using the correct node for the `"noreferrer"` when applying the code
action. Contributed by
[@​ematipico](https://togithub.com/ematipico )
- Fix [#​455](https://togithub.com/biomejs/biome/issues/455 ). The
CLI can now print complex emojis to the console correctly.
- Fix [#​727](https://togithub.com/biomejs/biome/issues/727 ).
[noInferrableTypes](https://biomejs.dev/linter/rules/no-inferrable-types )
now correctly keeps type annotations when the initialization expression
is `null`. Contributed by
[@​Conaclos](https://togithub.com/Conaclos )
- Fix [#​784](https://togithub.com/biomejs/biome/issues/784 ),
[noSvgWithoutTitle](https://biomejs.dev/linter/rules/no-svg-without-title )
fixes false-positives to `aria-label` and reports svg's role attribute
is implicit. Contributed by
[@​unvalley](https://togithub.com/unvalley )
- Fix [#​834](https://togithub.com/biomejs/biome/issues/834 ) that
made
[noUselessLoneBlockStatements](https://biomejs.dev/linter/rules/no-useless-lone-block-statements )
reports block statements of switch clauses. Contributed by
[@​vasucp1207](https://togithub.com/vasucp1207 )
- Fix [#​783](https://togithub.com/biomejs/biome/issues/834 ) that
made
[noUselessLoneBlockStatements](https://biomejs.dev/linter/rules/no-useless-lone-block-statements )
reports block statements of `try-catch` structures. Contributed by
[@​hougesen](https://togithub.com/hougesen )
- Fix [#​69](https://togithub.com/biomejs/biome/issues/69 ) that
made
[correctness/noUnnecessaryContinue](https://biomejs.dev/linter/rules/no-unnecessary-continue )
incorrectly reports a `continue` used to break a switch clause.
Contributed by [@​TaKO8Ki](https://togithub.com/TaKO8Ki )
- Fix [#​664](https://togithub.com/biomejs/biome/issues/664 ) by
improving the diagnostic of
[style/useNamingConvention](https://biomejs.dev/linter/use-naming-convention )
when double capital are detected in strict camel case mode. Contributed
by [@​vasucp1207](https://togithub.com/vasucp1207 )
- Fix [#​643](https://togithub.com/biomejs/biome/issues/643 ) that
erroneously parsed the option of
[complexity/useExhaustiveDependencies](https://biomejs.dev/linter/use-naming-convention ).
Contributed by [@​arendjr](https://togithub.com/arendjr )
##### Parser
##### Bug fixes
- Fix [#​846](https://togithub.com/biomejs/biome/issues/846 ) that
erroneously parsed `<const T,>() => {}` as a JSX tag instead of an arrow
function when both TypeScript and JSX are enabled.
##### VSCode
</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://developer.mend.io/github/Unleash/unleash ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40Ni4wIiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Christopher Kolstad <chriswk@getunleash.io>
2023-11-28 09:32:00 +00:00
Thomas Heartman
dba1c90db8
Feat: show change request data on segment project usage page ( #5410 )
...
Show usage in change requests if that'd cause you to not be able to move
the segment into a project.
- [x] ~Relies on changes from #5407 (and #5405 , #5406 ) to go through
first.~
![image](https://github.com/Unleash/unleash/assets/17786332/e6b84664-db86-457e-885f-a86c95bc46ec )
2023-11-28 10:01:56 +01:00
Mateusz Kwasniewski
de287a75fe
chore: remove dependent feature flags ( #5419 )
2023-11-27 14:54:40 +01:00
Christopher Kolstad
c179c8ad5e
chore(update): Updates biome config to 1.3 format ( #5421 )
...
Does what it says on the tin, update to 1.3.x format for biome config
2023-11-27 13:42:58 +01:00
Nuno Góis
023db4e2c9
refactor: favor permission name over id ( #5409 )
...
https://linear.app/unleash/issue/2-1664/create-db-migration-that-favors-the-name-column-over-id-for
Similar to https://github.com/Unleash/unleash/pull/5398 , but
non-breaking (semver).
This keeps the permissions `id` column intact, however favors the
permission name whenever possible.
2023-11-27 11:12:09 +00:00
Thomas Heartman
b021e7cf85
feat: show strategies used by segments ( #5407 )
...
This PR displays change request usage of segments when such usage is
returned from the API. It expects at least #5406 to have been merged
before it can be merged.
![image](https://github.com/Unleash/unleash/assets/17786332/c74bb1c9-07f9-4bca-95bb-4ca020398444 )
2023-11-27 10:34:34 +00:00
Thomas Heartman
90915cfdd7
Chore: add strategy sorting algorithm ( #5406 )
...
This PR adds a strategy sorting algorithm to be used for the segment
deletion dialog. It assumes that you have a list of existing strategies
and a list of change request strategies. Based on the content of these
two lists, it will create one unified list sorted after a number of
criteria (as listed in the test).
# Discussion point:
This impl does the sorting on the front end, but could we do it on the
back end? Instead of adding a new property to the segment data, could we
simply fold the change request strategies in with the existing segment
strategies and return it using the old property? If the only place we do
that is in this view, then that might be a good suggestion.
Response:
I'll leave this in the front end for now. The reason is that we can't add change request strategies to the existing `strategies` property of the API payload without it being a breaking change. The OpenAPI schema says that `id` is a required field on a strategy, and that field doesn't exist on strategies that have only been added in change requests, but not yet applied.
2023-11-27 11:23:10 +01:00
Chris Hepner
ef46b042cc
fix: typo in Unleash playground frontend ( #5389 )
...
## About the changes
- Change "undestand" to "understand"
- Capitalize "Unleash"
Co-authored-by: Chris Hepner <chris@healthtensor.com>
2023-11-27 09:30:00 +01:00
Tymoteusz Czech
dbd897e3bd
Feat/new paginated table ( #5371 )
...
## About the changes
2023-11-24 17:50:58 +01:00
Nuno Góis
47e214d96f
fix: enable toggle with disabled strategies dialog ( #5416 )
...
https://linear.app/unleash/issue/UNL-283/improve-dialog-when-there-are-disabled-strategies-and-we-want-to
Improves the "enable toggle when there are disabled strategies" dialog.
Also implements passing in the missing `disabledStrategiesCount`
property to the dialog.
![image](https://github.com/Unleash/unleash/assets/14320932/95d9110e-8c1c-47ce-8e1b-389607115a54 )
2023-11-24 14:57:03 +00:00
Nuno Góis
aa8347eb7a
fix: delete archived feature toggles in the UI ( #5411 )
...
This PR addresses 2 tasks that aim to fix and improve the UI/UX on
archived feature toggle deletion:
-
https://linear.app/unleash/issue/UNL-260/delete-feature-toggle-dialog-update-word-toggles-to-singular-toggle
-
https://linear.app/unleash/issue/UNL-282/deleting-multiple-toggles-in-the-project-archive-the-batch-selector
Essentially:
- Makes it clearer that we're deleting a single feature toggle by
changing the text to singular toggle
- Improves clarity further by adding a list of feature toggles about to
be deleted
- Fixes a bug where the batch selector would not be cleared after
deleting multiple feature toggles
## Deleting one feature toggle (singular)
![image](https://github.com/Unleash/unleash/assets/14320932/c956f459-ef18-4153-97f7-ffdd6b11613c )
## Deleting multiple feature toggles (plural)
![image](https://github.com/Unleash/unleash/assets/14320932/14f875a4-7f56-4db9-81db-cd06526e5bd5 )
2023-11-24 09:35:13 +00:00
Tymoteusz Czech
ffe37ac709
Basic filter label ( #5387 )
2023-11-24 10:07:42 +01:00
Nuno Góis
7d2fd172a5
fix: role permissions UI improvements ( #5388 )
...
https://linear.app/unleash/issue/2-1657/role-permissions-improvements
This PR includes 3 improvements:
- Sort permissions alphabetically
- Ensure we don't display duplicate permissions
- Improve alignment of columns by using a proper grid
![image](https://github.com/Unleash/unleash/assets/14320932/7cb4a70e-8e39-4077-95a0-66f29b3c2e55 )
2023-11-23 09:43:15 +00:00
andreas-unleash
937a605888
chore: remove variantTypeNumber flag ( #5382 )
...
Closes #
[1-1648](https://linear.app/unleash/issue/1-1648/clean-varianttypenumber-flag-for-release )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-11-23 11:12:56 +02:00
andreas-unleash
1dafc85eaa
chore: remove playgroundImprovements flag ( #5384 )
...
Closes #:
[1-1647](https://linear.app/unleash/issue/1-1647/clean-playgroundimprovements-flag-for-release )
[1-1665](https://linear.app/unleash/issue/1-1665/flaky-test-playgroundconnectionfieldsettesttsx )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-11-23 10:50:19 +02:00
andreas-unleash
3e12c2b5b6
Chore: remove disableEnvsOnRevive flag ( #5391 )
...
Closes #
[1-1646](https://linear.app/unleash/issue/1-1646/clean-disableenvsonrevive-flag-for-release )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-11-23 10:10:37 +02:00
Fredrik Strand Oseberg
5414fa6663
Refactor/remove last seen at flag ( #5394 )
...
This PR removes the feature flag for displaying the new last seen by
environments component.
2023-11-22 13:32:38 +01:00
Nuno Góis
5dc3e830a8
feat: add CREATE_TAG_TYPE permission ( #5386 )
...
https://linear.app/unleash/issue/2-1164/update-tag-type-covers-both-creation-and-update
Adds a new `CREATE_TAG_TYPE` permission instead of using
`UPDATE_TAG_TYPE` for both actions.
2023-11-22 10:20:19 +00:00
andreas-unleash
8ffc92af5b
fix: Only show strategy variant changes if there is a diff in the variants ( #5353 )
...
What it says on the box
Closes #
[1-1652](https://linear.app/unleash/issue/1-1652/remove-the-variants-from-change-request-page-when-not-modified )
![Screenshot 2023-11-16 at 11 26
05](https://github.com/Unleash/unleash/assets/104830839/8f25b82c-4dbc-46fb-bdd6-0e0049659c72 )
![Screenshot 2023-11-16 at 11 25
46](https://github.com/Unleash/unleash/assets/104830839/e6366622-3a50-4a0e-bba2-6c1d34e64077 )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-11-22 09:50:03 +02:00
Fredrik Strand Oseberg
83fe430a14
Feat/private project badge ( #5373 )
...
Adds an icon with tooltip for private projects in ProjectCard and
Project header:
<img width="528" alt="Skjermbilde 2023-11-21 kl 10 58 13"
src="https://github.com/Unleash/unleash/assets/16081982/28004c11-a20d-4740-98f4-127f41639896 ">
2023-11-21 11:49:50 +01:00
Tymoteusz Czech
d5049e6197
feat: useTableState hook ( #5362 )
...
Simplified logic for handling interaction between URL (query), table state and localstorage.
2023-11-21 11:25:31 +01:00
Fredrik Strand Oseberg
11533bf97a
refactor: remove feature flag for Dora ( #5367 )
2023-11-21 08:18:00 +01:00
Thomas Heartman
90d6c7c0ba
chore: remove usage of feature naming pattern flag ( #5364 )
...
In preparation for this feature going GA
2023-11-20 12:42:24 +01:00
Gastón Fournier
4801b64824
feat(banners): enable customer banners ( #5348 )
...
## About the changes
This feature allows our Enterprise customers to configure banners to be
displayed on their Unleash instance for all their users to see and
interact with. Previously known as "internal message banners".
2023-11-17 13:56:09 +00:00
Thomas Heartman
be699962b1
chore: remove segments oss splash ( #5359 )
...
This change removes the oss segments splash screen that was introduced
in https://github.com/Unleash/unleash/pull/5053 .
2023-11-17 13:39:43 +00:00
andreas-unleash
0dc5f306cc
Feat: change request scheduled timeline ( #5346 )
...
Adds the scheduled state to the timeline
Closes #
[1-1632](https://linear.app/unleash/issue/1-1632/update-the-progress-bar-for-scheduled-changes )
![Screenshot 2023-11-16 at 10 51
03](https://github.com/Unleash/unleash/assets/104830839/6267299e-d5c3-4cbf-9ab2-25da53f2d526 )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-11-17 11:20:14 +02:00
Nuno Góis
f8a9d7f355
fix: take into account project segments permission in form ( #5352 )
...
https://linear.app/unleash/issue/SR-184/ticket-1106-users-with-createedit-project-segment-dont-see-all-the
https://github.com/Unleash/unleash/pull/5304 did not take into account
permissions further into the Segment form.
This PR fixes the remaining permission checks to take into consideration
the project-level permission: `UPDATE_PROJECT_SEGMENT`.
2023-11-16 11:54:56 +00:00
Fredrik Strand Oseberg
2dd2d520e3
Feat/exp project features ( #5351 )
...
This PR adds feature toggle list on the project on a separate page as an
experiment
2023-11-16 12:41:31 +01:00
Jaanus Sellin
4e1040c849
feat: connect sort table to backend ( #5338 )
...
Now FE sorting is done in backend.
2023-11-15 16:01:02 +02:00
Fredrik Strand Oseberg
db77962a72
fix/usefeaturesearch cache ( #5340 )
...
Fixes a bug where the closure over the useFeatureSearch hook would not
account for projectId and return the wrong total/initial load
2023-11-15 11:09:13 +01:00
Fredrik Strand Oseberg
357af740c8
refactor: new table styling for project overview ( #5334 )
...
This PR alters the table styling for the Project Overview table so that
we utilise more of the surrounding space:
2023-11-14 13:57:06 +01:00
Jaanus Sellin
069d90d8cb
fix: date should sort asc/desc properly ( #5335 )
2023-11-14 14:47:28 +02:00
Tymoteusz Czech
fd3a7f12cb
chore: remove featureSwitchRefactor flag ( #5329 )
...
Cleanup. This change has been rolled out to significant number of
customers already, and we have another parallel version behind a flag.
2023-11-14 13:03:23 +01:00
Jaanus Sellin
cdebf9aa28
fix: sort order should be persisted and used from local storage ( #5332 )
2023-11-14 11:08:04 +02:00
Fredrik Strand Oseberg
ddd718fd23
refactor/reshape table ( #5328 )
...
This PR fixes a couple of issues with the pagination bar:
* Fixes an issue where padding bottom would be broken due to disabling
padding on the parent container
* Remove padding on the entire table to create more space and remove
header bar border radius as per discussion with @nicolaesocaciu
2023-11-14 08:44:36 +01:00
Fredrik Oseberg
0f7360c1e8
fix: conditionally show pagination bar
2023-11-13 14:47:51 +01:00
Fredrik Strand Oseberg
834ae1d8a4
Feat/pagination loading ( #5325 )
...
This PR makes changes to how the project overview skeleton screen works.
Important changes:
- Add skeleton screens to missing elements, creating a more
comprehensive loading screen
- Split the page into different loading sections, so that we can load
the table when we fetch the next page without affecting the rest of the
page.
https://www.loom.com/share/e5d30dc897ac488ea80cfae11ffab646
Next steps:
* Hide bar if total is less than 25
* Add FE testing
2023-11-13 14:08:48 +01:00
Fredrik Strand Oseberg
7f4df19660
Feat/pagination bar ( #5309 )
...
Initial implementation of the sticky pagination bar.
2023-11-10 14:16:31 +01:00
Nuno Góis
15f77f5b8b
fix: project settings flag limit not properly set ( #5317 )
...
https://linear.app/unleash/issue/SR-169/ticket-1107-project-feature-flag-limit-is-not-correctly-updated
Fixes #5315 , an issue where it would not be possible to set an empty
flag limit.
This also fixes the UI behavior: Before, when the flag limit field was
emptied, it would disappear from the UI.
I'm a bit unsure of the original intent of the `(data.defaultStickiness
!== undefined || data.featureLimit !== undefined)` condition. We're in
an update method, triggered by a PUT endpoint - I think it's safe to
assume that we'll always want to set these values to whatever they come
as, we just need to convert them to `null` in case they are not present
(i.e. `undefined`).
2023-11-10 09:57:20 +00:00
andreas-unleash
180c0dceae
Fix/scheduled request UI ( #5318 )
...
Change timezone format
Fixes a bug where the Edit button on hover being elongated
Before:
<img width="755" alt="Screenshot 2023-11-09 at 21 36 01"
src="https://github.com/Unleash/unleash/assets/104830839/189f21d5-8a68-4d6b-b094-b518749a9b2f ">
After:
<img width="812" alt="Screenshot 2023-11-09 at 22 09 26"
src="https://github.com/Unleash/unleash/assets/104830839/9056f995-bd2b-4353-8526-77160e49e990 ">
Adds the missed onClick to the edit button to show the dialog
Fixes a bug with ScheduleChangesDialog onClose
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-11-10 11:22:03 +02:00
andreas-unleash
77db9f3258
feat: add Changes Scheduled badge to feature variants ( #5312 )
...
Adds the Changes Scheduled badge to environment variant when appropriate
Closes #
[1-1625](https://linear.app/unleash/issue/1-1625/show-a-badge-when-variant-in-scheduled-request )
<img width="1006" alt="Screenshot 2023-11-09 at 15 42 37"
src="https://github.com/Unleash/unleash/assets/104830839/118a3f0b-9acf-4a49-92d2-49bbe49a4c91 ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2023-11-09 14:58:58 +00:00
andreas-unleash
100c22b42a
Feat: scheduled change request badges ( #5300 )
...
Adds a new badge to strategies that have changes in an a scheduled
change request
Closes #
[1-1620](https://linear.app/unleash/issue/1-1620/create-a-new-badge-for-flag-that-is-part-of-scheduled-change )
<img width="1671" alt="Screenshot 2023-11-09 at 11 49 53"
src="https://github.com/Unleash/unleash/assets/104830839/596abbc0-f9ab-4642-9ed2-79ef50fb6c05 ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2023-11-09 13:48:29 +02:00
Nuno Góis
4d1f76e61b
fix: take into account project segments permission ( #5304 )
...
https://linear.app/unleash/issue/SR-164/ticket-1106-user-with-createedit-project-segment-is-not-able-to-edit-a
Fixes a bug where the `UPDATE_PROJECT_SEGMENT` permission is not
respected, both on the UI and on the API. The original intention was
stated
[here](https://github.com/Unleash/unleash/pull/3346#discussion_r1140434517 ).
This was easy to fix on the UI, since we were simply missing the extra
permission on the button permission checks.
Unfortunately the API can be tricky. Our auth middleware tries to grab
the `project` information from either the params or body object, but our
`DELETE` method does not contain this information. There is no body and
the endpoint looks like `/admin/segments/:id`, only including the
segment id.
This means that, in the rbac middleware when we check the permissions,
we need to figure out if we're in such a scenario and fetch the project
information from the DB, which feels a bit hacky, but it's something
we're seemingly already doing for features, so at least it's somewhat
consistent.
Ideally what we could do is leave this API alone and create a separate
one for project segments, with endpoints where we would have project as
a param, like so:
`http://localhost:4242/api/admin/projects/:projectId/segments/1 `.
This PR opts to go with the quick and hacky solution for now since this
is an issue we want to fix quickly, but this is something that we should
be aware of. I'm also unsure if we want to create a new API for project
segments. If we decide that we want a different solution I don't mind
either adapting this PR or creating a follow up.
2023-11-09 09:37:47 +00:00
andreas-unleash
3e9d88f789
Feat/scheduled cr UI tests ( #5296 )
...
Ui tests scheduled change requests
Closes # [1-1598](https://linear.app/unleash/issue/1-1598/e2e-ui-tests )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2023-11-08 14:28:16 +02:00
Jaanus Sellin
24f9fa3058
feat: connect search and filter with server api ( #5297 )
2023-11-08 14:19:40 +02:00
Jaanus Sellin
4bacd3e055
feat: introduce offset based search instead of cursor ( #5274 )
2023-11-08 11:12:42 +02:00
Tymoteusz Czech
06d62278dc
fix: change request table sort type ( #5295 )
2023-11-07 17:13:43 +01:00
andreas-unleash
addda5b022
feat: schedule changes dialog ( #5285 )
...
Closes: #
[1-1585](https://linear.app/unleash/issue/1-1585/reschedule-changes-dialog )
[1-1582](https://linear.app/unleash/issue/1-1582/change-apply-changes-apply-or-schedule-changes )
Manually tested e2e -> Approve -> Schedule -> Reschedule ->
Apply/Reject: ui tests verifying it in next pr
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-11-07 10:59:49 +02:00
Fredrik Strand Oseberg
92e2b1890c
Refactor/project overview api calls ( #5279 )
...
This PR reduces the overhead of making API calls on pages with heavy
renders. We forego loading states and default error handling in favor of
more speed by avoiding triggering multiple re-renders from the API call.
2023-11-07 09:19:55 +01:00
andreas-unleash
2262ca1be6
Feat: scheduled change request dialogs ( #5267 )
...
Creates the Apply and Reject scheduled change request dialogs
Closes #
[1-1584](https://linear.app/unleash/issue/1-1584/add-modal-for-apply-now )
Closes #
[1-1586](https://linear.app/unleash/issue/1-1586/reject-changes-dialog )
<img width="1669" alt="Screenshot 2023-11-03 at 14 43 17"
src="https://github.com/Unleash/unleash/assets/104830839/832edb8e-1da1-4d96-a5c3-4fa0cd336fea ">
<img width="1669" alt="Screenshot 2023-11-03 at 14 43 28"
src="https://github.com/Unleash/unleash/assets/104830839/f9028671-e5e1-441c-886b-1e562c83f214 ">
UI e2e tests will be in a follow up PR
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-11-06 11:13:50 +02:00
andreas-unleash
6b637d5fa9
feat: scheduled change request state ( #5261 )
...
Adds the scheduled state to ChangeRequestOverview.tsx
<img width="1523" alt="Screenshot 2023-11-03 at 12 52 07"
src="https://github.com/Unleash/unleash/assets/104830839/710b5f26-04a0-4ee9-b646-8ff3090ad86a ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-11-03 15:02:51 +02:00
Fredrik Strand Oseberg
ddb9b5c20f
Refactor/rename constraint button ( #5260 )
...
This PR changes the button type and text for constraint accordions
2023-11-03 11:34:15 +01:00
Thomas Heartman
7cf998c509
fix: move useUiFlag before "return null" to avoid rendering more hooks on the first render ( #5258 )
...
Move the hook to before the first return to avoid React erroring out.
2023-11-03 10:04:03 +00:00
Mateusz Kwasniewski
fe61947435
feat: serach and filter input to query param parser ( #5255 )
2023-11-03 10:10:46 +01:00
Thomas Heartman
e471c0c62e
chore: update orval schemas ( #5249 )
...
This PR updates the orval schemas in prep for working with scheduled CRs
on the front end. Also contains a whole host of other orval updates.
2023-11-03 08:48:07 +01:00
Thomas Heartman
9fbb61a1c4
chore: add schedule option to approved change requests ( #5252 )
...
The button doesn't do anything at the moment, but it's there visually.
Because this uses the same button as the dual-function button for
approve/reject, I extracted that component into a reusable
"multi-action" button. I could have copied the code wholesale, but it's
a complex component, so I thought this would be a better solution.
I'll add the dialog in a follow-up PR. This one already has a lot of
changes.
Visual:
![image](https://github.com/Unleash/unleash/assets/17786332/9a9bee77-4925-4054-9ef6-ef8ddbb61fae )
2023-11-03 08:46:06 +01:00
Mateusz Kwasniewski
0a805490aa
feat: project overview pagination ( #5248 )
2023-11-02 13:32:47 +01:00
Fredrik Strand Oseberg
9cfade926e
refactor: memoize heavy components in project overview ( #5241 )
...
This PR memoizes some of the heavier components in our project overview
table
2023-11-02 13:12:35 +01:00
Mateusz Kwasniewski
bc66fb649f
feat: infinite scroll API trigger ( #5242 )
2023-11-01 15:56:06 +01:00
Mateusz Kwasniewski
d074254b61
feat: connect project overview table to search api ( #5237 )
2023-11-01 12:05:42 +01:00
Mohan Raj A
0c43089ea2
feat: add copy button to feature flag name ( #4098 ) ( #5031 )
...
In ActionsCell.tsx file, 'Copy' with FileCopy icon is changed to 'Clone'
with 'LibraryAdd' icon as this feature is used to clone a new feature
from existing one. Upon copying the icon and text will change to 'Check'
icon with 'Copied!' for one sec and closes automatically.
2023-10-30 15:38:59 +01:00
Simon Hornby
9f8f94b06b
chore: remove access overview toggle ( #5166 )
2023-10-30 14:57:20 +02:00
andreas-unleash
66cc526855
feat: add scheduledConfigurationChanges flag ( #5161 )
...
add scheduledConfigurationChanges flag
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-26 14:00:53 +00:00
andreas-unleash
05f4c22f7c
fix: do not track empty strings in playground token input ( #5159 )
...
do not track empty strings in playground token input
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-26 11:45:29 +00:00
andreas-unleash
3b0b372f75
feat: playground token input usage tracking ( #5157 )
...
Track usage of the new token input
Closes #
[1-1551](https://linear.app/unleash/issue/1-1551/plausible-track-usage-of-token-input )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-26 14:28:12 +03:00
andreas-unleash
ee44fae6ea
feat: token input improvements ( #5155 )
...
Rename `Api` to `API`
Add clear btn to token input
Add arrow to project and environment input tooltips
Closes #
[1-1549](https://linear.app/unleash/issue/1-1549/token-input-improvements )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-26 12:39:30 +03:00
David Leek
6fe4740e67
feat: remove feature flag for datadog json template ( #5105 )
...
## About the changes
Removes the feature flag for the datadog json template
2023-10-26 09:09:26 +02:00
Nuno Góis
cc34db1659
feat: banner UI/UX adjustments ( #5151 )
...
https://linear.app/unleash/issue/2-1549/ui-align-with-uiux
Includes UI/UX adjustments to the banners feature after aligning with
@nicolaesocaciu
There are a lot of changes, but here are a few:
- Redesigned preview section
- Redesigned banner status (enabled) section
- Reordered form fields to better fit the flow
- Reordered fields in the side-panel payload to reflect order in the UI
- Made inputs full width
- Adjusted multiline fields
- Added a link to Markdown's basic syntax examples
- Added a "preview dialog" button
- Updated `HelpIcon` usage to use the `htmlTooltip`
- Improved `Banner` inline design, added a maxHeight prop for usage
inside a table
- Improved `FormSwitch` design
![image](https://github.com/Unleash/unleash/assets/14320932/d8fe1f59-85ed-48eb-aa46-62628b12f0b1 )
Co-authored-by: Nicolae <nicolae@getunleash.ai>
2023-10-25 17:14:18 +01:00
andreas-unleash
8e3863a27e
feat: add input for api token in playground ( #5130 )
...
Adds a token input in playground.
In the case of tokens that span multiple projects ie
`[]:development.etc` it will look into the token definitions to find the
token and get the projects
Otherwise it will try to parse the project and environment from the
token itself (without checking for it being a valid token)
Also, does not support admin tokens `*:*.etc`
Closes #
[1-1507](https://linear.app/unleash/issue/1-1507/create-a-token-input-in-the-playground-form )
<img width="1661" alt="Screenshot 2023-10-23 at 16 38 11"
src="https://github.com/Unleash/unleash/assets/104830839/f2d4fb6e-962f-4cc1-b5e4-817fd2de18ff ">
<img width="1673" alt="Screenshot 2023-10-23 at 16 38 33"
src="https://github.com/Unleash/unleash/assets/104830839/27645955-d651-41e6-be02-4381c4f00551 ">
<img width="1377" alt="Screenshot 2023-10-25 at 17 06 43"
src="https://github.com/Unleash/unleash/assets/104830839/c7638366-3634-4521-af65-4f68a4f3b330 ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-25 17:55:33 +03:00
Fredrik Strand Oseberg
3ee250ee7d
feat: add feature search service ( #5149 )
2023-10-25 15:18:52 +02:00
andreas-unleash
d681e614ac
fix: fix broken edit project link ( #5147 )
...
fix broken edit project link
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-25 15:23:53 +03:00
Nuno Góis
6ffca07d51
feat: use new on/off endpoints in banners toggles ( #5144 )
...
https://linear.app/unleash/issue/2-1556/adapt-toggles-in-banners-table-to-use-the-new-on-and-off-endpoints
Uses the new on/off endpoints in the banners table toggles.
Also includes a missing rename for the `useMessageBannersApi` hook, to
`useBannersApi`.
2023-10-25 12:27:47 +01:00
Jaanus Sellin
26dcc70e85
bug: remove strategies from copy breadcrumbs ( #5137 )
2023-10-25 09:12:32 +03:00
Nuno Góis
3ca22c7c5c
feat: banner modal ( #5132 )
...
https://linear.app/unleash/issue/2-1548/ui-create-banner-newedit-modal
Adds a new banner modal (and form) that allows admins to create and edit
banners.
Also adds a new `FormSwitch` common component that may be helpful in
different situations where we need a switch on a form.
<img width="1263" alt="image"
src="https://github.com/Unleash/unleash/assets/14320932/1b89db9b-9003-413c-8829-c37d245e2487 ">
2023-10-24 16:26:44 +01:00
Fredrik Strand Oseberg
5acf691845
fix: last seen at rendering logic ( #5136 )
...
This PR fixes a bug where the rendering in the frontend would only
render the last seen component if feature.lastSeenAt was set, the new
changes considers whether or not environments last seen at is present
and takes precedent over the legacy last seen at field.
2023-10-24 13:58:55 +02:00
Jaanus Sellin
604c19c27e
fix: fix linting for copyfeature ( #5138 )
2023-10-24 12:21:01 +02:00
sjaanus
b47dbd37ff
fix: fix copy functionality always being disabled
2023-10-24 12:50:42 +03:00
Nuno Góis
90296bed82
refactor: slight clean up after GAing multiple roles ( #5133 )
...
Follow up cleanup to https://github.com/Unleash/unleash/pull/5109
Based on
https://github.com/Unleash/unleash/pull/5109#pullrequestreview-1689535863
2023-10-24 09:57:01 +01:00
Mateusz Kwasniewski
599da89288
feat: improved has children/has parent indicator ( #5135 )
2023-10-24 10:51:38 +02:00
Mateusz Kwasniewski
46b8dce081
fix: read project id in edit project ( #5134 )
2023-10-24 10:18:40 +02:00
Christopher Kolstad
314a08b4e6
feat: Make multiple roles per group/user GA by removing the flag ( #5109 )
...
To prepare for 5.6 GA,
I've done a find through both Frontend and Backend here to remove the
usages of the flag. Seems like the flag was only in use in the frontend.
@nunogois can you confirm?
2023-10-23 12:32:15 +00:00
andreas-unleash
69d050a70f
fix: grey out text and icons for disabled strategies in playground ( #5113 )
...
What it says on the tin
Closes #
[1-1512](https://linear.app/unleash/issue/1-1512/grey-out-everything-icons-labels-etc-when-strategy-is-disabled )
<img width="689" alt="Screenshot 2023-10-20 at 12 25 51"
src="https://github.com/Unleash/unleash/assets/104830839/3192a125-0e2a-46f2-a266-e4d6c171bdad ">
<img width="711" alt="Screenshot 2023-10-20 at 14 52 30"
src="https://github.com/Unleash/unleash/assets/104830839/15040439-c059-4725-9518-82e363fd7230 ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-23 15:12:15 +03:00
Nuno Góis
93fb615841
fix: draft banner zIndex ( #5124 )
...
Tiny zIndex fix for the draft banner for a regression introduced in
https://github.com/Unleash/unleash/pull/5088
### Before - Draft banner is displayed on top of the profile popup:
![image](https://github.com/Unleash/unleash/assets/14320932/63865f01-9bbe-42f1-9cc4-85c3c985334c )
### After - Profile popup displays on top of the draft banner:
![image](https://github.com/Unleash/unleash/assets/14320932/565e1017-5163-445d-bc0c-ee957023241b )
2023-10-23 13:01:50 +02:00
Jaanus Sellin
ddcd7f47d8
chore: remove invite link flag ( #5119 )
2023-10-23 12:11:11 +03:00
andreas-unleash
8821dbc783
Fix: copy feature alert when change requests enabled in any env ( #4964 )
...
Adds an alert if change requests are enabled in any env and you try to
copy a feature.
Currently the functionality was disabled but with no explanation
Closes #
[SR-79](https://linear.app/unleash/issue/SR-79/when-change-request-is-enable-the-copy-functionality-its-disabled-but )
<img width="1138" alt="Screenshot 2023-10-09 at 12 32 52"
src="https://github.com/Unleash/unleash/assets/104830839/e900e4b8-8d26-46d7-8622-0ad592704d03 ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-20 15:15:42 +03:00
Nuno Góis
667aed828b
feat: banners admin page ( #5111 )
...
https://linear.app/unleash/issue/2-1484/ui-create-an-admin-banners-configuration-page
Adds a new "Banners" page to the admin UI.
This first iteration allows admins to list and preview all configured
message banners, toggle them (whether they are currently visible to all
users or not), and remove them.
Next step will be creating the modal for "new" and "edit" operations.
### Admin menu
![image](https://github.com/Unleash/unleash/assets/14320932/39bcf575-b03a-481b-b19e-fc87697ed51c )
### Banners page
![image](https://github.com/Unleash/unleash/assets/14320932/39df6bc2-6949-4956-9dd0-0e5b1d2959f6 )
2023-10-20 11:14:48 +01:00
Tymoteusz Czech
f1b8d9b8d5
fix: project overview refactor flag ( #5110 )
2023-10-20 11:16:05 +02:00
Tymoteusz Czech
6fab6633c9
feat: add hasStrategies and hasEnabledStrategies on feature environments ( #5012 )
2023-10-20 10:50:57 +02:00
Mateusz Kwasniewski
b890df6e12
feat: show warning about dependencies removed on archive ( #5104 )
2023-10-20 08:58:03 +02:00
Nuno Góis
347c1cabbc
feat: add new sticky component to handle stacked stickies ( #5088 )
...
https://linear.app/unleash/issue/2-1509/discovery-stacked-sticky-elements
Adds a new `Sticky` element that will attempt to stack sticky elements
in the DOM in a smart way.
This needs a wrapping `StickyProvider` that will keep track of sticky
elements.
This PR adapts a few components to use this new element:
- `DemoBanner`
- `FeatureOverviewSidePanel`
- `DraftBanner`
- `MaintenanceBanner`
- `MessageBanner`
Pre-existing `top` properties are taken into consideration for the top
offset, so we can have nice margins like in the feature overview side
panel.
### Before - Sticky elements overlap 😞
![image](https://github.com/Unleash/unleash/assets/14320932/dd6fa188-6774-4afb-86fd-0eefb9aba93e )
### After - Sticky elements stack 😄
![image](https://github.com/Unleash/unleash/assets/14320932/c73a84ab-7133-448f-9df6-69bd4c5330c2 )
2023-10-19 15:50:37 +01:00
andreas-unleash
1335da6366
Feat: show disabled strategies in playground ( #5081 )
...
Show disabled strategies in separate list
Do not show any results in segments/constraints when disabled
Closes #
[1-1506](https://linear.app/unleash/issue/1-1506/display-disabled-strategies-in-playground-page )
![Screenshot 2023-10-18 at 13 13
48](https://github.com/Unleash/unleash/assets/104830839/ab788241-6593-42a2-aced-412b59e308c8 )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-19 16:50:50 +03:00
Nuno Góis
957546e305
refactor: rename message banners to banners ( #5098 )
...
https://linear.app/unleash/issue/2-1531/rename-message-banners-to-banners
This renames "message banners" to "banners".
I also added support for external banners coming from a `banner` flag
instead of only `messageBanner` flag, so we can eventually migrate to
the new one in the future if we want.
2023-10-19 13:18:25 +01:00
Thomas Heartman
8954277d20
chore(ui): add splash screen for oss segments ( #5053 )
...
This PR adds a splash screen for segments being open-sourced.
It looks like this:
![image](https://github.com/Unleash/unleash/assets/17786332/bf8766e6-b9cc-4f0b-a6d1-f6e89e21d844 )
## About the changes
I've more or less wholesale copied the demo dialog that @nunogois
implemented. I've put it in the `splash` directory for now (because
that's where it seemed most appropriate). The reason for straight
copying it instead of extending existing functionality is primarily that
this should be short-lived and deleted after the next release or so. So
isolating all the changes into a single directory seems like a good
idea.
## Discussion points
Because OSS installations don't connect to Unleash, we can't use feature
flags to control the rollout here. Instead, we must just assume that OSS
users will want to see it. If there is a better way we can control this,
that'd be great. I'd love to be able to use time constraints to not show
this after a certain date, for instance, but I don't think that's
something we can do right now?
The splash is also set to display on any page you're at when you first
load unleash. However, closing the dialog (either by closing or by
asking to see segments) will store that in localstorage, and you won't
be shown the dialog again.
---------
Co-authored-by: Nuno Góis <github@nunogois.com>
2023-10-19 08:28:14 +02:00
Nuno Góis
4a49cd5c74
feat: display internal message banners ( #5079 )
...
https://linear.app/unleash/issue/2-1511/adapt-internalmessagebanners-to-use-the-new-hooks-and-display-the
Adapts the `InternalMessageBanners` component to use the new hook and
display the internal message banners.
2023-10-18 20:00:45 +01:00
Nuno Góis
5456d1d985
feat: add message banner API hooks ( #5078 )
...
https://linear.app/unleash/issue/2-1510/create-message-banner-hooks-that-connect-to-the-new-api-endpoints
Adds new message banner API hooks that will allow us to do CRUD
operations for message banners in the UI.
2023-10-18 18:56:09 +01:00
Nuno Góis
ad7149f26f
refactor: move message banner interface to common file ( #5076 )
...
https://linear.app/unleash/issue/2-1527/set-up-message-banner-interfaces
Tiny refactor to move the message banner interface to its own file,
since it will be used in multiple places.
2023-10-18 10:32:19 +01:00
Jaanus Sellin
d6607373fa
feat: allow selection of text in strategies for contexts ( #5071 )
2023-10-18 09:55:19 +03:00
andreas-unleash
c5914a077f
chore: generate types ( #5074 )
...
Generate orval types
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-18 09:55:07 +03:00
Mateusz Kwasniewski
163545de8c
feat: warn about sdk update with feature dependencies ( #5065 )
2023-10-17 13:43:49 +02:00
Mateusz Kwasniewski
e9e110f702
feat: show dependencies only when using pro/enterprise or at least on… ( #5052 )
2023-10-16 20:56:06 +02:00
Nuno Góis
19a429c92f
fix: small adjustments on the new header icons ( #5043 )
...
Some small UI adjustments to the new header icons.
![image](https://github.com/Unleash/unleash/assets/14320932/39f711dd-520b-4eb1-ac79-fefc6a79aaf7 )
Co-authored-by: Nicolae <nicolae@getunleash.ai>
2023-10-16 12:25:27 +01:00
andreas-unleash
8561ba8df7
feat: add playground imrpovements flag ( #5045 )
...
Adds the playgroundImprovements flag
Close #
[1-1508](https://linear.app/unleash/issue/1-1508/add-playgroundimprovements-feature-flag )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-16 14:08:21 +03:00
Mateusz Kwasniewski
092ba2a625
feat: track add and remove dependencies ( #5041 )
2023-10-16 10:57:55 +02:00
Nuno Góis
6c21ed5f74
feat: make maintenance-related 503s more intuitive ( #5018 )
...
This makes maintenance-related 503s more intuitive on our UI by
mentioning that maintenance banner is currently enabled.
![image](https://github.com/Unleash/unleash/assets/14320932/43142c58-6b87-4b2d-9239-50f2bb1409e6 )
2023-10-16 09:27:29 +01:00
andreas-unleash
ff97dfd733
fix: use correct flag name ( #5026 )
...
Fixes a bug with using the wrong feature name
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-13 17:02:48 +03:00
Nuno Góis
9c047e0756
feat: adds a new design to the header icons ( #5025 )
...
After aligning with @nicolaesocaciu, adds a new, cleaner, more
consistent design to our header icons.
![image](https://github.com/Unleash/unleash/assets/14320932/a9f0eb93-ee1f-4e63-96c8-4b2ac11cfdab )
Co-authored-by: Nicolae <nicolae@getunleash.ai>
2023-10-13 14:31:07 +01:00
Nuno Góis
e663dc0960
fix: maintenance banner should show right away when toggled ( #5021 )
...
Makes the maintenance banner show right away when toggled. Includes some
misc cleaning up.
Co-authored-by: Nicolae <nicolae@getunleash.ai>
2023-10-13 14:30:50 +01:00
andreas-unleash
75fb7a0d93
feat: add a dialog when reviving / batch reviving features ( #4988 )
...
Adds a confirmation dialog when reviving features
Closes #
[SR-91](https://linear.app/unleash/issue/SR-91/reviving-a-feature-toggle-should-have-a-confirmation-dialog )
https://github.com/Unleash/unleash/assets/104830839/49e71590-fd66-4eb5-bd09-5eb322e3d1c9
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-13 16:28:36 +03:00
Mateusz Kwasniewski
19bc519e1b
feat: Verify archive dependent features UI ( #5024 )
2023-10-13 14:31:37 +02:00
Jaanus Sellin
c7a990e5a9
feat: header invite link tracking ( #5001 )
2023-10-13 14:57:20 +03:00
Nuno Góis
36ae842248
feat: make maintenance banner sticky ( #5016 )
...
After checking with @nicolaesocaciu we came to the conclusion that the
maintenance banner should be sticky.
Co-authored-by Nicolae <nicolae@getunleash.ai>
2023-10-13 10:29:01 +01:00
Nuno Góis
2adfb7bd15
fix: error icon, add only relevant variants ( #5014 )
...
https://linear.app/unleash/issue/2-1508/fix-message-banner-error-variant-icon
After aligning with @nicolaesocaciu, we fixed the `error` variant icon
and removed irrelevant message variants for now.
Co-authored-by: Nicolae <nicolae@getunleash.ai>
2023-10-12 16:29:19 +01:00
Nuno Góis
5f6c17f4bd
fix: message banner zIndex ( #5015 )
...
After aligning with @nicolaesocaciu, this fixes the message banner
zIndex.
Co-authored-by: Nicolae <nicolae@getunleash.ai>
2023-10-12 15:45:33 +01:00
Nuno Góis
d30e059ffc
fix: message banner internal link assumption ( #5011 )
...
https://linear.app/unleash/issue/2-1504/fix-message-banner-internal-link-assumption
Fixes the internal link assumption in message banner to
`.startsWith('/')` - Any other links will be treated as external (normal
`href`).
2023-10-12 15:07:55 +01:00
Nuno Góis
2ab2aa1f6d
feat: dynamic icons by adding material symbols font ( #5008 )
...
https://linear.app/unleash/issue/2-1502/add-support-for-custom-dynamic-icons-mui-icon-component
Adds support for custom dynamic icons by adding the [Material Symbols
Outlined font](https://fonts.google.com/icons ) and setting the MUI Icon
component base class. See:
https://mui.com/material-ui/icons/#icon-font-icons
Message banner use case: This will not only enable us to set custom
icons for external message banners, but will also let users configure
their desired icon from the set of options in the font.
2023-10-12 11:22:23 +01:00
Nuno Góis
742abab41e
feat: multiple external message banners ( #4998 )
...
https://linear.app/unleash/issue/2-1495/adapt-existing-message-banner-component-to-be-more-reusablegeneric
https://linear.app/unleash/issue/2-1496/add-support-for-multiple-external-message-banners
This PR does 2 things:
- Refactors the `MessageBanner` component to be more generic and
reusable, by accepting the message info through props;
- Adds support for multiple external message banners;
2023-10-11 13:42:05 +01:00
Nuno Góis
7d9698fffa
fix: missing uiFlag newInviteLink ( #5000 )
...
Adds a missing uiFlag: `newInviteLink`
2023-10-11 12:10:08 +00:00
Nuno Góis
c3575c7727
refactor: make uiFlags typesafe ( #4996 )
...
This should add some typesafety to our usage of uiFlags.
2023-10-11 12:44:54 +01:00
Jaanus Sellin
69286339fc
feat: make invite link more visible ( #4984 )
2023-10-11 14:31:32 +03:00
Nuno Góis
65f424156c
feat: re-order message banners ( #4995 )
...
https://linear.app/unleash/issue/2-1494/re-order-message-banners
- Re-orders message banners to fit into this logic:
>1. Maintenance banner
>2. External message banner(s) - Most likely coming from Unleash
>3. Internal message banner(s)
- Renames the feature flag to better reflect the feature behavior;
- Lays a basic skeleton structure for this new feature;
2023-10-11 11:55:54 +01:00
Nuno Góis
2222c47d10
feat: add internalMessageBanner feature flag ( #4990 )
...
https://linear.app/unleash/issue/2-1487/feature-flag-add-a-new-internalmessagebanner-feature-flag-for-this
Adds a new `internalMessageBanner` feature flag.
2023-10-10 20:03:59 +01:00
Mateusz Kwasniewski
2f84ac88e6
feat: delete dependnecy button through change request ( #4983 )
2023-10-10 14:38:10 +02:00
Mateusz Kwasniewski
af50fc2fd3
feat: visualize dependencies managment in change requests ( #4978 )
2023-10-10 10:36:13 +02:00
Mateusz Kwasniewski
b4c8f92a26
feat: do not allow to manage dependencies directly with cr enabled ( #4971 )
2023-10-10 09:25:03 +02:00
Mateusz Kwasniewski
ab739eb6c3
feat: Change request dependency UI ( #4966 )
2023-10-09 14:06:00 +02:00
Mateusz Kwasniewski
6b29b6c317
feat: orval types with change request for dependencies ( #4961 )
2023-10-09 11:52:41 +02:00
Mateusz Kwasniewski
d61ccb1f6b
fix: local linter did not find formatting error ( #4954 )
2023-10-06 10:45:29 +02:00
andreas-unleash
cb034976b9
fix: change broken link to groups documentation ( #4941 )
...
Replaces the broken groups documentation link
CLoses: #
[SR-75](https://linear.app/unleash/issue/SR-75/groups-documentation-link-broken )
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-06 10:29:27 +03:00
Mateusz Kwasniewski
80eb6e12c6
refactor: custom render should provide container ( #4938 )
2023-10-06 09:19:49 +02:00
Mateusz Kwasniewski
bed26a938c
test: playground with dependencies ( #4936 )
2023-10-06 09:19:25 +02:00
andreas-unleash
bf527cdbb0
fix: Remove the info from the variants page ( #4937 )
...
Remove the info from the variants page
Closes #
[UNL-231](https://linear.app/unleash/issue/UNL-231/remove-the-info-from-the-variants-page )
<img width="1408" alt="Screenshot 2023-10-05 at 15 11 33"
src="https://github.com/Unleash/unleash/assets/104830839/68bac945-af00-4c9b-ae6d-faeed92ec4bb ">
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-05 17:18:58 +03:00
andreas-unleash
bd008c821a
fix: remove console from FeatureToggleSwitch ( #4928 )
...
Removes missed console log from FeatureToggleSwitch
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-05 16:00:49 +03:00
Mateusz Kwasniewski
2c7587ba4b
feat: dependent features in playground ( #4930 )
2023-10-05 13:05:20 +02:00
andreas-unleash
630028acba
fix: linting ( #4925 )
...
Biome linting fix
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-04 15:59:39 +03:00
andreas-unleash
784d38c230
fix: ReportTable status column not updating ( #4924 )
...
Fixes a bug where the status and expiredAt columns where not updating
dynamically
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-04 12:27:11 +00:00
Mateusz Kwasniewski
257414424d
feat: copy feature with parent ( #4918 )
2023-10-04 12:20:27 +02:00
Mateusz Kwasniewski
5141d9db67
feat: change project with feature dependencies ( #4915 )
2023-10-04 12:16:52 +02:00
andreas-unleash
b07c032d56
fix: update potentially-stale status dynamically ( #4905 )
...
Fixes 2 bugs:
- project-health-service keeping the feature types as an instance
variable and only updating it once was preventing real calculation to
happen if the lifetime value changed for a feature toggle type
- the ui was reading from a predefined map for the lifetime values so
they would never reflect the BE change
Closes #
[SR-66](https://linear.app/unleash/issue/SR-66/slack-question-around-potentially-stale-and-its-uses )
<img width="1680" alt="Screenshot 2023-10-02 at 14 37 17"
src="https://github.com/Unleash/unleash/assets/104830839/7bee8d4a-9054-4214-a1a2-11ad8169c3d5 ">
<img width="1660" alt="Screenshot 2023-10-02 at 14 37 06"
src="https://github.com/Unleash/unleash/assets/104830839/23bf55c7-a380-4423-a732-205ad81d5c3c ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-04 12:47:16 +03:00
Gastón Fournier
bd8b54b5bd
fix: yarn lint:fix ( #4917 )
...
## About the changes
Running yarn lint:fix solves errors in frontend
2023-10-04 11:28:05 +02:00
andreas-unleash
c1f8929ddf
fix: separate project and project enterprise settings forms ( #4911 )
...
Separates ProjectForm and ProjectEnterpriseSettings forms
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
2023-10-04 10:42:02 +03:00
Mateusz Kwasniewski
88305a6388
feat: prevent delete and archive on parent feature ( #4913 )
2023-10-04 09:27:53 +02:00
Mateusz Kwasniewski
296cc9a9f2
feat: update dependency permission ( #4910 )
2023-10-04 09:27:14 +02:00
Nuno Góis
280e21f073
refactor: bubble promise instead of return await ( #4906 )
...
Tiny refactor that bubbles promises instead of using `return await`.
Should be more consistent with the rest of the changes in
https://github.com/Unleash/unleash/pull/4903
2023-10-02 13:59:53 +01:00
Nuno Góis
4167a60588
feat: biome lint frontend ( #4903 )
...
Follows up on https://github.com/Unleash/unleash/pull/4853 to add Biome
to the frontend as well.
![image](https://github.com/Unleash/unleash/assets/14320932/1906faf1-fc29-4172-a4d4-b2716d72cd65 )
Added a few `biome-ignore` to speed up the process but we may want to
check and fix them in the future.
2023-10-02 13:25:46 +01:00
Mateusz Kwasniewski
751bc465d6
feat: generate orval types with dependent features ( #4902 )
2023-10-02 12:35:20 +02:00
Mateusz Kwasniewski
40dfb927e9
feat: parent and child info in feature overview header ( #4901 )
2023-10-02 11:47:48 +02:00
Nuno Góis
521cc24a22
feat: add more events in integrations ( #4815 )
...
https://linear.app/unleash/issue/2-1253/add-support-for-more-events-in-the-slack-app-integration
Adds support for a lot more events in our integrations. Here is how the
full list looks like:
- ADDON_CONFIG_CREATED
- ADDON_CONFIG_DELETED
- ADDON_CONFIG_UPDATED
- API_TOKEN_CREATED
- API_TOKEN_DELETED
- CHANGE_ADDED
- CHANGE_DISCARDED
- CHANGE_EDITED
- CHANGE_REQUEST_APPLIED
- CHANGE_REQUEST_APPROVAL_ADDED
- CHANGE_REQUEST_APPROVED
- CHANGE_REQUEST_CANCELLED
- CHANGE_REQUEST_CREATED
- CHANGE_REQUEST_DISCARDED
- CHANGE_REQUEST_REJECTED
- CHANGE_REQUEST_SENT_TO_REVIEW
- CONTEXT_FIELD_CREATED
- CONTEXT_FIELD_DELETED
- CONTEXT_FIELD_UPDATED
- FEATURE_ARCHIVED
- FEATURE_CREATED
- FEATURE_DELETED
- FEATURE_ENVIRONMENT_DISABLED
- FEATURE_ENVIRONMENT_ENABLED
- FEATURE_ENVIRONMENT_VARIANTS_UPDATED
- FEATURE_METADATA_UPDATED
- FEATURE_POTENTIALLY_STALE_ON
- FEATURE_PROJECT_CHANGE
- FEATURE_REVIVED
- FEATURE_STALE_OFF
- FEATURE_STALE_ON
- FEATURE_STRATEGY_ADD
- FEATURE_STRATEGY_REMOVE
- FEATURE_STRATEGY_UPDATE
- FEATURE_TAGGED
- FEATURE_UNTAGGED
- GROUP_CREATED
- GROUP_DELETED
- GROUP_UPDATED
- PROJECT_CREATED
- PROJECT_DELETED
- SEGMENT_CREATED
- SEGMENT_DELETED
- SEGMENT_UPDATED
- SERVICE_ACCOUNT_CREATED
- SERVICE_ACCOUNT_DELETED
- SERVICE_ACCOUNT_UPDATED
- USER_CREATED
- USER_DELETED
- USER_UPDATED
I added the events that I thought were relevant based on my own
discretion. Know of any event we should add? Let me know and I'll add it
🙂
For now I only added these events to the new Slack App integration, but
we can add them to the other integrations as well since they are now
supported.
The event formatter was refactored and changed quite a bit in order to
make it easier to maintain and add new events in the future. As a
result, events are now posted with different text. Do we consider this a
breaking change? If so, I can keep the old event formatter around,
create a new one and only use it for the new Slack App integration.
I noticed we don't have good 404 behaviors in the UI for things that are
deleted in the meantime, that's why I avoided some links to specific
resources (like feature strategies, integration configurations, etc),
but we could add them later if we improve this.
This PR also tries to add some consistency to the the way we log events.
2023-09-29 16:11:59 +01:00
Mateusz Kwasniewski
fbc571dffc
feat: events for dependencies ( #4864 )
2023-09-29 14:02:15 +02:00
Mateusz Kwasniewski
011aea226c
feat: edit and delete dependencies menu ( #4863 )
2023-09-29 10:03:17 +02:00
Nuno Góis
3cf8761364
fix: permissions in the role payload ( #4861 )
...
Fixes the role payload to include only the needed properties from
permissions. Fixes `400` (oneOf schema validation error) in project role
creation.
2023-09-28 15:55:46 +01:00
Mateusz Kwasniewski
72cca4f450
feat: display dependencies and parents in project details ( #4859 )
2023-09-28 13:37:52 +02:00
Fredrik Strand Oseberg
d3e01d84d9
fix: account for array length ( #4849 )
...
Small fix to account for array length in conditional check
2023-09-27 15:12:01 +02:00
Tymoteusz Czech
f82ae354eb
fix: project features table initial state ( #4843 )
...
When loading don't keep initial state, but recalculate if after proper
data is present. (issue 1-1432)
2023-09-27 08:37:25 +00:00
Mateusz Kwasniewski
6f4f6f049b
feat: inject project id to dependencies hooks ( #4839 )
2023-09-27 10:09:38 +02:00
Mateusz Kwasniewski
40b9c46018
fix: empty object playground ( #4842 )
2023-09-27 10:01:03 +02:00
Shreyans Gandhi
e6cdf5a540
feat: add json editor ( #4784 )
...
In this PR we are adding a JSON Editor that will be used for `json`
variant payload type. Its using `vanilla-jsoneditor` package
https://www.npmjs.com/package/vanilla-jsoneditor and is lazy loaded only
when the `json` payload type is selected in the dropdown UI.
2023-09-27 09:27:38 +02:00
Mateusz Kwasniewski
889377a246
feat: show available parent dependency options ( #4837 )
2023-09-27 08:10:15 +02:00
Fredrik Strand Oseberg
6d5eec2810
fix: change check for slider ( #4838 )
...
Change the check for when to display the variant preview
2023-09-26 19:12:32 +02:00
Mateusz Kwasniewski
45aca5b09e
feat: Connect add dependency api ( #4831 )
2023-09-26 11:18:42 +02:00
andreas-unleash
e7b1e7979e
Feat: add prod guard when toggling envs ( #4774 )
...
Adds the prod guard dialog when enabling/disabling production
environment
Closes # [1-1386]
(https://linear.app/unleash/issue/1-1386/production-guard-modal-for-enablingdisabling-environment-is-gone )
https://github.com/Unleash/unleash/assets/104830839/0041bfc8-872b-455c-b4fa-e03cc160c3e9
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-09-26 12:16:26 +03:00
Mateusz Kwasniewski
2b9678266c
feat: Add dependency dialogue ( #4828 )
2023-09-26 09:38:13 +02:00
Mateusz Kwasniewski
a9805b312b
feat: Delete dependency api ( #4824 )
2023-09-25 15:50:05 +02:00
Jaanus Sellin
2bf995e731
feat: context/segment usage private ( #4826 )
2023-09-25 15:50:44 +03:00
Nuno Góis
b9946ee35c
docs: Unleash Slack App integration ( #4801 )
...
https://linear.app/unleash/issue/2-1235/docs-slack-app-integration-documentation
This adds a new reference doc for the new Unleash Slack App integration
and marks the previous Slack integration as deprecated.
As a side-effect this PR also fixes an issue where we wouldn't be able
to delete tags with special characters.
---------
Co-authored-by: David Leek <david@getunleash.io>
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-09-22 23:19:17 +01:00
Fredrik Strand Oseberg
cefbf01934
feat: visualize feature variants on cr ( #4809 )
...
Adds a view over feature strategy variants on addStrategy or
editStrategy action
2023-09-22 16:17:41 +02:00
Mateusz Kwasniewski
b4742df8be
feat: UI stub for adding dependent features ( #4814 )
2023-09-22 11:26:45 +02:00
Fredrik Strand Oseberg
6884f9cdc9
feat: strategy variants on strategy overview ( #4776 )
...
Refactors the breakdown of feature variants per strategy on the
environment overview level:
2023-09-21 14:28:45 +02:00
Simon Hornby
b1234fb89c
fix: force permissions export to only be enterprise in ui ( #4760 )
2023-09-21 11:12:20 +02:00
Tymoteusz Czech
18f7d0f9e1
Remove integrationsRework flag ( #4770 )
...
https://linear.app/unleash/issue/1-1359/remove-integrationsrework-flag
2023-09-20 16:27:40 +02:00
Nuno Góis
39b0c089d1
feat: simpler integration filters ( #4766 )
...
https://linear.app/unleash/issue/2-1407/remove-the-all-checkboxes-from-project-and-environment-filters
Simplifies integration event filters by removing the "ALL" checkboxes
from these components. Whether you opted to check the "ALL" checkbox, or
not to filter at all, the result is the same - The selected options
would act as a filter.
Includes some refactoring and clean up.
![image](https://github.com/Unleash/unleash/assets/14320932/2e30c5c5-12e1-4bc6-bd4a-8be4226d625d )
2023-09-20 09:21:30 +01:00
Jaanus Sellin
e3ee050e80
chore: remove project select ( #4768 )
2023-09-20 08:55:30 +03:00
Ivar Conradi Østhus
013efac46b
feat: open-source segments 🚀 ( #4690 )
...
We love all open-source Unleash users. in 2022 we built the [segment
capability](https://docs.getunleash.io/reference/segments ) (v4.13) as an
enterprise feature, simplify life for our customers.
Now it is time to contribute it to the world 🌏
---------
Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2023-09-19 11:24:26 +00:00
David Leek
bff1bd1026
feat: implement optional json payload and template ( #4752 )
...
## About the changes
Adds optional support for specifying JSON templates for datadog message
payload
![image](https://github.com/Unleash/unleash/assets/707867/eb7c838a-7abf-441e-972e-ddd7ada07efa )
### 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? -->
`frontend/src/component/integrations/IntegrationForm/IntegrationParameters/IntegrationParameter/IntegrationParameterEnableWithDropdown.tsx`
- a new component comprising of a text field and a dropdown menu
`src/lib/addons/datadog.ts` - Where the integration is taking place
## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->
- Should I have implemented the new component type as a specifiable
addon parameter type in definitions? Felt a bit YAGNI/Premature
- Would like input on naming and the new component etc
2023-09-19 13:08:10 +02:00
Mateusz Kwasniewski
4484615321
fix: prevent blur when selecting text ( #4762 )
2023-09-18 14:42:41 +02:00
andreas-unleash
a50a483d0c
fix: rename Push to Environment button ( #4759 )
...
Rename to `Copy to Environment`
Closes #
[1-1388](https://linear.app/unleash/issue/1-1388/update-the-text-for-the-button-push-to-environment-from-variants )
<img width="1423" alt="Screenshot 2023-09-18 at 13 46 57"
src="https://github.com/Unleash/unleash/assets/104830839/c66747e5-a52a-4643-9274-51b72baf9f61 ">
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-09-18 14:43:13 +03:00
Nuno Góis
055cf15262
fix: misc integration-related fixes and improvements ( #4754 )
...
https://linear.app/unleash/issue/2-1401/misc-fixes-and-improvements-related-to-the-new-slack-app-integration
This includes multiple UI-related misc fixes and improvements that are
not only related with the new Slack App integration but also
integrations in general.
- Improves the styling in the "how does it work" section;
- Improves the text in the `IntegrationMultiSelector`s;
- Switches "Configure" and "Open" around to match designs;
- Properly handles click event on `IntegrationCardMenu` (fix navigation
on dialog click);
- Fixes titles and contents for "enable/disable" and "delete"
integration dialogs to match designs;
- Updates Slack App integration "how does it work" section to better
reflect the intended behavior;
- Removes redundant alerts after previous point;
- Adds an alert in the old Slack integration configuration warning of
its deprecation and suggesting the new Slack App integration instead;
- Fixes typos;
- Slight refactors;
![image](https://github.com/Unleash/unleash/assets/14320932/17b09742-f00b-4be2-829f-8248ffe67996 )
Co-authored by @nicolaesocaciu
2023-09-15 14:50:59 +01:00
Fredrik Strand Oseberg
387f48617d
fix: round dora metrics ( #4755 )
...
* Small change to round numbers in a table
2023-09-15 14:36:35 +02:00
Thomas Heartman
d838b5f2c3
1-1385: hide display of pattern info behind a flag ( #4744 )
...
Previously, the front end would show info about the pattern if it
exists, regardless of whether the feature is active or not. The
pattern wouldn't be enforced, but it's confusing anyway, so let's hide
it.
2023-09-15 10:43:56 +00:00
Thomas Heartman
a96110eb36
fix: point to useUiFlag
instead of useUiFlags
( #4748 )
...
I was a little confused because I couldn't find `useUiFlags` in the
codebase.
2023-09-15 12:31:48 +02:00
Simon Hornby
7843c93dc5
feat: add a button to download user access information ( #4746 )
2023-09-15 11:51:29 +02:00
andreas-unleash
f9bca20c78
Feat/project private mode ( #4743 )
...
Adds `private` option to project mode
Update schemas and models to accept and persist
Closes #
[1-1366](https://linear.app/unleash/issue/1-1366/introduce-private-in-collaboration-mode )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-09-15 11:01:25 +03:00
andreas-unleash
be2fa68a9a
fix: Variant type number duplicate options ( #4719 )
...
Fixes a bug where the `number` option was shown multiple times
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-09-14 17:02:05 +03:00
Tymoteusz Czech
257013c56a
fix: integration multiselector ( #4683 )
...
Input should use state set outside and derive "all selected" from it.
This was not the case causing issues when loading a form with "wildcard"
pre-selected.
2023-09-14 14:01:40 +02:00
Tymoteusz Czech
e8d5f0cf56
fix: integrations text review ( #4706 )
...
## About the changes
Update copy
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-09-14 12:01:29 +00:00
Mateusz Kwasniewski
878780f068
feat: playground custom properties are nested ( #4686 )
2023-09-14 12:28:28 +02:00
Tymoteusz Czech
66c790fbf1
fix: Integrations quality updates ( #4677 )
...
Fix issues uncovered when reviewing integrations list and form.
- YouTube CSP
- Text content and formatting
- Margins
- Update old integration icons
- Fix headers in dark theme
2023-09-14 10:17:33 +02:00
Thomas Heartman
9bdee12ad9
feat: stop regexes with whitespace ( #4681 )
...
This PR stops regexes with whitespace from being added as feature naming
patterns.
2023-09-14 07:56:23 +00:00
Thomas Heartman
ab4c1e0193
feat: add feature naming pattern tracking ( #4678 )
...
This PR adds plausible metrics for feature naming patterns. The changes
are tracked whenever the form is submitted and the naming pattern has
changed. We track three different actions:
- added :: if there was no pattern before and now there is one
- removed :: if there was a pattern before and now there is none
- changed :: if there was a pattern before and now there is a different
one
The corresponding event type has been created in plausible.
2023-09-14 09:32:15 +02:00
Thomas Heartman
7eb00758e0
refactor: simplify flag naming tooltip ( #4685 )
...
This PR simplifies the flag naming tooltip considerably. It now only
contains an example of a pattern and what it will match. It also updates
the link in the form section description to point directly to a regex
cheat sheet instead of a general regex reference document.
There's a few reasons for doing this:
1. The text preceding the input already explains what the pattern does
and explains that it is a regex.
2. The text preceding the input also contains a link to a regex cheat
sheet (which is arguably a better place to explain regexes than a
tooltip).
3. The tooltip was very long. While a lot of the information there was
useful, it would also be hard to use. Imagine a user checking the
tooltip, scrolling all the way down, but accidentally moving the mouse a
bit and the tooltip disappearing. They would have to scroll all the way
down again. Or maybe they need to remember what it was they just looked
at. It would be more useful to have the information on a separate page.
4. The tooltip is not accessible by keyboard. This means that users who
use a keyboard to navigate the UI would not be able to scroll or
otherwise navigate the tooltip, potentially leaving them in the dark.
![image](https://github.com/Unleash/unleash/assets/17786332/88a74ad9-181a-44ba-9eb9-4818c081442f )
2023-09-14 08:09:01 +02:00
Fredrik Strand Oseberg
78273e4ff3
chore: dora cleanup ( #4676 )
...
This PR adds:
* Generated types for useProjectDoraMetrics
* Mobile enhancements
* Tooltips
---------
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-09-13 15:50:42 +02:00
andreas-unleash
8b452084f3
fix: validation for variant payload number type ( #4671 )
...
Adds validation to number type for variants
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-09-13 10:23:39 +03:00
Nuno Góis
4de8ea2553
fix: post global events even when filtering by env ( #4672 )
...
https://linear.app/unleash/issue/2-1276/deal-with-events-without-an-environment
This makes it so that global events (events not tied to a specific
environment) are always received, no matter the configured environment
filter.
It also includes a respective test and small sentence on the UI
explaining the behavior.
![image](https://github.com/Unleash/unleash/assets/14320932/021a3622-78fe-45af-b68c-dde0813f32f0 )
2023-09-13 08:22:18 +01:00
Thomas Heartman
43878230b7
UI: make project settings / creation form full-width ( #4675 )
...
This PR makes the project settings / creation forms grow to take up the
full available width, so that it is in line with the new designs.
2023-09-13 06:38:18 +00:00
Thomas Heartman
f49cc8cd33
feat: update UI to add hints about implicit ^ and $ ( #4667 )
...
This PR updates the UI to reflect the changes to the implicit ^ and $
that we now add. The changes are:
1. Show input adornments for ^ and $ when you create a pattern.
2. Mention that ^ and $ are added implicitly in description.
3. Checks the example you provide against the pattern with added ^ and $
+ adds a test for that.
Points 1 and 2:
![image](https://github.com/Unleash/unleash/assets/17786332/88c610b4-444b-4a83-a50a-4b7639614a86 )
## Discussion point:
I have not touched the information about the pattern yet as the PR that
updates that is still in review (#4656 ), but it would be prudent to also
update that info to make it clearer. I can address that in a follow-up
PR.
2023-09-13 06:22:55 +00:00
Thomas Heartman
03d6ed0c32
ui: update design for feature naming pattern info ( #4656 )
...
This PR updates the design for the feature naming pattern info. In doing
so, I've extracted the information into a single component.
It also, on @nicolaesocaciu's behest, makes the new toggle form inputs
wider when they have room to grow.
Light mode:
![image](https://github.com/Unleash/unleash/assets/17786332/0923cf95-18e3-4524-8402-7f42a0ac94ec )
Dark mode:
![image](https://github.com/Unleash/unleash/assets/17786332/c2a07f73-8973-42d0-b94a-d7dc4ec38a25 )
For copying features it looks like this:
![image](https://github.com/Unleash/unleash/assets/17786332/2a39f17b-4d86-408c-8f3b-5f2b24e82c81 )
2023-09-13 08:05:58 +02:00
Tymoteusz Czech
ed6547b6f1
fix: integrations UI ( #4670 )
...
## About the changes
UI adjustments - text, spacing
Co-authored-by: NicolaeUnleash <103567375+NicolaeUnleash@users.noreply.github.com>
2023-09-12 15:45:51 +03:00
Tymoteusz Czech
dbaa386697
feat: Edge integration page ( #4657 )
...
## About the changes
![image](https://github.com/Unleash/unleash/assets/2625371/6f4dcf7f-c3cf-45a2-9525-2965c31b6d89 )
2023-09-12 14:25:38 +02:00
Jaanus Sellin
980461ef18
feat: hide project settings for OSS ( #4662 )
2023-09-12 09:39:55 +03:00
andreas-unleash
1cd0edb11a
feat: variant with number payload ( #4654 )
...
Adds `number` as possible payload type for variant.
Adds a flag to enable the feature
Updates all relevant models and schemas
Adds the option to the UI
Closes: #
[1-1357](https://linear.app/unleash/issue/1-1357/support-number-in-variant-payload )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-09-11 16:57:42 +03:00
Tymoteusz Czech
f88e15c45c
Fix: integrations form ( #4655 )
...
## About the changes
Fix submitting integrations form
2023-09-11 12:26:40 +00:00
Mateusz Kwasniewski
ba73d9a0d1
feat: keyboard navigation in search ( #4651 )
2023-09-11 12:53:31 +02:00
Jaanus Sellin
77fbac01e4
feat: remove newApplicationsList feature flag ( #4653 )
2023-09-11 12:28:43 +02:00
Tymoteusz Czech
a9ac81a089
feat: useUiFlag shorthand hook ( #4566 )
...
## About the changes
Instead of this:
```ts
const { uiConfig } = useUiConfig();
const myFlag = Boolean(uiConfig?.flags?.myFlag)
```
we can have this:
```ts
const myFlag = useUiFlag("myFlag")
```
With the same type safety, less verbose and more purposeful code.
### Important files
- `frontend/src/hooks/useUiFlag.ts`
## Discussion points
Can we in the future share flags between frontend and backend? Right now
adding a new flag has to be done in 4 different places (backend flag
keys list, backend flags defaults config, backend experimental server
options, frontend type).
Most ergonomic option is to pull config directly from Unleash.
Issue, based on previous user feedback:
https://github.com/Unleash/unleash/issues/4565
Internal feature request document:
[docs.google.com/document/d/1Sx0q...](https://docs.google.com/document/d/1Sx0qKZXUVUCjuY5F4MOh1ieOM1A2_jE58zEA7jaM_1g/edit?usp=sharing )
2023-09-11 10:01:20 +02:00
Fredrik Strand Oseberg
26ade79d66
Fix/dora polish ( #4645 )
...
This PR includes:
* Tests for retrieving lead time per feature toggle and project average
* Feedback component
2023-09-08 14:18:58 +02:00
Jaanus Sellin
0b5a7b7d36
feat: add plausible to integrations ( #4647 )
2023-09-08 15:01:12 +03:00
Nuno Góis
61174a1d9c
fix: multi project roles UI improvements ( #4646 )
...
https://linear.app/unleash/issue/2-1373/small-ui-fixes-and-improvements
- Update group root role `HelpIcon` tooltip to reflect the new behavior;
- Fixes a crash on groups search where `description` could be
`undefined`;
- Improves `RoleDescription` design;
- Fixes the role label in `ProjectGroupView`;
![image](https://github.com/Unleash/unleash/assets/14320932/f16ebe98-9408-4edd-8e2b-1e56ba2ad5c6 )
2023-09-08 11:42:58 +01:00
Tymoteusz Czech
b835efc0ad
feat: edge integrations page ( #4639 )
2023-09-08 10:49:30 +02:00
Tymoteusz Czech
042e8d097a
feat: link to request integration ( #4634 )
...
## About the changes
![image](https://github.com/Unleash/unleash/assets/2625371/5c0852d2-28cf-4272-8892-e36de782ab61 )
https://linear.app/unleash/issue/1-1343/request-integration
2023-09-08 11:46:27 +03:00
Tymoteusz Czech
dff0420ca8
feat: proxy and edge integration cards ( #4636 )
2023-09-08 10:45:37 +02:00
Jaanus Sellin
c59b83b07b
feat: integration urls, ux ( #4640 )
2023-09-08 10:21:11 +03:00