1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-18 11:14:57 +02:00
unleash.unleash/frontend/src/component
Thomas Heartman c72f39bb4f
chore: make operator checking more ergonomic and type-ful (#9932)
This is a helper PR for a refactor I'm working on for the new constraint
inputs. In the refactoring, it's useful to have individual subtypes for
the various subgroups of operators and to be able to easily assert
whether something is X operator or not.

The only change required in the code base is a single check for
operators, which is now handled by using the new `isXOperator` functions
instead.

Yes, the operator file in constants now includes functions, but it
seemed useful to put the identification functions there instead of
somewhere unrelated. The tests are primarily to ensure that the
identifier function works, and I'd be happy to remove them if we think
it's necessary. That said, they're pretty simple unit tests, so I think
it's fine to leave them.

The main bulk of the change is: removing the explicit `: Operator[]`
typing to the various sub-sets of operators and instead adding explicit
types. Additionally, there's the new identifier functions.
2025-05-08 14:10:57 +02:00
..
admin chore: use tokenname instead of username in frontend for api-token creation (#9891) 2025-05-08 09:20:19 +02:00
application feat: show backend and frontend sdks separately (#9857) 2025-04-29 10:36:02 +02:00
archive
banners feat: only admin can fetch license (#9697) 2025-04-03 16:26:36 +02:00
changeRequest refactor: remove flagOverviewRedesign flag (#9888) 2025-05-06 10:25:57 +02:00
commandBar chore: clean up adminNavUI flag (#9907) 2025-05-06 14:59:07 +02:00
common chore: make operator checking more ergonomic and type-ful (#9932) 2025-05-08 14:10:57 +02:00
context fix: save context button spacing (#9059) 2025-01-03 15:01:46 +01:00
demo chore: remove demo plans dialog (#9816) 2025-04-23 08:55:49 +01:00
environments chore: use tokenname instead of username in frontend for api-token creation (#9891) 2025-05-08 09:20:19 +02:00
events fix: linter rule for hooks (#9660) 2025-04-01 14:33:17 +02:00
feature feat: edit link UI (#9926) 2025-05-08 10:25:47 +02:00
featureTypes Fix: lifetime API command doesn't update. (#9685) 2025-04-02 15:35:29 +02:00
feedback chore: remove uiGlobalFontSize flag (#9331) 2025-02-26 12:39:53 +01:00
feedbackNew
filter feat: adjust filter UI (#9720) 2025-04-08 14:32:30 +02:00
insights feat: adjust filter UI (#9720) 2025-04-08 14:32:30 +02:00
integrations chore: add terraform to integrations (#9827) 2025-04-23 16:11:18 +01:00
layout chore(1-3639): constraint validation (#9909) 2025-05-06 15:21:33 +02:00
loginHistory feat: read logs and update cors maintenance root-role permissions (#8996) 2025-01-08 10:03:40 +01:00
maintenance
menu chore: remove disable notifications UI (#9814) 2025-04-22 15:03:15 +02:00
onboarding chore: use tokenname instead of username in frontend for api-token creation (#9891) 2025-05-08 09:20:19 +02:00
personalDashboard Fix(1-3564)/hide project owner if system (#9686) 2025-04-03 10:43:58 +02:00
playground/Playground chore: remove dead code (#9906) 2025-05-06 15:42:27 +03:00
project chore: use tokenname instead of username in frontend for api-token creation (#9891) 2025-05-08 09:20:19 +02:00
providers fix: namespace flag-repo for unleash sdk (#9910) 2025-05-06 19:05:06 +02:00
releases refactor: remove flagOverviewRedesign flag (#9888) 2025-05-06 10:25:57 +02:00
segments fix: make setConstraints work in editable constraints list (#9913) 2025-05-07 09:49:22 +03:00
signals
splash Strategy docs updates (#8711) 2024-12-11 10:38:39 +01:00
strategies Strategy docs updates (#8711) 2024-12-11 10:38:39 +01:00
tags refactor: change colors (#9672) 2025-04-01 13:24:40 +02:00
user feat: redirect logic refactor (#9734) 2025-04-17 12:07:08 +02:00
App.tsx feat: redirect logic refactor (#9734) 2025-04-17 12:07:08 +02:00
InitialRedirect.tsx feat: futureproofing last viewed page redirect (#9794) 2025-04-17 17:40:04 +02:00