@@ -22,7 +22,6 @@ import colors from 'src/libs/colors';
22
22
import { getConfig } from 'src/libs/config' ;
23
23
import { reportError , reportErrorAndRethrow , withErrorReporting } from 'src/libs/error' ;
24
24
import Events , { extractWorkspaceDetails } from 'src/libs/events' ;
25
- import { isFeaturePreviewEnabled } from 'src/libs/feature-previews' ;
26
25
import * as Nav from 'src/libs/nav' ;
27
26
import { notify } from 'src/libs/notifications' ;
28
27
import { forwardRefWithName , useCancellation , useOnMount } from 'src/libs/react-utils' ;
@@ -408,26 +407,25 @@ const DataTableActions = ({
408
407
} ,
409
408
'Delete table'
410
409
) ,
411
- isFeaturePreviewEnabled ( 'data-table-versioning' ) &&
412
- h ( Fragment , [
413
- h ( MenuDivider ) ,
414
- h ( MenuButton , { onClick : ( ) => setSavingVersion ( true ) } , [ 'Save version' ] ) ,
415
- h (
416
- MenuButton ,
417
- {
418
- onClick : ( ) => {
419
- onToggleVersionHistory ( ! isShowingVersionHistory ) ;
420
- if ( ! isShowingVersionHistory ) {
421
- Ajax ( ) . Metrics . captureEvent ( Events . dataTableVersioningViewVersionHistory , {
422
- ...extractWorkspaceDetails ( workspace . workspace ) ,
423
- tableName,
424
- } ) ;
425
- }
426
- } ,
410
+ h ( Fragment , [
411
+ h ( MenuDivider ) ,
412
+ h ( MenuButton , { onClick : ( ) => setSavingVersion ( true ) } , [ 'Save version' ] ) ,
413
+ h (
414
+ MenuButton ,
415
+ {
416
+ onClick : ( ) => {
417
+ onToggleVersionHistory ( ! isShowingVersionHistory ) ;
418
+ if ( ! isShowingVersionHistory ) {
419
+ Ajax ( ) . Metrics . captureEvent ( Events . dataTableVersioningViewVersionHistory , {
420
+ ...extractWorkspaceDetails ( workspace . workspace ) ,
421
+ tableName,
422
+ } ) ;
423
+ }
427
424
} ,
428
- [ `${ isShowingVersionHistory ? 'Hide' : 'Show' } version history` ]
429
- ) ,
430
- ] ) ,
425
+ } ,
426
+ [ `${ isShowingVersionHistory ? 'Hide' : 'Show' } version history` ]
427
+ ) ,
428
+ ] ) ,
431
429
] ) ,
432
430
} ,
433
431
[
@@ -506,29 +504,6 @@ const DataTableActions = ({
506
504
] ) ;
507
505
} ;
508
506
509
- const DataTableFeaturePreviewFeedbackBanner = ( ) => {
510
- const isDataTableProvenanceEnabled = isFeaturePreviewEnabled ( 'data-table-provenance' ) ;
511
- const isDataTableVersioningEnabled = isFeaturePreviewEnabled ( 'data-table-versioning' ) ;
512
-
513
- const label = _ . join ( ' and ' , _ . compact ( [ isDataTableVersioningEnabled && 'versioning' , isDataTableProvenanceEnabled && 'provenance' ] ) ) ;
514
- const feedbackUrl = `mailto:[email protected] ?subject=${ encodeURIComponent ( `Feedback on data table ${ label } ` ) } ` ;
515
-
516
- return (
517
- ( isDataTableProvenanceEnabled || isDataTableVersioningEnabled ) &&
518
- div (
519
- {
520
- style : {
521
- padding : '1rem' ,
522
- borderBottom : `1px solid ${ colors . accent ( ) } ` ,
523
- background : '#fff' ,
524
- textAlign : 'center' ,
525
- } ,
526
- } ,
527
- [ h ( Link , { ...Utils . newTabLinkProps , href : feedbackUrl } , [ `Provide feedback on data table ${ label } ` ] ) ]
528
- )
529
- ) ;
530
- } ;
531
-
532
507
const workspaceDataTypes = Utils . enumify ( [ 'entities' , 'entitiesVersion' , 'snapshot' , 'referenceData' , 'localVariables' , 'bucketObjects' , 'wds' ] ) ;
533
508
534
509
export const WorkspaceData = _ . flow (
@@ -1235,8 +1210,6 @@ export const WorkspaceData = _.flow(
1235
1210
] ) ,
1236
1211
h ( SidebarSeparator , { sidebarWidth, setSidebarWidth } ) ,
1237
1212
div ( { style : styles . tableViewPanel } , [
1238
- _ . includes ( selectedData ?. type , [ workspaceDataTypes . entities , workspaceDataTypes . entitiesVersion ] ) &&
1239
- h ( DataTableFeaturePreviewFeedbackBanner ) ,
1240
1213
Utils . switchCase (
1241
1214
selectedData ?. type ,
1242
1215
[
0 commit comments