Files
graylog2-server/graylog2-web-interface/docs/tests.md
Edmundo Alvarez 84843a8ac5 Frontend documentation and components gallery (#4383)
* Add react-styleguidist module

* Add basic react styleguidist configuration

- Include shared components in the gallery
- Add build scripts to build the gallery and serve it

* Add some more content to UI documentation

* Add documentation

* Add stylesheets to component gallery

* Add EntityList documentation

* Add examples to documented common components

* Add some more documentation

* Add styles for typeahead

* Add documentation for PageErrorOverview

* Remove missing id warning in example

* Add documentation for Page component

* Add PageHeader documentation

* Add PaginatedList documentation

* Correct header tags

* Add SearchForm documentation

* Use deprecated annotation

* Let consumers of `Select` customize `displayKey`

React Select uses `labelKey` instead of `displayKey` so pass the right
prop down.

* Add documentation for Select component

* Add SelectableList documentation

* Add SortableList and SortableListItem documentation

* Fix props definition in TableList component

* Fix display of select all Input

This prop was not updated when we migrated to our own Input component.

* Add documentation for TableList component

* Add documentation for Timestamp component

* Add documentation for TimeUnit component

* Add TimeUnitInput documentation

* Fix error while rendering component

We used the wrong import here, `moment` doesn't know about timezones.

* Be more explicit about the prop we support

As we specify the `onChange` prop in the TimezoneSelect prop types, we
should at least use it instead of passing it down as other props that
are not listed.

We should restrict the supported props at some point, protecting
our code from changes in underlying components.

* Add documentation for TimezoneSelect component

* Add documentation for TypeAheadDataFilter component

* Add TypeAheadFieldInput documentation

* Fix some TypeAheadDataFilter documentation

* Add TypeAheadInput documentation

* Add documentation for ReactGridContainer

* Add some basic docs

* Update yarn.lock
2017-12-04 17:37:53 +01:00

320 B

We use Jest and Enzime to write frontend tests. We encourage you to write tests for any complex logic that may be easily broken, but you may also write tests for components if you really feel like it will help to make it more robust without much overhead.