Commit Graph

2535 Commits

Author SHA1 Message Date
Michel Weststrate
da14b6ac56 Fix App name prefilling, improve markdown layout
Summary:
Make sure appname is prefilled
Slightly improved layout of markdown

Reviewed By: jknoxville

Differential Revision: D18761477

fbshipit-source-id: 00184a0a4c6d1b5a779c3d3168f587e75e363433
2019-12-02 08:37:26 -08:00
Pritesh Nandgaonkar
02ce121332 Refactor the MediaComponent and move the upload logic to SupportFormV2 comp
Summary: This diff refactors the MediaComponent and moves it's upload logic to the support component. Also the state of the media component is stored in the redux store, so this solves the caching issue.

Reviewed By: mweststrate

Differential Revision: D18754736

fbshipit-source-id: b937f34180405025a6eb437bf2c2d589743e341b
2019-12-02 06:50:41 -08:00
Timur Valiev
3e7557260c store js app launcher settings
Summary:
Store JS App Launcher preferences in app settings

{F223696894}

Reviewed By: jknoxville

Differential Revision: D18762166

fbshipit-source-id: 9da8205b6929e54c80b645789feae2715d9b1876
2019-12-02 06:24:59 -08:00
Timur Valiev
fe4af064cf refactoring and fixes
Summary: Slightly refactored JS api to make it work with new js app launcher

Reviewed By: jknoxville

Differential Revision: D18761757

fbshipit-source-id: edb8e5907765a9354e4c636be97d3cf6df63ee98
2019-12-02 04:58:49 -08:00
John Knox
beff2c4cac Display post preview before submitting support request
Summary:
The Markdown component wasn't rendering a single component, so I put it in a container.
Also added a margin bottom so it didn't look out of place. There's probably a nicer way to do that.

Reviewed By: mweststrate

Differential Revision: D18749381

fbshipit-source-id: ea7827dc7e6141fb0dbd5886356736da4b50f5dc
2019-12-02 04:28:10 -08:00
Michel Weststrate
2bee9ec9e7 Fixed circular dependency warnings
Summary:
Nobody moves the hackathon!

Fixed some circular deps warnings while waiting for another Diff to land

Reviewed By: priteshrnandgaonkar

Differential Revision: D18749645

fbshipit-source-id: 225fbea428dca02f0f4c920ee47b4ece3c3e370b
2019-12-02 02:05:38 -08:00
Pascal Hartig
749228674f Flipper Bump: v0.29.5-SNAPSHOT
Summary: Back to Maven snapshots.

Reviewed By: mweststrate

Differential Revision: D18757711

fbshipit-source-id: 9b876798efa74ec4d1cadd9e0004a2e25f7b7438
2019-12-01 09:58:28 -08:00
Pascal Hartig
23c4dcb1e6 Flipper Release: v0.29.4
Summary: Includes a preview of the JS-only plugin API. This is experimental and might break in future releases.

Reviewed By: mweststrate

Differential Revision: D18757712

fbshipit-source-id: a3c238ffbe3d5d80ca8e750cf5ef89b7a7436c62
2019-12-01 09:58:28 -08:00
Michel Weststrate
ac8879c503 Add clear diff button, style recording button
Summary:
* Added a button to clear Diff selection
* Added icons and color to the recording button
* Made App input field readonly

Reviewed By: priteshrnandgaonkar

Differential Revision: D18748538

fbshipit-source-id: 00ffb5d5c36f8f5394a353602f182aabd8237ee7
2019-11-29 08:28:25 -08:00
Michel Weststrate
2bd87a8100 Improve layout of screenshots and videos
Summary: The previous table was ugly, and weirdly interactive. This diff changes it to a static layout

Reviewed By: priteshrnandgaonkar

Differential Revision: D18744712

fbshipit-source-id: 9060da07eae836a94ce6d8bb2ebb8a6a54470daa
2019-11-29 06:21:56 -08:00
Pritesh Nandgaonkar
92bbccb6e0 Export in the support form
Summary: This diff adds exporting UI in the support form itself. It replaces the "Export as File and Link" buttons with a submit button, which uploads media and then initiates flipper export.

Reviewed By: mweststrate

Differential Revision: D18714630

fbshipit-source-id: ccbb9b2d47687e77a0fdb5449c18e91a5bd5f96e
2019-11-29 05:57:29 -08:00
Pierre-Luc Paour
0116fcdb87 Typo (#664)
Summary:
## Changelog
Pull Request resolved: https://github.com/facebook/flipper/pull/664

Differential Revision: D18745531

Pulled By: passy

fbshipit-source-id: 9464d554e34ae08ed390cceb4c13ec63e26ec0a6
2019-11-28 10:03:01 -08:00
Rong Tang
83641ff05c Show Encoded Cache in Flipper Image plugins.
Summary: load encoded cache and pass to flipper to show.

Reviewed By: oprisnik, passy

Differential Revision: D18643671

fbshipit-source-id: 2df34e0f67ccc585834f02760a1e28079bcf4a6f
2019-11-28 04:30:02 -08:00
Pritesh Nandgaonkar
111ee2079d Upload media files and store in redux store
Summary:
This diff adds the media files into the redux store. In the redux store they are stored as the following {fbid: description}, where fbid and description are integer and string respectively.

Ignore the rows getting highlighted automatically, there seems to be a bug in the ManagedTable. Talked to Michel and we agreed to replace it.

Reviewed By: mweststrate

Differential Revision: D18708815

fbshipit-source-id: 0aaf1b672c230312203691538091a717d69fb5ad
2019-11-28 04:07:21 -08:00
Pritesh Nandgaonkar
ca53f35875 Refactor export data functions and exportpersistedstate function to just expect state
Summary: This diff refactors the `exportpersistedstate` and few of the functions in exportData.tsx to just expect the Redux State instead the store object.

Reviewed By: mweststrate

Differential Revision: D18733011

fbshipit-source-id: 56739917b49142ba4b6e79e7c16378fe60d6ac3b
2019-11-28 03:49:26 -08:00
greenkeeper[bot]
bf85da17ab Update @types/react to the latest version � (#659)
Summary:
## The devDependency [types/react](https://github.com/DefinitelyTyped/DefinitelyTyped) was updated from `16.9.11` to `16.9.12`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [types](https://www.npmjs.com/~types)
**License:** MIT

[Find out more about this release](https://github.com/DefinitelyTyped/DefinitelyTyped).

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/659

Reviewed By: passy

Differential Revision: D18673007

Pulled By: cekkaewnumchai

fbshipit-source-id: feaef03f55b8e8aba9d898700c49acf72e2172cc
2019-11-28 03:13:47 -08:00
Pascal Hartig
ad874d9b38 Flipper Bump: v0.29.4-SNAPSHOT
Summary: backtosnap

Reviewed By: cekkaewnumchai

Differential Revision: D18743448

fbshipit-source-id: 1253a8f85cd5bb4775fef42768fb320bc8bc073a
2019-11-28 03:11:09 -08:00
Pascal Hartig
90c42aff24 Flipper Release: v0.29.3
Summary: Another quick release to trigger our npm update.

Reviewed By: cekkaewnumchai

Differential Revision: D18743449

fbshipit-source-id: 9200fc24aa971082184d6155ad7b2e3465b2fade
2019-11-28 03:11:09 -08:00
Pritesh Nandgaonkar
0a311def8f Refactor Listview to make it agnostic to the export logic
Summary: This diff makes Listview agnostic to the logic of the sharing.

Reviewed By: mweststrate

Differential Revision: D18711095

fbshipit-source-id: 75541dee0b5740c9951c46118d96292e28979507
2019-11-27 08:46:00 -08:00
Pascal Hartig
32a02f7f99 Flipper Bump: v0.29.3-SNAPSHOT
Summary: flipper_accept

Reviewed By: mweststrate

Differential Revision: D18726532

fbshipit-source-id: 1c1d62233deef9ec12af2cb0d9a619f4b00dd8c1
2019-11-27 08:02:21 -08:00
Pascal Hartig
478aead349 Flipper Release: v0.29.2
Summary: Another bump for npm. Easiest way to test this, unfortunately.

Reviewed By: mweststrate

Differential Revision: D18726533

fbshipit-source-id: 40d241a24ef5c0cdf8656b054280410b5bcda863
2019-11-27 08:02:21 -08:00
Pascal Hartig
f2e880bbeb Flipper Bump: v0.29.2-SNAPSHOT
Summary: Back to snapshots.

Reviewed By: jknoxville

Differential Revision: D18708913

fbshipit-source-id: aeea786811e978c45809711ebec11cc538fb5ffd
2019-11-26 14:42:30 -08:00
Pascal Hartig
0528a5c3c8 Flipper Release: v0.29.1
Summary: Quick "hot-fix" to trigger the npm publish step.

Reviewed By: jknoxville

Differential Revision: D18708914

fbshipit-source-id: 87c6db82d0d248e21e1761b83237d7802d25669c
2019-11-26 14:42:30 -08:00
Pascal Hartig
0a7c57f5a0 Back out "Back out "[flipper][js] JS apps support 1/n""
Summary:
Original commit changeset: ff84080d43fa

This re-adds JS client support. The original version had a small bug that inadvertantly wrapped support for Android emulators in the dropdown in a GK that was only meant to cover JS clients. This is addressed here.

Reviewed By: timur-valiev

Differential Revision: D18707485

fbshipit-source-id: ceea8e279a21111f96073f8b784e852f6313e2a4
2019-11-26 09:37:57 -08:00
Michel Weststrate
e99f2bcd8b Apply styling to support details form
Summary:
Applies some additional styling to the support details form, and implemented the screenshot / video styling.

Probably needs some more fixes in the future, once we have a real report to import :)

Reviewed By: jknoxville

Differential Revision: D18658388

fbshipit-source-id: dc9207ec08b3f4360c96d8d14980710c57d6b5ec
2019-11-26 09:37:57 -08:00
Pascal Hartig
a64a0cb86b Flipper Bump: v0.29.1-SNAPSHOT
Summary: money_corgi

Reviewed By: jknoxville

Differential Revision: D18689477

fbshipit-source-id: 82eba4b00f52552437eaaa3d73276e8d56e58c29
2019-11-26 05:30:34 -08:00
Pascal Hartig
b4059efc67 Flipper Release: v0.29.0
Summary: Flipper Doctor, package manager updates.

Reviewed By: jknoxville

Differential Revision: D18689478

fbshipit-source-id: 594cfc0cc5490cdc2a98e363185cf3423ba43058
2019-11-26 05:30:34 -08:00
Pascal Hartig
a75a52a25b Back out Electron 7.1.1/7.1.2 upgrades
Summary:
Original commit changeset: eddfbb3571c7
Original commit changeset: f7300f527b65

Pains me to do this, but probably our best chance right now to get a release out.

Reviewed By: cekkaewnumchai

Differential Revision: D18687890

fbshipit-source-id: 05d13aca71457ca6dd19f5b45d58158ae223e66f
2019-11-26 05:30:34 -08:00
John Knox
adb1cb163b Upgrade doctor version
Summary: Removes android_home check, which is included in android_sdk check

Reviewed By: passy

Differential Revision: D18689233

fbshipit-source-id: 378b316b4bfddcf660af5d91a5271b47df441d88
2019-11-26 05:30:34 -08:00
John Knox
2fd6301876 Back out "JS apps support 1/n"
Summary:
Original commit changeset: 56d1ca1a60ed

This broke Android support in some instances. We haven't had a chance to investigate this yet, but this should cleanly reapply, so we can figure out what happened after the release.

Reviewed By: cekkaewnumchai

Differential Revision: D18688590

fbshipit-source-id: ff84080d43fa481cc8c8c669a76aed15d0f8aa56
2019-11-26 05:30:34 -08:00
Pascal Hartig
e50f900758 Build sample release build in Action
Summary: Build it on GitHub.

Reviewed By: jknoxville

Differential Revision: D18657328

fbshipit-source-id: a826bffbee2cb20690579c7ac4ee8f53dc976b6d
2019-11-26 05:30:33 -08:00
John Knox
91b1ebf2b8 Back out "Fix initHybrid app-crashing bug"
Summary: This was a failed attempt to fix invalid initialization, but just means it fails elsewhere, so undoing this change.

Reviewed By: passy

Differential Revision: D18685054

fbshipit-source-id: fc460ee7cacc8cb89ee2a22243f9738383cbba43
2019-11-26 05:30:33 -08:00
greenkeeper[bot]
8efe50afd2 Update @types/rsocket-core to the latest version � (#658)
Summary:
## The devDependency [types/rsocket-core](https://github.com/DefinitelyTyped/DefinitelyTyped) was updated from `0.0.2` to `0.0.3`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [types](https://www.npmjs.com/~types)
**License:** MIT

[Find out more about this release](https://github.com/DefinitelyTyped/DefinitelyTyped).

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/658

Reviewed By: passy

Differential Revision: D18672998

Pulled By: cekkaewnumchai

fbshipit-source-id: 6d39c50f9a69d4a1f3c067290f921484dae34968
2019-11-26 05:30:33 -08:00
greenkeeper[bot]
7d81e28461 Update rsocket-tcp-server to the latest version � (#652)
Summary:
## The dependency [rsocket-tcp-server](https://github.com/rsocket/rsocket-js) was updated from `0.0.17` to `0.0.18`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [stevegury](https://www.npmjs.com/~stevegury)
**License:** BSD-3-Clause

[Find out more about this release](https://github.com/rsocket/rsocket-js).

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/652

Reviewed By: passy

Differential Revision: D18672992

Pulled By: cekkaewnumchai

fbshipit-source-id: 790f3234c36c227427c4eb8aeb46f25310aba7d5
2019-11-26 05:30:33 -08:00
greenkeeper[bot]
7687bd061e Update rsocket-core to the latest version � (#651)
Summary:
## The dependency [rsocket-core](https://github.com/rsocket/rsocket-js) was updated from `0.0.17` to `0.0.18`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [stevegury](https://www.npmjs.com/~stevegury)
**License:** BSD-3-Clause

[Find out more about this release](https://github.com/rsocket/rsocket-js).

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/651

Reviewed By: passy

Differential Revision: D18672983

Pulled By: cekkaewnumchai

fbshipit-source-id: 6da4c900a1d1c1b5589f35c21128cf2ffc6db48f
2019-11-26 05:30:33 -08:00
John Knox
554037d444 Don't allow initialization when not in supported build
Summary:
If something calls FlipperClient.getInstance(), it will start a new thread and try to start the client. If this is in a context that will fail, like a process that hasn't loaded the .so, then it will fail, but we don't know who started the thread. This adds logging before spawning a new thread so we can see the stack trace of the culprit.

It might want to throw an error instead, that will help track down the culprit of such initializations, but this is a less intrusive change to just stop the failures from happening, to start with.

Reviewed By: cekkaewnumchai

Differential Revision: D18658972

fbshipit-source-id: 2433d4d6ef411d4fb28f31e27bcef702c5a8f4db
2019-11-23 18:21:21 -08:00
John Knox
4faac01448 Fix initHybrid app-crashing bug
Summary: We're seeing some cases of initHybrid failing when the C++ class hasn't been registered. I don't think we should be attempting to init in these cases, so gating it by the same logic as when we load the static library.

Reviewed By: priteshrnandgaonkar

Differential Revision: D18658101

fbshipit-source-id: b29592135dcf637a8c0d40aee30e383f4f35e527
2019-11-22 10:52:02 -08:00
Michel Weststrate
a66501d7a6 style video recording section
Summary: style video recording section

Reviewed By: jknoxville

Differential Revision: D18658103

fbshipit-source-id: 450ed1e3a1ee4330183f14b2c00486649087c3bb
2019-11-22 09:47:51 -08:00
Roman Rodyakin
cb3b77bc95 Avoid crashing Flipper SDK on request for unsupported plugins
Summary: in FlipperRSocketResponder::handleFireAndForget, a responder object was being conditionally (for requests with an "id" field) created, resulting in a null pointer passed into FlipperClient::onMessageReceived when no id was present. FlipperClient::onMessage received, in the meantime, unconditionally dereferences that pointer, resulting in a segmentation fault.  This change creates the responder object regardless of whether or not the "id" key is present in the request object, thus avoiding passing a null pointer into FlipperClient::onMessageReceived.

Reviewed By: jknoxville

Differential Revision: D18583898

fbshipit-source-id: 2112c45bc0cd639cec908d0039d6bdaed2f61491
2019-11-22 09:07:33 -08:00
Pascal Hartig
2854b57c74 Fix release build
Summary:
Well, now I feel dumb. That should have definitely been caught earlier.
I'll set up a CI job to verify this.

Fixes https://github.com/facebook/flipper/issues/648

Reviewed By: jknoxville

Differential Revision: D18657185

fbshipit-source-id: 5fea08103f5a4292159b519d62d84800c0444e41
2019-11-22 07:02:49 -08:00
John Knox
3f7fa0eb1a Use workplace markdown style
Summary: Mimicking the workplace markdown style so people feel more familiar with it and don't get surprises when posting.

Reviewed By: passy

Differential Revision: D18639041

fbshipit-source-id: 0097087b8ae4da8e29609604eeffd5b349ebe7ab
2019-11-22 07:02:49 -08:00
John Knox
018ed212bc Improve markdown header spacing
Summary:
The spacing above headings didn't look right.

Also workplace purposely limits the different heading sizes to 2 to encourage using notes for large posts. So I'm changing this to match. If we need to have arbitrary depth in future, we can add a `workplaceMode` toggle, but so far that's the only use case we have.

Reviewed By: mweststrate

Differential Revision: D18638861

fbshipit-source-id: 3949a37515e4282bb8435c2740ef45a55e5a97cc
2019-11-22 07:02:49 -08:00
John Knox
d7cfefb2bd Add markdown preview to support request composer
Summary:
Adds a side-by-side markdown preview to the support form.
No time spent on UI because it makes sense to do it all together.

There also seems to be a problem with state updates not propagating when values are changed, so currently it never gets updated.

Reviewed By: passy

Differential Revision: D18638025

fbshipit-source-id: c4a49286434c7e2e85d532aef3a36924e02a4467
2019-11-22 07:02:48 -08:00
John Knox
33a63c9c5b Re-enable github actions (#655)
Summary:
This reverts commit 5bd0cd3d63 and adds back the github actions which were temporarily disabled.
Pull Request resolved: https://github.com/facebook/flipper/pull/655

Reviewed By: passy

Differential Revision: D18656754

Pulled By: jknoxville

fbshipit-source-id: 9dc9a9aa4224f996677ddfbaf37387ae0b066c56
2019-11-22 05:25:17 -08:00
Timur Valiev
c685493db0 JS apps support 1/n
Summary:
### Connecting Flipper with JS apps by using electron's BrowserWindow and IPC

1. UI: there is a menu item in Devices tab which opens JS Emulator Launcher Sheet. Here we can configure URL to open and initial size of the window.
2. BrowserWindow, preloaded js: there is SupportJSClientPreload.js which initialize communication between flipper and app via electron's ipc
3. On flipper's side there is src/utils/js-client/serverUtils.tsx which contains most of JS emulator related code
4. Extracting of FlipperClientConnection: since we don't use RScocket to communicate with JS app I extracted needed methods to FlipperClientConnection (located in Client) and partly implemented them in JSClientFlipperConnection (requestResponse is just send a message now, doesn't return actual result)

Reviewed By: jknoxville

Differential Revision: D18572882

fbshipit-source-id: 56d1ca1a60ed2e51329b917021a09382cbb1ceec
2019-11-22 03:11:29 -08:00
Michel Weststrate
e7ad713df8 connect request form v2 to sidebar nav
Summary: If the GK is enabled, get the new litho support form from the sidebar!

Reviewed By: jknoxville

Differential Revision: D18639060

fbshipit-source-id: c10a32fc4725374dbd6d89e16944642d3124037e
2019-11-21 11:16:42 -08:00
Michel Weststrate
fef8d5a50f style support request form
Summary:
Styles the create support request form similarly to the details form, using the standard UI components.

N.B. Video section styling will be a separate diff

Reviewed By: jknoxville

Differential Revision: D18637989

fbshipit-source-id: f1cc6967b6841a55e770043f330e1a87ac7bfb50
2019-11-21 11:16:41 -08:00
Pascal Hartig
a8680c8df6 Add a note about no-op package
Summary: I hope this will lower the support load for this a little.

Reviewed By: jknoxville

Differential Revision: D18638565

fbshipit-source-id: 57ce7f6855817a49bafab35517cf1e8ef2bc2e1e
2019-11-21 09:23:17 -08:00
Pascal Hartig
3b04d44bd3 Add missing license header
Summary: Failing OSS check because of this right now.

Reviewed By: cekkaewnumchai

Differential Revision: D18638744

fbshipit-source-id: 1e5076f69a40f7dea87078c346e85f1797de42aa
2019-11-21 08:41:33 -08:00
Pascal Hartig
63959c275c Lock ws to 3.3.1
Summary:
Long-standing 'security' issue. Doesn't matter for a static
site generator with controlled input, of course, but
we're failing our OSS validation if we just dismiss it.

Reviewed By: cekkaewnumchai

Differential Revision: D18638722

fbshipit-source-id: d8636dee67826c4e453ac0f74cd3dfa8f77ba0dd
2019-11-21 08:39:07 -08:00