fix(drive-integration): treat Add Entry references as child of existing parent [INTEG-4524] - #11099
Closed
JuliRossi wants to merge 3 commits into
Closed
fix(drive-integration): treat Add Entry references as child of existing parent [INTEG-4524]#11099JuliRossi wants to merge 3 commits into
JuliRossi wants to merge 3 commits into
Conversation
This update refactors the EditModal component to utilize the new AddEntryForm for adding entries, simplifying the entry addition process. The AddEntryWizard has been removed, and the related state management has been adjusted accordingly. The AddEntryForm now handles the entry creation logic, including content type selection and field mapping, enhancing the user experience. Additionally, the AddEntryForm is integrated with the existing modal controls for better navigation and state management.
… type has no reference fields Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Collaborator
Author
|
Dividing this into 2 PRs, so it is easier to review |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
INTEG-4524
Summary
AddEntryForm) with conditional reference controls.__ref/sourceEntryIdson the parent and edgefrom=parent → to=child.New reference logic
flowchart TD A[Select content type for new entry] --> B{Any existing parent<br/>has Entry reference fields?} B -->|No| C[Yes disabled — only No allowed] B -->|Yes| D{Should this new entry be a<br/>reference of an existing entry?} D -->|No| E[Map fields on new entry only] D -->|Yes| F[Select parent entry] F --> G{Parent has how many<br/>Entry reference fields?} G -->|0| H[Save disabled] G -->|1| I[Auto-pick that field] G -->|2+| J[Select parent field] I --> K[Save] J --> K K --> L[Create new child entry] L --> M{Parent field type} M -->|Link| N[Replace parent field value,<br/>sourceEntryIds, and edges] M -->|Array| O[Append child to parent field,<br/>sourceEntryIds, and edges] N --> P["Edge: from=parent → to=child"] O --> PBefore vs after
__reffrom=new → to=existingfrom=parent → to=childTest plan
sourceEntryIds/ payload)