Commit Graph

72 Commits

Author SHA1 Message Date
Oliver Sand 437bac5490 Make the description column in the catalog table use up as much space as possible before hiding overflowing text
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-02-19 17:52:58 +01:00
Oliver Sand d6593abe6f Remove columns from cards where it's duplicate information
Resolves #4553

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-02-19 17:52:58 +01:00
Kiran Patel c380f32c35 feat(overflowtooltip): add text as default title for tooltip 2021-02-17 22:45:32 +11:00
Kiran Patel 5469a9761f feat(CatalogTable): truncate long description with ellipsis and tooltip 2021-02-17 22:45:31 +11:00
Oliver Sand ec08562289 Avoid intermediate card component and use InfoCard directly 2021-02-16 14:46:49 +01:00
Oliver Sand dd95e2efd6 Remove now unused code 2021-02-16 14:42:50 +01:00
Oliver Sand e7c2e70e77 Fix some leftover variant usages 2021-02-16 12:52:35 +01:00
Oliver Sand fccf63335c Fix typos 2021-02-16 12:25:15 +01:00
Oliver Sand 584dd21454 Use enum for variant 2021-02-16 12:22:17 +01:00
Oliver Sand 5a892f9dc8 Rename emptyComponent to emptyContent 2021-02-16 12:15:16 +01:00
Oliver Sand bd27885876 Use EntityTable everywhere 2021-02-12 10:43:33 +01:00
Oliver Sand 0af242b6d8 Introduce new cards to @backstage/plugin-catalog that can be added to entity pages 2021-02-12 10:43:32 +01:00
Oliver Sand 10a0124e0c Move useRelatedEntities to catalog-react 2021-02-12 10:40:50 +01:00
Adam Harvey 6f90b912fc Merge branch 'master' of github.com:backstage/backstage into improve-errors 2021-02-08 11:48:19 -05:00
Adam Harvey d84cb8199d Switch to CodeSnippet component 2021-02-08 10:54:48 -05:00
Adam Harvey e73f35b1ea Wrap in code fence 2021-02-03 21:46:54 -05:00
Adam Harvey c0ddb32563 Fix tests 2021-02-03 00:02:50 -05:00
Adam Harvey 5479e4eef0 Improve display of errors 2021-02-02 23:27:20 -05:00
Debajyoti Halder bf0dc0bcf8 Merge branch 'master' of https://github.com/spotify/backstage into lintMod 2021-02-02 23:08:18 +05:30
Patrik Oldsberg 26caa8bdc6 Merge pull request #4341 from backstage/rugvip/toptools
plugins: port user-settings, api-docs, and gcp-projects to new composability API
2021-02-02 13:53:40 +01:00
Debajyoti Halder 39e7f4a81e Merge branch 'master' of https://github.com/spotify/backstage into lintMod 2021-02-02 17:02:33 +05:30
Patrik Oldsberg 00e3c5a574 api-docs: add missing entity card exports 2021-02-01 19:15:30 +01:00
Patrik Oldsberg 6748413692 api-docs: update cards to grab entity from context + composability exports 2021-02-01 18:32:42 +01:00
Patrik Oldsberg fb265bb4fa api-docs: port top-level component to composability API 2021-02-01 17:59:33 +01:00
Oliver Sand 885e695803 Display the namespace of an entity if required 2021-02-01 17:28:36 +01:00
Oliver Sand e646d8065a Change EntityRow to have an entity and a resolved field instead of combining them 2021-02-01 14:29:24 +01:00
Oliver Sand e3d9da115c Correctly set the table value for sort/filtering 2021-02-01 13:53:18 +01:00
Oliver Sand 7fc89bae29 Display owner and system as entity page links in the tables of the api-docs plugin 2021-02-01 12:06:59 +01:00
Oliver Sand c677643afa Rename from @backstage/plugin-catalog-common-react to @backstage/plugin-catalog-react 2021-01-29 10:54:09 +01:00
Oliver Sand 019fe39a08 Createa @backstage/plugin-catalog-common-react package 2021-01-29 10:54:09 +01:00
Debajyoti Halder 6106345e6d Update project with latest eslint rules 2021-01-29 11:55:12 +05:30
Oliver Sand 8855f61f67 Update @asyncapi/react-component to 0.18.2
The package was also renamed from @kyma-project/asyncapi-react to @asyncapi/react-component which dependabot isn't able to handle.
2021-01-20 10:17:07 +01:00
Adam Harvey 4389d4f668 Update link to use catalog-import 2020-12-21 11:24:07 -05:00
Oliver Sand 246799c7f2 Show consumers and providers for APIs 2020-12-03 17:48:25 +01:00
Oliver Sand 7d1d9a3df3 Add tests for components in the api-docs plugin 2020-12-01 12:42:30 +01:00
Adam Harvey 74175b988e Refactor typo in variable name (#3486) 2020-11-29 08:50:33 +01:00
Peter Colapietro 3f947b70d1 fix(react): use fragment (#3478)
The empty state's description is already wrapped in a Typography component so the one in MissingImplementsApisEmptyState is redundant.

https://github.com/backstage/backstage/blob/bbaadb63f88d0f7d42acb9fa1b1644f85bf1043e/packages/core/src/components/EmptyState/EmptyState.tsx#L57

By wrapping the EmptyState's description in a Typography the following warning is output to the console

```
react-dom.development.js?1930:89 Warning: validateDOMNesting(...): <p> cannot appear as a descendant of <p>.
    in p (created by ForwardRef(Typography))
    in ForwardRef(Typography) (created by WithStyles(ForwardRef(Typography)))
    in WithStyles(ForwardRef(Typography)) (created by MissingImplementsApisEmptyState)
    in p (created by ForwardRef(Typography))
    in ForwardRef(Typography) (created by WithStyles(ForwardRef(Typography)))
    in WithStyles(ForwardRef(Typography)) (created by EmptyState)
    in div (created by ForwardRef(Grid))
    in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
    in WithStyles(ForwardRef(Grid)) (created by EmptyState)
    in div (created by ForwardRef(Grid))
    in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
    in WithStyles(ForwardRef(Grid)) (created by EmptyState)
    in div (created by ForwardRef(Grid))
    in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
    in WithStyles(ForwardRef(Grid)) (created by EmptyState)
    in EmptyState (created by MissingImplementsApisEmptyState)
    in MissingImplementsApisEmptyState (created by Router)
    in Router (at EntityPage.tsx:78)
    in article (created by Content)
    in Content (created by Layout)
    in Layout (created by EntityPageLayout)
    in div (created by Page)
    in ThemeProvider (created by Page)
    in Page (created by EntityPageLayout)
    in EntityPageLayout (at EntityPage.tsx:64)
    in ServiceEntityPage (at EntityPage.tsx:127)
    in EntityPage (created by EntityPageSwitch)
    in EntityPageSwitch (created by Router)
    in EntityProvider (created by Router)
    in Route (created by Router)
    in Routes (created by Router)
    in Router (at App.tsx:46)
    in Route (at App.tsx:44)
    in Routes (at App.tsx:42)
    in div (created by SidebarPage)
    in SidebarPage (at App.tsx:40)
    in Route (created by AppRouter)
    in Routes (created by AppRouter)
    in Router (created by BrowserRouter)
    in BrowserRouter (created by AppRouter)
    in AppRouter (at App.tsx:39)
    in CssBaseline (created by WithStyles(CssBaseline))
    in WithStyles(CssBaseline) (created by AppThemeProvider)
    in ThemeProvider (created by AppThemeProvider)
    in AppThemeProvider (created by Provider)
    in AppContextProvider (created by Provider)
    in ApiProvider (created by Provider)
    in Provider (at App.tsx:36)
    in App (at src/index.tsx:6)
```

Co-authored-by: Peter Colapietro <petercolapietro@gmail.com>
2020-11-27 18:08:37 +01:00
Oliver Sand 032aba5920 Apply suggestions from code review
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
2020-11-26 16:40:18 +01:00
Oliver Sand 6f70ed7a95 Replace usage of implementsApis with relations 2020-11-25 17:30:11 +01:00
Oliver Sand f3bb55ee31 Make api-docs customizable 2020-11-24 11:53:14 +01:00
Fredrik Adelöw 717e43de14 catalog-client: change entities interface, add fields support (#3296) 2020-11-18 19:58:36 +01:00
Oliver Sand 84b654d5de Use dense table style and outlined chips in the API Explorer (#3276)
This matches the styling of the catalog.
2020-11-11 13:34:40 +01:00
Oliver Sand 0c0798f082 Persist Table Filters in the API Explorer (#2936)
* fix: allow changing the categories of a checkbox tree

* feat: allow setting the current selection in the checkbox tree

* feat: allow setting the current selection in the select

* feat: add a way to access the tables internal state (filters, search, ...)

* feat: add useQueryParams hook

* feat: persist the table state of the api explorer in the url

* Use react-use instead of writing own hooks

* Resolve review comments

* Rename selectedChilds to selecetedChildren

* Add changesets

* Support passing a separate state name to useQueryParamState

This allows to use the useQueryParamState hook multiple time per route and have a separate state.

* refactor: fix typo...
2020-11-09 18:19:47 +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
Kévin Gomez 014bc250b3 Fix API references parsing
Allows API entities to use a different namespace than the default one.
2020-10-17 23:20:08 +02:00
Dominik Henneke 2e1a0b8c99 feat(api-docs): show a custom error page when no apis are implemented by a component (#2933) 2020-10-16 16:02:08 +02:00
Patrik Oldsberg 5ff5b1325d Merge pull request #2739 from Marvin9/feat/flexible-theme-for-page
feat: theme customization for pages
2020-10-16 12:47:05 +02:00
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
Oliver Sand 46b9ae82ba Add filters to API Explorer (#2830)
* fix: support nested fields in table filter

Add support for nested fields like metadata.name to the table filters. Previously only top-level fields were allowed. In addition, support for filtering on fields that are arrays is introduced (like tags). Filters are now distinct.

* feat: introduce table filters to the api explorer

* fix: allow to close select in multiple mode

* fix: export TableFilter
2020-10-13 09:45:25 +02:00