You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The expressions for role and tabIndex can evaluate to non-string/number values when onIconClick is falsy, potentially setting them to false instead of omitting them. This can cause invalid DOM attributes and a11y issues. Consider reverting to ternaries that yield undefined when not clickable.
New prop allignButtons appears misspelled; this can propagate inconsistent API usage. Consider renaming to alignButtons and updating its usage to avoid future confusion.
Latest suggestions up to 9eb59a3
Explore these optional code suggestions:
Category
Suggestion
Impact
Possible issue
Fix invalid ARIA and tabIndex
Using logical AND returns a boolean when onIconClick is falsy, which sets invalid values for role and tabIndex. Restore conditional expressions that yield undefined when not clickable to preserve accessibility and avoid React warnings. This ensures correct ARIA semantics and keyboard focus behavior.
Why: The current use of onIconClick && ... can pass false to role/tabIndex, which is invalid and harms accessibility; reverting to conditional undefined is correct and impactful.
Medium
Fix SCSS nesting scope
The closing braces after .modal-body appear misaligned, moving .modal-footer out of the .reusable-standard-modal scope. This changes specificity and may break modal styling. Re-nest .modal-footer inside the parent block and remove the stray brace.
Why: The suggestion claims mis-nesting, but the new hunk shows .modal-footer correctly nested; this is mostly a stylistic clarification with limited impact given current braces are balanced.
Low
General
Correct and alias misspelled prop
allignButtons appears to be a misspelling of "align" and may cause confusion or inconsistent API usage. Rename the prop to alignButtons while keeping a backward-compatible mapping to avoid breaking callers.
Why: Identifying allignButtons as a misspelling is accurate; proposing a backward-compatible alias improves API clarity without breaking changes, though it's not critical.
Unresolved merge conflict markers will break the build. Resolve the conflict and explicitly choose the intended exports; remove any reference to deleted components to avoid dead imports.
-<<<<<<< Updated upstream
export * from "./CustomComponents/SelectWithCustomValue";
-export * from "./CustomComponents/SingleVariableSelectionModal";-=======->>>>>>> Stashed changes+// Note: SingleVariableSelectionModal was removed in this PR; do not export it.
Suggestion importance[1-10]: 9
__
Why: The file contains unresolved conflict markers which will break builds and tooling. Removing markers and choosing consistent exports is critical; also dropping the removed SingleVariableSelectionModal export aligns with the PR changes.
High
Fix ARIA and tabIndex logic
Using logical AND here can set role/tabIndex to false, which results in invalid attribute values and breaks accessibility/keyboard focus. Restore conditional assignment so these attributes are only present when clickable, otherwise undefined.
Why: The new logic uses &&, which passes false when onIconClick is falsy, resulting in invalid role/tabIndex values and accessibility issues. Restoring the ternary to yield undefined when inactive is correct and important for keyboard navigation.
Medium
General
Correct misspelled prop name
The prop name allignButtons is misspelled and will cause confusion or misuse by consumers. Correct the spelling and keep backward compatibility by mapping the old prop to the new one.
Why: The prop allignButtons is introduced misspelled at line 38 and used later; suggesting alignButtons with backward compatibility improves API clarity and avoids consumer mistakes, though it's a minor naming fix.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
📝 Pull Request Summary
Description:
The Single variable Selection Modal has been moved to EE repo to have more consistancy in State.
Related Jira Ticket:
https://aottech.atlassian.net/browse/FWF-5716
Type of Change:
🧩 Microfrontends Affected
Please select all microfrontends or modules that are part of this change:
Details (if Others selected):
🧠 Summary of Changes
🧪 Testing Details
Testing Performed:
Screenshots (if applicable):
✅ Checklist
👥 Reviewer Notes
PR Type
Enhancement, Bug fix
Description
Remove SingleVariableSelectionModal from components
Add button alignment option to standard modal
Adjust modal footer styling and layout
Fix icon accessibility props in CustomTextArea
Diagram Walkthrough
File Walkthrough
CustomTextArea.tsx
Simplify icon role and tabIndex assignmentforms-flow-components/src/components/CustomComponents/CustomTextArea.tsx
ReusableStandardModal.tsx
Add footer button alignment control to modalforms-flow-components/src/components/CustomComponents/ReusableStandardModal.tsx
allignButtonsprop to props interface.allignButtonsinto component props.justify-content-betweenon Modal.Footer.SingleVariableSelectionModal.tsx
Remove SingleVariableSelectionModal componentforms-flow-components/src/components/CustomComponents/SingleVariableSelectionModal.tsx
_mixins.scss
Restructure and refine modal footer stylesforms-flow-theme/scss/v8-scss/_mixins.scss
.modal-footeroutside nested block.index.ts
Update index exports after component removalforms-flow-components/src/components/index.ts
SingleVariableSelectionModal.