Commit Graph

4918 Commits

Author SHA1 Message Date
Oliver Sand cb8c848a38 Disable color transitions on links to avoid issues in dark mode
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-26 17:17:10 +02:00
Oliver Sand 35e32bbf4c Merge pull request #5425 from SDA-SE/feat/techdocssss-api
TechDocs: Use interface and not implementation in ApiRef<T>
2021-04-26 14:21:58 +02:00
Oliver Sand 7aa4308179 Merge pull request #5427 from SDA-SE/feat/fix-guest
Fix owner references to guest user
2021-04-26 14:21:42 +02:00
Chongyang Adrian, Ke 15cbe68156 fix techdocs landing page table wrong copied link
Signed-off-by: Chongyang Adrian, Ke <ftt.adrian.ke@grabtaxi.com>
2021-04-26 12:02:44 +08:00
Erik Larsson d47c2628b7 fix: include migrations in code-coverage-backend plugin
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-04-24 06:51:24 +02:00
Oliver Sand 92cc589201 Remove duplicate @backstage/test-utils dependency
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-23 13:16:21 +02:00
Oliver Sand a3048a3b7f Fix some remaining typing issues
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-23 12:48:14 +02:00
Oliver Sand f09f6a166b Use interface and not implementation in ApiRef<T>
Closes #4404

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-23 12:48:13 +02:00
Eric Peterson 74a5b00eb6 Merge pull request #5371 from adrianke77/techdocs-landing-page-customization
Add TechDocs landing page customization and exported components
2021-04-23 11:50:15 +02:00
Eric Peterson 46d0d04ee7 Merge pull request #5430 from SDA-SE/feat/search-experiments
Use `RouteRef` to generate path to search page
2021-04-23 11:22:54 +02:00
Eric Peterson 2f9dc47c91 Merge pull request #5428 from SDA-SE/feat/techdocssss-header
TechDocs: Use `EntityRefLink` in header and use relations to reference the owner of the document
2021-04-23 09:52:34 +02:00
Chongyang Adrian, Ke 813a4a04f5 fix DocsTable rendering of EmptyState
Signed-off-by: Chongyang Adrian, Ke <ftt.adrian.ke@grabtaxi.com>
2021-04-23 11:38:09 +08:00
Chongyang Adrian, Ke 7dd94b0750 add CSSProperties type for panelCSS
Signed-off-by: Chongyang Adrian, Ke <ftt.adrian.ke@grabtaxi.com>
2021-04-23 11:20:46 +08:00
Adrian Ke Chongyang 4666ddb275 Update plugins/techdocs/src/home/components/TechDocsHome.tsx
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>

Co-authored-by: Eric Peterson <iamEAP@users.noreply.github.com>
Signed-off-by: Chongyang Adrian, Ke <ftt.adrian.ke@grabtaxi.com>
2021-04-23 11:07:18 +08:00
Adrian Ke Chongyang 64ade20227 Update plugins/techdocs/src/home/components/TechDocsHome.tsx
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>

Co-authored-by: Eric Peterson <iamEAP@users.noreply.github.com>
Signed-off-by: Chongyang Adrian, Ke <ftt.adrian.ke@grabtaxi.com>
2021-04-23 11:07:18 +08:00
Chongyang Adrian, Ke cb321bae90 change naming from widget to panel
Signed-off-by: Chongyang Adrian, Ke <ftt.adrian.ke@grabtaxi.com>
2021-04-23 11:07:18 +08:00
Chongyang Adrian, Ke 39bdaa0046 Add TechDocs landing page customization and exported components
Signed-off-by: Chongyang Adrian, Ke <ftt.adrian.ke@grabtaxi.com>
2021-04-23 11:07:17 +08:00
Oliver Sand dcd54c7cd1 Use RouteRef to generate path to search page
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-22 16:47:45 +02:00
github-actions[bot] 034998d537 Version Packages 2021-04-22 13:19:35 +00:00
Emma Indal b9b2b4b766 [Search] Lunr search engine support (#5290)
* add lunr package

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add search translator type and search engine interface

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* (wip) add support for lunr search engine

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* lunr search engine support

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* clean up todo comments

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* typing and cleanups

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* move lunr type package from dev deps to deps

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* check if documents exist to index

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* test fixup

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* changeset

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* move LunrSearchEngine.ts to /engines and add tests

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* update imports

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* update error message

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add comment to index rotation

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* Update plugins/search-backend-node/src/types.ts

Signed-off-by: Fredrik Adelöw freben@gmail.com

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* Update plugins/search-backend-node/src/engines/LunrSearchEngine.ts

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

Co-authored-by: Fredrik Adelöw <freben@gmail.com>

* Update plugins/search-backend-node/src/engines/LunrSearchEngine.ts

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

Co-authored-by: Fredrik Adelöw <freben@gmail.com>

* fix imports

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* use type assertion to specify more specific ConcreteLunrQuery type

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* fix imports

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* consistent naming

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* change search engine to be parameter of constructor in indexBuilder

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* make engine required in router options and pass it through in createRouter used in standalone server

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* fix tests

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* delete import

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add types to SearchQuery interface to make it possible to scope to specific index + test

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* clean up tests

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* handle case when a filter is added on a field that does not exist on all documents + test

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
2021-04-22 15:03:10 +02:00
Oliver Sand 23afdba96f Use EntityRefLink in header and use relations to reference the owner of the document
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-22 13:26:07 +02:00
Oliver Sand 6eaecbd81d Fix owner references to guest user
If the user guest is used as an example value of the owner field, we should make sure to specify it as user:guest instead as the default is group.

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-22 13:21:45 +02:00
Fredrik Adelöw d203c9e901 Merge pull request #5418 from alde/master
[code-coverage] fix so tests work in windows
2021-04-22 10:29:21 +02:00
Fredrik Adelöw 3cc097b5ab Merge pull request #5424 from backstage/freben/splel
Fix some spleling
2021-04-22 10:19:25 +02:00
Fredrik Adelöw 49574a8a3e Fix some spleling
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-22 09:51:37 +02:00
alde d0addca860 [code-coverage] fix so tests work in windows
Use path.resolve, and trim end of scmFiles

Signed-off-by: alde <r.dybeck@gmail.com>
2021-04-21 13:14:57 -04:00
Fredrik Adelöw 491d519c5f Merge pull request #5413 from SDA-SE/feat/moin
Add low german greeting
2021-04-21 17:39:20 +02:00
Fredrik Adelöw b5372224ba Merge pull request #5395 from backstage/freben/ldap-set
Fix the schema / code mismatch in LDAP `set` config
2021-04-21 17:21:56 +02:00
Fredrik Adelöw 5fe62f124e Fix the schema / code mismatch in LDAP set config
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 16:33:06 +02:00
Oliver Sand 87c4f59dea Add low german greeting
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-21 15:21:02 +02:00
Fredrik Adelöw 5eafc14dc5 Merge pull request #5412 from wrighbr/patch-1
Australian Greeting
2021-04-21 14:57:18 +02:00
Fredrik Adelöw 87a82498b9 final fixup
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 13:30:21 +02:00
alde 5fa7f67933 remove src/dev/ folder
Signed-off-by: alde <r.dybeck@gmail.com>
2021-04-21 12:58:20 +02:00
alde 50bd7ce58a align dependency versions
Signed-off-by: alde <r.dybeck@gmail.com>
2021-04-21 12:58:20 +02:00
alde 7f521339b9 fix test fixture
Signed-off-by: alde <r.dybeck@gmail.com>
2021-04-21 12:58:20 +02:00
Fredrik Adelöw 22a9a88b46 move to devdependencies
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:19 +02:00
Fredrik Adelöw 9ed45248b9 update vocab
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:19 +02:00
Fredrik Adelöw eb35e81128 update express-promise-router to the repo standard
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:19 +02:00
alde 12a45d22ad fix some tsc issues
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:19 +02:00
alde bf7a3aee58 may not be necessary to set source-location
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:19 +02:00
alde fd2fe42176 FileContent: remove unnecessary styling on paper
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:19 +02:00
alde eb6a17971a Fix theming of CoverageRow
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:19 +02:00
alde 24acde6832 set dependency on entity for FileContent#useAsync
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:19 +02:00
alde 50ce122fca Stop using React.FC, use CardHeader instead of Box
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:19 +02:00
alde d4b2b0869d use getEntitySourceLocation in CoverageUtils
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:19 +02:00
alde b64e81b80d use discoveryApi to find code-coverage-backend api
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:19 +02:00
alde 9132deaa76 fix file content explorer, use getEntitySourceLocation
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:19 +02:00
alde 10f5e0c7ec fix error panels
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:18 +02:00
Rickard Dybeck 25b40a66a6 don't wrap color in string
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:18 +02:00
Rickard Dybeck 8e09c5fa2d remove string interpolation for theme spacing
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:18 +02:00