Skip to content

Conversation

@FBanfi
Copy link
Collaborator

@FBanfi FBanfi commented Nov 18, 2025

Purpose

The app works for short text fields only, so the single line editor is rendered in the Field location.

If source field id selected in the config screen is not from a short text, the value couldn’t be displayed correctly. The same happens when we add an override, so we should add this check/filter there too.

In addition, in this PR a pending refactor to extract a new component which handles all the actions for the overrides was added. Actions such as:

  • add override
  • delete override
  • update override

Approach

Filter the sourceFieldId and fieldName autocompletes to show only short text fields.

Testing steps

Added automated tests. Manual test:

Grabacion.de.pantalla.2025-11-18.a.la.s.12.14.47.p.m.mov

Breaking Changes

N/A

Dependencies and/or References

Link to MAPS-95

Deployment

N/A

@FBanfi FBanfi requested a review from a team as a code owner November 18, 2025 15:24
@FBanfi FBanfi added the do not merge Don't merge this PR until this label is removed label Nov 18, 2025
@FBanfi FBanfi force-pushed the auto-internal-maps-95 branch from 33f26ca to 4b220b6 Compare November 18, 2025 15:36
@FBanfi FBanfi removed the do not merge Don't merge this PR until this label is removed label Nov 18, 2025
Base automatically changed from auto-internal-maps-96 to auto-internal-name November 18, 2025 20:00
# Conflicts:
#	apps/auto-internal-name/eslint.config.mts
#	apps/auto-internal-name/src/components/OverrideRow.tsx
#	apps/auto-internal-name/src/locations/ConfigScreen.tsx
#	apps/auto-internal-name/src/utils/types.ts
#	apps/auto-internal-name/test/components/OverrideRow.spec.tsx
#	apps/auto-internal-name/test/locations/ConfigScreen.spec.tsx
#	apps/auto-internal-name/test/mocks/mockSdk.ts
Copy link
Collaborator

@JuliRossi JuliRossi left a comment

Choose a reason for hiding this comment

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

⭐ Good on taking this refactor. Just left a few comments

'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
'no-unused-vars': 'off',
'react/prop-types': 'off',
Copy link
Collaborator

Choose a reason for hiding this comment

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

❓ Why are we removing this restriction ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh yeah, that was because eslint wasn't letting me to infer the prop types, but I specified them and added the restriction again. ✅ Nice catch!

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