adding UI

Summary:
- Adds the Flipper notifications UI from the hackweek
- The notifications plugin is hidden behind a GK `flipper_notifications`
- Plugins currently can not dispatch any notifications

Reviewed By: jknoxville, passy

Differential Revision: D10300838

fbshipit-source-id: 2a3a823f09fee3370ce725b506b162e57751c382
This commit is contained in:
Daniel Büchele
2018-10-10 10:34:27 -07:00
committed by Facebook Github Bot
parent f7cb4667c4
commit 78252b2ef2
7 changed files with 600 additions and 62 deletions

View File

@@ -7,7 +7,6 @@
import type {TableHighlightedRows, TableRows, TableBodyRow} from 'flipper';
import type {NotificationSet} from '../../plugin';
import {
ContextMenu,
FlexColumn,
@@ -154,7 +153,7 @@ export default class extends FlipperPlugin<State, *, PersistedState> {
};
computeNotifications(props: *, state: State) {
const notifications: NotificationSet = {};
const notifications = {};
const persistedState = props.persistedState;
for (const response in persistedState.responses) {
const status = persistedState.responses[response].status;