Skip to content

improve: add Listing Type field to conditional logic available fields#2813

Open
Armanul46 wants to merge 2 commits intosovware:developmentfrom
Armanul46:improve/conditional-logic
Open

improve: add Listing Type field to conditional logic available fields#2813
Armanul46 wants to merge 2 commits intosovware:developmentfrom
Armanul46:improve/conditional-logic

Conversation

@Armanul46
Copy link
Copy Markdown
Collaborator

  • Remove listing_type from skipKeys so it appears in the "Select a field" dropdown
  • Add listing_type to mapFieldKeyToSelector for reliable DOM value reading
  • Return hardcoded General/Featured options in getValueOptions so a select dropdown renders instead of a free text input
  • Limit operator options to "is / is not" only (same as privacy_policy) to avoid meaningless operators on a binary radio field

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Security fix
  • Improvement
  • New Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Text changes
  • Other... Please describe:

Description

How to reproduce the issue or how to test the changes

Any linked issues

Fixes #

Checklist

Armanul46 and others added 2 commits April 15, 2026 10:56
- Remove listing_type from skipKeys so it appears in the "Select a field" dropdown
- Add listing_type to mapFieldKeyToSelector for reliable DOM value reading
- Return hardcoded General/Featured options in getValueOptions so a select dropdown renders instead of a free text input
- Limit operator options to "is / is not" only (same as privacy_policy) to avoid meaningless operators on a binary radio field

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
listing_type field is not rendered when editing a listing in admin,
so any conditions referencing it are stripped during normalize_groups()
to keep dependent fields always visible in the admin context.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant