Commit Graph

562 Commits

Author SHA1 Message Date
Fredrik Adelöw 3bd6cc7c55 some more progress toward ubiquitous eslint-plugin-testing-library
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-11-23 09:28:37 +01:00
Fredrik Adelöw d3fea4ae0a avoid globals
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-11-22 15:42:29 +01:00
Fredrik Adelöw cb716004ef add some eslint rules for testing-library use in tests
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-11-18 11:29:20 +01:00
Patrik Oldsberg 7ac593e8d3 Merge pull request #14075 from ilteoood/fix/14026
fix: page hader
2022-11-15 09:19:31 +01:00
Anders Näsman e984e9018f Merge pull request #14256 from omerfarukdogan/master
feat(docs): hide document description if not provided
2022-11-14 14:05:18 +01:00
Eric Peterson bd2aab4726 Capture 'click' event on link clicks within TechDocs dom
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-11-11 12:00:37 +01:00
Ömer Faruk Doğan 63705e73d9 feat(docs): hide document description if not provided
Signed-off-by: Ömer Faruk Doğan <8117265+omerfarukdogan@users.noreply.github.com>
2022-11-10 16:58:21 +03:00
Matteo Pietro Dazzi 22719b8812 Merge remote-tracking branch 'backstage/master' into fix/14026 2022-10-26 22:12:33 +02:00
Matteo Pietro Dazzi f5ab2bc24c fix: capitalize
Signed-off-by: Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com>
2022-10-26 22:12:18 +02:00
Matteo Pietro Dazzi 9a2088fb8c refactor: position
Signed-off-by: Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com>
2022-10-26 22:12:18 +02:00
Otto Sichert cc8701d2fb Add documentation for configuring TechDocsReaderPage
Signed-off-by: Otto Sichert <git@ottosichert.de>
2022-10-25 17:38:43 +02:00
Morgan 5878dcd120 remove unused import
Signed-off-by: Morgan <mbentell@spotify.com>
2022-10-25 16:39:57 +02:00
Morgan 1a22b5f1b1 rewrite loop code
Signed-off-by: Morgan <mbentell@spotify.com>
2022-10-25 16:27:03 +02:00
Morgan 431ecaf1d5 this seems to solve the issue. actually get the nested element instead of the parent of that element
Signed-off-by: Morgan <mbentell@spotify.com>
2022-10-25 16:27:03 +02:00
Fredrik Adelöw 52d168b6a1 Merge pull request #14312 from backstage/freben/circ
get rid of circular imports
2022-10-25 10:46:52 +01:00
Fredrik Adelöw 7573b65232 get rid of circular imports
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-10-25 11:00:05 +02:00
Simon Ninon 5691baea69 plugin-techdocs: add group filtering support to EntityListDocsGrid
Signed-off-by: Simon Ninon <sninon@pagerduty.com>
2022-10-24 10:34:57 -07:00
Fredrik Adelöw cbe11d1e23 just getting rid of vale warnings
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-10-22 17:18:47 +02:00
Johan Haals 2e9329831f Merge pull request #14192 from Bonial-International-GmbH/pjungermann/github/naming-part2
chore(integration): use consistent naming of `[gG]ithub` in code
2022-10-20 09:41:56 +02:00
Patrick Jungermann c1784a4980 chore(integration): use consistent naming of [gG]ithub in code
Relates to the discussion at PR #14039.

Relates-to: PR #14039
Relates-to: PR #14174
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-10-19 16:11:53 +02:00
Phil Kuang 3a1a999b7b fix(techdocsReader): include search params when navigating urls
Signed-off-by: Phil Kuang <pkuang@factset.com>
2022-10-13 11:33:17 -04:00
Matteo Pietro Dazzi c62fa237d8 fix: use entity as fallback
Signed-off-by: Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com>
2022-10-11 17:33:46 +02:00
Matteo Pietro Dazzi 847fc588a6 fix: page hader
Signed-off-by: Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com>
2022-10-11 13:36:40 +02:00
Anders Näsman 4c33b249a0 Merge pull request #13527 from drankou/drankou/techdocs-scroll-fix
fix(techdocs): Fix scrolling for anchors on the current page
2022-09-06 11:53:33 +02:00
Patrik Oldsberg 7a95c705fa techdocs: fix addons not rendering on subpages with react router v6
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-05 12:30:19 +02:00
drankou e97d616f08 Fix scrolling for anchors on the current page
Signed-off-by: drankou <aliaksandr.drankou@productboard.com>
2022-09-05 10:56:27 +02:00
Camila Belo ca8d5a6eae refactor: apply review suggestions
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-09-01 12:39:45 +02:00
Fredrik Adelöw aaab1e34da Fix linting errors after #13392
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-08-30 13:44:09 +02:00
Patrik Oldsberg 9f1feb5464 plugins: fix tests for react router bump
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam <ben@blam.sh>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-08-29 14:10:52 +02:00
Patrik Oldsberg 763fb81e82 refactors to avoid using useParams where possible
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-08-23 18:43:26 +02:00
blam 1de5594c75 chore: reworking tests for swc
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:05 +02:00
blam 658d6ab0e7 chore: fixing all tests
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00
blam 1826f15069 chore: reworking
Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00
Emma Indal 9d02b5e887 Merge pull request #13125 from backstage/camilaibs/fix-techdocs-title-subtitle
[TechDocs] Update title and subtitle when location changes
2022-08-22 16:56:57 +02:00
Fredrik Adelöw ef9ab322de it just keeps 🧹 -ing
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-08-18 17:21:00 +02:00
Fredrik Adelöw 3f739be9d9 more api cleanup
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-08-18 15:16:19 +02:00
Camila Belo 829f14a9b0 fix(techdocs): to update title and subtitle when location changes
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-08-12 15:27:25 +02:00
Andre Wanlin f1e97bcc4f Added back reduction in size
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2022-08-10 10:13:34 -05:00
Crevil e69f405945 Simplify code to be more readable
Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
2022-08-01 17:40:19 +02:00
Crevil 1abe0a2333 Support already expanded navigation
Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
2022-08-01 17:37:33 +02:00
Crevil 8acb22205c Add navigation scroll to techdocs
Currently the active navigation item might be hidden behind nested items or out
of view on load.

This change adds a techdocs transformer that scrolls any active item into view
and expands any nested active items.

Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
2022-07-28 08:01:29 +02:00
Ben Lambert 9aef50ef1a Merge pull request #12679 from lunarway/feature/techdocs-nav-highlight
Add highlight to active techdocs navigation item and parents
2022-07-27 16:53:49 +02:00
Jake Crews 4bdda91def Merge branch 'master' into fix-view-techdocs-link 2022-07-26 07:51:54 -05:00
gabrielucido 83636e7c5a Added constant to sidebar width.
Signed-off-by: gabrielucido <gabrielucido@gmail.com>
2022-07-19 17:07:01 -04:00
gabrielucido 7a98c73dc8 fix(docs-like-code): Patched Techdocs Sidebar layout for medium devices.
Signed-off-by: gabrielucido <gabrielucido@gmail.com>
2022-07-19 16:43:01 -04:00
Crevil b86ed4d990 Add navigation item highlight to active item
This change adds high lighting to navigation items in tech docs. It highlights
the whole nav tree with the same color and an underline.

Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
2022-07-17 16:18:27 +02:00
Eric Peterson 8d9ff6de46 Merge pull request #12043 from Bonial-International-GmbH/pjungermann/techdocs/initial-filter
feat: use same initial filter `owned` at TechDocsIndexPage as at CatalogPage
2022-07-15 10:25:56 +02:00
Patrick Jungermann ebf3eb1641 feat: use same initial filter owned at TechDocsIndexPage as at CatalogPage
Aligns filter use of catalog page (and api page) with techdocs page.

Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-07-15 01:31:11 +02:00
Jake Crews a62b31c3e6 fix techdocs contexts test
Signed-off-by: Jake Crews <jake.crews@daveramsey.com>
2022-07-14 10:45:46 -05:00
Raghunandan 823ae416c5 Fix scroll issue within techdocs reader instead of adding special classes to entity page components
Signed-off-by: Raghunandan <soapraj@gmail.com>
2022-06-26 11:04:06 +02:00