Commit Graph

2195 Commits

Author SHA1 Message Date
John Knox
a04e9aa986 Fix NotificationsHub types
Reviewed By: passy

Differential Revision: D17167014

fbshipit-source-id: f7981c75252059c6eaa3518ca0fd9524f5039db6
2019-09-04 03:31:48 -07:00
John Knox
16457e2adb Add notNull filter with type guard
Summary: You need to use a type guard when narrowing types in a filter.

Reviewed By: danielbuechele

Differential Revision: D17163782

fbshipit-source-id: aa78bdd392653ebf1080a04e62e131b607e5181b
2019-09-04 03:31:47 -07:00
Pascal Hartig
31307c89d7 Upgrade to eslint 3.6
Summary: Should fix the tsc issue.

Reviewed By: danielbuechele

Differential Revision: D17165314

fbshipit-source-id: 4d52d2d186ac5ec14b5a8a7969893c26cc28fef8
2019-09-04 03:00:53 -07:00
Benjamin Elo
df667027df Navigation Timeline UI overhaul.
Summary:
This is a UI ovehaul for the Navigation plugin, taking inspiration from the Notifications page in Flipper.

We now display a timestamp, open page and bookmark are more clearly identified, screenshots are organized more neatly, and parameters are displayed in a table.

If the class name of the ViewController is available, that will also be displayed.

Edit:

Adding in some of the requested changes.

Improved UI:
https://pxl.cl/K0h9

Scroll on opening a page:
https://pxl.cl/K0hQ

Reviewed By: danielbuechele

Differential Revision: D17161734

fbshipit-source-id: e5e054bf87f540964e90da3a798fd0c23df86540
2019-09-03 10:11:58 -07:00
Pritesh Nandgaonkar
61c033daaf Set up the infra to show the static screen
Summary:
This makes the implementation of static view generic. Right now the only non-plugin view which is shown is the WelcomeScreen. The implementation it is hardcoded. I want to make it generic, so that we can show the bug request screen too.

This diff sets the default value of the `staticView` to `WelcomeScreen`, which will be set to null when the `selectedDevice` is set. And viceversa, it will be assigned back to `WelcomScreen`, when the `selectedDevice` is set to `null`

Reviewed By: danielbuechele

Differential Revision: D16965734

fbshipit-source-id: 69d700184f44d4e5ab531f5f8fc0e23bafa07e72
2019-09-03 08:42:50 -07:00
Daniel Büchele
590ad81c2b Flipper Bump: v0.23.6-SNAPSHOT
Reviewed By: jknoxville

Differential Revision: D17161203

fbshipit-source-id: bc46f8629fe007ed5cb744414ac4bba342578a96
2019-09-03 06:55:08 -07:00
Daniel Büchele
631b743643 npm publish
Reviewed By: jknoxville

Differential Revision: D17161868

fbshipit-source-id: 65be618c6e231eec2d680906e80599889401ced7
2019-09-03 06:44:43 -07:00
Pascal Hartig
9202e96018 Upgrade to TypeScript 3.6.2
Summary:
It's new. We should use it, probably.

allow-large-files

Reviewed By: danielbuechele

Differential Revision: D17111469

fbshipit-source-id: fd982aedb7d5d53e9cd5d6744890bf6fda812892
2019-09-03 06:29:50 -07:00
Pascal Hartig
4544c4fff1 Remove vendored copy of fbjni (#530)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/530

Use the pre-release of fbjni instead of our bundled copy. I hope this can be made a little less awkward, but it works for now.

Reviewed By: jknoxville

Differential Revision: D16988077

fbshipit-source-id: 936e414f9b2bf82ccb54b107228d79d01acdbf14
2019-09-03 06:06:15 -07:00
Pascal Hartig
6f14bb7dfa Migrate LogWatcher to (strict) tsx
Summary: 1/2 for porting the DeviceLogs.

Reviewed By: danielbuechele

Differential Revision: D17156890

fbshipit-source-id: 4d2841b8f86fdb5f3a3c085482c37af79de4323a
2019-09-03 05:50:16 -07:00
Daniel Büchele
937001f869 Flipper Release: v0.23.5
Summary: new release

Reviewed By: jknoxville

Differential Revision: D17161202

fbshipit-source-id: dd086068d4fe3fc8837828eb6243218ada3d8cc3
2019-09-03 04:35:55 -07:00
Pascal Hartig
1528e353b8 Upgrade Gradle
Summary: Android Studio suggests this in order to continue working properly.

Reviewed By: danielbuechele

Differential Revision: D17160910

fbshipit-source-id: fac638495d6aa194dca54ef72c1c9dca5ad42b73
2019-09-03 03:31:22 -07:00
Ram N
ae8da51e00 Flipper should not depend on Yoga
Summary: Flipper should not depend on Yoga, since it already depends on Yogakit. Yogakit itself depends on Yoga anyway. Also, Flipper seems to use Yogakit APIs anyway.

Reviewed By: shergin

Differential Revision: D7185089

fbshipit-source-id: 69f7e030999041be7a007b9ca56c529f8c1ae121
2019-09-02 12:50:08 -07:00
Ivelin Rachev
f4fc96756a Convert Flipper plugin "DeviceCPU" to TypeScript
Summary: Migrate CPU plugin to use TypeScript

Reviewed By: danielbuechele

Differential Revision: D17072709

fbshipit-source-id: d9acf172af08d764216e7b79b79994199dc83f5c
2019-09-02 11:46:21 -07:00
Chaiwat Ekkaewnumchai
e3285c4f15 Convert Flipper plugin "Example" to TypeScript
Summary: _typescript_

Reviewed By: passy

Differential Revision: D17047622

fbshipit-source-id: ff25bf4355bb42a0754b2b3304a6b5bdc3806909
2019-09-02 11:23:46 -07:00
John Knox
922019a8d0 Add script to run headless tests easily
Summary:
It's not obvious how to run the headless tests at the moment, and requires manual steps this adds a script to do it.
It still does not start an emulator or the sample app, but it's an improvement.

Reviewed By: passy

Differential Revision: D17155308

fbshipit-source-id: 846b87389823f422030470807aa4aabacce69179
2019-09-02 11:00:11 -07:00
Daniel Büchele
57fb3853ba remove generics from static methods
Summary:
Generics on static methods don't seem to work the way we are using them.
I looked into how react types getDerivedStateFromProps as this is a very similar concept, and they don't seem to type it at all. For that reason I've given up and just type the persistedState passed to our static methods as `Object`.

Reviewed By: passy

Differential Revision: D17152767

fbshipit-source-id: d9c2159be26fa341c5411dd0b40895d4c8ddf71e
2019-09-02 10:49:07 -07:00
Daniel Büchele
b924b14225 fix icon default size
Summary:
Logs plugin expected the default icons size to be 16 and therefor didn't set it explicitly. However, with the TS migration we lost the default size.
This adds back the default size for icons.

Reviewed By: jknoxville

Differential Revision: D17156747

fbshipit-source-id: a37f3a2bd189a56019aee1939618caf21122a397
2019-09-02 10:03:10 -07:00
Zoltán Gilián
9a9eda3da5 Expose internGraphAPIRequest
Summary: Needed to access the task attachment interngraph endpoint added in D17146262.

Reviewed By: danielbuechele

Differential Revision: D17146272

fbshipit-source-id: 6375a953d4b5389e05accb77f0242388c3e0254c
2019-09-02 09:27:03 -07:00
Pascal Hartig
f6dd4c227f Add URL for more info
Summary: Added a wiki page with some more strict mode info.

Reviewed By: danielbuechele

Differential Revision: D17112391

fbshipit-source-id: 53b9e8d417eb9f41adecab42fbf912b999a0c9c3
2019-09-02 07:02:15 -07:00
Benjamin Elo
ffb505ce4c Bookmarks UI overhaul
Summary: I've made some slight changes to how bookmarks are displayed in the app, and added the ability to remove them from the tab.

Reviewed By: danielbuechele

Differential Revision: D17154083

fbshipit-source-id: 587e1e0f6f79f461c92e4866f4a59608a6173ccb
2019-09-02 06:35:34 -07:00
dependabot[bot]
74562148f8 Bump mixin-deep from 1.3.1 to 1.3.2 in /website (#529)
Summary:
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
<details>
<summary>Commits</summary>

- [`754f0c2`](754f0c20e1) 1.3.2
- [`90ee1fa`](90ee1fab37) ensure keys are valid when mixing in values
- See full diff in [compare view](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)
</details>
<details>
<summary>Maintainer changes</summary>

This version was pushed to npm by [doowb](https://www.npmjs.com/~doowb), a new releaser for mixin-deep since your current version.
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mixin-deep&package-manager=npm_and_yarn&previous-version=1.3.1&new-version=1.3.2)](https://help.github.com/articles/configuring-automated-security-fixes)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/facebook/flipper/network/alerts).

</details>
Pull Request resolved: https://github.com/facebook/flipper/pull/529

Reviewed By: danielbuechele

Differential Revision: D17095288

Pulled By: passy

fbshipit-source-id: 6433300f18828c7e7c117e25821b69c6b6fb5def
2019-09-02 06:15:57 -07:00
Benjamin Elo
cfcd0f060c Migrated components/index to TypeScript
Summary: Migrated components/index.js to components/index.tsx.

Reviewed By: danielbuechele

Differential Revision: D17132215

fbshipit-source-id: 76e03f9b4a509ad9c8faac484dc5b0ba7d1574e1
2019-09-02 04:13:42 -07:00
Benjamin Elo
a615259961 Migrated SearchBar to Typescript
Summary: Migrated SearchBar.js to SearchBar.tsx

Reviewed By: danielbuechele

Differential Revision: D17132221

fbshipit-source-id: ce1728bf06ba2a314c027e92456f947ab4781660
2019-09-02 04:13:41 -07:00
Benjamin Elo
10e90f3f57 Migrated Timeline to TypeScript
Summary: Migrated Timeline.js to Timeline.tsx

Reviewed By: danielbuechele

Differential Revision: D17132222

fbshipit-source-id: ffe5b74459d1f3ec48873a94a95c40e855aa45da
2019-09-02 04:13:41 -07:00
Benjamin Elo
d3023946da Removed ScollableFlexColumn component
Summary: This functionality already existed in FlexColumn by adding the prop grow.

Reviewed By: danielbuechele

Differential Revision: D17132219

fbshipit-source-id: d284f2c5e219beff743525abd344a8b9d1955d0b
2019-09-02 04:13:41 -07:00
Benjamin Elo
cdd7793428 Migrated SaveBookmarkDialog to TypeScript
Summary: Migrated SaveBookmarkDialog.js to SaveBookmarkDialog.tsx

Reviewed By: danielbuechele

Differential Revision: D17132225

fbshipit-source-id: 34de69069197718055ec8cc31f539cd8e1aa5b2e
2019-09-02 04:13:40 -07:00
Benjamin Elo
0a9c4bdcf4 Migrated RequiredParametersDialog to TypeScript
Summary: Migrated RequiredParametersDialog.js to RequiredParametersDialog.tsx

Reviewed By: danielbuechele

Differential Revision: D17132223

fbshipit-source-id: a4a592ba58b8c8b94b3106c3a2c0916b2776697f
2019-09-02 04:13:40 -07:00
Benjamin Elo
d957f45314 Migrated AutoCompleteSheet to TypeScript
Summary: Migrated AutoCompleteSheet from AutoCompleteSheet.js to AutoCompleteSheet.tsx

Reviewed By: danielbuechele

Differential Revision: D17132216

fbshipit-source-id: 2ce269cbd5a77353002958650c25d7297cc4e99e
2019-09-02 04:13:40 -07:00
Benjamin Elo
7d0710a0c8 Migrated BookmarksSidebar to TypeScript
Summary: Migrated BookmarksSidebar.js to BookmarksSidebar.tsx

Reviewed By: danielbuechele

Differential Revision: D17132218

fbshipit-source-id: 0e95201b5fe7c17e4acc93926325e953d8859d6c
2019-09-02 04:13:39 -07:00
Benjamin Elo
434ed4ec7d Migrated NavigationInfoBox to TypeScript
Summary: Migrated NavigationInfoBox,js to NavigationInfoBox.tsx

Reviewed By: danielbuechele

Differential Revision: D17132217

fbshipit-source-id: 9a9cd3c186efdcf7a8efc5eeaec608ff8cb4d6f1
2019-09-02 04:13:39 -07:00
Benjamin Elo
4c68750058 Migrated FavoriteButton to TypeScript
Summary: Migrated FavoriteButton.js to FavoriteButton.tsx

Reviewed By: danielbuechele

Differential Revision: D17132220

fbshipit-source-id: af1a3de4b272a57975486233f699e390677784fb
2019-09-02 04:13:39 -07:00
Benjamin Elo
36a8dfc1f6 Migrate IconButton to TypeScript
Summary: Migrated IconButton.js to IconButton.tsx

Reviewed By: danielbuechele

Differential Revision: D17132224

fbshipit-source-id: d4f14050385c7c25900e9a9d01f3b9a0dcff3a31
2019-09-02 04:13:39 -07:00
Benjamin Elo
a0696692e2 Migrated hooks/requiredParametes to TypeScript
Summary: Migrated requiredParameters.js to requiredParameters.tsx

Reviewed By: danielbuechele

Differential Revision: D17133609

fbshipit-source-id: 8926921481bf587b51a09c18eca71ca6132ad89a
2019-09-02 04:13:38 -07:00
Benjamin Elo
5877c1df96 Migrated hooks/autoCompleteSheet to TypeScript
Summary: Migrated autoCompleteSheet.js to autoCompleteSheet.tsx

Reviewed By: danielbuechele

Differential Revision: D17133608

fbshipit-source-id: eba06c5add7687e013b8f0e2b430b359dbf1cb48
2019-09-02 04:13:38 -07:00
Benjamin Elo
950bbbf97d Migrate util/appMatchPatterns to TypeScript
Summary: Migrated appMatchPatterns.js to appMatchPatterns.tsx

Reviewed By: danielbuechele

Differential Revision: D17133610

fbshipit-source-id: 1a819e2b32a233372e08578352290eff1264ef43
2019-09-02 04:13:38 -07:00
Benjamin Elo
d5d0b0cd49 Migrate util/autoCompleteProvider to TypeScript
Summary: Migrated autoCompleteProvider.js to autoCompleteProvider.tsx

Reviewed By: danielbuechele

Differential Revision: D17133612

fbshipit-source-id: 7d4da17bd639fdd4fc7a79cc931abeab62be2086
2019-09-02 04:13:37 -07:00
Benjamin Elo
8269d128d6 Migrate util/indexedDB to TypeScript
Summary: Migrated indexedDB.js to indexedDB.tsx

Reviewed By: danielbuechele

Differential Revision: D17133611

fbshipit-source-id: 819eccc12c8cbacee5e9cdf8fbfce4f5fbb08813
2019-09-02 04:13:37 -07:00
Benjamin Elo
332821d315 Migrated util/uri to TypeScript
Summary: Migrated uri.js to uri.tsx

Reviewed By: danielbuechele

Differential Revision: D17133606

fbshipit-source-id: d278c293c6040a522f5cc0c5462c6682dc634328
2019-09-02 04:13:37 -07:00
Benjamin Elo
61ddbd9950 Added TypeScript types file
Summary: Luckily I put all my types in one file, so this was very easy to convert over.

Reviewed By: danielbuechele

Differential Revision: D17132226

fbshipit-source-id: cacd0d66e15504d6f82ccc4aaaa4e27339e513f1
2019-09-02 04:13:36 -07:00
Daniel Büchele
4453dec778 interactive
Summary: _typescript_

Reviewed By: passy

Differential Revision: D17096587

fbshipit-source-id: 22ada6ef8f544b0c02bdf5a01e798b123fa6b238
2019-09-02 02:29:31 -07:00
Mihaela Ogrezeanu
f716c34295 Show prev and next data for a SingleComponentSection
Summary: The SingleComponentSection doesn't store anything in the data field unless it's set manually by the dev; this adds custom info about the prev and next data so we can use it for debugging

Reviewed By: pasqualeanatriello

Differential Revision: D17112284

fbshipit-source-id: 55aa49583e3bc7d046661d34841b7c3283972d76
2019-08-30 05:44:58 -07:00
Pascal Hartig
3cdc32c18b Update binary
Summary: allow-large-files

Reviewed By: danielbuechele

Differential Revision: D17112954

fbshipit-source-id: d0c53e3f5c5502d291212557ac808359e2a925b6
2019-08-30 03:32:47 -07:00
Paul O'Shannessy
dfefb1ff65 Adopt Contributor Covenant
Summary:
In order to foster healthy open source communities, we're adopting the
[Contributor Covenant](https://www.contributor-covenant.org/). It has been
built by open source community members and represents a shared understanding of
what is expected from a healthy community.

Reviewed By: josephsavona, danobi, rdzhabarov

Differential Revision: D17104640

fbshipit-source-id: d210000de686c5f0d97d602b50472d5869bc6a49
2019-08-29 23:21:14 -07:00
Pascal Hartig
31ce78b128 Add stack.yaml.lock
Summary: Stack has lock files now. Let's use them.

Reviewed By: danielbuechele

Differential Revision: D17112200

fbshipit-source-id: 898fff67ac74cbad918dbe1be6667523c4392b35
2019-08-29 09:23:57 -07:00
Pascal Hartig
f4f7245732 Add README
Summary: Per title.

Reviewed By: danielbuechele

Differential Revision: D17111990

fbshipit-source-id: f5a14b7f0ce544cec324b70b74eeed8d6efb42b0
2019-08-29 09:19:01 -07:00
Daniel Büchele
5868946818 certificate provider
Summary: _typescript_

Reviewed By: passy

Differential Revision: D17096517

fbshipit-source-id: a6e69e8b9a82fe76bb1de51a3a93182f35f40b3f
2019-08-28 20:34:59 -07:00
Daniel Büchele
9970c50daf gylphs
Summary: Adding type declaration for glyphs

Reviewed By: passy

Differential Revision: D17096295

fbshipit-source-id: e8994e0c81c3668fa909479dbaea613ec2b86dc4
2019-08-28 19:50:29 -07:00
Pascal Hartig
bc4fc12ea4 Add prebuilt version of stricter
Summary:
Adds a binary we can run on Sandcastle.

allow-large-files

Reviewed By: danielbuechele

Differential Revision: D17093672

fbshipit-source-id: 3695739a65aea72bc8c8268404c9d3e025349e16
2019-08-28 14:31:33 -07:00
Pascal Hartig
a612792995 Add script to watch for TSC strict mode regressions
Summary:
This is a simple script that runs `tsc --strict` twice: on the current revision and the previous one, compares the number of errors and if there are more, prints them out and raises a failure exit code.

This should help us ensure that while we clean up the 500-odd errors we don't land more in the process.

Reviewed By: danielbuechele

Differential Revision: D17093671

fbshipit-source-id: 6c5d1424c729d15d66a32ae17f15b17c3b76fc68
2019-08-28 14:31:33 -07:00