Thomas Heartman
e2b90ae91d
fix: add workaround for tooltip ( #7649 )
...
This PR adds the UI part of feature flag collaborators. Collaborators are hidden on windows smaller than size XL because we're not sure how to deal with them in those cases yet.
2024-07-24 09:33:29 +00:00
Thomas Heartman
e43109a2cb
fix: prevent long names from breaking form layouts ( #7591 )
...
This PR fixes a couple instances where long resource names would break
form and input layouts.
I've added comments to the various files to explain what they're doing
and why.
## Discussion point:
I've now set the width of project selector to be as narrow as it can
with wrapped text. In the main interfaces, it's much better, but on the
page where you can move a flag, it is quite narrow. However, I still
think it's better (no chance of it being wider than the whole screen).
We might want to find another way, but regardless, it'll only show up
with real edge cases.
## Fixes (screenies)
### API token creation form
**Files**:
- `frontend/src/component/common/FormTemplate/FormTemplate.styles.ts`
- `frontend/src/component/common/FormTemplate/FormTemplate.tsx`
Before:

After:

### New feature flag form
**Files**:
- `frontend/src/component/common/GeneralSelect/GeneralSelect.tsx`
Before:

After:

### Project select popover
**Files**
- `frontend/src/component/common/GeneralSelect/GeneralSelect.tsx`
-
`frontend/src/component/feature/FeatureView/FeatureSettings/FeatureSettingsProject/FeatureProjectSelect/FeatureProjectSelect.tsx`
Before:

After:

But also:

2024-07-16 10:47:46 +02:00
Mateusz Kwasniewski
963d051632
feat: Limit environments component ( #7548 )
2024-07-05 13:03:51 +02:00
Mateusz Kwasniewski
cad8a3c2df
feat: limit component used in strategies ( #7542 )
2024-07-05 09:09:28 +02:00
Mateusz Kwasniewski
3525928fea
feat: configurable strategies limit ( #7488 )
2024-07-01 10:03:26 +02:00
Mateusz Kwasniewski
5bd32f264d
feat: strategy limit to 30 ( #7473 )
2024-06-28 11:18:44 +02:00
Tymoteusz Czech
083273b49b
fix: prevent strategy variant weight from going into negative numbers on Frontend ( #7460 )
...
Added validation if sum goes over 100%. Remaining split is never negative
2024-06-27 09:06:59 +00:00
Mateusz Kwasniewski
7e5ce08ea8
fix: long project name display ( #7435 )
2024-06-25 12:22:03 +02:00
Mateusz Kwasniewski
7e565760f6
fix: lifecycle button permissions ( #7395 )
2024-06-14 10:26:54 +02:00
Tymoteusz Czech
582b33e121
Feat: feature view created by field - frontend ( #7382 )
...
add "Created by:" to feature overview meta and align other items
2024-06-13 13:00:57 +02:00
Jaanus Sellin
3acb3ad2c2
feat: upgrade from react v17 to v18 ( #7265 )
...
**Upgrade to React v18 for Unleash v6. Here's why I think it's a good
time to do it:**
- Command Bar project: We've begun work on the command bar project, and
there's a fantastic library we want to use. However, it requires React
v18 support.
- Straightforward Upgrade: I took a look at the upgrade guide
https://react.dev/blog/2022/03/08/react-18-upgrade-guide and it seems
fairly straightforward. In fact, I was able to get React v18 running
with minimal changes in just 10 minutes!
- Dropping IE Support: React v18 no longer supports Internet Explorer
(IE), which is no longer supported by Microsoft as of June 15, 2022.
Upgrading to v18 in v6 would be a good way to align with this change.
TS updates:
* FC children has to be explicit:
https://stackoverflow.com/questions/71788254/react-18-typescript-children-fc
* forcing version 18 types in resolutions:
https://sentry.io/answers/type-is-not-assignable-to-type-reactnode/
Test updates:
* fixing SWR issue that we have always had but it manifests more in new
React (https://github.com/vercel/swr/issues/2373 )
---------
Co-authored-by: kwasniew <kwasniewski.mateusz@gmail.com>
2024-06-11 13:59:52 +03:00
Thomas Heartman
3039fc3d59
fix: trying to create a tag that's too short gives errors ( #7269 )
...
1. Only suggest to create a tag value if the input is more than two
characters after trimming.
2. Ignore trailing and leading whitespace when considering which
autocomplete options to show
2024-06-05 08:47:50 +02:00
Thomas Heartman
257cd5513f
fix: display previously selected tags in dialog ( #7271 )
...
When opening a dialog where there's previously selected tags, also
render the previously selected tags.
This is consistent with how we do it for bulk tags.
So instead of showing this when you open the tag manager on a flag with
existing tags:

We show this:

2024-06-05 08:13:16 +02:00
Christopher Kolstad
0db5bc193f
task: upgraded semver dependency (and biome) ( #7272 )
...
Sorry for the extra noise here, but this seems to be the biome upgrade
altering formatting slightly.
2024-06-04 15:01:43 +02:00
Mateusz Kwasniewski
7021763973
feat: explain stickiness ( #7248 )
2024-06-03 13:54:06 +02:00
Mateusz Kwasniewski
95f5f7a20b
feat: Recent flags ( #7211 )
2024-05-29 16:01:52 +02:00
Simon Hornby
f16f8594f5
chore: deprecate custom strategies ( #7186 )
2024-05-28 12:33:53 +02:00
Jaanus Sellin
b3dd460d2f
chore: rename toggle to flag #7 ( #7125 )
2024-05-23 13:19:49 +03:00
Jaanus Sellin
2fb95339ef
chore: change toggle to flag #3 ( #7101 )
2024-05-22 09:58:53 +03:00
Jaanus Sellin
8542cafc9f
chore: rename toggle to flag #2 ( #7097 )
2024-05-22 08:20:11 +03:00
Mateusz Kwasniewski
ce67c4d944
fix: no requests before project loaded ( #7096 )
2024-05-21 15:54:09 +02:00
Jaanus Sellin
8897f2ea75
chore: rename toggle to flag #1 ( #7092 )
...
Rename feature toggle to feature flag in the UI and code.
Starting with low hanging fruits.
Trying to keep these ~100 LoC.
2024-05-21 15:18:00 +03:00
Mateusz Kwasniewski
8a6daeee1e
refactor: replace useProject with useProjectOverview ( #7087 )
2024-05-20 15:15:24 +02:00
Mateusz Kwasniewski
08e05141f3
chore: remove e2e tests for legacy env variants ( #7071 )
2024-05-17 10:55:22 +02:00
Mateusz Kwasniewski
88e3b1b79e
feat: deprecate feature toggle variants at environment level ( #7058 )
2024-05-16 10:57:32 +02:00
Mateusz Kwasniewski
701c845f09
feat: uncomplete tracking ( #7053 )
2024-05-14 15:04:31 +02:00
Mateusz Kwasniewski
b2b8d94617
feat: lifecycle column extracted ( #7049 )
2024-05-14 09:24:54 +02:00
Mateusz Kwasniewski
56f2dd658e
feat: track complete event ( #7047 )
2024-05-13 14:51:28 +02:00
Mateusz Kwasniewski
dfc065500d
feat: kept and discarded read model ( #7045 )
2024-05-13 14:24:31 +02:00
Jaanus Sellin
4241e36819
fix: lifecycle improvements/fixes ( #7044 )
...
1. Now completed modal works from project view
2. Changed text for modal
3. Now variant selection will only appear if there are any variants
2024-05-13 13:41:36 +03:00
Mateusz Kwasniewski
56ae53a4da
feat: pre-live should include disabled prod ( #7031 )
2024-05-10 13:53:01 +02:00
Mateusz Kwasniewski
60a67d4775
fix: Adjust meta data icons ( #7026 )
2024-05-10 11:46:32 +02:00
Jaanus Sellin
3f983d061a
feat: mark completed ui selector ( #7025 )
...

2024-05-09 16:55:09 +03:00
Mateusz Kwasniewski
3fc7714e78
feat: Lifecycle in project overview ( #7024 )
2024-05-09 13:38:18 +02:00
Mateusz Kwasniewski
476959df8e
refactor: extract feature lifecycle component ( #7023 )
2024-05-09 12:19:24 +02:00
Ivar Conradi Østhus
ea9a232acc
fix: removed dupliacted component ( #7013 )
2024-05-08 14:44:21 +02:00
Ivar Conradi Østhus
64c10f9eff
poc: many strategies pagination ( #7011 )
...
This fixes the case when a customer have thousands of strategies causing
the react UI to crash. We still consider it incorrect to use that amount
of strategies and this is more a workaround to help the customer out of
a crashing state.
We put it behind a flag called `manyStrategiesPagination` and plan to
only enable it for the customer in trouble.
2024-05-08 14:20:51 +02:00
Jaanus Sellin
81439d23f3
feat: lifecycle is now navigatable by tab ( #7005 )
...

2024-05-08 15:19:12 +03:00
Mateusz Kwasniewski
f6e85171d9
feat: completed stage lists all environments ( #7007 )
2024-05-08 14:16:10 +02:00
Jaanus Sellin
b69c294272
feat: pass metrics to feature component ( #6994 )
...

2024-05-07 11:52:38 +03:00
Mateusz Kwasniewski
a45be8d10c
test: move tests from cypress to rtl ( #6987 )
2024-05-07 09:03:40 +02:00
Jaanus Sellin
233b882c7b
feat: merge feature toggle details with feature meta info box ( #6977 )
...

---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: andreas-unleash <andreas@getunleash.ai>
2024-05-06 12:17:54 +03:00
Tymoteusz Czech
b6865a5a9d
feat: Project owners UI ( #6949 )
...
---------
Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2024-04-29 11:51:44 +02:00
Jaanus Sellin
9f6badf5df
feat: add ui test for mark completed button ( #6953 )
...
Co-authored-by: kwasniew <kwasniewski.mateusz@gmail.com>
2024-04-26 14:31:20 +02:00
Jaanus Sellin
7022ce8afb
feat: rever to live connected to backend ( #6951 )
...


2024-04-26 13:43:38 +03:00
Jaanus Sellin
7d01dbb748
feat: feature completed connected to backend ( #6947 )
...
Connects feature complete to backend
2024-04-26 12:20:34 +03:00
Mateusz Kwasniewski
675e1a9f8b
feat: archive feature from lifecycle ( #6938 )
2024-04-26 09:29:07 +02:00
Mateusz Kwasniewski
19055b1e33
test: lifecycle tooltip ( #6932 )
2024-04-25 15:22:59 +02:00
Mateusz Kwasniewski
0eaf725e82
feat: lifecycle stage dates ( #6926 )
2024-04-25 13:30:00 +02:00
Mateusz Kwasniewski
44521c1c74
chore: remove variant dependencies flag ( #6896 )
2024-04-25 11:07:16 +02:00