- Add route, clusterRoute, and payloadValidatedClusterRoute helper
functions to improve types with backend routes
- Turn on the following new lints:
- react/jsx-first-prop-new-line
- react/jsx-wrap-multilines
- react/jsx-one-expression-per-line
- react/jsx-max-props-per-line
- react/jsx-indent
- react/jsx-indent-props
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add tooltipLabels field to ChartData
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Use tooltipLabels in ClusterPieCharts for pods
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Check for tooltipLabels field to assign tooltip text
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Use tooltipLabels inside overview charts
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Expand workload overview charts to fit tooltips
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Move tooltipLabels into chart datasets
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Move tooltipLabels prop to PieCharts
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Little clean up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Getting back id field to PieChartData interface
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Id fix
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* More clean up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* check source files for license header
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* tweak
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* add license header to all relevant source files
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
- Add distinction between `getInstance` and `getInstanceOrCreate` since
it is not always possible to create an instance (since you might not
know the correct arguments)
- Remove all the `export const *Store = *Store.getInstance<*Store>();`
calls as it defeats the purpose of `Singleton`. Plus with the typing
changes the appropriate `*Store.getInstance()` is "short enough".
- Special case the two extension export facades to not need to use
`getInstanceOrCreate`. Plus since they are just facades it is always
possible to create them.
- Move some other types to be also `Singleton`'s: ExtensionLoader,
ExtensionDiscovery, ThemeStore, LocalizationStore, ...
- Fixed dev-run always using the same port with electron inspect
- Update Store documentation with new recommendations about creating
instances of singletons
- Fix all unit tests to create their dependent singletons
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Roman <ixrock@gmail.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Sebastian Malton <smalton@mirantis.com>
Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>