8000 STSMACOM-790: Add `configNamePrefix` prop to custom fields components to be able to store section titles separately for different `entityType`s. by Dmytro-Melnyshyn · Pull Request #1584 · folio-org/stripes-smart-components · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

STSMACOM-790: Add configNamePrefix prop to custom fields components to be able to store section titles separately for different entityTypes. #1584

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

Merged
merged 1 commit into from
May 28, 2025

Conversation

Dmytro-Melnyshyn
Copy link
Contributor
@Dmytro-Melnyshyn Dmytro-Melnyshyn commented May 26, 2025

Description

When multiple instances of the EditCustomFieldsSettings/ EditCustomFieldsRecord/ ViewCustomFieldsRecord/ ViewCustomFieldsSettings UI component, each associated with a distinct entityType, are used within a single application, then modifying the accordion label in one component results in an unintended change to the label in all other components. This behavior contradicts the expected functionality, causing inconsistency in the labeling of accordion sections based on entityTypes.

The issue arises due to the request sent to the configurations API to store the accordion label, which utilizes a single configName for all entityTypes.

Using a single configName for multiple entityTypes, leads to a universal change in the accordion label across all instances of the EditCustomFieldsSettings/ EditCustomFieldsRecord/ ViewCustomFieldsRecord/ ViewCustomFieldsSettings components, regardless of their associated entityTypes.

Approach

Use an optional configNamePrefix property to extend configName.

Issues

STSMACOM-790

Screencasts

2025-05-26_22h47_53.mp4

…o be able to store section titles separately for different entityTypes.
@Dmytro-Melnyshyn Dmytro-Melnyshyn requested a review from a team as a code owner May 26, 2025 20:13
Copy link

Jest Unit Test Results

5 tests  ±0   5 ✅ ±0   14s ⏱️ ±0s
2 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 2dcfaca. ± Comparison against base commit da1579b.

Copy link

Bigtest Unit Test Results

  1 files  ±0    1 suites  ±0   21s ⏱️ ±0s
481 tests +1  466 ✅ +1  15 💤 ±0  0 ❌ ±0 
484 runs  +1  469 ✅ +1  15 💤 ±0  0 ❌ ±0 

Results for commit 2dcfaca. ± Comparison against base commit da1579b.

Copy link

@OleksandrHladchenko1 OleksandrHladchenko1 requested a review from a team May 27, 2025 09:28
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.

LGTM. Thanks for the detailed breakdown of the problem and how this change addresses it.

@Dmytro-Melnyshyn Dmytro-Melnyshyn merged commit 6ffc8c3 into master May 28, 2025
16 checks passed
@Dmytro-Melnyshyn Dmytro-Melnyshyn deleted the STSMACOM-790 branch May 28, 2025 20:17
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
0