Skip to content

Commit

Permalink
Merge pull request #262 from smartprocure/feature/remove-contexture-r…
Browse files Browse the repository at this point in the history
…eact

Remove contexture-react
  • Loading branch information
stellarhoof authored Nov 23, 2024
2 parents 2ea9b6e + f819c92 commit 4b11091
Show file tree
Hide file tree
Showing 236 changed files with 3,962 additions and 29,882 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"settings": {
"import/resolver": {
"typescript": {
"extensions": [".ts", ".tsx", ".js", ".jsx"]
"extensions": [".ts", ".js"]
}
}
}
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ To keep track of all this, contexture's client manages the UI state and optimize
- Nodes track statuses like loading, last update times, and validation out of the box.
- The client can debounce changes to the entire tree and drop intermediate results.

### React

Contexture has a react component library that interacts with the client. There are generic components ranging from nested query builders to entire search layouts. Every included node type also has a component (like checkbox lists). You can drop in a single component for a complete UI with dynamic filters - or build it up component by component. There's even a robust theming API to customize every part of the UI.

### How does all this work?

The client's functions ("actions") dispatch events to nodes (much like redux). An action might mutate node properties, pause or resume a node, or add, remove, or move a node to a group. Node-specific event reactor functions then determine which nodes to update. After an optional debounce, requests go to the server when there are nodes to update. The server walks the tree and runs queries for each node based on its type and the relevant provider. For more detailed information, each package has its own readme.
Expand All @@ -47,9 +43,10 @@ The client's functions ("actions") dispatch events to nodes (much like redux). A
| [provider-elasticsearch](./packages/provider-elasticsearch) | [contexture-elasticsearch](https://www.npmjs.com/package/contexture-elasticsearch) | Elasticsearch provider for contexture |
| [provider-mongo](./packages/provider-mongo) | [contexture-mongo](https://www.npmjs.com/package/contexture-mongo) | MongoDB provider for contexture |
| [client](./packages/client) | [contexture-client](https://www.npmjs.com/package/contexture-client) | The client library that manages the DSL, allowing for hyper efficient updates running only what is exactly needed |
| [react](./packages/react) | [contexture-react](https://www.npmjs.com/package/contexture-react) | React components for building contexture interfaces |
| [export](./packages/export) | [contexture-export](https://www.npmjs.com/package/contexture-export) | Export searches into files or any other target |

We used to offer a React library with pre-built components for getting up and running quickly with contexture but it was removed in [this PR](https://github.com/smartprocure/contexture/pull/262)

#### Ecosystem And Resources

- [Elasticon 2018 Talk About Contexture](http://github.com/smartprocure/contexture-ec18-talk)
2 changes: 1 addition & 1 deletion packages/provider-elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ process(tree, {

As of 0.10.0, a `getSchemas` async method is exposed on an instantiated provider, which will read the elasticsearch mappings and aliases to automatically generate schemas.

Generated schemas also include field definitions, which can leveraged with something like `exampleTypeSchemaMapping` to make them fit for consumption by dynamic field pickers such as the one in contexture-react.
Generated schemas also include field definitions, which can leveraged with something like `exampleTypeSchemaMapping` to make them fit for consumption by dynamic field pickers.

## Default Types

Expand Down
21 changes: 0 additions & 21 deletions packages/react/.eslintrc.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/react/.prettierignore

This file was deleted.

57 changes: 0 additions & 57 deletions packages/react/.storybook/main.js

This file was deleted.

27 changes: 0 additions & 27 deletions packages/react/.storybook/preview.jsx

This file was deleted.

Loading

0 comments on commit 4b11091

Please sign in to comment.