Sandy-based plugin auto-update UI
Summary: New UX/UI for plugin auto-updates based on Sandy: - disabled plugins auto-updated silently without any notifications as there is no active state for them so there is nothing to loose. - enabled plugins can have some state and user can actually work with them, so we cannot reload them automatically. Instead, we show notification in the top of the plugin container asking user to reload the plugin when she is ready. - if the auto-updated plugin failed to reload - show error notification. - for non-sandy we continue using notifications as before. Reviewed By: mweststrate Differential Revision: D25530384 fbshipit-source-id: de3d0565ef0b930c9343b9e0ed07a4acb51885be
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5383017299
commit
bd01b58566
@@ -20,7 +20,6 @@ import {Store} from './reducers/index';
|
||||
import dispatcher from './dispatcher/index';
|
||||
import TooltipProvider from './ui/components/TooltipProvider';
|
||||
import config from './utils/processConfig';
|
||||
import appConfig from '../src/fb-stubs/config';
|
||||
import {initLauncherHooks} from './utils/launcher';
|
||||
import {setPersistor} from './utils/persistor';
|
||||
import React from 'react';
|
||||
@@ -43,7 +42,7 @@ import {
|
||||
_LoggerContext,
|
||||
} from 'flipper-plugin';
|
||||
import isProduction from './utils/isProduction';
|
||||
import ReleaseChannel from './ReleaseChannel';
|
||||
import isSandyEnabled from './utils/isSandyEnabled';
|
||||
|
||||
if (process.env.NODE_ENV === 'development' && os.platform() === 'darwin') {
|
||||
// By default Node.JS has its internal certificate storage and doesn't use
|
||||
@@ -125,10 +124,7 @@ function init() {
|
||||
store,
|
||||
{name: 'loadTheme', fireImmediately: true, throttleMs: 500},
|
||||
(state) => ({
|
||||
sandy:
|
||||
(GK.get('flipper_sandy') ||
|
||||
appConfig.getReleaseChannel() === ReleaseChannel.INSIDERS) &&
|
||||
!state.settingsState.disableSandy,
|
||||
sandy: isSandyEnabled(),
|
||||
dark: state.settingsState.darkMode,
|
||||
}),
|
||||
(theme) => {
|
||||
|
||||
Reference in New Issue
Block a user