feat(core): experimental features ui (#5338)

fix TOV-280

experimental features ui
- enabled in the workspace settings for a cloud workspace; only show for workspace owner + early access
- a disclaimer prompt will be shown before going to the next feature setting page
- for now only show the ai poc switch, which controls the display of the ai tab in editor's sidepanel
This commit is contained in:
Peng Xiao
2024-01-18 07:53:15 +00:00
parent cabedef426
commit 9a944048e8
24 changed files with 2297 additions and 146 deletions
@@ -780,6 +780,19 @@ mutation uploadAvatar($avatar: Upload!) {
}`,
};
export const enabledFeaturesQuery = {
id: 'enabledFeaturesQuery' as const,
operationName: 'enabledFeatures',
definitionName: 'workspace',
containsFile: false,
query: `
query enabledFeatures($id: String!) {
workspace(id: $id) {
features
}
}`,
};
export const availableFeaturesQuery = {
id: 'availableFeaturesQuery' as const,
operationName: 'availableFeatures',
@@ -0,0 +1,5 @@
query enabledFeatures($id: String!) {
workspace(id: $id) {
features
}
}