Patrik Oldsberg
71b63f6ad1
backend-test-utils: MockDirectory fixes for windows
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
b516ebc8e7
backend-test-utils: MockDirectory tests + fixes
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
3f3714ab41
backend-test-utils: rename MockDirectory.cleanup -> .remove
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
a250ad775f
changesets: add changeset for MockDirectory
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
4606abef32
backend-test-utils: MockDirectory API report updates
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
5b20107206
backend-test-utils: document MockDirectory + more naming tweaks
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
3eab720cd2
backend-common: remove usage of mock-fs, use MockDirectory instead
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
a51c1f46aa
backend-test-utils: rename DirectoryMocker -> MockDirectory
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
f3bd2700cc
backend-test-utils: rename DirectoryMocker.getContent -> .content
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
4c5d3940cb
backend-test-utils: add resolve and clear for DirectoryMocker + renames
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
d96fb0642f
backend-test-utils: add DirectoryMocker.mockOsTmpDir
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
24f1dfa58f
backend-test-utils: path option for DirectoryMocker.getContent + better child path check
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
dbad03ac47
backend-test-utils: added directoryMocker.addContent
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
c6e5eec85c
backend-test-utils: initial tests for DirectoryMocker
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
8a1d570218
backend-test-utils: add DirectoryMocker shouldReadAsText option
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
8f6194ff18
backend-test-utils: add directoryMocker.getContent()
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
c09cd27904
backend-test-utils: support key path expansion in DirectoryMocker
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
cee06b5952
backend-test-utils: added DirectoryMocker root option
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:38 +02:00
Patrik Oldsberg
ee318017e7
backend-test-utils: initial directory mock implementation
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:27:37 +02:00
Patrik Oldsberg
b57db090f0
Merge pull request #20258 from backstage/camilaibs/create-techdocs-search-result-item-extension
...
[DI] Create `TechDocs` search result item extension
2023-10-02 14:20:00 +02:00
Patrik Oldsberg
ee31c4224e
e2e: update stderr filtering, only log filtered lines
...
Co-authored-by: Fredrik Adelöw <freben@gmail.com >
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-02 14:19:07 +02:00
vdizengremel
ca3ab66bbe
fix( #20232 ): handle circular relation
...
Signed-off-by: vdizengremel <victor.dizengremel@octo.com >
2023-10-02 14:11:28 +02:00
vdizengremel
88fa5516c3
fix( #20232 ): handle intermediate groups
...
Signed-off-by: vdizengremel <victor.dizengremel@octo.com >
2023-10-02 14:11:28 +02:00
vdizengremel
ad97403fca
fix( #20232 ): refacto test to facilitate maintenance and the add of new cases
...
Signed-off-by: vdizengremel <victor.dizengremel@octo.com >
2023-10-02 14:11:28 +02: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
Camila Belo
d65cb238e8
fix(home): changeset version
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2023-10-02 13:24:22 +02:00
Renan Mendes Carvalho
0c927cab64
feature(app): Adds TopVisited and RecentlyVisited to homepage
...
This patch adds TopVisited and RecentlyVisited to the homepage example
accessible in http://localhost:3000/home when running yarn dev
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2023-10-02 13:17:57 +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
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