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

UIPQB-162: Errors when query includes a modified custom field #200

Merged
merged 5 commits into from
Dec 24, 2024

Conversation

UladzislauKutarkin
Copy link
Contributor

@UladzislauKutarkin UladzislauKutarkin commented Dec 18, 2024

https://folio-org.atlassian.net/browse/UIPQB-162

Here we added a warning toast for deleted fields.

Screen.Recording.2024-12-20.at.14.10.26.mov

# Conflicts:
#	CHANGELOG.md
#	src/QueryBuilder/QueryBuilder/QueryBuilderModal/QueryBuilderModal.js
#	src/QueryBuilder/QueryBuilder/QueryBuilderModal/RepeatableFields/RepeatableFields.js
Copy link

github-actions bot commented Dec 18, 2024

Jest Unit Test Results

  1 files  ±0   12 suites  ±0   1m 23s ⏱️ -1s
126 tests +6  125 ✅ +6  1 💤 ±0  0 ❌ ±0 
130 runs  +6  129 ✅ +6  1 💤 ±0  0 ❌ ±0 

Results for commit bc1b1e0. ± Comparison against base commit 80852c8.

♻️ This comment has been updated with latest results.

message: (
<FormattedMessage
id="ui-plugin-query-builder.warning.deletedField"
values={{ value: deletedFields.join(',') }}
Copy link
Member

Choose a reason for hiding this comment

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

please use intl.formatList(...) here, it will add commas (or other separators) and and, etc, as needed based on # of items and user locale

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ncovercash , fixed! Thanks for that idea

Copy link
Member

@ncovercash ncovercash left a comment

Choose a reason for hiding this comment

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

left comment

@UladzislauKutarkin
Copy link
Contributor Author

@ncovercash , @vashjs added screencast of implementation

@UladzislauKutarkin UladzislauKutarkin merged commit 3c7f980 into master Dec 24, 2024
15 checks passed
@UladzislauKutarkin UladzislauKutarkin deleted the UIPQB-162 branch December 24, 2024 07:04
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.

4 participants