Commit Graph

328 Commits

Author SHA1 Message Date
Camila Belo ab1a69bcc3 Merge pull request #8365 from kuangp/fix/techdocs
fix(techdocsStorageClient): properly construct baseUrls
2021-12-13 22:46:36 +01:00
Phil Kuang e7cce2b603 fix(techdocsStorageClient): properly construct baseUrls
Signed-off-by: Phil Kuang <pkuang@factset.com>
2021-12-13 10:00:03 -05:00
Patrik Oldsberg 85ee184e68 core-components: LogViewer prop className -> classes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-12-09 12:02:53 +01:00
Ben Lambert 95ae1249a4 Merge pull request #8369 from backstage/rugvip/logs
core-components: add new LogViewer component + use in plugins
2021-12-08 15:24:45 +01:00
Johan Haals dd77b5eb12 Merge pull request #8283 from backstage/mob/identity-api
core-plugin-api: stabilize IdentityApi
2021-12-08 14:29:03 +01:00
Patrik Oldsberg d90dad84b0 techdocs: switch to using LogViewer
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-12-08 13:38:16 +01:00
Mert Can Bilgiç 3421826ca8 [TechDocs] Set entity triplets to lowercase if config is set on docs tab at entity page (#8394)
* Fixes #8381, set entity triplets to lowercase if config is set on docs tab at entity page

Co-authored-by: Mehmet Mallı <mehmet.malli@trendyol.com>
Signed-off-by: mertcbilgic <mert.bilgic@trendyol.com>

* Changeset added

Co-authored-by: Mehmet Mallı <mehmet.malli@trendyol.com>
Signed-off-by: mertcbilgic <mert.bilgic@trendyol.com>

* fixes due to review

Co-authored-by: Mehmet Mallı <mehmet.malli@trendyol.com>
Co-authored-by: Güven Altunsoy <guven.altunsoy@outlook.com>
Co-authored-by: Nilgün Canbaz <nilgun.canbaz@trendyol.com>
Co-authored-by: Burcu Karagöz <burcukaragoz1515@gmail.com>
Co-authored-by: Murat Sökücü <murat.sokucu@trendyol.com>
Signed-off-by: mertcbilgic <mert.bilgic@trendyol.com>

Co-authored-by: Mehmet Mallı <mehmet.malli@trendyol.com>
Co-authored-by: Güven Altunsoy <guven.altunsoy@outlook.com>
Co-authored-by: Nilgün Canbaz <nilgun.canbaz@trendyol.com>
Co-authored-by: Burcu Karagöz <burcukaragoz1515@gmail.com>
Co-authored-by: Murat Sökücü <murat.sokucu@trendyol.com>
2021-12-07 16:29:06 +01:00
Johan Haals e9471d274c Use BackstageUserIdentity, fix tests
Co-authored-by: blam <ben@blam.sh>
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-12-02 13:32:35 +01:00
Patrik Oldsberg 8a96019a39 Merge branch 'master' into rugvip/test-port 2021-11-22 17:33:10 +01:00
Patrik Oldsberg 29ef695410 packages,plugins: migrate to using TestApiProvider and Registry
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-18 11:28:46 +01:00
blam 06065c6003 chore: fixed better namespacing for the routeRefs
Signed-off-by: blam <ben@blam.sh>
2021-11-17 20:43:14 +01:00
blam 1332a98a01 chore: fixing deprecation warnings for all the things that are in the monorepo
Signed-off-by: blam <ben@blam.sh>
2021-11-17 20:24:20 +01:00
Eric Peterson f1a8e3a819 Merge pull request #8068 from stephane-mori/fix-reader
Set doc reader configurable
2021-11-17 12:09:33 +01:00
Eric Peterson 7439368ce5 Merge pull request #7917 from mertcb/migrate/oss 2021-11-17 08:44:42 +01:00
Stéphane MORI 7b3bb89e3c Set doc reader parametable
Signed-off-by: Stéphane MORI <stephane.mori@gmail.com>
2021-11-16 12:55:06 +01:00
Dominik Henneke f7703981a9 Use a better checkbox rendering in a task list
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-11-16 11:54:58 +01:00
Mert Can Bilgiç 35acef9931 Merge branch 'master' into migrate/oss 2021-11-16 10:27:39 +03:00
Oliver Sand ac511f98c4 Merge pull request #7865 from SDA-SE/feat/api-docs-customization
Lazy load API definition widgets
2021-11-11 12:03:00 +01:00
Kim Jin 53c9ad7e04 Update TechDocs Headings css font weight (#7931)
* update headings style

Signed-off-by: kim5566 <28945404+kim5566@users.noreply.github.com>

* add changeset

Signed-off-by: kim5566 <28945404+kim5566@users.noreply.github.com>

* update changeset

Signed-off-by: kim5566 <28945404+kim5566@users.noreply.github.com>

* rename changeset

Signed-off-by: kim5566 <28945404+kim5566@users.noreply.github.com>
2021-11-11 11:45:40 +01:00
Oliver Sand 7e5bd18cf7 Adjust to review comments
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-11-11 09:55:03 +01:00
Oliver Sand fe5738fe1c Lazy load LazyLog as it is rarely used
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-11-11 09:54:27 +01:00
Mert Can Bilgiç 884c6d0bc5 prettier runned
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com>
2021-11-10 13:28:22 +03:00
Mert Can Bilgiç c79b30420b lowercase routing issue fixed
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com>
2021-11-10 13:28:22 +03:00
Oliver Sand 106a5dc3ad Restore original casing for kind, namespace and name in DefaultTechDocsCollator
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-10-27 14:30:40 +02:00
Colton Padden a9a8c6f7c5 Scroll to the top of reader content when primary navigation link is clicked
When navigating between pages using the primary sidebar navigation menu,
scroll to the top of the generated markdown content via
`.scrollIntoView()`.

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-21 10:36:59 -04:00
Patrik Oldsberg 4552206702 Merge pull request #7657 from SDA-SE/feat/techdocs-grid
Add `<EntityListDocsGrid>` and extend `<DocsCardGrid>` to display the entity title
2021-10-21 00:35:19 +02:00
Patrik Oldsberg 82a7349d29 Merge pull request #7640 from kuangp/refactor/searchResultTitles
refactor(search): display entity title for result items if defined
2021-10-21 00:21:34 +02:00
Oliver Sand ba5b75ed2f Add <EntityListDocsGrid> and extend <DocsCardGrid> to display the entity title
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-10-18 11:23:28 +02:00
Phil Kuang 177401b571 refactor(search): display entity title for result items if defined
Signed-off-by: Phil Kuang <pkuang@factset.com>
2021-10-15 14:44:50 -04:00
Dominik Henneke cdf8ca6111 Only replace the shadow dom if the content is changed to avoid a flickering UI
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-15 17:14:12 +02:00
Dominik Henneke 8f55fb815b Fix test
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:43 +02:00
Dominik Henneke 82fbda923e Introduce a new StarredEntitiesApi that is used in the useStarredEntities hook
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-10-14 12:08:42 +02:00
Camila Belo 76fef740fe [TechDocs] Experimental useTechDocsReaderDom hook (#7476)
* WIP!

Co-authored-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>

* fix: use dom when updating sidebar

Signed-off-by: Camila Belo <camilaibs@gmail.com>

* fix: extract small components and transformers

Signed-off-by: Camila Belo <camilaibs@gmail.com>

* docs: describe the useTechDocsReaderDom

Signed-off-by: Camila Belo <camilaibs@gmail.com>

* docs: update api report

Signed-off-by: Camila Belo <camilaibs@gmail.com>

* docs: make the hook internal

Signed-off-by: Camila Belo <camilaibs@gmail.com>

* fix: remove circular progress from the alert

Signed-off-by: Camila Belo <camilaibs@gmail.com>

* Fix test

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>

* Mark new exports as @internal, add a text string to make it easy to find in the future

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>

* Changeset

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>

* Do not show progress bar during checking; prevent jumpy site on navigation

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>

* Combine progress/alert into a state indicator component and clarify vars.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>

* fix: documentation state updates

Co-authored-by: Eric Peterson <ericpeterson@spotify.com>
Signed-off-by: Camila Belo <camilaibs@gmail.com>

* fix: use circular progress again

Co-authored-by: Eric Peterson <ericpeterson@spotify.com>
Signed-off-by: Camila Belo <camilaibs@gmail.com>

* docs: update reader exports

Co-authored-by: Eric Peterson <ericpeterson@spotify.com>
Signed-off-by: Camila Belo <camilaibs@gmail.com>

* refactor: using provider instead of HOC

Co-authored-by: Eric Peterson <ericpeterson@spotify.com>
Signed-off-by: Camila Belo <camilaibs@gmail.com>

* refactor: update the changeset file

Co-authored-by: Eric Peterson <ericpeterson@spotify.com>
Signed-off-by: Camila Belo <camilaibs@gmail.com>

Co-authored-by: Eric Peterson <ericpeterson@spotify.com>
2021-10-13 16:15:27 +02:00
Eric Peterson c781f49fc4 Merge pull request #7435 from backstage/codemod/extension-names
Add names to all core extensions provided by plugins
2021-10-05 16:21:43 +02:00
Alex Rybchenko 7c5351791e updated tests
Signed-off-by: Alex Rybchenko <arybchenko@box.com>
2021-10-05 11:31:58 +02:00
Eric Peterson 81a41ec249 Apply extension-names codemod to monorepo.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-10-04 19:29:43 +02:00
Emma Indal dcd3e1d968 update api report and prop on Reader component in EntityPageDocs
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2021-09-30 12:40:48 +02:00
Emma Indal 1f73801d05 replace entityId with entityRef
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2021-09-30 12:21:10 +02:00
Eric Peterson 16b5b3d11a Clean up API report, export types.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-09-30 10:27:06 +02:00
Emma Indal 5098f4a7c9 use legacy techdocs page as fallback
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2021-09-29 20:06:36 +02:00
Emma Indal 145999f827 bring back not found
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2021-09-29 19:30:33 +02:00
Emma Indal a1cc051415 export components
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2021-09-29 19:11:27 +02:00
Emma Indal 776f625b9c TechDocsPage children to be both render function and plain component
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2021-09-29 19:11:27 +02:00
Emma Indal 0549587ebf TechDocsPage to accept children and withSearch prop
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2021-09-29 19:10:15 +02:00
Emma Indal 9bf6fe97cb add tests for TechDocsPage with custom header
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2021-09-29 19:10:15 +02:00
Patrik Oldsberg cbc0a83184 Merge pull request #5675 from ayshiff/feature/techdocs-e2e
Feature/techdocs e2e
2021-09-29 13:46:13 +02:00
Fredrik Adelöw 92c3d6dc04 Merge pull request #7356 from backstage/dependabot/npm_and_yarn/testing-library/react-hooks-7.0.2
build(deps): bump @testing-library/react-hooks from 3.4.2 to 7.0.2
2021-09-28 15:25:56 +02:00
Fredrik Adelöw f5e6961bc8 slow down there fella
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-09-28 14:09:12 +02:00
Patrik Oldsberg 1c43d2c25c Merge pull request #7331 from johanhammar/fix-copy-documentation-link-to-clipboard
fix(techdocs): fix copy documentation link to clipboard url
2021-09-28 13:21:37 +02:00
Patrik Oldsberg e4ecdb48a2 techdocs: format TechDocsPage
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-09-28 11:39:31 +02:00