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

UIBULKED-543 Rename Find (full field search) to Find #672

Merged
merged 5 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* [UIBULKED-574](https://folio-org.atlassian.net/browse/UIBULKED-574) Updates to Errors component.
* [UIBULKED-571](https://folio-org.atlassian.net/browse/UIBULKED-571) Errors in response to UI calls.
* [UIBULKED-568](https://folio-org.atlassian.net/browse/UIBULKED-568) Populating Are you sure? form
* [UIBULKED-543](https://folio-org.atlassian.net/browse/UIBULKED-543) Rename Find (full field search) to Find.

## [4.2.2](https://github.com/folio-org/ui-bulk-edit/tree/v4.2.2) (2024-11-15)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
noteActionsWithDuplicate,
electronicAccess,
statisticalCodeActions,
electronicAccessWithFindFullField,
} from '../../../../../constants';
import { getActionParameters } from '../../../../../constants/actionParameters';

Expand Down Expand Up @@ -97,6 +98,7 @@ export const getDefaultActions = ({
const noteWithMarcDefaultActions = noteActionsWithMarc();
const noteDuplicateDefaultActions = noteActionsWithDuplicate();
const electronicAccessActions = electronicAccess();
const electronicAccessFindFullFieldActions = electronicAccessWithFindFullField();

const replaceClearInitialVal = replaceClearDefaultActions[0].value;

Expand Down Expand Up @@ -333,9 +335,9 @@ export const getDefaultActions = ({
actions: [
null,
{
actionsList: electronicAccessActions,
actionsList: electronicAccessFindFullFieldActions,
controlType: () => CONTROL_TYPES.ELECTRONIC_ACCESS_RELATIONSHIP_SELECT,
[ACTION_VALUE_KEY]: electronicAccessActions[0].value,
[ACTION_VALUE_KEY]: electronicAccessFindFullFieldActions[0].value,
[FIELD_VALUE_KEY]: '',
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ describe('ContentUpdatesForm helpers', () => {
},
{
value: ACTIONS.FIND,
label: <FormattedMessage id="ui-bulk-edit.actions.findFullField" />,
label: <FormattedMessage id="ui-bulk-edit.actions.find" />,
disabled: false,
},
{
Expand Down Expand Up @@ -712,7 +712,7 @@ describe('ContentUpdatesForm helpers', () => {
},
{
value: ACTIONS.FIND,
label: <FormattedMessage id="ui-bulk-edit.actions.findFullField" />,
label: <FormattedMessage id="ui-bulk-edit.actions.find" />,
disabled: false,
},
{
Expand Down Expand Up @@ -817,7 +817,7 @@ describe('ContentUpdatesForm helpers', () => {
},
{
value: ACTIONS.FIND,
label: <FormattedMessage id="ui-bulk-edit.actions.findFullField" />,
label: <FormattedMessage id="ui-bulk-edit.actions.find" />,
disabled: false,
},
{
Expand Down Expand Up @@ -861,7 +861,7 @@ describe('ContentUpdatesForm helpers', () => {
},
{
value: ACTIONS.FIND,
label: <FormattedMessage id="ui-bulk-edit.actions.findFullField" />,
label: <FormattedMessage id="ui-bulk-edit.actions.find" />,
disabled: false,
},
{
Expand Down Expand Up @@ -1036,7 +1036,7 @@ describe('ContentUpdatesForm helpers', () => {
},
{
value: ACTIONS.FIND,
label: <FormattedMessage id="ui-bulk-edit.actions.findFullField" />,
label: <FormattedMessage id="ui-bulk-edit.actions.find" />,
disabled: false,
},
{
Expand Down
14 changes: 11 additions & 3 deletions src/constants/inAppActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const noteActions = () => [
getPlaceholder(),
getAddToExistingAction(),
getRemoveAllAction(),
getFindFullFieldAction(),
getFindAction(),
getChangeNoteTypeAction(),
];

Expand All @@ -171,23 +171,31 @@ export const noteActionsWithMarc = () => [
getRemoveMarcAsStuffOnlyAction(),
getAddToExistingAction(),
getRemoveAllAction(),
getFindFullFieldAction(),
getFindAction(),
getChangeNoteTypeAction(),
];

export const electronicAccess = () => [
getPlaceholder(),
getClearAction(),
getFindAction(),
getReplaceAction(),
];

export const electronicAccessWithFindFullField = () => [
getPlaceholder(),
getClearAction(),
getFindFullFieldAction(),
getReplaceAction(),
];

export const noteActionsWithDuplicate = () => [
getPlaceholder(),
getMarcAsStuffOnlyAction(),
getRemoveMarcAsStuffOnlyAction(),
getAddToExistingAction(),
getRemoveAllAction(),
getFindFullFieldAction(),
getFindAction(),
getChangeNoteTypeAction(),
getDuplicateToNoteAction(),
];
Expand Down
Loading