Commit Graph

203 Commits

Author SHA1 Message Date
Andrey Goncharov
e5b2f693a3 Setup power search
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410972

fbshipit-source-id: 35cea0f033c16748e0ceb0921dee8276787fb1a6
2023-09-19 08:19:25 -07:00
Andrey Goncharov
b780dc0598 Add basic Autocomplete
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48517919

fbshipit-source-id: ec6e723a595862b61722db9c5afd96138264dfdc
2023-08-30 07:26:35 -07:00
Michel Weststrate
c8776175c3 Added support for secondary indices for fast lookups
Summary:
Add support for secondary indices, to allow for cheap lookups, like a set of events for a specific UI element in the events table:

```

#### getAllRecordsByIndex

Usage: `getAllRecordsByIndex({ indexedAttribute: value, indexAttribute2: value2, .... })`

This method allows fast lookups for objects that match specific attributes exactly.
Returns all items matching the specified index query.
Note that the results are unordered, unless
records have not been updated using upsert / update, in that case
insertion order is maintained.
If no index has been specified for this exact keyset in the indexQuery (see options.indices), this method will throw.

Example:
```

```
const ds = createDataSource([eatCookie, drinkCoffee, submitBug], {
  key: 'id',
  indices: [
    ['title']
    ['id', 'title'],
    ['title', 'done'],
  ],
});

// Find first element with title === cookie (or undefined)
const todo = ds.getFirstRecordByIndex({
    title: 'cookie',
})

// Find all elements where title === cookie, and done === false
const todos = ds.getAllRecordsByIndex({
  title: 'cookie',
  done: false,
})
```

Reviewed By: antonk52

Differential Revision: D47396435

fbshipit-source-id: 20c4527be83532863b9b07ab20ebf20a80c3c35d
2023-07-14 07:46:52 -07:00
Andrey Goncharov
1c532095ab Expose suggestNewPlugin as a shared util
Reviewed By: antonk52, ivanmisuno

Differential Revision: D46798839

fbshipit-source-id: f2b942a138a998f167b60c04c32c634545bbfe96
2023-06-16 08:29:54 -07:00
Vivian Wehner
d7747aa04c Edit debugging.mdx using inpage editor
Summary:
This diff has been automatically generated by the inpage editor.

NOTE: If you want to update this diff, go via the preview link inside the static docs section below.
Ensure you are editing the same page that was used to create this diff.

Reviewed By: mweststrate

Differential Revision: D45996048

fbshipit-source-id: a509d9393d2b61ec044cdf1b749b5b6083070ff3
2023-05-22 08:29:59 -07:00
Lorenzo Blasa
bdf3dbe332 Export TimelineDataDescription
Summary: It wasn't exported, instead it was consumed by the 'flipper' deprecated module.

Reviewed By: fabiomassimo

Differential Revision: D43872434

fbshipit-source-id: 70a4a525c660f0779f942739311205417cef3834
2023-03-07 11:23:20 -08:00
Pascal Hartig
16a91f1bbd Bump deps
Summary:
Hoping that this will fix our docs build.

Note that I also had to fix a syntax error in `extending/loading-custom-plugins.mdx` that
broke the build with:

```
SyntaxError: /Users/realpassy/fbsource/xplat/sonar/docs/extending/loading-custom-plugins.mdx: Expected corresponding JSX closing tag for <admonition>. (10:10)
   8 | <FbInternalOnly>
   9 | <admonition {...{"type":"caution"}}><p parentName="admonition">{`Within Meta, plugins sources are stored and loaded from `}<inlineCode parentName="p">{`~/fbsource/xplat/sonar/desktop/plugins`}</inlineCode>{`, in which case no further configuration is needed.`}</p><p parentName="admonition">{`If your team uses Flipper plugins that are stored outside `}<inlineCode parentName="p">{`fbsource`}</inlineCode>{`, please follow your team specific instructions.
> 10 | ::::`}</p></FbInternalOnly><p parentName="admonition">{`Flipper loads and runs plugins it finds in a configurable location. The paths searched are specified in `}<inlineCode parentName="p">{`~/.flipper/config.json`}</inlineCode>{`. These `}<inlineCode parentName="p">{`pluginPaths`}</inlineCode>{` should contain one folder for each of the plugins it stores.`}</p><p parentName="admonition">{`An example config setting and plugin file structure is shown below:`}</p><p parentName="admonition"><inlineCode parentName="p">{`~/.flipper/config.json`}</inlineCode>{`:`}</p><pre parentName="admonition"><code parentName="pre" {...{"className":"language-bash"}}>{`{
     |           ^
  11 |   ...,
  12 |   "pluginPaths": ["~/flipper-plugins"]
  13 | }
client (webpack 5.74.0) compiled with 1 error

```

Reviewed By: ivanmisuno

Differential Revision: D43767006

fbshipit-source-id: 64288d63c305bc9a9c9b797110889a703c7dcfee
2023-03-06 03:31:54 -08:00
Lukas Kurucz
9bc9b53017 Add more details into supportsMethod usage. (#4365)
Summary:
## Changelog

Pull Request resolved: https://github.com/facebook/flipper/pull/4365

Reviewed By: antonk52

Differential Revision: D42918954

Pulled By: passy

fbshipit-source-id: 6f569cf32d5544308afab2bf11a245324601ead9
2023-02-10 01:53:20 -08:00
Luke De Feo
3722ac1fea Permanent search bar
Summary: Out of the box the library search has some issues. when search matches it steals focus from the input. Eventually we want to customise the rendering of the tree items anyway so this lays the foundation for taht

Reviewed By: antonk52

Differential Revision: D41336524

fbshipit-source-id: 194f67023edd0675cd9bd8d6134260439c6b2785
2022-11-24 09:23:16 -08:00
Kevin Strider
bd92bb7faf Creating Plugins
Summary: This diff includes minor changes to the pages within the Creating Plugins section of Flipper Docs.

Reviewed By: passy

Differential Revision: D41497503

fbshipit-source-id: 5c5718b63bfff18322b28b547724415ab40a1810
2022-11-24 05:37:59 -08:00
Lorenzo Blasa
66984c6d13 Organise 'Under the Hood'
Summary: This change alphabetically sorts the 'Under the Hood' section and adds a 'Meta' parent category for everything that is internal as to add a visual cue of what is internal and whats not.

Reviewed By: passy

Differential Revision: D41273678

fbshipit-source-id: 1acf8da184762d5924bff90b6691be1e4be92c46
2022-11-15 06:18:12 -08:00
Andrey Goncharov
a39ffb1c5f Update link to FlipperLib
Reviewed By: passy

Differential Revision: D41027669

fbshipit-source-id: c890f04241ebb5e6721c15bde028b50547847b50
2022-11-07 07:37:39 -08:00
Deborah Attuah
95af1428ce automatic update for docusaurus-plugin-internaldocs-fb@0.12.3
Reviewed By: antonk52

Differential Revision: D39169091

fbshipit-source-id: 249c5f092c1b0f8e0d6f303e6ac96cdee019ecfa
2022-08-31 07:59:11 -07:00
Feiyu Wong
02c21f5cb0 Changed documentation with DataSource to be up to date
Summary: Since there were large refactoring's done to `DataSource` during the milestone for side-by-side panels, wanted to update some of the documentation as well so that the information is accurate and up to date.

Reviewed By: mweststrate

Differential Revision: D38541404

fbshipit-source-id: a6ba472f881fb8cbfa90ff5ac295a0b87c595080
2022-08-12 08:47:06 -07:00
Lorenzo Blasa
706ad760dc Edit desktop-plugin-structure.mdx using inpage editor
Summary:
This diff has been automatically generated by the inpage editor.
                        If you want to update this diff, go through the preview link that would be attached to the test plan.
                        Please ensure you are editing the same page that was used to create this diff.

Reviewed By: passy

Differential Revision: D37853011

fbshipit-source-id: 1d68d5a80b30bb1b1cdf5703272717dadbe3a977
2022-07-14 10:07:35 -07:00
Kevin Strider
490fdbd4c4 desktop-plugin-structure.mdx (Creating Plugins - Plugin Structure)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: passy

Differential Revision: D37035954

fbshipit-source-id: e6e6a0e23989b676a59390ab6f0d068b449ee21d
2022-06-10 02:17:00 -07:00
Kevin Strider
50919e26f5 public-releases.mdx (Under the Hood - Public Flipper Releases)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: passy

Differential Revision: D36666339

fbshipit-source-id: 4c57746bd62fd52fa8dff4fda3098c443941ae30
2022-05-26 04:24:33 -07:00
Kevin Strider
23f73f0b1e testing-rn.mdx (Under the Hood - Testing RN Changes)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: passy

Differential Revision: D36666807

fbshipit-source-id: 6da969a81a28fc7f9cd7cd8deb3fe341b5516ee2
2022-05-26 03:44:28 -07:00
Kevin Strider
b75eeb941b client-plugin-lifecycle.mdx (Creating Plugins - Client Plugin Lifecycle)
Summary:
Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

This diff includes a new version of the images:
bg-plugin-lifecycle.png
regular-plugin-lifecycle.png

The old versions have been renamed to:
bg-plugin-lifecycle.bak
regular-plugin-lifecycle.bak

Reviewed By: aigoncharov

Differential Revision: D36630758

fbshipit-source-id: 29922750364e1dd6f959bd297e3b5d5e6cf1a9ac
2022-05-25 03:42:25 -07:00
Kevin Strider
ee006a961b architecture.mdx (Creating Plugins - Architecture)
Summary:
Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

This diff includes a new version of the image 'flipper-communication-diagram.png'.
The old version has been renamed to 'flipper-communication-diagram.bak'

Reviewed By: aigoncharov

Differential Revision: D36628993

fbshipit-source-id: cb59785777926b4fb8b8bb3be2aa2439d3a580d0
2022-05-25 03:26:55 -07:00
Kevin Strider
2d465c1bf9 layout-inspector.mdx (Creating Plugins - Extending the Layout Inspector)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: aigoncharov

Differential Revision: D36632888

fbshipit-source-id: 41c4ddceab4ae6a665559093465a73c595aa494f
2022-05-25 03:21:57 -07:00
Kevin Strider
b8292ee62c create-plugin.mdx (Creating Plugins - Client Plugin API)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: aigoncharov

Differential Revision: D36626315

fbshipit-source-id: 735160f8d1f1365a8aab7fb1cd3e99b724025e3a
2022-05-25 03:14:14 -07:00
Kevin Strider
669bc74acd error-handling.mdx (Creating Plugins - Error Handling)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: aigoncharov

Differential Revision: D36626777

fbshipit-source-id: 65c5fcac860ff47c775fc43c053a8a55eb4804e9
2022-05-25 03:11:36 -07:00
Kevin Strider
02058a14d0 flipper-plugin.mdx (CreatingPlugins - Desktop Plugin API)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: nikoant

Differential Revision: D36594291

fbshipit-source-id: caba082f8bf6ab62c7bd03b3dfeae43f5ec76b7e
2022-05-24 03:29:25 -07:00
Kevin Strider
d9524e893c node-apis.mdx (Creating Plugins - Using Node.js APIs)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: mweststrate

Differential Revision: D36596005

fbshipit-source-id: 9ae71f426fad792af6e13f949581e26f8366baa4
2022-05-23 09:43:57 -07:00
Kevin Strider
cd1345bc28 deeplinks.mdx (Creating Plugins - Using Deeplinks)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: mweststrate

Differential Revision: D36595695

fbshipit-source-id: 7aea6856da2d1e00676c781ffe3d817d6abc58dc
2022-05-23 09:39:07 -07:00
Kevin Strider
1dd2f8bcf1 styling-components.mdx (Creating Plugins - Styling Components)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: mweststrate

Differential Revision: D36595388

fbshipit-source-id: 0d65c3b7099d492c1e3959f9d1d4b3f7c09cd98d
2022-05-23 09:36:58 -07:00
Andrey Goncharov
e40981ee2e Expose isAtom from flipper-plugin
Summary: Required for companion in later diffs

Reviewed By: passy

Differential Revision: D36517737

fbshipit-source-id: ad47ae00cc88f424507284553c7d4eb430691311
2022-05-23 03:38:23 -07:00
Kevin Strider
3dbd3f43e1 sandy-migration.mdx (Creating Plugins - Migrating a Plugin to Sandy)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: nikoant

Differential Revision: D36516592

fbshipit-source-id: c8f7ffe8ae26a5e741ae818a55b14cc3e35193ff
2022-05-20 03:55:28 -07:00
Kevin Strider
55137371f3 plugin-distribution (Creating Plugins - Plugin Distribution)
Summary:
Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).
* plugin-distribution
* imports: desktop-plugin-releases

Reviewed By: nikoant

Differential Revision: D36514954

fbshipit-source-id: cf350d30c049bc7daeef1af3f988ce3b6a2fb502
2022-05-20 03:53:24 -07:00
Kevin Strider
24864d645e testing.mdx (Creating Plugins - Testing)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: nikoant

Differential Revision: D36473819

fbshipit-source-id: 567da4bf86bb18298e45c6a139f86eab7c10dd98
2022-05-19 04:27:59 -07:00
Andrey Goncharov
2cff109910 Fix headings for "Desktop Plugin API"
Reviewed By: nikoant

Differential Revision: D36508504

fbshipit-source-id: ece204e5a18d2c98481e21f5c6f0dc42386cf2b5
2022-05-19 02:44:09 -07:00
Kevin Strider
1481eed0c8 debugging.mdx (Creating Plugins - Debugging)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: nikoant

Differential Revision: D36479883

fbshipit-source-id: 3530dd5f35a36e97a0d7466f981bc8974f29c292
2022-05-18 10:25:25 -07:00
Kevin Strider
3e71216c38 dev-setup.mdx (Creating Plugins - Development Setup)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: nikoant

Differential Revision: D36445067

fbshipit-source-id: c68dd9973aea50cee35d3db9417e9190dbd5ceda
2022-05-18 10:22:36 -07:00
Andrey Goncharov
88bc3110a5 Add server add-on documentation
Reviewed By: nikoant

Differential Revision: D36446375

fbshipit-source-id: dfa9098428413bff454b5893f022735267dba5b8
2022-05-18 02:20:53 -07:00
Kevin Strider
78d395ad51 loading-custom-plugins.mdx (Creating Plugins - Dynamically Loading Plugins)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: nikoant

Differential Revision: D36445433

fbshipit-source-id: 6e0033607cf58d5da51dd9910b40f158ceed84cf
2022-05-17 10:03:37 -07:00
Kevin Strider
96e0fffc25 supporting-layout.mdx (SetUp - Implementing Layout Inspection)
Summary: Restyle of the page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: lblasa

Differential Revision: D36315001

fbshipit-source-id: 6a628abb9328e1c9dbe38c98fd6a12f84563efd4
2022-05-12 03:21:01 -07:00
Kevin Strider
ab8bd29822 establishing-a-connection.mdx (SetUp - Secure Connection)
Summary: Restyle of the page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: lblasa

Differential Revision: D36313447

fbshipit-source-id: 99f94779caefd7f9f64121a40928c2be2d1f3ff4
2022-05-12 03:19:32 -07:00
Kevin Strider
6cdda85ec9 new-clients.mdx (SetUp - Implementing a Flipper Client)
Summary: Restyle of the page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: nikoant

Differential Revision: D36312999

fbshipit-source-id: 737a1f8a9dc659c7351ac55e0ccc1d4083393aa5
2022-05-11 08:36:41 -07:00
Andrey Goncharov
01a5f3da90 Add generics to server add-on connection
Reviewed By: mweststrate

Differential Revision: D34307356

fbshipit-source-id: 27e61355a85995368ebb197c42d58f4145473567
2022-02-28 03:50:34 -08:00
Andrey Goncharov
bed23c586b Replace style guide references
Summary:
allow-large-files
See D34339758

Reviewed By: jknoxville

Differential Revision: D34378570

fbshipit-source-id: ad451afc1774e6d38902d510629ce1b92457adf0
2022-02-22 08:25:28 -08:00
Andrey Goncharov
342c316c84 Add style guide
Summary:
allow-large-files
See D34339758

Reviewed By: jknoxville

Differential Revision: D34378571

fbshipit-source-id: a7c845f4676b25998dc63bf3029c5d1ec8205611
2022-02-22 08:25:28 -08:00
Lorenzo Blasa
395708348d Remove RSocket documentation references
Summary:
^
Changelog: Remove RSocket documentation references

Reviewed By: jknoxville

Differential Revision: D34345316

fbshipit-source-id: 5b9fac8c04e325f3f02ef3713b0146b17e694c9d
2022-02-21 06:22:44 -08:00
Anton Kastritskiy
f2abbf63db ban interface usage for component props and state
Summary: another eslint rule for flipper codebase

Reviewed By: passy

Differential Revision: D33917213

fbshipit-source-id: e60b867d359ef5b94a481edf0eda318ecff17eee
2022-02-02 05:09:45 -08:00
Anton Kastritskiy
75f874a5dd error for I prefixed interface names
Summary: {gif:kosnw403}

Reviewed By: mweststrate

Differential Revision: D33845782

fbshipit-source-id: 2b9bd70e3b2d930e8f4cd8fe7976ac76f43b2496
2022-01-31 05:34:58 -08:00
Anton Kastritskiy
1aff8466b1 let linter handle type naming conventions
Summary: {gif:kosnw403}

Reviewed By: passy

Differential Revision: D33846715

fbshipit-source-id: 5de4bb0cf88f24f5a26acedb82a0816417fb0787
2022-01-31 02:49:09 -08:00
Anton Kastritskiy
4c83fbb524 warn about ts file extension
Summary: remove statically analysable life from typescript guidelines and let eslint handle it

Reviewed By: passy

Differential Revision: D33819891

fbshipit-source-id: 3cc3cb512607c3651cd3a9e48228d83bab5bb64a
2022-01-28 05:43:46 -08:00
Pascal Hartig
6258169afe Edit dev-setup.mdx using inpage editor
Summary:
Adding this to another place that people seem to overlook.

This diff has been automatically generated by the inpage editor.
                        If you want to update this diff, go through the preview link that would be attached to the test plan.
                        Please ensure you are editing the same page that was used to create this diff.

Reviewed By: antonk52

Differential Revision: D33528019

fbshipit-source-id: ce6bf60b42161fc409277fb8c62ff38fd91b05cf
2022-01-11 07:36:00 -08:00
Michel Weststrate
7efad4201c Document how to use Node.js api's
Summary:
* Documented `npx flipper-server`
* Documented how to properly interact with the OS from Flipper plugins

Reviewed By: antonk52

Differential Revision: D33361929

fbshipit-source-id: 3028de2bf77a9ee6d9e521c1a53cff2388c936ea
2022-01-04 09:06:15 -08:00
Michel Weststrate
87833c759e Fixed an exception when logging unserializable errors
Reviewed By: nikoant

Differential Revision: D33276412

fbshipit-source-id: 615b2cc523a3ab4445a1208f460753b8634f6812
2021-12-22 03:18:51 -08:00