Commit Graph

28 Commits

Author SHA1 Message Date
Oliver Sand dcd54c7cd1 Use RouteRef to generate path to search page
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-22 16:47:45 +02:00
Anders Näsman e450be8227 move search-next page from app to plugin-search
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:49 +01:00
Anders Näsman 6d4919a612 make SearchApi an interface
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:04 +01:00
Anders Näsman 4abd922fb5 moved types from search-backend to search-common
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:04 +01:00
Anders Näsman 779a164507 use Utility API
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:03 +01:00
Anders Näsman b7cb59dd7b standard TODO syntax
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:03 +01:00
Eric Peterson 92cd651fa4 Ditch the feature flag.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:03 +01:00
Eric Peterson 199f66a565 Add feature flag + app-based search page.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:41:17 +01:00
Eric Peterson e0854f10d5 Set up an unused method to illustrate type usage / communication between search frontend and backend
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:39:59 +01:00
erdoganoksuz 9ca0e40094 locale added all case conversion
Signed-off-by: erdoganoksuz <erdoganoksuz95@gmail.com>
2021-03-12 15:06:01 +03:00
Patrik Oldsberg b3f0c38112 search: migrate to new composability API 2021-02-04 20:22:49 +01:00
Debajyoti Halder 39e7f4a81e Merge branch 'master' of https://github.com/spotify/backstage into lintMod 2021-02-02 17:02:33 +05:30
Debajyoti Halder 7717c46517 Fix variable names of conflicting types 2021-02-02 16:42:37 +05:30
Oliver Sand c677643afa Rename from @backstage/plugin-catalog-common-react to @backstage/plugin-catalog-react 2021-01-29 10:54:09 +01:00
Oliver Sand 019fe39a08 Createa @backstage/plugin-catalog-common-react package 2021-01-29 10:54:09 +01:00
Debajyoti Halder 6106345e6d Update project with latest eslint rules 2021-01-29 11:55:12 +05:30
Adam Harvey d87d23c44e Fix phantom all state 2021-01-04 23:52:20 -05:00
Peter Grauvogel 6a0d7a9fbc Increase pageSize for search result view (#3565) 2020-12-04 14:06:42 +01:00
Askar 76ff21c2d5 fix(search): compile possible filter options from available entities (#3370)
* load filters from entities

* fix(search): compile possible filter options from available entities

* rename filter state and add text in case no filter can be applied
2020-11-25 11:06:39 +01:00
Emma Indal eeda19c7ce [Search] name in search result clickable (#3349)
* fix(search): wrap value in  link component for rows in component id column

* fix(search result): change name of column from component id to name

* fix(search): construct url in search api instead of search result component

* fix(search): use entity default constant from catalog model as fallback to namespace, add entity type

* fix(search): replace unknown with undefined if owner or lifecycle doesn't exist on entity, lowercase namespace and kind in url

* fix owner fallback and delete description fallback to show empty cells instead
2020-11-23 17:07:38 +01:00
Ben Lambert 514c269b36 Merge pull request #3372 from SDA-SE/feat/search-sidebar-take-two
Rework the search field behavior in the sidebar
2020-11-23 10:31:35 +01:00
Emma Indal 4afc446c24 fixes dark mode issue on searchQuery + changes its class name from searchTerm to be more consistent 2020-11-20 18:17:58 +01:00
Oliver Sand 36b9dfd41c Rework the search field behavior in the sidebar
We just tested it with another user an noticed some more issues:
* If the user is on the search route it should be reflected in the sidebar
* Clicking on the search icon alone should lead to the search page
2020-11-20 16:20:13 +01:00
Shashank Bairy R 74c43ce231 feat: improve search match (#3365) 2020-11-20 15:22:49 +01:00
Oliver Sand 475fc0aaa3 Make sidebar search field work (#3362)
* Make sidebar search field work

Extend the search page to have the ability to react to query parameters. The search in the sidebar now navigates to the search page and passes the query parameter. The search box on the search page is now debounced.

Closes #3341

* Fix sidebar search while the search page is already open
2020-11-20 15:14:18 +01:00
Askar 019c67a022 fix(search): return EmptyState/Progress bar/Alert depending on result of api call (#3350)
* fix(search): return EmptyState/Progress bar/Alert depending on result of api request

* Update plugins/search/src/components/SearchResult/SearchResult.tsx

Co-authored-by: Emma Indal <emma.indahl@gmail.com>

Co-authored-by: Emma Indal <emma.indahl@gmail.com>
2020-11-19 13:39:22 +01:00
Fredrik Adelöw f8cb1a976d fix: unbreak search after merging catalog client change 2020-11-18 20:09:38 +01:00
Emma Indal 7d680c075e [Search] Search frontend plugin (#3086)
* feat(search) search plugin

* feat(search): search page components

* feat(search): api

* feat(search): filters wip

* feat(search): wip filters

* fix(search): delete unused useParams hook

* fix(search): update docs

* fix(search): use latest versions of dependencies

* fix(search): change version of catalog plugin

* fix(search api): pass instance of catalog api to search api

* fix(filters): rename component from FilterButton to FiltersButton

* fixup

* fix(filters): use list of checkboxes to match style of catalog page filters

* fix(styles): use theme spacing for margins and paddings, delete unused styles

* fix(search): change terminology of search input to be more consistent and clear

* fix(search): restructure component exports according to ADR

* fix(search): replace sm with xs on Grid components to support smaller screens

* fix(search): add types

* fixup

* fix(search): bump backstage core

* change versions of backstage theme and dev-utils
2020-11-18 11:20:37 +01:00