1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-12-09 20:04:11 +01: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
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
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
feature feat: edit link UI (#9926) 2025-05-08 10:25:47 +02:00
featureTypes
feedback
feedbackNew
filter
insights
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
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
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
strategies
tags
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