Commit Graph

325 Commits

Author SHA1 Message Date
github-actions[bot] f95345c845 Version Packages (next) 2023-10-03 10:49:45 +00:00
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
github-actions[bot] bea3617712 Version Packages (next) 2023-09-26 13:20:00 +00:00
Patrik Oldsberg df97115aac plugins: update API report to match new BackstagePlugin type
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-09-25 09:53:49 +02:00
github-actions[bot] b228d7d9c2 Version Packages
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-09-20 11:24:40 +02:00
github-actions[bot] a6d1580062 Version Packages (next) 2023-09-12 11:41:29 +00:00
renovate[bot] b16c341ced fix(deps): update rjsf monorepo to v5.13.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-08 17:47:50 +00:00
Patrik Oldsberg 044e8146f5 Merge pull request #19390 from kunickiaj/home-card-border-fix
Fixes the missing borders on customizable homepage cards
2023-09-08 17:19:40 +02:00
Patrik Oldsberg 406b786a2a fix package side effect declarations
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-09-07 13:40:19 +02:00
github-actions[bot] 32a09adcff Version Packages (next) 2023-09-05 10:03:17 +00:00
Fredrik Adelöw 8cec7664e1 remove dependencies on @types/node
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-09-01 11:04:14 +02:00
github-actions[bot] fc1a38bc57 Version Packages (next) 2023-08-29 12:18:08 +00:00
Axel Hecht 98bb77c1f0 Align zod dependency to match other packages
Signed-off-by: Axel Hecht <axel@pike.org>
2023-08-25 13:12:59 +02:00
Patrik Oldsberg 85748e4f44 Merge pull request #18922 from drodil/homepage_static_widgets
feat: allow specifying static widgets to customizable home
2023-08-23 01:16:36 +02:00
Eric Peterson 00beb2b433 Merge pull request #19485 from backstage/catalog-info/project-areas
Add `catalog-info.yaml` for project area-owned packages
2023-08-22 15:43:33 +02:00
github-actions[bot] f8c8e8de37 Version Packages (next) 2023-08-22 11:37:48 +00:00
Eric Peterson f485e40454 Add catalog-info.yaml files for Discoverability project area
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2023-08-21 13:26:28 +02:00
Fredrik Adelöw 3f9d2b90bc api-reports
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-08-18 14:00:29 +02:00
Adam Kunicki 2bc96ce69e Fixes the missing borders on customizable homepage cards
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
2023-08-15 15:03:59 -07:00
github-actions[bot] aaf5cb2ca1 Version Packages 2023-08-15 17:12:48 +00:00
github-actions[bot] 74f77f151a Version Packages (next) 2023-08-08 14:07:10 +00:00
Heikki Hellgren 1853ffa09b feat: allow specifying static widgets to customizable home
this feature allows app developers to make the default layout so that
there can be widgets that cannot be deleted, resized or moved by the
users when they go to the custom homepage edit mode.

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2023-08-03 09:07:20 +03:00
github-actions[bot] b441642fbe Version Packages (next) 2023-07-25 11:30:28 +00:00
Camila Belo 406a4992db Merge pull request #18682 from ivangonzalezacuna/feat/homepage-allow-hide-card-title
(feat): Allow hiding card title in custom homepage cards
2023-07-23 17:52:02 +02:00
Gaurav Pandey fd534808b9 Removed undefined
Signed-off-by: Gaurav Pandey <36168816+grvpandey11@users.noreply.github.com>
2023-07-21 17:07:23 +02:00
Gaurav Pandey 9e5dc99417 Merge branch 'backstage:master' into master 2023-07-20 19:27:08 +02:00