Commit Graph

450 Commits

Author SHA1 Message Date
github-actions[bot] c734d6995a Version Packages 2021-08-12 08:21:56 +00:00
Phil Kuang 80582cbec4 feat(techdocs): implement composable home page
Signed-off-by: Phil Kuang <pkuang@factset.com>
2021-08-10 10:03:26 -04:00
Phil Kuang 10ef115554 refactor(EntityListDocsTable): support custom columns and actions
Signed-off-by: Phil Kuang <pkuang@factset.com>
2021-08-10 10:03:25 -04:00
Phil Kuang a440d3b389 refactor(techdocs): rework TechDocsHome to use EntityListProvider
Signed-off-by: Phil Kuang <pkuang@factset.com>
2021-08-10 10:03:24 -04:00
Patrik Oldsberg 8a3e465910 techdocs: switch to xhr-based event source polyfill
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-08-10 10:03:01 +02:00
Fredrik Adelöw 923491eece run prettier formatting
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-08-09 11:54:38 +02:00
Himanshu Mishra 0f6c44d39e Merge pull request #6697 from backstage/mob/bump-prettier-in-create-app 2021-08-06 09:39:01 +02:00
Patrik Oldsberg 990cc3bacb packages: switch @types/react dependency to use *
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-08-05 12:33:48 +02:00
github-actions[bot] 326cbd7408 Version Packages 2021-08-05 00:24:56 +00:00
Ben Lambert 71ca123f24 Merge pull request #6698 from adrianke77/fix-techdocs-feedback-link-breaking-with-Git-subgroups-in-path
fix Techdocs feedback link breaking with Gitlab subgroups in path
2021-08-04 13:05:10 +02:00
Adrian Ke 1d65bd490d fix Techdocs feedback link breaking with Git subgroups in path
Signed-off-by: Adrian Ke <adrian.ke@grabtaxi.com>
2021-08-04 10:34:59 +08:00
Ben Lambert 8f5befa35e Merge pull request #6691 from Patil2099/master
Fix All Material UI Warnings
2021-08-03 20:18:56 +02:00
Pankaj Patil d56c390e8f Fix All Material UI Warnings
Signed-off-by: Pankaj Patil <pankaj.patil2099@hotmail.com>
2021-08-03 21:49:08 +05:30
Camila Belo db58cf06c2 fix(techdocs-plugin): apply review suggestions
- strict regex scope to avoid security issues
- add techdocs prefix to the changeset file

Signed-off-by: Camila Belo <camilaibs@gmail.com>
2021-08-03 08:56:01 +02:00
Camila Belo b24a18e406 fix(techdocs-plugin): do not sanitize safe head links
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2021-08-03 08:44:48 +02:00
github-actions[bot] 32b48219ce Version Packages 2021-07-29 10:32:54 +00:00
Ben Lambert 9148b7fdcb Merge pull request #6444 from kuangp/feat/catalogFilter
feat(catalog-backend): support filtering on property existance
2021-07-29 10:29:26 +02:00
blam b05210593d chore: bump the version of material-ui core to 4.12.2
Signed-off-by: blam <ben@blam.sh>
2021-07-27 23:44:43 +02:00
Phil Kuang 11c370af20 feat(catalog-backend): support filtering on property existence
Signed-off-by: Phil Kuang <pkuang@factset.com>
2021-07-25 10:40:51 -04:00
Eric Peterson e1f02fb2a2 Merge pull request #6551 from backstage/iameap/dompurify
[TechDocs] Use "secure by default" sanitization library
2021-07-24 23:52:53 +02:00
github-actions[bot] f51fcaeba2 Version Packages 2021-07-22 10:52:38 +00:00
Eric Peterson 59e2987eb0 Forbid style tags, per existing test.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-07-21 16:32:14 +02:00
Eric Peterson 3789b66040 Remove sanitize-html library in favor of DOMPurify
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-07-21 15:40:07 +02:00
Eric Peterson 106ac9aa35 Clean up unneeded tag/attr allow lists.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-07-21 15:39:03 +02:00
Eric Peterson d80be05359 Move sanitize transformer out of its special dir
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-07-21 15:38:45 +02:00
Eric Peterson 16218839ba MVP DOMPurify Swap over sanitize-html
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-07-21 15:37:36 +02:00
Eric Peterson cdc223c1b7 Merge pull request #6492 from SDA-SE/feat/techdocs-async-transformer
[TechDocs] Refactor the techdocs transformers to return `Promise`s and await all transformations
2021-07-21 15:15:53 +02:00
Eric Peterson 3b50bd9548 Merge pull request #6375 from RoadieHQ/gh4568-tech-docs-collator
Implement DefaultTechDocsCollator
2021-07-21 15:01:48 +02:00
Dominik Henneke af46ffabfd Merge remote-tracking branch 'upstream/master' into feat/techdocs-async-transformer 2021-07-21 14:00:11 +02:00
Eric Peterson 17b6919001 Merge pull request #6491 from SDA-SE/feat/techdocs-reduce-rerender
[TechDocs] Only update the path when the content is updated
2021-07-21 13:52:48 +02:00
Dominik Henneke 445440a408 Make sure all old transformations are cancelled when the hook dependencies changed
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-07-21 13:52:29 +02:00
Dominik Henneke 7d67750eae Merge remote-tracking branch 'upstream/master' into feat/techdocs-async-transformer 2021-07-21 12:43:50 +02:00
Dominik Henneke 391c4d9b45 Merge remote-tracking branch 'upstream/master' into feat/techdocs-reduce-rerender 2021-07-19 17:11:07 +02:00
Philipp Hugenroth 280c0c60be Merge branch 'master' into entity-page-responsiveness 2021-07-19 11:10:43 +02:00
Philipp Hugenroth c642324708 Legacy option for overflow wrap & update changeset bump
Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
2021-07-19 11:06:28 +02:00
Raghunandan Balachandran f9457c0dd4 Merge pull request #6455 from SDA-SE/feat/techdocs-no-crash-not-found
[TechDocs] Handle error responses in getTechDocsMetadata and `getEntityMetadata` such that `<TechDocsPageHeader>` doesn't throw errors.
2021-07-19 10:05:16 +02:00
Philipp Hugenroth bcfdd852c2 Break error message text for docs on EntityPage
Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
2021-07-15 15:12:16 +02:00
Dominik Henneke 214e7c52d1 Refactor the techdocs transformers to return Promises and await all transformations
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-07-15 14:35:19 +02:00
Dominik Henneke 3d3c43f0a7 Create a dedicated contentLoading action that keeps old content
This change makes sure that the content is removed when an error occurs such as a link to a missing page. It also stills shows the old content while the new one is loaded. The (delayed) loading indicator still shows that new content is loaded.

Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-07-15 14:33:43 +02:00
Dominik Henneke 378cc6a54b Only update the path when the content is updated
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-07-15 14:33:42 +02:00
Jussi Hallila 9266b80ab3 Implement DefaultTechDocsCollator
* Implements a collator for tech docs.
   * Retrieves mkdocs created search index for entities that have documentation configured
* Registers collator to expose tech docs content to be searchable
* Adds pagination to example search
* Modifies example search to contain tech docs
   * Displays docs results with link to docs and the entity name as title.
* Creates a reusable type filter to be located in the search package.
* Add tests for type filter

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-07-15 13:14:25 +02:00
github-actions[bot] 8d1c3d0d5a Version Packages 2021-07-15 09:19:25 +00:00
Dominik Henneke 9ed3d401c8 Refactor <TechDocsPageHeader/> to not use AsyncState as inputs
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-07-15 10:20:12 +02:00
Dominik Henneke e35b13afa9 Handle error responses in getTechDocsMetadata and getEntityMetadata such that <TechDocsPageHeader> doesn't throw errors.
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-07-15 10:20:11 +02:00
Eric Peterson 855c9d8341 Merge pull request #6454 from kuangp/fix/techdocs
fix(techdocs): fetch entity relations field to determine owned docs
2021-07-15 09:22:29 +02:00
Patrik Oldsberg d9ce823b00 packages: regenerate all API reports with warnings
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-07-15 02:05:46 +02:00
Eric Peterson ef4a4cdefd Merge pull request #6341 from SDA-SE/feat/techdocs-build-logs 2021-07-14 23:30:15 +02:00
Eric Peterson 7703516ad8 Merge pull request #6355 from adrianke77/techdocs-sidebars-not-adjusting-position
TechDocs: Sidebars not adjusting positions
2021-07-14 17:43:31 +02:00
Phil Kuang 537c37b0f1 fix(techdocs): fetch entity relations field to determine owned docs
Signed-off-by: Phil Kuang <pkuang@factset.com>
2021-07-13 11:23:57 -04:00
Dominik Henneke 2d58075d46 Display the correct error message
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-07-13 16:49:33 +02:00