Commit Graph

51 Commits

Author SHA1 Message Date
o-farooq a906f20e7b feat(techradar-plugin) add techradar blip history backend support (#3191)
* add techradar entry history data structure

* updated names and added changeset

* fix docs

Co-authored-by: Omer Farooq <17722640+o-farooq@users.noreply.github.com>
2020-11-10 16:29:45 +01:00
Oliver Sand 3f05616bf5 fix text color of tech-radar footer (#3245) 2020-11-05 13:05:05 +01:00
Althaf Hameez eb976e8e0f Remove tech-radar owner and lifecycle from header (#3061)
* Remove tech-radar owner and lifecycle from header

* Run prettier

* Fix prettier warning
2020-11-02 09:24:17 +01:00
blam 101978963d Merge branch 'master' of github.com:spotify/backstage into migrate-to-msw
* 'master' of github.com:spotify/backstage: (139 commits)
  Cleanup
  Update PinButton.test.tsx
  feat: update github insights plugin version (#2973)
  Ignore IntelliJ *.iml files (#2971)
  chore(deps): bump rollup-plugin-dts from 1.4.11 to 1.4.13
  fix the plugin card on plugins page
  align 'Add to Marketplace' button on plugins page
  fix the PluginGrid on mobiles sizes
  use getBy query instead of queryBy when asserting for elements present in document (#2951)
  Update PinButton.tsx
  Add test case for Progress component (#2953)
  fix the styling of footer copy on mobile
  add changeset
  handle the case where no entities are available to show
  core-api: work around issue with ApiRef export const declarations
  core-api: move utility api system implementation into apis/system
  Update docs regarding npm config ignore-scripts flag
  Another try
  Fix Core Features configuration id (#2948)
  Fix test?
  ...
2020-10-19 23:57:40 +02:00
Abhishek Jakhar 782f3b3541 Add test case for Progress component (#2953)
* remove data-testid from div

* add test case for Progress component

* add changeset

* update the GraphiQLPage test cases to handle Progress timeout

* update the RadarComponent and RadarPage test case to handle Progress timeout

* update the TechDocsProgressBar test case to handle Progress timeout

* add changeset
2020-10-19 10:33:30 +02:00
Abhishek Jakhar 02c60b5f8b fix(tech-radar): add overflowX scroll to the company radar section 2020-10-16 17:23:39 +05:30
Marvin9 fe4926cb75 chore: remove explicit return 2020-10-15 13:52:18 +05:30
Marvin9 8f0608a5ed chore: refactor 2020-10-15 09:16:39 +05:30
Marvin9 6d68f6fec1 feat: consume theme provided by Page theme provider 2020-10-11 19:14:23 +05:30
blam a0604474c1 chore: removing the last of the deps in the plugins 2020-10-09 13:49:10 +02:00
Marvin9 e2564645e5 feat: Replace old page theme props with new ones 2020-10-04 18:03:50 +05:30
Patrik Oldsberg 66a2a870bc plugins/tech-radar: migrate to new plugin pattern and avoid using api for config 2020-09-07 20:10:08 +02:00
Fredrik Adelöw 7389f326d9 chore: add import/newline-after-import lint rule 2020-07-02 11:25:04 +02:00
Rémi DOREAU 1baa5309a1 refactor(tech-radar): add moved type 2020-06-24 14:03:03 +02:00
Rémi DOREAU 542d209a6b refactor(tech-radar): requested changes 2020-06-20 23:45:25 +02:00
Rémi DOREAU fac4893555 fix(tech-radar): missing state setters 2020-06-20 18:52:15 +02:00
Rémi DOREAU 3f7e0bd23f fix(tech-radar): moved @types/react to devDependencies 2020-06-20 18:41:12 +02:00
Rémi DOREAU 984f777b67 refactor(tech-radar): update test + RadarLegend refacto 2020-06-20 17:45:53 +02:00
Rémi DOREAU 4cae750c72 refactor(tech-radar): update moved prop type 2020-06-20 17:45:53 +02:00
Rémi DOREAU 3d318efeae refactor(tech-radar): variable names + undefined check 2020-06-20 17:45:53 +02:00
Rémi DOREAU de1fe3c0e8 refactor(tech-radar): style + code quality 2020-06-20 17:45:53 +02:00
Rémi DOREAU f00a76dc96 feat(tech-radar): add unit tests 2020-06-20 17:45:53 +02:00
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