Gabriel Dugny
72d019d663
chore(typos): Fix low-impact typos
...
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com >
2025-04-23 17:56:22 +02:00
Paul Schultz
2e26579e06
chore: update react imports
...
Signed-off-by: Paul Schultz <pschultz@pobox.com >
2025-04-08 07:35:24 -05:00
Jackson Chen
0e9f7fe269
techdocs: update attachTechDocsAddonComponentData with idempotency
...
Signed-off-by: Jackson Chen <jacksonc@spotify.com >
2025-03-26 15:43:06 -04:00
Jackson Chen
b5a82087a7
techdocs: add extensions for techdocs addons ( #28644 )
...
* techdocs: add extensions for techdocs addons
Signed-off-by: Jackson Chen <jacksonc@spotify.com >
* techdocs: add blueprint extension for techdocs addons
Signed-off-by: Jackson Chen <jacksonc@spotify.com >
* techdocs: move addons blueprint to alpha
Signed-off-by: Jackson Chen <jacksonc@spotify.com >
* techdocs: add addon extensions for new frontend system and add docs
Signed-off-by: Jackson Chen <jacksonc@spotify.com >
* techdocs: fix addon modules naming patterns
Signed-off-by: Jackson Chen <jacksonc@spotify.com >
* techdocs: update test utils with entity presentation api
Signed-off-by: Jackson Chen <jacksonc@spotify.com >
---------
Signed-off-by: Jackson Chen <jacksonc@spotify.com >
2025-02-21 16:39:45 -05:00
Thomas Cardonne
4a2f73a302
fix(techdocs): avoid rerender current page when navigating to another ( #26944 )
...
Signed-off-by: Thomas Cardonne <thomas.cardonne@adevinta.com >
2024-10-17 08:04:39 -04:00
Fredrik Adelöw
811ff0cddc
implement analytics too
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2024-10-11 09:48:52 +02:00
Fredrik Adelöw
9cc7dd6cfd
implement the beginnings of mockApis
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2024-10-08 17:58:34 +02:00
Alex Lorenzi
e46dfec74d
Updated useShadowRootElements to use the shadow root first child instead of flipping booleans to help with unneeded updates when the DOM doesn't change
...
Signed-off-by: Alex Lorenzi <alorenzi@spotify.com >
2024-08-22 16:26:36 -04:00
Jackson Chen
df4d3ca493
Fix tests
...
Signed-off-by: Jackson Chen <jacksonc@spotify.com >
2024-06-27 22:18:50 -04:00
Alex Lorenzi
8a4c24e036
Rollback the changes in #25332
...
Add MutationObserver in useShadowRootElements to we can trigger update when the elements under the shadow root change
Signed-off-by: Alex Lorenzi <alorenzi@spotify.com >
Signed-off-by: Jackson Chen <jacksonc@spotify.com >
2024-06-27 15:36:44 -04:00
Alex Lorenzi
6919db3a3e
Slight better variable naming
...
Signed-off-by: Alex Lorenzi <alorenzi@spotify.com >
Signed-off-by: Sydney Achinger <sydneynicoleachinger@spotify.com >
2024-06-20 15:16:16 -04:00
Alex Lorenzi
dd780ece4f
Switch to using a version number instead of hashing the content
...
Signed-off-by: Alex Lorenzi <alorenzi@spotify.com >
Signed-off-by: Sydney Achinger <sydneynicoleachinger@spotify.com >
2024-06-20 15:16:16 -04:00
Sydney Achinger
94778dd4ee
Add setShadowRootVersionHash to force shadowRoot to update in provider when version changes.
...
Signed-off-by: Sydney Achinger <sydneynicoleachinger@spotify.com >
2024-06-20 15:16:16 -04:00
Juan Pablo Garcia Ripa
b450af3142
Add ESLint Rule to techdocs-react plugin
...
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com >
2024-04-08 00:09:00 +02:00
Tomasz Szuba
e8f026a300
Use esm exports from react-use library
...
Signed-off-by: Tomasz Szuba <tszuba@box.com >
2024-03-19 19:53:04 +00:00
Camila Belo
048b875dbf
refactor: move refresh logic back to TechDocsReaderPage
...
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com >
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2024-03-12 09:53:32 +01:00
Camila Belo
de083201d2
feat: implement refresh cookie on frontend
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2024-03-12 09:00:51 +01:00
Patrik Oldsberg
0696ef1a34
replace usages of await act(async () => {}) with waitFor
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-18 09:37:04 +02:00
Patrik Oldsberg
0935b0d60f
rtl 13 fixes for tests with type issues
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-18 09:37:03 +02:00
Patrik Oldsberg
d60fbcb553
remove usages of @testing-library/react-hooks
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-18 09:37:03 +02:00
Morgan Bentell
f11f42b8e1
Merge pull request #16659 from agentbellnorm/techdocs/remove-warnings
...
[TechDocs] remove warnings
2023-03-20 14:43:11 +01:00
Morgan Bentell
791c7467d4
cancel the debounce in the cleanup function that actually handles the event setup and teardown, where it belongs
...
Signed-off-by: Morgan Bentell <mbentell@spotify.com >
2023-03-20 13:27:47 +01:00
Morgan Bentell
6f8035a265
make unmount effect more explicit
...
Signed-off-by: Morgan Bentell <mbentell@spotify.com >
2023-03-20 13:14:10 +01:00
Morgan Bentell
fc84b1b04e
removed internal package from changeset
...
Signed-off-by: Morgan Bentell <mbentell@spotify.com >
2023-03-20 10:38:17 +01:00
Morgan Bentell
6eaa03d9de
workaround useAsync typescript error
...
Signed-off-by: Morgan Bentell <mbentell@spotify.com >
2023-03-17 11:47:38 +01:00
Morgan Bentell
fc1665944b
could it be?
...
Signed-off-by: Morgan Bentell <mbentell@spotify.com >
2023-03-17 11:47:31 +01:00
Morgan Bentell
68c7082188
assume metadata is available and only refetch it if we don't have it when the shadowroot is mounted
...
Signed-off-by: Morgan Bentell <mbentell@spotify.com >
2023-03-16 16:44:30 +01:00
Morgan Bentell
f6c92d54e7
wait with fetching techdocs metadata until the shadow root exists
...
Signed-off-by: Morgan Bentell <mbentell@spotify.com >
2023-03-16 16:44:30 +01:00
Morgan Bentell
103f5e2793
Merge branch 'master' into techdocs/remove-warnings
...
Signed-off-by: Morgan Bentell <morgan.bentell@gmail.com >
2023-03-16 16:18:32 +01:00
Morgan Bentell
7cf160e4bc
cancel debounced function on unmount to avoid updating state on an umounted component
...
Signed-off-by: Morgan Bentell <mbentell@spotify.com >
2023-03-01 13:55:58 +01:00
Fredrik Adelöw
65454876fb
unpack props inside component bodies
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2023-02-27 15:31:15 +01:00
Mark David Avery
b8269de9f1
style(react 18): explicitly declaring children as optional props
...
This is to facilitate the react 18 upgrade which introduced the requirement to explicily declare children as props
Helps to address #12252
Signed-off-by: Mark David Avery <mark@webark.cc >
2023-01-04 11:21:34 -08:00
Morgan
6aa2b965eb
when looking for the page within the outlet, reject addons wrapper as well as addons, because different versions of react router use different numbers of wrappers. Should be compatible with all 6.* versions now
...
Signed-off-by: Morgan <mbentell@spotify.com >
2022-12-19 17:48:13 +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
Eric Peterson
7d1352d459
Provide entityRef analytics context within TechDocs reader
...
Signed-off-by: Eric Peterson <ericpeterson@spotify.com >
2022-11-11 12:00:09 +01:00
Jake Crews
b874bd03bb
change wrapper back to global declaration
...
Signed-off-by: Jake Crews <jake.crews@daveramsey.com >
2022-07-26 09:12:54 -05:00
Jake Crews
b2c4aaa7b2
fix lowercaseEntityRefMaybe
...
Signed-off-by: Jake Crews <jake.crews@daveramsey.com >
2022-07-14 12:54:43 -05:00
Jake Crews
aef5f69057
change TechDocsReaderPageContext to modify entityRef for casing
...
Signed-off-by: Jake Crews <jake.crews@daveramsey.com >
2022-07-14 09:39:41 -05:00
Jake Crews
29d6cf0147
fix(plugin-catalog): Fix viewTechdocLink so kind is lowercase by default in url path
...
Signed-off-by: Jake Crews <jake.crews@daveramsey.com >
2022-07-14 07:34:41 -05:00
Johan Haals
c3cfc83af2
chore: Make docstrings MDX compatible
...
Signed-off-by: Johan Haals <johan.haals@gmail.com >
2022-06-14 16:29:17 +02:00
Camila Belo
95a5352746
fix(techdocs): prevent content re-renders
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2022-05-18 14:16:32 +02:00
Anders Näsman
84717cf5ea
api report fix
...
Signed-off-by: Anders Näsman <andersn@spotify.com >
2022-05-16 09:13:12 +02:00
Anders Näsman
206c7ccca0
apply review feedback
...
Signed-off-by: Anders Näsman <andersn@spotify.com >
2022-05-16 09:13:12 +02:00
Eric Peterson
2b74671f52
Move stable alpha exports to public.
...
Signed-off-by: Eric Peterson <ericpeterson@spotify.com >
2022-05-11 13:34:24 +02:00
Camila Belo
9e0a6ef4fa
feat(techdocs): add addon settings location
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2022-05-06 08:52:54 +02:00
Anders Näsman
a68de3c984
move TechDocsStorage api from @backstage/plugin-techdocs to @backstage/plugin-techdocs-react
...
Signed-off-by: Anders Näsman <andersn@spotify.com >
2022-04-27 13:10:42 +02:00
Eric Peterson
075a9a067b
Clean up createTechDocsAddonExtension return type
...
Signed-off-by: Eric Peterson <ericpeterson@spotify.com >
2022-04-25 15:10:00 +02:00
Eric Peterson
39a6eda01d
Review feedback 2: electric boogaloo
...
Co-authored-by: Otto Sichert <git@ottosichert.de >
Co-authored-by: Anders Näsman <realandersn@users.noreply.github.com >
Signed-off-by: Eric Peterson <ericpeterson@spotify.com >
2022-04-12 15:37:29 +02:00
Eric Peterson
a357c354af
Do not use @alpha type in @public export
...
Signed-off-by: Eric Peterson <ericpeterson@spotify.com >
2022-04-12 13:07:58 +02:00
Eric Peterson
ca4420782c
Review feedback.
...
Signed-off-by: Eric Peterson <ericpeterson@spotify.com >
2022-04-12 11:25:25 +02:00