Skip to content

chore: update app configuration and dependencies, enhance content typ…#1040

Open
shobhit-cstk wants to merge 2 commits intodevfrom
bugfix/CMG-861
Open

chore: update app configuration and dependencies, enhance content typ…#1040
shobhit-cstk wants to merge 2 commits intodevfrom
bugfix/CMG-861

Conversation

@shobhit-cstk
Copy link
Copy Markdown

…e handling, and clean up package files bug fix - CMG-861, CMG-862, CMG-863

…e handling, and clean up package files bug fix - CMG-861, CMG-862, CMG-863
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 thread app.json
Comment on lines 16 to 20
"user": {
"email": "user@example.com",
"uid": "user-uid"
"email": "shobhit.upadhyay@contentstack.com",
"uid": "bltf56d4d5438c9db89"
},
"organization": {
Comment thread app.json
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
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.

4 participants