Commit Graph

331 Commits

Author SHA1 Message Date
Johan Haals c9201ca186 chore: remove rendudant expect
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-04-05 10:27:32 +02:00
Eric Peterson 6303fe61e3 Fix SearchBar fake timer tests for latest user-event.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-04-05 10:19:54 +02:00
Johan Haals fbee9f49e5 chore: await tests
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-04-05 10:19:54 +02:00
Johan Haals b1190bf676 await userEvent
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-04-05 10:19:54 +02:00
dependabot[bot] 24254fd433 build(deps): bump @testing-library/user-event from 13.5.0 to 14.0.0
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 13.5.0 to 14.0.0.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.0)

---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-04-05 10:19:52 +02:00
github-actions[bot] 39e446d0ff Version Packages (next) 2022-04-05 07:35:01 +00:00
github-actions[bot] e6f3fb8575 Version Packages (next) 2022-03-29 08:42:22 +00:00
github-actions[bot] ad955c1b1b Version Packages (next) 2022-03-22 12:28:03 +00:00
Mike Lewis 38e01f2f70 search: switch to SearchDocument type in DefaultResultListItem props
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2022-03-17 12:39:42 +00:00
github-actions[bot] 0bc1611d6e Version Packages 2022-03-17 09:02:30 +00:00
Dimitris Apostolou aedd4daa66 Fix typos
Signed-off-by: Dimitris Apostolou <dimitris.apostolou@icloud.com>
2022-03-13 14:12:05 +02:00
dependabot[bot] a422d7ce5e chore(deps): bump @testing-library/react from 11.2.6 to 12.1.3
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 11.2.6 to 12.1.3.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v11.2.6...v12.1.3)

---
updated-dependencies:
- dependency-name: "@testing-library/react"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-10 14:07:33 +01:00
github-actions[bot] b6d947b67f Version Packages 2022-03-10 11:30:23 +00:00
github-actions[bot] 1693f2dc74 Version Packages (next) 2022-03-09 16:09:04 +00:00
Patrik Oldsberg 09b37063f2 packages,plugins: migrate to new lint config
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-07 14:53:43 +01:00
Eric Peterson 3e54f6c436 Use @backstage/plugin-search-common instead of @backstage/search-common
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-03-04 18:47:55 +01:00
github-actions[bot] 3c8bb2854d Version Packages 2022-03-03 15:23:53 +00:00
dependabot[bot] 64b430f80d chore(deps): bump react-text-truncate from 0.17.0 to 0.18.0
Bumps [react-text-truncate](https://github.com/ShinyChang/react-text-truncate) from 0.17.0 to 0.18.0.
- [Release notes](https://github.com/ShinyChang/react-text-truncate/releases)
- [Changelog](https://github.com/ShinyChang/React-Text-Truncate/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ShinyChang/react-text-truncate/commits)

---
updated-dependencies:
- dependency-name: react-text-truncate
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-28 04:11:12 +00:00
github-actions[bot] c9da151d84 Version Packages 2022-02-24 13:54:37 +00:00
github-actions[bot] 408b0300cb Version Packages 2022-02-17 10:38:59 +00:00
Patrik Oldsberg d99c3c2177 Merge pull request #9254 from backstage/rugvip/add-roles
packages: add roles to all packages
2022-02-16 18:40:37 +01:00
Patrik Oldsberg 9892d74326 cli: renamed script commands to package
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-15 21:27:12 +01:00
Johan Haals 7aeb491394 catalog-model: deprecate ENTITY_DEFAULT_NAMESPACE, replace with DEFAULT_NAMESPACE
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-02-15 10:27:57 +01:00
Patrik Oldsberg 8f82d80adf migrate all package scripts
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-14 21:50:07 +01:00
Patrik Oldsberg bb5fcc3209 update all plugin package roles
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-14 21:50:05 +01:00
Patrik Oldsberg b521c1b83b detect all package roles
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-14 21:50:03 +01:00
Camila Belo 93318c97c1 Merge pull request #9364 from backstage/vinzscam/search-modal-fetch-on-open
SearchModal invoke search only when visible
2022-02-14 07:38:11 +01:00
Fredrik Adelöw 1ed305728b bump node-fetch and cross-fetch
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-02-10 15:51:50 +01:00
Vincenzo Scamporlino 99d8205a8d useSearchModal: clarify tests
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2022-02-10 14:40:55 +01:00
github-actions[bot] e4791789d1 Version Packages 2022-02-10 11:06:33 +00:00
Vincenzo Scamporlino 52d2d36b4b Move SearchModal state to useSearchModal
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2022-02-10 07:19:09 +01:00
Vincenzo Scamporlino f903743142 Improve SearchContext api report
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2022-02-09 18:06:50 +01:00
Vincenzo Scamporlino eb1386e284 Split storybook SearchContextProvider
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2022-02-09 18:06:50 +01:00
Vincenzo Scamporlino 28e9487f48 Remove open state from SearchContext
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2022-02-09 18:06:48 +01:00
github-actions[bot] e74f416a00 Version Packages (next) 2022-02-08 19:38:17 +00:00
Vincenzo Scamporlino 4a4ab7c603 Invoke search only when SearchModal is visible
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
2022-02-04 16:22:10 +01:00
Jussi Hallila faf49ba82f Add line clamping to search results on modal search screen. (#9331)
* Add line clamping to search results on modal search screen.

Signed-off-by: Jussi Hallila <jussi@hallila.com>

* Add mock to test so we don't have to spin up canvas with jsdom.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2022-02-04 13:02:22 +01:00
github-actions[bot] a12bb7b065 Version Packages 2022-02-03 09:42:25 +00:00
github-actions[bot] 51eecb3f03 Version Packages (next) 2022-02-02 14:28:47 +00:00
github-actions[bot] e1580cf73a Version Packages (next) 2022-02-01 08:53:29 +00:00
github-actions[bot] 406848efee Version Packages 2022-01-27 11:07:27 +00:00
Otto Sichert 6efb76581c Use fake timers to test search filter hooks debounce
Signed-off-by: Otto Sichert <git@ottosichert.de>
2022-01-25 15:40:14 +01:00
Eric Peterson 8f370b038d Review feedback.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-01-24 13:11:51 +01:00
Eric Peterson 1dbe63ec39 Don't fallback to name on label to help clarify the different uses for each and allow label-less filters.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-01-24 13:06:39 +01:00
Eric Peterson 21705f6432 Document asyncValues/asyncDebounce props.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-01-24 13:06:39 +01:00
Eric Peterson 3b0000669a Test filter utility hooks.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-01-24 13:06:39 +01:00
Eric Peterson 73811cfb33 Refactor default value logic into utility hook.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-01-24 13:06:39 +01:00
Eric Peterson c84c404fc8 Initial tests.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-01-24 13:06:39 +01:00
Eric Peterson 84208528d9 Use precise imports for react-use hooks.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-01-24 13:06:39 +01:00
Eric Peterson 4aca2a5307 Update search plugin API report and add changesets.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-01-24 13:06:39 +01:00