Commit Graph

29 Commits

Author SHA1 Message Date
Stefan Ålund d0518ee5d9 Add sample plugins to sidebar (#1243)
* Add sample plugins to sidebar

* Update RadarPage.test.tsx
2020-06-11 12:25:15 +02:00
Patrik Oldsberg 9a1b363812 plugins/tech-radar: fix lint issue in RadarBubble 2020-06-08 11:12:15 +02:00
Nathan Calvank 42130988fe Issue 661 Tech Radar Typescript refactor (#1080)
* Refactor RadarFooter

* Refactor RadarLegend Pt 1

* Refactor RadarLegend Pt 2

Seeing some errors that I don't fully understand around the proptypes
assertions seemingly being treated as null | undefined values.

It looks like I'll need to type Segment, which is not explicitly
in-scope for this issue.

* Fix segments regression

I incorrectly added type safety to the original implementation, causing
the segments to no longer be populated here. This change fixes that
regression while retaining the type safety.

This is all necessary because qidx and ridx are apparently both
nullable.

* Resolve remaining RadarLegend warnings

* Refactor RadarEntry

* Forcibly skip hooks to revert migration prettify

* Refactor RadarGrid

* Refactor RadarPlot & Best effort with PropTypes

A global search looks like no other plugins use PropTypes. I'm about to
remove them in the next commit because shapes don't seem to cooperate
with TypeScript, making the PropTypes either so vague that they're
mostly useless or specific enough to fail the build.

With that said, I wanted to get this version committed in case I need to
roll back to here. I wouldn't want to redo this work.

* Remove PropTypes from refactored components

The build now passes.

* Refactor RadarBubble

* Refactor Radar

* Move Radar functions out of component file

I could see these being split into separate files, but I think this is
enough for now.

* Small function signature change

* Align types

I'm not confident in this change. I'm very unclear about the reasoning
behind the type definitions in api.ts as they don't reflect the shape of
the values that I see when I print `data.entries` in the console.

The value of data.entries reflects a fully-populated Entry[], not a
RadarEntry[].

As such, I'm also not sure about the sample data. I would be more
hesitant to updated it, but the fact that the rest of the components
seem to be expecting that data makes it seem fairly clear that it must
be required to be in the updated shape.
2020-06-08 09:13:03 +02:00
Patrik Oldsberg 9f50e7c1b4 packages,plugins: fix lint issues 2020-06-01 16:09:10 +02:00
Adil Alimbetov f72d97dc17 Sidebar logo update (#814)
* Testing logo ux

* Updated logo on sidebar

* removed unused vars

* adjusted types on icon components
2020-05-27 10:13:41 +02:00
Patrik Oldsberg 20b48dfed7 packages/core: only export createApiRef + dashes in IDs only factory objects for ApiTestRegistry 2020-05-24 23:09:24 +02:00
Marcus Eide 324245586f Change import of jest-dom in setupTests.ts according to change in api 2020-05-18 11:11:58 +02:00
Patrik Oldsberg 1f159c0f99 packages/cli: switch rollup to use esbuild 2020-05-17 23:30:11 +02:00
Fredrik Adelöw 6424ce2306 Ran prettier everywhere 2020-05-07 07:21:27 +02:00
Bilawal Hameed a4c05f203f fix: updated tests for RadarPage and RadarComponent 2020-05-02 14:40:31 +02:00
Bilawal Hameed d04855e98a fix: RadarPage uses RadarComponent under the hood 2020-05-02 14:40:12 +02:00
Bilawal Hameed 2c146cc86b fix: rename loadSampleData to getSampleData 2020-05-02 14:39:31 +02:00
Bilawal Hameed ef9e6ba6a8 feature: add RadarComponent and export as TechRadarComponent 2020-05-02 14:39:07 +02:00
Bilawal Hameed e1f4cd0057 feature: split tech-radar api to component/plugin props 2020-05-02 14:37:37 +02:00
Bilawal Hameed e7f25aa91b changed object to Partial type 2020-04-27 15:02:40 +02:00
Bilawal Hameed e9ba3895a9 adjust getBBox polyfill logic 2020-04-27 15:02:40 +02:00
Bilawal Hameed 9fdc99c3e8 added initial docs 2020-04-27 15:02:40 +02:00
Bilawal Hameed 4faf199f72 added tests for RadarPage 2020-04-27 15:02:40 +02:00
Bilawal Hameed e6af811771 add polyfill for SVGElement.prototype.getBBox (not supported in JSDOM) 2020-04-27 15:02:40 +02:00
Bilawal Hameed 521015ed26 migrated RadarBubble to material-ui styles 2020-04-27 15:02:40 +02:00
Bilawal Hameed 6b6d31a556 migrated RadarEntry to material-ui styles 2020-04-27 15:02:40 +02:00
Bilawal Hameed 60f4ca9797 migrated RadarFooter to material-ui styles 2020-04-27 15:02:40 +02:00
Bilawal Hameed d09c5332bf migrated RadarLegend to material-ui styles 2020-04-27 15:02:40 +02:00
Bilawal Hameed 1c3c6aa2a4 migrated RadarGrid to material-ui styles 2020-04-27 15:02:40 +02:00
Bilawal Hameed c521e175f9 removed css modules from css 2020-04-27 15:02:40 +02:00
Bilawal Hameed 54908acd59 fixed linting errors 2020-04-27 15:02:40 +02:00
Bilawal Hameed 02969e44e5 added example implementation 2020-04-27 15:02:39 +02:00
Bilawal Hameed cdcb414412 migrated tech radar from internal implementation 2020-04-27 15:02:39 +02:00
Bilawal Hameed 822701684b added skeleton 2020-04-27 15:02:39 +02:00