Skip to content

fix: Improve Flexible field context detection (#4)#5

Merged
iamgerwin merged 4 commits into
mainfrom
fix/issue-4-flexible-field-context-detection
Nov 25, 2025
Merged

fix: Improve Flexible field context detection (#4)#5
iamgerwin merged 4 commits into
mainfrom
fix/issue-4-flexible-field-context-detection

Conversation

@iamgerwin

Copy link
Copy Markdown
Owner

Summary

  • Fixed Flexible field context detection when container attribute is empty
  • Added cross-group event filtering to prevent dependency interference between Flexible layout groups
  • Implemented context prefix caching for improved performance and reliability

Changes

FormField.vue

  • Added cachedContextPrefix data property for context caching
  • Added extractPrefixFromAttribute() method for better prefix extraction
  • Implemented cross-group event filtering in handleFieldChanged()
  • Enhanced getFlexibleContextPrefix() to detect context from child field attributes

DetailField.vue

  • Added same context detection improvements for detail view

Documentation

  • Updated Flexible field support documentation with cross-group filtering details
  • Added context detection priority list
  • Updated CHANGELOG for v1.0.6

Test Plan

  • Verify dependency container works inside Flexible field layouts
  • Verify changing field in one Flexible group does not affect another group
  • Verify context detection works when container attribute is empty

Related Issue

Fixes #4 - NovaDependencyContainer inside Flexible field not showing dependent fields

- Add cachedContextPrefix data property for better performance
- Add extractPrefixFromAttribute method for prefix extraction
- Implement cross-group event filtering in handleFieldChanged
- Enhance getFlexibleContextPrefix to detect context from child fields
- Cache context prefix from field-changed events

Fixes #4
- Add cachedContextPrefix data property for better performance
- Add extractPrefixFromAttribute method for prefix extraction
- Enhance getFlexibleContextPrefix to detect context from child fields
- Cache context prefix once detected for subsequent lookups
- Add cross-group event filtering section to Flexible field docs
- Expand context detection documentation with priority list
- Update version history
- Add CHANGELOG entry for v1.0.6
@iamgerwin iamgerwin merged commit ef35992 into main Nov 25, 2025
2 checks passed
@iamgerwin iamgerwin deleted the fix/issue-4-flexible-field-context-detection branch November 25, 2025 03:09
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.

NovaDependencyContainer inside Flexible field not showing dependent fields

1 participant