Commit Graph

44831 Commits

Author SHA1 Message Date
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 f997f771da changeset(plugins/home): Adds new Top/Recently Visited components
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
Lee Mills a6abdc783a Merge pull request #20218 from backstage/propse-new-sponsor
Propsing new end user sponsor & moving myself to emeritus status
2023-10-02 12:12:56 +01:00
Patrik Oldsberg 625d991f3a Merge pull request #20298 from backstage/rugvip/windev
backend-next: fixes for development on Windows
2023-10-02 11:02:40 +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
Patrik Oldsberg 7d2cda8569 Merge pull request #20243 from backstage/camilaibs/create-adr-search-result-item-extension
[DI] Create `ADR` search result item extension
2023-10-02 10:58:19 +02:00
Fredrik Adelöw 057e40abc4 Merge pull request #20297 from backstage/renovate/graphql-ws-5.x-lockfile
fix(deps): update dependency graphql-ws to v5.14.1
2023-10-02 10:55:21 +02:00
Fredrik Adelöw 0c3f29416f Merge pull request #20296 from backstage/renovate/cron-2.x-lockfile
fix(deps): update dependency cron to v2.4.4
2023-10-02 10:54:44 +02:00
Fredrik Adelöw 73bcdaacc0 Merge pull request #20293 from backstage/renovate/react-text-truncate-0.x-lockfile
fix(deps): update dependency @types/react-text-truncate to v0.14.2
2023-10-02 10:50:01 +02:00
Fredrik Adelöw 3d45cd5ddd Merge pull request #20290 from backstage/renovate/react-sparklines-1.x-lockfile
fix(deps): update dependency @types/react-sparklines to v1.7.3
2023-10-02 10:49:22 +02:00
Fredrik Adelöw 7d504c7679 Merge pull request #20289 from backstage/renovate/passport-1.x-lockfile
fix(deps): update dependency @types/passport to v1.0.13
2023-10-02 10:48:17 +02:00
Patrik Oldsberg 436170b07b Merge pull request #20043 from backstage/rugvip/disable-fsevents
root: disable usage of fsevents in jest
2023-10-01 15:40:39 +02:00
Patrik Oldsberg d0f26cfa4f cli: gracefully shut down child process on windows
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-01 15:37:06 +02:00
Patrik Oldsberg afa48341fb backend-dev-utils: fix ipc response race
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-01 15:37:06 +02:00
Patrik Oldsberg 3894bf8bda Merge pull request #20292 from backstage/freben/yarn
unclean yarn.lock
2023-10-01 15:37:00 +02:00
Patrik Oldsberg f37c9f798e Merge pull request #20228 from backstage/rugvip/same-tab
core-components: always navigate on tab click
2023-10-01 14:54:57 +02:00
renovate[bot] f4a3ccd825 fix(deps): update dependency graphql-ws to v5.14.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-30 22:18:47 +00:00
renovate[bot] 91bd401835 fix(deps): update dependency cron to v2.4.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-30 19:45:44 +00:00
renovate[bot] f28be0f837 fix(deps): update dependency @types/react-text-truncate to v0.14.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-30 15:24:09 +00:00
Fredrik Adelöw 1d6267a964 unclean yarn.lock
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-09-30 14:54:27 +02:00
renovate[bot] 6c7f6888c9 fix(deps): update dependency @types/react-sparklines to v1.7.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-30 12:28:42 +00:00
renovate[bot] 5c31049f44 fix(deps): update dependency @types/passport to v1.0.13
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-30 12:28:11 +00:00
Fredrik Adelöw a2ee20b92a Merge pull request #20260 from backstage/renovate/react-monorepo
chore(deps): update react monorepo to v17.0.66
2023-09-30 13:35:54 +02:00
Fredrik Adelöw 67e46806ac Merge pull request #20263 from backstage/renovate/codemirror
fix(deps): update dependency @codemirror/view to v6.21.0
2023-09-30 13:34:29 +02:00
Fredrik Adelöw b7e79478c9 Merge pull request #20268 from backstage/renovate/material-ui-monorepo
fix(deps): update dependency @mui/material to v5.14.11
2023-09-30 13:34:20 +02:00
Fredrik Adelöw 0b782edcc4 Merge pull request #20272 from backstage/renovate/roadiehq-backstage-plugin-github-insights-2.x-lockfile
fix(deps): update dependency @roadiehq/backstage-plugin-github-insights to v2.3.21
2023-09-30 13:33:43 +02:00
Fredrik Adelöw 0c2054ede3 Merge pull request #20273 from backstage/renovate/roadiehq-backstage-plugin-github-pull-requests-2.x-lockfile
fix(deps): update dependency @roadiehq/backstage-plugin-github-pull-requests to v2.5.16
2023-09-30 13:33:24 +02:00
Fredrik Adelöw df7fe8f18b Merge pull request #20275 from backstage/renovate/roadiehq-backstage-plugin-travis-ci-2.x-lockfile
fix(deps): update dependency @roadiehq/backstage-plugin-travis-ci to v2.1.15
2023-09-30 13:32:44 +02:00
Fredrik Adelöw d56735a92e Merge pull request #20276 from backstage/renovate/swc-monorepo
fix(deps): update dependency @swc/core to v1.3.90
2023-09-30 13:32:33 +02:00
Fredrik Adelöw 634aa5547c Merge pull request #20286 from backstage/renovate/express-4.x-lockfile
fix(deps): update dependency @types/express to v4.17.18
2023-09-30 13:32:04 +02:00
renovate[bot] 4ec503f7d5 fix(deps): update dependency @types/express to v4.17.18
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-29 22:04:14 +00:00