Commit Graph

6 Commits

Author SHA1 Message Date
Michel Weststrate
ba5f067320 Fix circular imports and lint against them
Summary: When trying to refactor some components, did once again run into circular imports that cause the flipper startup sequence to fail. Added linting rules to make sure this is much less likely to happen in the future, and fixed all resulting errors

Reviewed By: nikoant

Differential Revision: D24390583

fbshipit-source-id: 9b20cf6a4d3555dc68f0069c2950dd7162b17e67
2020-10-20 03:24:47 -07:00
Pascal Hartig
9d88469063 Fix public version check (#1203)
Summary:
Relied too much on TSC and not enough on my brain.

![image](https://user-images.githubusercontent.com/9906/83158023-2f0ff880-a0fc-11ea-8f1b-bff89ec7934a.png)
Pull Request resolved: https://github.com/facebook/flipper/pull/1203

Test Plan:
![Screenshot 2020-05-28 15 51 49](https://user-images.githubusercontent.com/9906/83158051-38996080-a0fc-11ea-8e59-9bb6cd88d832.png)

Endpoint is getting hit on startup now for public builds.

Reviewed By: mweststrate

Differential Revision: D21764325

Pulled By: passy

fbshipit-source-id: 771c4e430717f4eae5eab36f279ca3eff9e9bcf7
2020-05-28 09:04:54 -07:00
Pascal Hartig
9bd58a46c4 UpdateIndicator: Fix a11y lints
Summary: Adding a role and tabIndex because it's clickable.

Reviewed By: mweststrate

Differential Revision: D20814436

fbshipit-source-id: 2d5acc06363df0cce1c24df7e77b1a6eaa98ab63
2020-04-03 04:06:59 -07:00
Pascal Hartig
c8e5d95c41 Show update indicator for non-FB builds
Summary:
Launcher was sort of a proxy for cases where we *wanted* to have an update
mechanism but possibly couldn't use it, e.g. Windows at FB.
This makes sure we can also show this in OSS.

Reviewed By: nikoant

Differential Revision: D20770804

fbshipit-source-id: 62d2dddf9cbd22d51098dda65eea50df420a3078
2020-04-02 06:30:38 -07:00
Pascal Hartig
fc9ed65762 prettier 2
Summary:
Quick notes:

- This looks worse than it is. It adds mandatory parentheses to single argument lambdas. Lots of outrage on Twitter about it, personally I'm {emoji:1f937_200d_2642} about it.
- Space before function, e.g. `a = function ()` is now enforced. I like this because both were fine before.
- I added `eslint-config-prettier` to the config because otherwise a ton of rules conflict with eslint itself.

Close https://github.com/facebook/flipper/pull/915

Reviewed By: jknoxville

Differential Revision: D20594929

fbshipit-source-id: ca1c65376b90e009550dd6d1f4e0831d32cbff03
2020-03-24 09:38:11 -07:00
Anton Nikolaev
863f89351e Yarn workspaces
Summary:
1) moved "sonar/desktop/src" to "sonar/desktop/app/src", so "app" is now a separate package containing the core Flipper app code
2) Configured yarn workspaces with the root in "sonar/desktop": app, static, pkg, doctor, headless-tests. Plugins are not included for now, I plan to do this later.

Reviewed By: jknoxville

Differential Revision: D20535782

fbshipit-source-id: 600b2301960f37c7d72166e0d04eba462bec9fc1
2020-03-20 13:37:41 -07:00