chore: update app configuration and dependencies, enhance content typ…#1040
Open
shobhit-cstk wants to merge 2 commits intodevfrom
Open
chore: update app configuration and dependencies, enhance content typ…#1040shobhit-cstk wants to merge 2 commits intodevfrom
shobhit-cstk wants to merge 2 commits intodevfrom
Conversation
…e handling, and clean up package files bug fix - CMG-861, CMG-862, CMG-863
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates configuration and dependencies while improving content type/field mapping behavior (notably around nested groups and modular blocks) across the UI and API portions of the migration tool.
Changes:
- Update upload-api defaults for CMS type and local path configuration.
- Refactor UI content-mapping logic to better resolve previously-mapped fields across deep nesting/modular blocks.
- Enhance API schema merge logic (modular blocks order/UID preservation) and adjust dependency/lockfile state.
Reviewed changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| upload-api/src/config/index.ts | Updates default cmsType and localPath configuration. |
| upload-api/migration-aem/package-lock.json | Adds peer-installed typings dependencies (e.g., @types/node, undici-types) to the lockfile. |
| ui/src/components/ContentMapper/index.tsx | Refactors mapped-field reconciliation logic, adding modular-block subtree matching and mapping state handling tweaks. |
| app.json | Updates app/user/org/oauth/pkce configuration values. |
| api/src/utils/content-type-creator.utils.ts | Improves modular-block merge behavior and adds helper utilities for UID resolution and schema cloning. |
| api/package.json | Adds @emnapi/* deps and cleans up dependency ordering/formatting. |
| api/package-lock.json | Large lockfile update reflecting dependency graph changes. |
Files not reviewed (2)
- api/package-lock.json: Language not supported
- upload-api/migration-aem/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| public_path: process.env.DRUPAL_ASSETS_PUBLIC_PATH || 'drupal_assets_public_path' | ||
| }, | ||
| localPath: process.env.CMS_LOCAL_PATH || process.env.CONTAINER_PATH || 'localPath', | ||
| localPath: process.env.CMS_LOCAL_PATH || process.env.CONTAINER_PATH || '/Users/shobhit.upadhyay/Downloads/contentful-export-all-2026-04-10T09-18-35.json', |
Comment on lines
16
to
20
| "user": { | ||
| "email": "user@example.com", | ||
| "uid": "user-uid" | ||
| "email": "shobhit.upadhyay@contentstack.com", | ||
| "uid": "bltf56d4d5438c9db89" | ||
| }, | ||
| "organization": { |
Comment on lines
29
to
32
| "oauthData": { | ||
| "client_id": "client-id", | ||
| "client_secret": "client-secret", | ||
| "client_id": "enc:23075d487510c9d86ab0ce0b:8f83bd81b7f701f27752e30a6b3ef7de:4420233756ac0d76b87b0dd6baf45d04", | ||
| "client_secret": "enc:8171ebf9f22aec92c95bed05:645cb1b32ec31b5a3b5af9a465c82e13:b28516543a6699adfec4d9cccb6fba2d6a7a22be16e1231a393b99bcc2e84bcc", | ||
| "redirect_uri": "http://localhost:5001/v2/auth/save-token", |
| tableData, | ||
| otherContentType?.id, | ||
| contentTypeSchema, | ||
| newMigrationData, |
…rsions for improved functionality and security
vikrantraut-cstk
approved these changes
Apr 15, 2026
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.
…e handling, and clean up package files bug fix - CMG-861, CMG-862, CMG-863