Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIQM-660 *BREAKING* Added stripes-inventory-components to peerDeps. Added inventory search link next to 010 fields. #683

Merged
merged 3 commits into from
May 22, 2024

Conversation

BogdanDenis
Copy link
Contributor

Description

Added stripes-inventory-components to peerDeps.
Added inventory search link next to 010 fields. The link will open Inventory app in a new tab with advanced search by lccn with 010 $a/$z as values

Screenshots

chrome_IGgyw8MPH1.mp4

Issues

UIQM-660

Related PRs

folio-org/ui-inventory#2484
folio-org/stripes-inventory-components#37

… Added inventory search link next to 010 fields.
Copy link

github-actions bot commented May 20, 2024

Jest Unit Test Statistics

    1 files  ±0    43 suites  +1   2m 38s ⏱️ -16s
540 tests +4  540 ✔️ +4  0 💤 ±0  0 ±0 
542 runs  +4  542 ✔️ +4  0 💤 ±0  0 ±0 

Results for commit ee3c943. ± Comparison against base commit 0d88399.

♻️ This comment has been updated with latest results.

@BogdanDenis BogdanDenis requested review from Dmytro-Melnyshyn and a team May 21, 2024 10:12
Comment on lines +23 to +25
bool: 'or',
query: value,
match: 'exactPhrase',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use constants from stripes-components. It will be easier if someone decides to change exactPhrase to something else.

const builtQuery = advancedSearchQueryBuilder(advancedSearchRows);

const searchParams = new URLSearchParams({
qindex: 'advancedSearch',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create a constant for 'advancedSearch' in stripes-inventory-components.

import { render } from '@folio/jest-config-stripes/testing-library/react';

import { runAxeTest } from '@folio/stripes-testing';
import { advancedSearchQueryBuilder } from '@folio/stripes-inventory-components';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove eslint warnings.

Copy link
Member

@zburke zburke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Dmytro-Melnyshyn's suggestions are solid; please follow them.

Please be sure to update the version in package.json as indicated in CHANGELOG.

Copy link

sonarcloud bot commented May 22, 2024

@BogdanDenis BogdanDenis merged commit 6c91702 into master May 22, 2024
5 checks passed
@BogdanDenis BogdanDenis deleted the UIQM-660 branch May 22, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants