Camila Belo
e10a5eaae5
fix(home): annotate getVisitName as internal utility
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-10-02 13:25:43 +02:00
Renan Mendes Carvalho
14db0dd105
feature(plugins/home): Improves title resolution
...
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:57 +02:00
Renan Mendes Carvalho
7a8b0b4cf3
refactoring(plugins/home): Separate TopVisited and RecentlyVisited
...
This patch separates the two components to be easier to import them
in the customizable homepage.
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:57 +02:00
Renan Mendes Carvalho
f4cb351de2
fix(plugins/home): Get name for catalog entities fallback to title
...
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:57 +02:00
Renan Mendes Carvalho
5514040b44
rename(plugins/home): VisitsStorageApi and VisitsWebStorageApi
...
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
Co-authored-by: Avantika Iyer <chick157@gmail.com >
2023-10-02 13:17:57 +02:00
Renan Mendes Carvalho
baa8af646c
refactor(plugins/home): Implementations depend only on StorageApi
...
This patch removes the VisitsApiFactory, promotes CoreStorageVisitsApi
to the main implementation and LocalStorageVisitsApi starts to rely
on WebStorage.
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:57 +02:00
Renan Mendes Carvalho
72f3ea7042
refactor(plugins/home): Remove any type
...
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:57 +02:00
Renan Mendes Carvalho
a1a7885ca4
feature(plugins/home): Add support for the != operator
...
This patch adds support for the != operator on the VisitsApi filterBy
option.
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:57 +02:00
Renan Mendes Carvalho
bc93253806
refactor(plugins/home): Keep api-report concise.
...
This patch remove parameter destructuring to simplify api-report
reads.
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
Co-authored-by: Fredrik Adelöw <freben@gmail.com >
2023-10-02 13:17:56 +02:00
Renan Mendes Carvalho
64caa4bf20
refactoring(plugins/home): Remove unnecessary injection
...
This patch removes the injection of localStorage and randomUUID.
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
Co-authored-by: Fredrik Adelöw <freben@gmail.com >
2023-10-02 13:17:56 +02:00
Renan Mendes Carvalho
6c93a6799e
refactor(plugins/home): Simplify VisitsApi method names
...
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:56 +02:00
Renan Mendes Carvalho
c30e715a2b
feature(home-plugin): Add default implementation to plugin.ts
...
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:56 +02:00
Renan Mendes Carvalho
b53d3537dd
feature(home-plugin): Use static methods on Api classes
...
Confirming with the style guide:
7.Keep constructors private, prefer static factory methods for creating instances.
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:56 +02:00
Renan Mendes Carvalho
6cfcf8a4a7
feature(home-plugin): Adds user scope to storage calls
...
This patch adds the userEntityRef to the storage key ensuring they are
scoped per user.
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:56 +02:00
Renan Mendes Carvalho
c485469098
feature(home-plugin): VisitApi implementation backed by StorageApi
...
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:56 +02:00
Renan Mendes Carvalho
5d671e6220
feature(home-plugin): Create reference implementation (localStorage)
...
This is a reference implementation using local storage.
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:56 +02:00
Renan Mendes Carvalho
a84cac67ca
feature(plugins/home): Remove DoNotTrack functionality
...
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 13:17:56 +02:00
Renan Mendes Carvalho
09a7f8f285
refactoring(plugins/home): Don't export getToEntityRef
...
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
Co-authored-by: Camila Belo <camilaibs@gmail.com >
2023-10-02 13:17:56 +02:00
Renan Mendes Carvalho
c0700220c9
feature(home-plugin): Creates the <VisitListener/> component
...
This patch creates the <VisitListener/> component to be used on the
app to register user visits enabling the homepage Recently Visited and
Top Visited experience (<VisitedByType/>) to be functional.
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:56 +02:00
Renan Mendes Carvalho
cac684376e
refactor(home): Change parameters on saveVisit
...
Result of a feedback on:
https://github.com/backstage/backstage/pull/19645#discussion_r1313865318
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:56 +02:00
Renan Mendes Carvalho
6d30b374a0
fix(home): Use luxon instead of date-fns
...
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:56 +02:00
Renan Mendes Carvalho
160761b049
feature(home-plugin): Rename component to VisitedByType
...
This renaming is to enable Top Visited and Recently Visited to be
served by the same component. This is to reduce code duplication.
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:55 +02:00
Renan Mendes Carvalho
46aa692057
feature(home-plugin): Recently Visited presentation use cases
...
This patch adds all the presentation use cases for Recently Visited.
Handling loading, few items, custom list sizes etc.
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:55 +02:00
Renan Mendes Carvalho
ec7fce2d41
feature(home-plugin): Bootstrap <RecentlyVisited/> skeleton.
...
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:55 +02:00
Renan Mendes Carvalho
be5853235a
doc(home-plugin): Adds documentation on <HomePageVisitedByType/> usage ( #19688 )
...
* doc(home-plugin): Adds documentation on <HomePageVisitedByType/> usage
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
* Update plugins/home/README.md
Co-authored-by: Adam Harvey <33203301+adamdmharvey@users.noreply.github.com >
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
* Update plugins/home/README.md
Co-authored-by: Camila Belo <camilaibs@gmail.com >
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
---------
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
Co-authored-by: Adam Harvey <33203301+adamdmharvey@users.noreply.github.com >
Co-authored-by: Camila Belo <camilaibs@gmail.com >
2023-10-02 13:17:55 +02:00
Patrik Oldsberg
b0ca06e347
Merge pull request #20262 from backstage/camilaibs/create-explore-search-result-item-extension
...
[DI] Create `Explore` search result item extension
2023-10-02 10:58:31 +02:00
Camila Belo
ab98569836
docs(explore): update api reports
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-29 23:26:44 +02:00
Camila Belo
6d5a060d1f
feat(explore): migrate search result item extension
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-29 23:26:44 +02:00
Camila Belo
9eb82dbaac
chore(explore): configure alpha subpath
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-29 23:19:06 +02:00
Camila Belo
ca957d7a7d
feat(adr): create search result item extension
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-29 22:21:14 +02:00
Camila Belo
5aa87b46cf
fix(search): forward all result set properties to the component
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-29 13:15:32 +02:00
Camila Belo
f5eeefc6ea
refactor(search-react): set search page as default attachment point
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-29 13:15:06 +02:00
Camila Belo
3b5ed2ed06
refactor(search-react): set search page as default attachment point
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-29 12:49:38 +02:00
Patrik Oldsberg
c661cce04e
Merge pull request #20165 from ivangonzalezacuna/bugfix/gitlab-api-archived-projects
...
bugfix(catalog-backend-module-gitlab): Make sure archived repos are skipped
2023-09-29 11:02:10 +02:00
ivgo
c11113dded
Add tests to verify the searchParams are added as expected
...
Signed-off-by: ivgo <ivgo@spreadgroup.com >
2023-09-29 08:40:32 +02:00
ivgo
2da314370c
Remove unnecessary entry from test mock
...
Signed-off-by: ivgo <ivgo@spreadgroup.com >
2023-09-29 08:40:32 +02:00
ivgo
e26868601e
Make sure the archived parameter is set in URL
...
Signed-off-by: ivgo <ivgo@spreadgroup.com >
2023-09-29 08:40:32 +02:00
Patrik Oldsberg
b5b00b3af1
Merge pull request #20162 from ganhammar/fix/correct-coverage-statistics
...
Fix/correct coverage statistics
2023-09-28 21:30:40 +02:00
Fredrik Adelöw
32fed9806a
Merge pull request #20202 from backstage/renovate/pluralize-0.x
...
chore(deps): update dependency @types/pluralize to ^0.0.31
2023-09-28 19:19:47 +02:00
Camila Belo
2b7fb9e1ca
chore: update catalog backend api report
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-28 16:11:24 +02:00
Camila Belo
e9950c327c
fix(catalog): use correct plugin id
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-28 15:54:15 +02:00
Camila Belo
18d6675076
refactor(search): remove search modal for now
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-28 15:54:15 +02:00
Camila Belo
d13c57733e
chore: update api reports
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-28 15:22:52 +02:00
Camila Belo
9143802c1c
feat(search): create search plugin extension
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-28 15:22:51 +02:00
Camila Belo
99f557f256
feat(search): create search modal extension
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-28 15:22:51 +02:00
Camila Belo
d0fb8e1481
feat(search): create search nav item extension
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-28 15:22:51 +02:00
Camila Belo
51b63d4939
feat(search): create search page extension
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-28 15:22:51 +02:00
Camila Belo
baf56d5abf
feat(search): create search api extension
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-28 15:22:51 +02:00
Camila Belo
3de3a1b872
feat(search): configure alpha subpath
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-28 15:22:51 +02:00
Camila Belo
f22ab808eb
feat(catalog): create plugin and api extensions
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-09-28 15:22:51 +02:00